What is a confidence level?
From a single interval estimate to long-run coverage under repeated sampling
What can one interval tell us?
This lesson starts with a single interval estimate, then uses repeated sampling and coverage simulations to explore confidence level and the model assumptions needed to interpret it.
Continuing the previous lesson's example: a university has 20,000 students, and we want to estimate the mean height of all male students at the university.
Obtain an estimate from a sample
Randomly select 100 male students and obtain the sample mean:
To account for sampling uncertainty, we can construct an interval, for example:
These values are a conceptual teaching example; ±2.0 cm is illustrative, not a 95% margin of error calculated from the sample.
Think about this first
Must this interval contain the population mean?
The key issue: we have seen only one sample. With a different set of students, both the sample mean and the estimated interval may change.
What happens if we sample repeatedly?
Suppose the population mean remains fixed. Each time, independently select a random sample of 100 male students and calculate an interval using the same method for constructing 95% confidence intervals.
- Covers the population mean
- Misses the population mean
- True population value μ (vertical dashed line)
Observe how coverage changes
- Total samples drawn
- 0
- Intervals covering the mean
- 0
- Intervals missing the mean (red)
- 0
- Simulated coverage rate
- —
Observe:
① Which intervals contain the vertical dashed line representing the population mean μ?
② Which intervals do not?
③ How many red lines are there? Does this match the number of intervals missing the mean?
④ As the number of samples increases, does the coverage proportion gradually approach 95%?
Model: independent observations from a normal population, with known population standard deviation and a two-sided z interval. To focus on coverage, the simulation uses a fixed sample size and known standard deviation; there is no need to derive the formula in this section.
What exactly does a 95% confidence level mean?
We are not saying “this already calculated interval has a 95% probability of containing the population mean.” We are describing the method for constructing intervals.
The formal interpretation of confidence level
If, under the same conditions, we repeatedly draw samples and construct intervals, then in the long run about 95% of the intervals will cover the fixed population parameter.
The confidence level describes the long-run coverage of an interval estimation procedure.
Check with simulation results
- Intervals constructed
- 0
- Simulated coverage rate
- —
Class discussion:
“This interval has a 95% probability of containing the population mean.”
This is imprecise. In the classical frequentist interpretation, once the interval is determined, the population parameter is also fixed, so coverage is already a fact; 95% refers to the interval construction method.
Is a confidence level subjective confidence?
At the study design stage, researchers can choose a confidence level such as 90%, 95%, or 99% in advance, based on precision requirements and practical needs. But this does not mean a researcher subjectively believes that a particular interval has a 95% chance of containing the true value. Given a statistical model and an interval construction method, the confidence level describes that method's long-run coverage. Usually, a higher confidence level gives a wider interval when other conditions remain the same.
In one sentence:
A 95% confidence level describes the long-run coverage of the estimation method used in repeated sampling, rather than a probability assigned to a particular interval already obtained.