Confidence interval for a proportion
Same margin idea, but now you estimate a proportion (a vote, a defect rate). The sample proportion is approximately normal for large , with standard error . The headline question: does the interval stay on one side of the boundary?
p̂ ± k·√(p̂q̂ / n)
Because and , the proportion behaves like a mean with its own standard error. Use , and the same table. It is a normal approximation (needs , ) with no continuity correction, unlike the Chapter 5 probabilities.
Proportion CI = p̂ ± k·√(p̂q̂/n), p̂ = r/n. Same k table; no continuity correction. Read it against the boundary (0.5, a pass rate, …).
Worked example
Start simple: opinion poll vs 0.5
200 voters polled, 108 favour Sofia (the winner needs over 50%). Find a 95% CI for her support.
- , .
- .
- CI — it straddles 0.5.
Despite , her true share could be below half.
Worked example
Build up: 99% CI vs a classification boundary
A puzzle is “easy” if over 70% solve it in time, else “average”. Of 120 people, 87 solved it. (a) Find a 99% CI for the proportion and classify it. (b) Of 200 such samples, how many 99% CIs would contain the true proportion?
- , .
- , so CI .
- (a) The CI crosses 0.70, so it is “easy or average” — not decided.
- (b) A 99% CI captures 99% of the time: .
Reverse: what sample size hits a target margin?
The margin is . Set it equal to the allowed error and solve for : .
Worked example
Sample size for a required accuracy
A college will switch days if 80% of apprentices agree. How many should be polled to be 90% certain of measuring that 80% support to within 5%?
- , , 90% so .
- .
- A sample size must round up — rounding down to 173 leaves the margin just above 5%, so take .
Examiner note
Common mistake