Significance Tests for Proportions
AP Statistics · Unit 3 — Inference for Categorical Data: Proportions
The four-step template
- State $H_0$ and $H_a$ with symbols and in context, defining the parameter.
- Plan — name the test and check conditions. For a one-sample $z$-test the success/failure check uses $p_0$, the null value.
- Do — compute the test statistic and the P-value:
- Conclude — compare P-value to $\alpha$, then write a conclusion in context.
What a P-value is
The probability of getting a result at least as extreme as the one observed, assuming $H_0$ is true. Small P-value $\Rightarrow$ the data would be surprising under $H_0$.
You never "accept" $H_0$; you fail to reject it.
Worked example: testing a single proportion
A manufacturer claims $90\%$ of its products meet the standard. Checking $200$ products, $170$ pass. Test at $\alpha=0.05$.
Solution
State: $p$ is the proportion of products meeting the standard across the whole production line. $H_0:p=0.90$; $H_a:p<0.90$.
Check conditions: random sample; $np_0=200(0.9)=180\ge10$ and $n(1-p_0)=20\ge10$ ✓.
Calculate: $\hat p=\frac{170}{200}=0.85$.
$$z=\frac{0.85-0.90}{\sqrt{\frac{0.9\times0.1}{200}}}=\frac{-0.05}{0.0212}\approx-2.36$$$P=P(z<-2.36)\approx0.009$.
Conclusion: $0.009<0.05$ ⇒ reject $H_0$. There is convincing evidence that the proportion meeting the standard is lower than the $90\%$ the manufacturer claims.