Statistics & Probability · Grades 10, 11
Margin of Error: How Close Is an Estimate?
Quick answer
A sample proportion is an estimate, and estimates move. Simulating a thousand samples from a known population shows how far they scatter, and the scatter has a formula: the standard deviation of a sample proportion is the square root of p times one minus p over n. Twice that covers about 95 percent of samples, which is the margin of error a poll reports.
What you'll learn
- Describe the sampling distribution of a proportion from a simulation
- Compute and interpret a margin of error
- Decide whether a result is consistent with a claimed model
The same question, two different answers
Two pollsters ask the same question of the same population on the same day. One gets , the other . Neither made a mistake.
They measured different people. A sample is part of a population, and a different part gives a different number. The estimate moves, and the useful question is how far.
That question has an answer, and it can be watched happening.
Watching a thousand samples
Suppose a district really does have of its students walking or biking to school. That number is known here, which never happens in practice — it is known because this is a simulation, built so the scatter can be seen against a target.
Draw a random sample of students, record the percentage who walk, and repeat a thousand times.
Three things in that picture matter.
It is centered on the truth. The thousand sample percentages average . Random sampling has no tilt, so the estimates miss high about as often as they miss low.
It is symmetric and mound-shaped. The pile has the normal shape, which is why the rules from that lesson apply here.
It is wide. The lowest sample came in at and the highest at . A single sample of can land a long way from .
| Within how many points of | Samples out of |
|---|---|
Fourteen points catches of them. That number is about to get a name.
Why the spread shrinks like the square root of n
The scatter of those thousand percentages has a standard deviation of . It is not an accident, and it does not need a simulation to find:
The simulation gave . The formula gives .
The sits under a square root, and that single detail drives everything else. Doubling the sample does not halve the spread — it divides it by , about . To halve the spread you need four times the data.
Run the same simulation with samples of and the pile tightens exactly that much:
Four times the sample, half the spread: the standard deviation drops from to , and the extremes shrink from – to –.
Margin of error
In a mound-shaped pile, about of the values sit within two standard deviations of the center. That distance is the margin of error.
For the district, , or about percentage points — which is the that caught of the simulated samples.
In practice is unknown, so the sample’s own goes in its place. The result is reported as an interval:
The quick rule
The margin is largest when , and there the formula collapses:
So is both a shortcut and a worst case. It needs no knowledge of at all.
| Sample size | |
|---|---|
The row is why national polls report “plus or minus three points” so often. It is the sample size that buys that number.
The population size is absent from every formula on this page. A sample of measures a town of and a country of million with the same precision, which surprises nearly everyone the first time.
Is a claimed model consistent with the data?
The same machinery answers a different question: somebody claims a value, and data arrives. Does the data fit the claim?
A coin is claimed to be fair. It is flipped times and lands heads times.
Start by assuming the claim is true and asking what flips of a fair coin look like.
So fair coins produce head rates piled around with a standard deviation of points, and about of them land between and .
The observed is standard deviations above — outside that range. Computing it exactly, a fair coin gives or more heads about of the time, and lands that far off in either direction about of the time.
A result that about one fair coin in fifty would produce is evidence against the claim. It is not proof; one coin in fifty is not zero.
Now change the data. Suppose the coin had landed heads times.
A fair coin does that or better about of the time, and misses by that much in either direction about of the time. That is an ordinary result, and it is consistent with a fair coin.
| Heads in | Distance from | How often a fair coin does this | Verdict |
|---|---|---|---|
| SD | about of the time | consistent | |
| SD | about of the time | evidence against |
Worked examples
Common mistakes
Practice problems
-
Use the quick rule to find the margin of error for a sample of .
Answer
About percentage points.
Full solution
.
-
A poll of people finds support. Give the plausible range.
Answer
to
Full solution
, so the range is .
-
A margin of error is points. What sample size would bring it to points?
Answer
Four times the current size.
Full solution
The margin shrinks with . Halving it requires multiplying by , since .
-
A sample of finds . Find the margin of error.
Answer
About percentage points.
Full solution
.
-
Find the standard deviation of when and .
Answer
About
Full solution
.
-
How many people are needed for a margin of error of percentage points?
Hint
Set the quick rule equal to and solve.
Answer
Full solution
gives , so .
-
A coin lands heads times in flips. Is that consistent with a fair coin?
Answer
Yes. It is one standard deviation off, which happens about of the time.
Full solution
Assume fairness. Then the standard deviation of the head rate is .
, well inside the usual two-standard-deviation range.
-
A candidate polls and an opponent . Can the leader be declared?
Answer
No. The ranges overlap.
Full solution
The first range is to and the second is to .
Values where the second candidate leads sit inside both ranges, so the data does not settle the order.
-
A bag is claimed to be red candies. A sample of contains red, which is . Is the claim consistent with this?
Hint
Find the standard deviation the claim predicts, then count how many fit in the gap.
Answer
No. The sample is about standard deviations above the claim.
Full solution
Assume the claim is true, so and .
.
standard deviations.
About of samples from a bag land within two standard deviations, so a result this far out is evidence the true proportion is above .
-
A state has million residents. Told that a poll used people, Priya says the poll is worthless because is a tiny fraction of million. Find her error.
Hint
Which symbols appear in the margin-of-error formula?
Answer
The margin depends on , not on the fraction of the population sampled.
Full solution
The formula is . The population size appears nowhere in it.
With , the margin is about percentage points whether the population is a town of or a nation of million.
The reason is that a random draw carries information about the population it came from. How much information depends on how many draws were made, not on how much was left behind.
Priya’s instinct does apply in one narrow case. When the sample is a large share of a small population — say out of — the margin is smaller than the formula says, because the sample is close to a census. That correction helps the poll rather than hurting it.
Frequently asked questions
What does a margin of error mean?
It is the distance that covers about 95 percent of samples. A poll of 48 percent with a margin of 4 points is saying the true value is plausibly between 44 and 52.
How do I compute a margin of error for a proportion?
Take two times the square root of p times one minus p divided by n. Use the sample proportion in place of p when the true value is unknown.
What is the quick 1 over root n rule?
It is the margin of error at p = 0.5, which is the largest it can be. For n = 1000 it gives about 3 percentage points, the figure national polls report.
How much bigger must a sample be to halve the margin of error?
Four times bigger. The margin shrinks with the square root of n, so cutting it in half costs four times the data.
Does the size of the population matter?
Almost never. The formula contains the sample size and not the population size, so a sample of 1000 measures a city and a country about equally well.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSS.IC.A.2Making Inferences and Justifying ConclusionsDecide if a specified model is consistent with results from a given data-generating process, e.g., using simulation.
- CCSS.MATH.CONTENT.HSS.IC.B.4Making Inferences and Justifying ConclusionsUse data from a sample survey to estimate a population mean or proportion; develop a margin of error through the use of simulation models for random sampling.