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 52%52\%, the other 49%49\%. 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 60%60\% 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 5050 students, record the percentage who walk, and repeat a thousand times.

Percentage who walk, in 1000 samples of 50 A histogram of one thousand simulated sample percentages, piled up around sixty percent, tailing off below forty and above eighty. 40 45 50 55 60 65 70 75 80 100 200
Percentage who walk, in 1000 samples of 50

Three things in that picture matter.

It is centered on the truth. The thousand sample percentages average 60.1%60.1\%. 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 38%38\% and the highest at 80%80\%. A single sample of 5050 can land a long way from 6060.

Within how many points of 6060Samples out of 10001000
22325325
44527527
66680680
88806806
1010884884
1414970970

Fourteen points catches 97%97\% 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 0.0700.070. It is not an accident, and it does not need a simulation to find:

SD of p^=p(1−p)n\text{SD of } \hat{p} = \sqrt{\frac{p(1-p)}{n}} 0.60×0.4050=0.0048=0.069\sqrt{\frac{0.60 \times 0.40}{50}} = \sqrt{0.0048} = 0.069

The simulation gave 0.0700.070. The formula gives 0.0690.069.

The nn sits under a square root, and that single detail drives everything else. Doubling the sample does not halve the spread — it divides it by 2\sqrt{2}, about 1.411.41. To halve the spread you need four times the data.

Run the same simulation with samples of 200200 and the pile tightens exactly that much:

The same thing with samples of 200 A histogram of one thousand simulated sample percentages from samples of two hundred, piled up tightly around sixty percent and much narrower than the previous one. 40 45 50 55 60 65 70 75 80 100 200 300
The same thing with samples of 200

Four times the sample, half the spread: the standard deviation drops from 0.0700.070 to 0.0360.036, and the extremes shrink from 3838–8080 to 4646–7272.

Margin of error

In a mound-shaped pile, about 95%95\% of the values sit within two standard deviations of the center. That distance is the margin of error.

margin of error=2p(1−p)n\text{margin of error} = 2\sqrt{\frac{p(1-p)}{n}}

For the district, 2×0.069=0.1392 \times 0.069 = 0.139, or about 1414 percentage points — which is the 1414 that caught 97%97\% of the simulated samples.

In practice pp is unknown, so the sample’s own p^\hat{p} goes in its place. The result is reported as an interval:

p^±margin of error\hat{p} \pm \text{margin of error}

The quick rule

The margin is largest when p=0.5p = 0.5, and there the formula collapses:

20.5×0.5n=2⋅0.5n=1n2\sqrt{\frac{0.5 \times 0.5}{n}} = 2 \cdot \frac{0.5}{\sqrt{n}} = \frac{1}{\sqrt{n}}

So 1n\tfrac{1}{\sqrt{n}} is both a shortcut and a worst case. It needs no knowledge of pp at all.

Sample size1n\tfrac{1}{\sqrt{n}}
505014.1%14.1\%
10010010.0%10.0\%
2002007.1%7.1\%
4004005.0%5.0\%
1,0001{,}0003.2%3.2\%
2,0002{,}0002.2%2.2\%

The 1,0001{,}000 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 1,0001{,}000 measures a town of 20,00020{,}000 and a country of 300300 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 100100 times and lands heads 6262 times.

Start by assuming the claim is true and asking what 100100 flips of a fair coin look like.

SD=0.5×0.5100=0.05\text{SD} = \sqrt{\frac{0.5 \times 0.5}{100}} = 0.05

So fair coins produce head rates piled around 50%50\% with a standard deviation of 55 points, and about 95%95\% of them land between 40%40\% and 60%60\%.

The observed 62%62\% is 2.42.4 standard deviations above 50%50\% — outside that range. Computing it exactly, a fair coin gives 6262 or more heads about 1.0%1.0\% of the time, and lands that far off in either direction about 2.1%2.1\% 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 5555 times.

0.55−0.500.05=1.0 standard deviation\frac{0.55 - 0.50}{0.05} = 1.0 \text{ standard deviation}

A fair coin does that or better about 18%18\% of the time, and misses by that much in either direction about 37%37\% of the time. That is an ordinary result, and it is consistent with a fair coin.

Heads in 100100Distance from 50%50\%How often a fair coin does thisVerdict
55551.01.0 SDabout 37%37\% of the timeconsistent
62622.42.4 SDabout 2%2\% of the timeevidence against

Worked examples

Common mistakes

Practice problems

  1. Use the quick rule to find the margin of error for a sample of 100100.

    Answer

    About 1010 percentage points.

    Full solution

    1100=110=0.10\tfrac{1}{\sqrt{100}} = \tfrac{1}{10} = 0.10.

  2. A poll of 400400 people finds 52%52\% support. Give the plausible range.

    Answer

    47%47\% to 57%57\%

    Full solution

    1400=0.05\tfrac{1}{\sqrt{400}} = 0.05, so the range is 52%±5%52\% \pm 5\%.

  3. A margin of error is 66 points. What sample size would bring it to 33 points?

    Answer

    Four times the current size.

    Full solution

    The margin shrinks with n\sqrt{n}. Halving it requires multiplying nn by 44, since 4=2\sqrt{4} = 2.

  4. A sample of 1,0001{,}000 finds p^=0.46\hat{p} = 0.46. Find the margin of error.

    Answer

    About 3.23.2 percentage points.

    Full solution

    20.46×0.541000=20.000248=2(0.0158)=0.0322\sqrt{\tfrac{0.46 \times 0.54}{1000}} = 2\sqrt{0.000248} = 2(0.0158) = 0.032.

  5. Find the standard deviation of p^\hat{p} when p=0.30p = 0.30 and n=50n = 50.

    Answer

    About 0.0650.065

    Full solution

    0.30×0.7050=0.0042=0.0648\sqrt{\tfrac{0.30 \times 0.70}{50}} = \sqrt{0.0042} = 0.0648.

  6. How many people are needed for a margin of error of 2.52.5 percentage points?

    Hint

    Set the quick rule equal to 0.0250.025 and solve.

    Answer

    1,6001{,}600

    Full solution

    1n=0.025\tfrac{1}{\sqrt{n}} = 0.025 gives n=40\sqrt{n} = 40, so n=1600n = 1600.

  7. A coin lands heads 5555 times in 100100 flips. Is that consistent with a fair coin?

    Answer

    Yes. It is one standard deviation off, which happens about 37%37\% of the time.

    Full solution

    Assume fairness. Then the standard deviation of the head rate is 0.25100=0.05\sqrt{\tfrac{0.25}{100}} = 0.05.

    0.55−0.500.05=1.0\tfrac{0.55 - 0.50}{0.05} = 1.0, well inside the usual two-standard-deviation range.

  8. A candidate polls 51%±3%51\% \pm 3\% and an opponent 49%±3%49\% \pm 3\%. Can the leader be declared?

    Answer

    No. The ranges overlap.

    Full solution

    The first range is 48%48\% to 54%54\% and the second is 46%46\% to 52%52\%.

    Values where the second candidate leads sit inside both ranges, so the data does not settle the order.

  9. A bag is claimed to be 20%20\% red candies. A sample of 200200 contains 5656 red, which is 28%28\%. 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 2.82.8 standard deviations above the claim.

    Full solution

    Assume the claim is true, so p=0.20p = 0.20 and n=200n = 200.

    SD=0.20×0.80200=0.0008=0.0283\text{SD} = \sqrt{\tfrac{0.20 \times 0.80}{200}} = \sqrt{0.0008} = 0.0283.

    0.28−0.200.0283=2.8\tfrac{0.28 - 0.20}{0.0283} = 2.8 standard deviations.

    About 95%95\% of samples from a 20%20\% bag land within two standard deviations, so a result this far out is evidence the true proportion is above 20%20\%.

  10. A state has 66 million residents. Told that a poll used 1,0001{,}000 people, Priya says the poll is worthless because 1,0001{,}000 is a tiny fraction of 66 million. Find her error.

    Hint

    Which symbols appear in the margin-of-error formula?

    Answer

    The margin depends on nn, not on the fraction of the population sampled.

    Full solution

    The formula is 2p(1−p)n2\sqrt{\tfrac{p(1-p)}{n}}. The population size appears nowhere in it.

    With n=1000n = 1000, the margin is about 3.23.2 percentage points whether the population is a town of 20,00020{,}000 or a nation of 300300 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 1,0001{,}000 out of 2,0002{,}000 — 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.

What to learn next

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.