Test whether the proportion of smokers is different from 20% given n=315 and x=43.
Check the final answer first, then review the worked steps.
Answer
\(p, =, 0.20, p, ≠, 0.20, -2.82, 0.005\)
Work
n=315, x=43, p_0=0.20
\hat{p} = 43/315 \approx 0.1365
z = (0.1365 - 0.20) / \sqrt{0.20(0.80)/315} \approx -2.82
p = 2 \times P(Z < -2.82) \approx 0.0048
Step-by-step solution
- Identify the parameter: We are testing a proportion, so use $p$.
- State the null hypothesis: $H_0: p = 0.20$.
- State the alternative hypothesis: The question asks if the proportion is 'different from', so $H_a: p \neq 0.20$.
- Calculate the sample proportion: $\hat{p} = \frac{43}{315} \approx 0.1365$.
- Calculate the test statistic: $z = \frac{\hat{p} - p_0}{\sqrt{\frac{p_0(1-p_0)}{n}}} = \frac{0.1365 - 0.20}{\sqrt{\frac{0.20(0.80)}{315}}} \approx \frac{-0.0635}{0.0225} \approx -2.82$.
- Calculate the p-value: For a two-tailed test, $p = 2 \times P(Z < -2.82) \approx 2 \times 0.0024 = 0.0048$.