What a 95% confidence interval means

The question
Choose an interpretation, then put it beside repeated measurements.
- 1 SeeChoose an interpretation; inspect repeated intervals.
- 2 TryBuild intervals and compare widths.
- 3 ProveTurn a probability into a coverage statement.
- 4 ApplyCalculate endpoints and plan a sample.
Before you start · 3 quick checks on means, standard errors, and normal areas
Two ideas before you start
2 ideasA mean summarizes the measurements
Measurements and a dashed line at their average.
Switch samples to see their averages. The average uses every measurement, even those far from the others.
Exact definition
For observations \(x_1,\ldots,x_n\), the sample mean is \(\bar x=n^{-1}\sum_i x_i\). Before collecting data, write the random mean as \(\bar X\). The population mean is denoted by \(\mu\). These symbols distinguish the quantity being estimated from the statistic used to estimate it.
Standard error describes a statistic’s spread
Normal densities for a sample mean under the selected measurement variability.
Change the variability of individual measurements. The curve describes the average from a fresh sample, with the population held unchanged.
Exact definition
The standard error, abbreviated SE, is the standard deviation of a statistic’s sampling distribution. For independent observations from one population with standard deviation \(\sigma\), the sample mean has \(\operatorname{SE}(\bar X)=\sigma/\sqrt n\). The lesson on sampling distributions derives this relation. SE is neither the spread within one observed sample nor its actual error \(\bar x-\mu\).
The model used in this lesson
Each observation is an independent draw from the same normal distribution \(N(\mu,\sigma^2)\). The mean \(\mu\) is unknown to the analyst. The population standard deviation \(\sigma\gt0\) is known. The sample size, confidence level, and interval rule are fixed before observing any data. The simulations use a hidden teaching value for the mean and disclose it after your choice.
Normality makes the distribution of the sample mean exactly normal, even for small samples. Its mean is \(\mu\) and its variance is \(\sigma^2/n\). The normal distribution lesson explains standardization and the cumulative distribution function \(\Phi\). This page uses those facts to build an interval, rather than deriving the normal curve again.
What does this interval say?
- Choose whether the statement below follows from the frequentist model.
- After checking, inspect the stacked intervals and draw another batch.
- Start over hides the results and clears your checked choice.
What the percentage belongs to
Before sampling, the endpoints are random because they depend on the sample. The coverage statement assigns probability to the event that this random interval contains the fixed mean. After observing the sample, the computed endpoints are fixed too. This particular interval either contains the mean or misses it; the analyst usually does not know which.
The confidence level describes the procedure under repeated sampling. It does not assign a posterior probability to the mean inside these observed endpoints. A posterior statement requires an additional probability model for the parameter and conditioning on the observations. That is a different calculation, even when the two methods happen to produce the same endpoints.
Now construct the interval
The multiplier comes from a central area under the standard normal curve. Multiply it by the SE to get a margin of error, then subtract and add that margin to the observed mean. The margin has the same units as the measurements. An interval for the mean is not a range intended to contain individual future measurements.
Choose a confidence level
- Predict the effect of changing the confidence level before opening the builder.
- Then choose a level and a sample size to meet each goal.
The builder holds the observed mean and the known population SD fixed so you can isolate the effect of the design choices. It is a comparison of formulas, not a claim that adding real observations would leave the observed mean unchanged. All intervals here use independent normal observations and a sample size chosen before sampling.
At a fixed confidence level and known population SD, increasing the number of independent observations reduces the margin in proportion to the reciprocal square root of sample size. Extra digits in the sample mean do not reduce it. Repeating the computation on the same data does not reduce it either.
What if the assumptions do not fit?
If the population SD is unknown, inserting a sample SD into the normal formula does not retain exact coverage. For independent normal observations, a Student t interval accounts for that extra uncertainty with a different multiplier. Its detailed construction is beyond this lesson; none of the numerical tasks here estimates the population SD.
For independent nonnormal observations, a normal interval may be an approximation when the standardized mean is sufficiently close to normal. There is no universal sample size that makes this reliable for every population. Strong skewness and rare extreme values can matter. Dependence changes the SE; selection bias can move the statistic’s center. A narrower interval from the wrong model can be misleading.
The bootstrap lesson estimates a sampling distribution by resampling observed data. Its percentile intervals have a nominal confidence level, but exact coverage does not follow from choosing two empirical quantiles. The resampling method, statistic, and population determine how well that target is met.
Turn the normal event around
Let \(n\ge1\) be an integer fixed before sampling. Let \(X_1,\ldots,X_n\) be independent \(N(\mu,\sigma^2)\) observations, for a fixed real \(\mu\) and known \(\sigma\gt0\). Write \(s_0=\sigma/\sqrt n\), \(Z=(\bar X-\mu)/s_0\), and \(q=\Phi^{-1}(0.975)\). Thus \(Z\) is standard normal. Put \(h=qs_0\). Then
\[P_\mu\{\bar X-h\le\mu\le\bar X+h\}=0.95.\]The subscript on \(P_\mu\) means that probability is evaluated at the fixed population mean. It holds for every real mean, including zero. The numerical multiplier is evaluated by software; the theorem uses the exact quantile.
Build the argument by choosing the next true equation. Start with the standardized statistic, then return to the original measurement units. The same event can be described by how far the mean estimate is from the truth or by whether its interval reaches the truth.
Rearranging the event does not turn the parameter into a random variable. It moves the unknown mean between two random bounds. Only after data arrive do those bounds become observed numbers. The coverage calculation precedes that substitution.
The probability is the same for every mean because standardization removes the mean from the distribution of the pivot \(Z\), a function of the data and \(\mu\) whose distribution is the same for every \(\mu\). This uniformity is stronger than checking one chosen teaching mean in a simulation. The simulation illustrates the theorem; it is not its proof.
Calculate, plan, and interpret
Use the known-SD normal model stated in each task. Enter a decimal without units. Each problem gives a tolerance, hints, and a worked solution. For a required integer sample size, round upward only after evaluating the squared expression.
Further reading
- G. Casella and R. L. Berger, Statistical Inference, chapter 9, “Interval Estimation.”