Probability & Statistics

Margin of Error

A poll of 1000 people puts Candidate A at 60 percent. How do you attach a margin of error to that single number?

solvedmedium1 min

In a survey of 10001000 people, 60%60\% say they would vote for Candidate A and 40%40\% for someone else. How can you calculate a margin of error on the 60%60\% estimate?

Reveal solutionHide solution

#The estimate is a sample proportion

Each reply is a Bernoulli draw, so the sample proportion p^=0.60\hat{p} = 0.60 estimates the true share pp. The spread of that estimate around pp is its standard error,

SE=p^(1p^)n=0.60.41000=0.000240.0155.(1)\SE = \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}} = \sqrt{\frac{0.6 \cdot 0.4}{1000}} = \sqrt{0.00024} \approx 0.0155. \tag{1}

#The 95 percent margin

A 95%95\% confidence interval extends 1.961.96 standard errors on each side, and that half-width is the margin of error,

margin=1.96SE1.960.01550.030.(2)\text{margin} = 1.96 \cdot \SE \approx 1.96 \cdot 0.0155 \approx 0.030. \tag{2}
60%5055606570
The poll pins Candidate A at 60 percent, but with only a thousand replies the true share could sit anywhere in the 57 to 63 band with 95 percent confidence. The whiskers are the margin of error, plus or minus three points.

#Result

The margin of error is about ±3\pm 3 percentage points, so the 95%95\% interval is roughly 60%±3%60\% \pm 3\%, that is [57%,63%][57\%, 63\%]. Quadrupling the sample would halve this, since the margin shrinks like 1/n1/\sqrt{n}.