Intervals for a Proportion
A confidence interval is . For a proportion: , with for confidence ( for , for ). "95% confident" means the method captures the true value in of all samples.
The interval is a statement about the procedure, not about this one answer. The true proportion is a fixed number; it is either in the interval or not. What is is the fraction of intervals, over many repetitions of the sampling, that would contain it — as the simulated intervals above illustrate. Widening the interval (higher confidence) or enlarging the sample (smaller SE) are the only two ways to buy more certainty.
, : SE . interval: , i.e. . The interval includes values below , so the poll cannot confidently call a majority.
Same poll at other levels. : . : . More confidence means a wider net; with the data fixed, you cannot have both a narrow interval and high confidence.
Reading the interval as a range of individual answers: " of voters are between and " is meaningless. The interval is a range of plausible values for ONE number — the population proportion.
In a sample of , say they walk to work. Give a confidence interval for the population proportion.
Show the answerHide the answer
SE ; margin . Interval , i.e. .
Intervals for a Mean
For a mean with unknown : , where comes from the distribution with degrees of freedom. For large , ; for small it is larger, paying for the extra uncertainty in .
Replacing the unknown by the sample's own adds a second source of randomness: in a small sample may come out too small, making the interval too narrow. The distribution builds that risk in by having heavier tails, and it approaches the normal as the degrees of freedom grow, because becomes a reliable estimate of .
, , , : with degrees of freedom . SE . Interval , i.e. — wider than the a interval would claim.
, , : SE and , so the interval is , i.e. . With degrees of freedom is already close to .
Saying "there is a 95% probability the true mean is in this interval" (the interval is what is random), or using with a tiny sample. With , the interval would capture the true mean less than of the time.
A interval for mean commute time is minutes. Which is correct: (a) of commutes take – minutes; (b) we are confident the MEAN commute is between and ?
Show the answerHide the answer
(b). The interval estimates the population mean; individual commutes are far more spread out than the mean is uncertain.
Margin of Error and Sample Size
The margin of error for a proportion is . Solving for : . With no prior guess use , the worst case, since : at , . Always round UP.
Because is proportional to , halving the margin needs four times the sample and cutting it to a third needs nine times. That diminishing return is visible in the curve and explains the typical national poll of about people: going from to would cost nine times as much. The formula uses the planned , not the result, because it is computed before collecting any data.
How many people for a margin at , with no prior guess? . Round up: . Rounding down to would give a margin slightly larger than .
At the worst-case margin is ; at it is — exactly half. Quadrupling the sample halves the margin, because the square root turns into .
If an earlier study suggests , then , so — far fewer than . Proportions near or vary less from sample to sample, so they are cheaper to pin down.
Rounding the sample size to the nearest integer instead of up, or using from the finished survey to plan it. The planning formula needs a guess made in advance; when in doubt, guarantees the margin.
How many people must be polled for a margin at confidence (no prior guess)?
Show the answerHide the answer
— exactly an integer here, so no rounding is needed.
Why It Works
The sampling distribution of is approximately normal with centre , so in of samples lands within SE of . But " is within SE of " is the same statement as " is within SE of " — distance is symmetric. So in exactly those of samples, the interval around contains . (Using the estimated SE instead of the true one introduces a small error, which is why the distribution is used for means with small samples.)