Sub topic 3
How Much Can You Trust a Number: Margin of Error
This chapter assumes you understand percentages, averages, and the basic structure of a survey. You should also have survey results in a spreadsheet or similar table. The goal is to judge how precisely a survey estimates the wider population.
What the margin of error means
A margin of error (MOE) is an estimate of how far a survey result might be from the true population value because of random sampling. If 52% of your sample supports a proposal and the margin of error is plus or minus 3 percentage points, the corresponding population value may be roughly 49% to 55%.
This interpretation depends on a confidence level, which states how often the method would capture the true value over many repeated samples. The common 95% confidence level uses a multiplier of about 1.96.
The usual approximation for a proportion is:
\[ MOE = z \times \sqrt{\frac{p(1-p)}{n}} \]
Here, p is the observed proportion, n is the sample size, and z is the confidence multiplier. For a 95% confidence level, use z = 1.96.
import math
def margin_of_error(p, n, z=1.96):
"""95% margin of error for a proportion from a simple random sample."""
return z * math.sqrt(p * (1 - p) / n)
moe = margin_of_error(0.5, 1000)
print(f"±{moe * 100:.1f} percentage points")This prints ±3.1 percentage points. Using 50% gives a cautious estimate because p(1-p) is largest at 50%. A result near 5% or 95% usually has a smaller margin of error with the same sample size.
Sample size is not the only issue
For a simple random sample, larger samples produce smaller margins of error. The improvement follows a square-root relationship, so quadrupling the sample size roughly halves the margin of error.
| Sample size | Approximate maximum MOE at 95% confidence |
|---|---|
| 400 | ±4.9 percentage points |
| 1,000 | ±3.1 percentage points |
| 2,000 | ±2.2 percentage points |
These values describe sampling error, not total survey quality. A large sample can still mislead if the wrong people were invited, many selected people did not respond, or the question pushed respondents toward an answer.
A margin of error is most defensible when the survey uses a probability sample, where each population member has a known chance of selection. Online panels, opt-in polls, and customer lists often do not meet that condition. You can still report the sample size and describe the method, but avoid presenting a conventional MOE as if it measures all uncertainty.
Comparing results carefully
Suppose support rises from 42% last year to 48% this year. That is a rise of 6 percentage points. It is also a 14.3% relative increase, calculated as 6 ÷ 42 × 100. These describe different facts.
before = 42
after = 48
print(f"{after - before} percentage points")
print(f"{(after - before) / before * 100:.1f}% relative increase")If both estimates have margins of error, the apparent change may be caused partly by sampling variation. Do not claim that public opinion “shifted sharply” unless the study design supports a comparison and the difference is statistically meaningful or clearly large in context. Overlapping error ranges are a warning to investigate, not an automatic proof that there is no difference.
Use the result in PR copy
Report the estimate, population, field dates, sample size, confidence level, and margin of error together. For example:
“Among 1,000 adults surveyed June 3–7, 48% supported the proposal, with a margin of error of ±3.1 percentage points at the 95% confidence level.”
This wording gives journalists enough information to judge the number before using it in a headline.
Exercise
A probability survey of 1,000 people finds that 48% support a policy. Using a 95% margin of error of ±3.1 percentage points, what range should you report, and what important limitation remains?
Show answer
Report an approximate range of 44.9% to 51.1%. The range reflects sampling error only; coverage, nonresponse, wording, weighting, and other design problems may create additional error.