When we estimate a population value from a single random sample, we need a way to measure how far off our sample might be and how confident we can be in that range.
1
Confidence Level and the Margin of Error Tradeoff
To build a confidence interval around a sample proportion, we start from the spread of random samples around the truth and choose how many steps wide our interval needs to be.
Remember, when we take random samples to answer a Yes/No question, sample proportions stack up in a normal bell curve around the true population proportion. The spread of that pile, one standard error (or 1 Typical Miss), depends on how divided the crowd is and how many people we ask:
1 Typical Miss=nPeoplep(1−p)Yes×No
Why does a poll report both a confidence level and a margin of error, and why did the news poll ask 1,068 people?
Confidence Level and the Margin of Error Tradeoff
To build a confidence interval from a single sample, we multiply 1 Typical Miss by the number of steps z∗ for our chosen confidence level, and go that distance to the left and right of our sample estimate:
Estimate±Margin of Error,Margin of Error=(Steps for yourConfidence z∗)×(1 Typical Miss)
For quick mental checks, 95% confidence is about 2 steps (z∗≈2), though you will usually use the exact normal-curve steps: z∗=1 for 68% confidence, z∗=1.96 for 95% confidence, and z∗=2.58 for 99% confidence.
Here is how those steps work on the 100-person poll at 57% support with a roughly 50/50 split.
Text solution
Find 1 Typical Miss from the split and sample size
1 Typical Miss=1000.50×0.50=1000.25=0.05=5%
Multiply 1 Typical Miss by the steps for 95% confidence
Margin of Error=2×5%(or 1.96×5%using exact steps)=10%=9.8%
Add and subtract the Margin of Error around the sample estimate
57%±10%=47% to 67%
So at 95% confidence, true support for the four-day workweek is somewhere between 47% and 67%, which is too wide to tell whether a majority supports it.
With the same 100 people, a narrower interval catches the truth less often, and higher confidence takes a wider interval.
With the same 100 people polled, making the interval narrower around 57% makes it less likely to catch the true percentage, while catching it more often takes a wider interval.
2
Choosing a Sample Size for a Proportion
Before running a poll, we can work backward from a target Margin of Error and confidence level to find how many people we need to ask.
We don't need a new formula to find the sample size. We use the same Margin of Error equation, plug in the worst-case 50/50 split (Yes×No=0.25) if we have no earlier estimate of the split, and solve for People.
Choosing a Sample Size for a Proportion
Confidence levelMargin of ErrorPeople=95%≤3%=?
Here is how we find the sample size needed for a Margin of Error of at most ±3% (0.03) at 95% confidence (z∗=1.96) when no earlier poll exists.
Text solution
Divide the target Margin of Error by the confidence steps z∗ to find the target Typical Miss
1 Typical Miss=1.960.03≈0.015306
Set the Typical Miss formula with a worst-case 50/50 split equal to that target
People0.25=1.960.03
Square both sides to undo the square root and solve for People
Round UP to the next whole person so the Margin of Error stays at or under 3%
1,067.11→1,068 people
So we must poll 1,068 people to guarantee a Margin of Error no wider than ±3% at 95% confidence, no matter what the true split turns out to be.
Shrinking the Margin of Error takes a much larger poll: cutting the error in half (from ±10% to ±5%) takes 4 times as many people (100 to 400), and cutting it to a third (from ±3% to ±1%) takes 9 times as many (1,068 to 9,604).
At 95% confidence, shrinking the margin of error multiplies the needed sample size by the square of how many times smaller you make it.
3
Margin of Error and Sample Size for a Mean
Now suppose we are estimating an average (a mean), such as average commute time in minutes, instead of a Yes/No proportion.
The Margin of Error method stays the same. The only piece that changes is 1 Typical Miss, which now uses the standard deviation of individual measurements, σ, in place of Yes×No:
1 Typical Miss=Peopleσ
Margin of Error and Sample Size for a Mean
Here are the steps for city commute times with an individual standard deviation of σ=15 minutes at 95% confidence (z∗=1.96): first finding the Margin of Error for 100 commuters, and then finding how many commuters are needed to shrink that Margin of Error to ±1 minute.
Text solution
Divide σ by People and multiply by z∗ to find the Margin of Error for 100 commuters
1 Typical Miss⟹Margin of Error=10015=1.5 minutes=1.96×1.5=2.94 minutes
Set Peopleσ equal to the new target Typical Miss (1.961 minute) and isolate People
People15⟹People=1.961=15×1.96=29.4
Square both sides and round UP to the next whole commuter
People=29.42=864.36→865 commuters
So shrinking the Margin of Error from roughly 3 minutes down to 1 minute (3 times smaller) increases the needed sample from 100 to 865 commuters (nearly 32=9 times larger).
4
Population Size, Bias, and What Margin of Error Misses
Finally, does a much larger population need a larger sample size, and what polling mistakes can the Margin of Error not fix?
Population Size, Bias, and What Margin of Error Misses
50,000
300 million
1,068
1,068
The Truth
60%
40%
50%
Unbiased Random Sample
Biased Sample
(Undercoverage, Nonresponse,
or Wording)
bias
40%
48%
±3%
If a biased poll centers the sample results at 48% instead of the truth at 60%, polling 1,000 or 10,000 people just shrinks the interval tighter around 48% and still misses 60%.
On a biased poll, polling more people shrinks the margin of error tighter around the shifted center without moving it any closer to the truth.
Key concepts
Every Margin of Error problem uses the same core relationship:
Margin of Error=(Confidence Steps z∗)×(1 Typical Miss)
where z∗=1 for 68% confidence, z∗=1.96 (about 2) for 95% confidence, and z∗=2.58 for 99% confidence.
Pick 1 Typical Miss from what is being measured
Yes/No proportion: Use 1 Typical Miss=PeopleYes×No (for 100 people at a 50/50 split, 1000.25=0.05=5%).
Average (mean): When given the individual standard deviation σ, use 1 Typical Miss=Peopleσ (for σ=15 minutes and 100 commuters, 10015=1.5 minutes).
Working backward to choose a sample size (People)
Divide the target Margin of Error by z∗ to get the target Typical Miss, square both sides to get People out of the square root, and always round UP to the next whole person (1,067.11→1,068). For a proportion, use an earlier split if one is given (80/20→0.80×0.20=0.16), or the worst-case 50/50 split (0.50×0.50=0.25) when you have no earlier estimate. Because People is inside a square root, making the Margin of Error k times smaller multiplies the sample size by k2 (half the error takes 4 times the people).
When Margin of Error does not apply
Never increase a sample size just because the total population is huge (a town of 50,000 and a country of 300 million both need 1,068 people for ±3%), and never use Margin of Error to trust a poll with undercoverage, nonresponse, or biased wording. Polling more people on a biased survey only shrinks the interval around the wrong answer.
5
Practice
1
A random sample of 400 residents finds that 80% support building a new bike lane (an 80/20 split). Find 1 Typical Miss and the 95% confidence interval (z∗=1.96) for true support. Without polling more people, what happens to the Margin of Error if you raise the confidence level to 99% (z∗=2.58)?
Be careful not to forget the square root, which leaves 0.0004, or 0.04%, and gives an interval 50 times too narrow.
Multiply the 80/20 split as decimals (0.80×0.20) before dividing by 400 and taking the square root.
Using the 80/20 split, Yes×No=0.80×0.20=0.16 (do not use 0.25 here, since we already have the sample split). Dividing by 400 and taking the square root gives:
1 Typical Miss=4000.16=0.0004=0.02=2%
(Be careful not to forget the square root, which leaves 0.0004, or 0.04%, and gives an interval 50 times too narrow.) At 95% confidence:
Margin of Error⟹80%±3.92%=1.96×2%=3.92%=76.08%to 83.92%
Raising the confidence level to 99% with the same 400 people widens the Margin of Error to 2.58×2%=5.16% (74.84% to 85.16%).
2
You are planning a poll on a brand-new ballot topic with no earlier estimate of how voters are split. How many people do you need to sample to be 95% confident (z∗=1.96) that your Margin of Error is at most ±4%?
Do not round .25 down to 600, because 600 people would push the Margin of Error slightly over 4% (to 4.0008%).
What worst-case value of Yes×No guarantees your sample size will be large enough? Set 1 Typical Miss equal to 1.960.04.
With no earlier estimate, use a worst-case 50/50 split (Yes×No=0.50×0.50=0.25):
People0.25=1.960.04
Squaring both sides to undo the square root gives:
Do not round .25 down to 600, because 600 people would push the Margin of Error slightly over 4% (to 4.0008%). Always round UP to the next whole person: 601 people.
3
An earlier survey found that roughly 90% of customers are satisfied with a city bus route (a 90/10 split). Using this earlier estimate, how many customers must you poll to get a Margin of Error of at most ±2% at 99% confidence (z∗=2.58)? Why is this fewer people than if you had no earlier estimate?
Don't use the 50/50 split of 0.25 here, which would give a much larger sample of 4,161 customers.
Use the 90/10 split in Yes×No, then set PeopleYes×No equal to 2.580.02.
Using the 90/10 split, Yes×No=0.90×0.10=0.09 (don't use the 50/50 split of 0.25 here, which would give a much larger sample of 4,161 customers):
This takes far fewer people than the 50/50 worst-case (4,161 customers) because a 90/10 crowd is much less divided (0.09 vs. 0.25), so sample results vary less.
4
A poll of 600 people has a Margin of Error of ±4%. At the same confidence level, how many people must be polled to shrink the Margin of Error to ±1%? If the pollsters instead multiply their original sample size by 4 (to 2,400 people), what happens to the Margin of Error?
Because People is inside a square root, do not just multiply the sample size by 4 (to 2,400 people); you need 42=16 times as many people.
How many times smaller is ±1% than ±4%, and what happens to that factor when People sits inside a square root?
Shrinking the Margin of Error from ±4% to ±1% makes the error 4 times smaller. Because People is inside a square root, do not just multiply the sample size by 4 (to 2,400 people); you need 42=16 times as many people:
600×16=9,600 people
If the pollsters multiply the original sample size by 4 (to 2,400 people), the Margin of Error is divided by 4=2 (not 4), cutting it in half from ±4% to ±2%.
5
Past shipping records show that the weights of checked bags have a standard deviation of σ=12 pounds. (a) In a random sample of 36 bags, what is the Margin of Error for the average weight at 95% confidence (z∗=1.96)? (b) How many bags must be weighed to be 95% confident that the sample average is within 2 pounds of the true average weight?
Be careful not to divide by 36 without the square root, which would give a Margin of Error of 0.65 pounds.
We are estimating an average weight with a known σ, so what expression replaces PeopleYes×No for 1 Typical Miss?
(a) Divide σ=12 by 36=6 (be careful not to divide by 36 without the square root, which would give a Margin of Error of 0.65 pounds):
1 Typical Miss⟹Margin of Error=3612=2 pounds=1.96×2=3.92 pounds
(b) Set 1 Typical Miss equal to the target Margin of Error divided by z∗:
Bags12⟹Bags=1.962=212×1.96=11.76
Squaring both sides gives Bags=11.762=138.2976. Even though .2976 is less than 0.5, rounding down to 138 would push the Margin of Error slightly over 2 pounds, so round UP to 139 bags.
6
A town of 40,000 people and a country of 200 million people both want a 95% confidence poll with a ±3% Margin of Error. (a) Does the country need a larger sample size than the town? (b) Suppose the town polls 10,000 people (shrinking its calculated Margin of Error below ±1%) by emailing a link that 88% of recipients ignore, while asking, "Don't you agree that our neglected parks need more funding?" Does the ±1% Margin of Error mean true town support is within 1% of the poll result?
Does total population size appear anywhere in the 1 Typical Miss formula, and does a larger sample size fix a shifted pile of samples?
(a) No. Do not increase the sample size just because the country is 5,000 times larger; like tasting a well-stirred pot of soup, only the size of the spoon (the sample size of 1,068 people) matters, not the size of the pot. (b) No. Even though 10,000 people is a quarter of the town and gives a calculated Margin of Error under ±1%, the poll has nonresponse (88% ignored it) and biased question wording, which shift the entire pile of samples away from the truth. Margin of Error only measures random sampling variation, so polling 10,000 people just builds a tight ±1% interval around the wrong answer.