Confidence Intervals for a Proportion
To estimate a percentage, like the share of voters who back a measure, start from your sample's percentage and go out a couple of standard errors each way. That "plus or minus 3%" you see with every poll is exactly this margin of error.
What the symbols mean
- Sample proportion
Successes divided by n.
- Standard error
Estimated from the sample, since p is unknown.
What the symbols mean
- Desired margin of error
Use p̂ = 0.5 if you have no estimate: it gives the largest n.
Explanation
A confidence interval for a proportion is simply a range of plausible values for a percentage you can't measure directly, like the share of all voters who support something, built from a poll. The formula has the same shape as the one for means: (the percentage in your sample) plus or minus (how many standard errors, 1.96 for 95%) times (the standard error of a proportion, from the CLT unit). The sample-size formula is that margin of error solved for . Same idea you've already seen, new costume.
Why in the standard error? The true standard error is , but we don't know ; that's the whole point of the interval. So we plug in our best estimate, . (A hypothesis test is different: it assumes a value and uses that.)
Conditions: a random sample with at least 10 successes and 10 failures, so the normal approximation holds.
Planning a survey. Before you've collected data, you don't have yet. But is largest at , so using 0.5 gives the worst case and guarantees the margin of error. For at 95% confidence that's about 1,068 people, which is why national polls survey around a thousand people.
Diminishing returns. Quadrupling the sample only halves the margin of error, because sits under a square root.
A common mistake. It's tempting to think the margin of error covers every way a poll can go wrong. It only covers random sampling luck. If the poll only reached people who answer unknown numbers, or the question was worded to push an answer, the true value can be far outside the interval, and no sample size fixes that.
See it
Worked examples
In a poll, 520 of 1,000 people say yes. Find a 95% confidence interval for .
- 1
The sample proportion is , so the standard error is .
Practice
Type your answer and check it. Solve them all to complete the lesson.
520 of 1,000 people say yes. Find .
Find the 95% margin of error.
What sample size gives a 95% margin of error of 0.03, using ? (Round up.)
from . Find the 99% margin of error ().
A poll reports 52% with a margin of error of ±3%. What does that mean?
Of 800 phones tested, 28 have a defect. Find the margin of error of the 95% confidence interval for the defect rate.
Using , how many phones would give a 95% margin of error of 0.01? (Round up.)
The hardest one here. Get it, and you've got this lesson.
A poll of 1,200 voters finds 46% support for a measure. Find the upper bound of the 95% confidence interval. Is 50% support plausible?
Where it's used
Election polls, approval ratings, defect rates and vaccine efficacy estimates are all proportion intervals.