Lesson 17: Confidence Intervals for Means and Proportions
Estimation turns a sample into a statement about a population, and the confidence interval is the standard way to do it honestly: instead of pretending a single sample statistic is exactly right, you give a range of plausible values for the parameter, together with a confidence level that says how the method behaves over many samples. A 95% confidence interval for a population mean has the form estimate ± margin of error, where the margin of error is a critical value times the standard error. The interval is built from one sample, but its meaning comes from the procedure.
The confidence level describes the method, not the interval in front of you. To say you are 95% confident means that if you took many random samples and built an interval from each one, about 95% of those intervals would capture the true parameter value. It does not mean there is a 95% probability that this particular interval contains the truth — the parameter is fixed, and this interval either contains it or does not. Getting this interpretation right is one of the most tested ideas in the course, and free-response answers that say 'there is a 95% chance the mean is in this interval' are marked wrong.
The details depend on what you are estimating. For a population proportion, the interval is p̂ ± z* × √(p̂(1 − p̂) / n), using a z critical value, and it requires the Random, 10%, and Large Counts conditions. For a population mean with the population standard deviation unknown — the usual case — you use a t interval, x̄ ± t* × (s / √n), where t* comes from the t distribution with n − 1 degrees of freedom. The t distribution is wider than the Normal for small samples, reflecting the extra uncertainty of estimating σ from the sample, and it approaches the Normal as the sample grows.
The margin of error has a clear structure: it grows when you demand more confidence, because a higher critical value is needed, and it shrinks when the sample grows, because the standard error falls. To design a study, you can solve for the sample size that gives a desired margin of error: for a proportion, n = (z* / m)² × p*(1 − p*), using a planning value p* of 0.5 if you have no better guess, since that gives the largest, safest sample size. Always round the computed sample size up, because rounding down would give a margin of error slightly larger than the one you asked for.
A worked example
Worked example: in a worked-example random sample of 400 voters, 220 say they support a proposal, so p̂ = 0.55. The standard error is √(0.55 × 0.45 / 400) = √0.000619, about 0.0249. For 95% confidence the critical value is z* = 1.96, so the margin of error is 1.96 × 0.0249, about 0.049, and the interval is 0.55 ± 0.049, or (0.501, 0.599). You are 95% confident that the true proportion of supporters in the population lies between about 50% and 60%. The Large Counts condition is met, since 400 × 0.55 = 220 and 400 × 0.45 = 180 are both well above 10.
In an exam answer, show the four steps: state the parameter and the procedure, check the conditions, compute the interval with the formula and the numbers, and interpret it in context with the correct confidence language. If a condition fails, say so and do not compute the interval, or say that the result is not trustworthy. And when two intervals are compared, remember that overlapping intervals do not prove two parameters are equal — that question needs a proper test, which is the subject of the next lesson.
Watch & Learn
One video to watch for this unit, from a trusted educator.
- Confidence intervals and margin of error | AP Statistics | Khan Academy — Khan Academy
Sal Khan explains how pollsters estimate a population proportion and how the margin of error is built from the standard error — a clear companion to this lesson.
Key Terms
- Confidence interval
- An interval of plausible values for a parameter, built as estimate ± margin of error.
- Confidence level
- The proportion of intervals from repeated sampling that would capture the true parameter.
- Margin of error
- The critical value times the standard error; half the width of the interval.
- t distribution
- A family of distributions used for means when σ is unknown; wider than the Normal for small samples.
- Critical value
- The z* or t* multiplier that sets the confidence level of an interval.
Discussion Questions
- Why is 'a 95% chance this interval contains the mean' the wrong interpretation?
- What happens to the margin of error if you quadruple the sample size?
- When do you use a t interval instead of a z interval for a mean?
Practice Questions
- A 95% confidence interval for a mean is (12, 20). What is the point estimate and the margin of error?
- What does a 90% confidence level mean?
- A sample of 64 has mean 50 and standard deviation 8. Give the standard error of the mean.
- Why is the t critical value larger than the z critical value for the same confidence level?
- To get a smaller margin of error for a proportion, should you increase or decrease the sample size?
Show answers
- Point estimate 16; margin of error 4.
- About 90% of intervals built this way from repeated random samples would capture the true parameter.
- 8 / √64 = 1.
- Because σ is estimated from the sample, adding uncertainty, so the t distribution is wider to account for it.
- Increase it; the margin of error shrinks as the sample grows.