Math Core

Lesson 9.4 · Statistics and Probability

Margin of error

A news report says "52%52\% of voters support the measure, with a margin of error of plus or minus 33 percentage points." The 52%52\% comes from a sample, and a different random sample would have given a slightly different number. The margin of error tells you how far the sample result is likely to be from the true population value.

Samples vary

Imagine a large population in which exactly 50%50\% of people like a new song. If you survey 100100 random people, you probably won't get exactly 5050 who like it. You might get 4646, or 5353, or 4949. Survey another 100100 and you'll get another number. This natural wobble from sample to sample is called sampling variability.

If you took thousands of random samples of size 100100 and made a histogram of the sample proportions, it would look approximately normal, centered at the true proportion 0.500.50. Its standard deviation, called the standard error, is

p(1−p)n=0.5×0.5100=0.05.\sqrt{\frac{p(1 - p)}{n}} = \sqrt{\frac{0.5 \times 0.5}{100}} = 0.05.

By the 68–95–99.7 rule, about 95%95\% of samples give a proportion within 22 standard errors of the truth, here between 0.400.40 and 0.600.60. That "22 standard errors" is exactly what a margin of error measures.

Notice that nn is in the denominator under a square root. Bigger samples vary less, but you need to quadruple the sample size to cut the variability in half.

The margin of error for a proportion

In practice you don't know the true proportion pp (that's what you're trying to estimate), so you use the sample proportion p^\hat{p} ("p-hat") in its place.

Margin of error for a sample proportion (95% confidence)

For a simple random sample of size nn with sample proportion p^\hat{p}:

ME≈2p^(1−p^)n.\text{ME} \approx 2\sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}.

The interval from p^−ME\hat{p} - \text{ME} to p^+ME\hat{p} + \text{ME} is a 95% confidence interval: it is likely to contain the true population proportion.

A quick estimate that is often used for polls is

ME≈1n.\text{ME} \approx \frac{1}{\sqrt{n}}.

The quick formula comes from the first one: the value p^(1−p^)\hat{p}(1 - \hat{p}) is largest when p^=0.5\hat{p} = 0.5, and then 20.25n=2(0.5)n=1n2\sqrt{\dfrac{0.25}{n}} = \dfrac{2(0.5)}{\sqrt{n}} = \dfrac{1}{\sqrt{n}}. So 1n\dfrac{1}{\sqrt{n}} is the largest the margin of error can be, a safe upper estimate. (Many statisticians use 1.961.96 instead of 22; the difference is tiny.)

Worked example: The quick estimate

A poll of 900900 randomly selected adults finds that 54%54\% approve of a new law. Use ME≈1n\text{ME} \approx \dfrac{1}{\sqrt{n}} to find the margin of error and the interval that likely contains the true approval rate.

Solution.

ME≈1900=130≈0.033=3.3%.\text{ME} \approx \frac{1}{\sqrt{900}} = \frac{1}{30} \approx 0.033 = 3.3\%.

The interval is 54%−3.3%=50.7%54\% - 3.3\% = 50.7\% to 54%+3.3%=57.3%54\% + 3.3\% = 57.3\%. Since the whole interval is above 50%50\%, the poll gives good evidence that a majority approve.

Worked example: Using the full formula

In a random sample of 400400 students, 248248 say they have a part-time job. Find the sample proportion, the margin of error to the nearest tenth of a percent, and the 95%95\% confidence interval.

Solution. p^=248400=0.62\hat{p} = \dfrac{248}{400} = 0.62. Then

ME≈20.62×0.38400=20.2356400=20.000589≈2(0.02427)≈0.0485≈4.9%.\begin{aligned} \text{ME} &\approx 2\sqrt{\frac{0.62 \times 0.38}{400}} = 2\sqrt{\frac{0.2356}{400}} \\ &= 2\sqrt{0.000589} \approx 2(0.02427) \approx 0.0485 \approx 4.9\%. \end{aligned}

The interval is about 62%±4.9%62\% \pm 4.9\%, or 57.1%57.1\% to 66.9%66.9\%. The quick formula would give 1400=5%\dfrac{1}{\sqrt{400}} = 5\%, very close.

The margin of error for a mean

The same idea works when you estimate a population mean. If a random sample of size nn has mean xˉ\bar{x} and standard deviation ss, then

ME≈2sn,\text{ME} \approx \frac{2s}{\sqrt{n}},

and the interval xˉ±ME\bar{x} \pm \text{ME} likely contains the population mean.

Worked example: Estimating a mean

A random sample of 6464 high school students slept an average of 7.17.1 hours a night, with a standard deviation of 1.21.2 hours. Find the margin of error and the interval.

Solution.

ME≈2(1.2)64=2.48=0.3 hours.\text{ME} \approx \frac{2(1.2)}{\sqrt{64}} = \frac{2.4}{8} = 0.3 \text{ hours}.

The population mean is likely between 7.1−0.3=6.87.1 - 0.3 = 6.8 and 7.1+0.3=7.47.1 + 0.3 = 7.4 hours.

Choosing a sample size

Pollsters often decide in advance how precise they want to be. Solve ME=1n\text{ME} = \dfrac{1}{\sqrt{n}} for nn:

n=1ME2.n = \frac{1}{\text{ME}^2}.

For a margin of error of 2%2\%: n=10.022=10.0004=2500n = \dfrac{1}{0.02^2} = \dfrac{1}{0.0004} = 2500 people. For 1%1\%, you'd need 10,00010{,}000, four times as many, to halve the margin again.

Common mistake

The margin of error measures only random sampling variability. It says nothing about bias. A voluntary response poll or a poll with a leading question can be far off no matter how small its stated margin of error is.

Tip

Before believing a close race is "decided," check whether the intervals overlap. If one candidate has 51%51\% with a 3%3\% margin of error, the interval 48%48\% to 54%54\% includes values below 50%50\%, so the poll can't tell whether that candidate truly has a majority.

Practice

Practice 1

A random sample of 625625 people is surveyed. Use ME≈1n\text{ME} \approx \dfrac{1}{\sqrt{n}} to find the margin of error, as a percent.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

A poll reports that 45%45\% of residents favor a new tax, with a margin of error of 3%3\%. What is the upper end of the interval that likely contains the true percent, as a percent?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

In a random sample of 700700 adults, 30%30\% say they exercise daily. Use ME≈2p^(1−p^)n\text{ME} \approx 2\sqrt{\dfrac{\hat{p}(1 - \hat{p})}{n}} to find the margin of error, as a percent rounded to the nearest tenth.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

A random sample of 100100 light bulbs has a mean lifetime of 1,2001{,}200 hours with a standard deviation of 1515 hours. Use ME≈2sn\text{ME} \approx \dfrac{2s}{\sqrt{n}} to find the margin of error, in hours.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

A pollster wants a margin of error of 5%5\%. Using ME≈1n\text{ME} \approx \dfrac{1}{\sqrt{n}}, how many people should be surveyed?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

A survey of 500500 people has a certain margin of error. If the survey had used 2,0002{,}000 people instead, what would happen to the margin of error?

Practice 7

A random poll shows Candidate Lee with 51%51\% of the vote and a margin of error of 3%3\%. Which conclusion is best?

Practice 8

A magazine asks readers to vote online on whether they like its new design. Of 10,00010{,}000 votes, 80%80\% are "no," and the magazine reports a margin of error of 1%1\%. What is wrong with this report?