Hi Kaitlyn,
Pooled proportion estimator is computed by:
p-hatpooled=(p-hat1n1 + p-hat2n2)/(n1 + n2)
We also need standard error:
SE=sqrt[(p-hat(1-p-hat)sqrt((1/n1) + (1/n2))]
Finally, our z-test statistic is:
z=p-hat1 - p-hat1 - 0/SE
We also need to confirm that both proposed proportions, when multiplied with sample size, exceed 10. We can tell just by looking at these that they do (0.25*60)=15, 0.30*80=24.
Now, let's break down those formulas since they are somewhat messy. First:
p-hatpooled=(p-hat1n1 + p-hat2n2)/(n1 + n2)
p-hat1=first sample proportion
p-hat2=second sample proportion
n1=first sample size
n2=second sample size
For our problem:
p-hatpooled=(p-hat1n1 + p-hat2n2)/(n1 + n2)
p-hat1=0.25
p-hat2=0.3
n1=60
n2=80
p-hatpooled=[(0.25*60) + (0.30*80)]/(60+80)
p-hatpooled=0.28
Now, for standard error:
SE=sqrt[(p-hat(1-p-hat)sqrt((1/n1) + (1/n2))]
p-hat=p-hatpooled
n1=first sample size
n2=second sample size
For our problem:
p-hat=0.28
n1=60
n2=80
SE=sqrt(0.28*0.72) * sqrt((1/60) + (1/80))
SE=0.45*0.17
SE=0.0765
Finally, the test statistic:
z=[(p-hat1 - p-hat2) - 0]/SE
p-hat1=0.25
p-hat2=0.3
SE=0.0765
z=(0.25-0.3)/0.0765
z= -0.65
From z-table, P(z<-0.65)=0.2578
Given that we have a two-sided test:
P=2(0.2578)
p=0.52 (2 decimals)
No significant difference in population proportions of men and women who own cats. I hope this helps.