Confidence Intervals for a Single Population Mean
Confidence intervals for population means
A confidence interval gives you a range of values that likely contains the true population mean. Since you almost never know the actual population mean, you use sample data to estimate it.
The formula for a confidence interval is:
Here's what each piece means:
- is the sample mean, your best single estimate (called the point estimate)
- is the critical value from the standard normal distribution, determined by your confidence level
- is the known population standard deviation
- is the sample size
The critical value changes depending on how confident you want to be. Common values:
- 90% confidence:
- 95% confidence:
- 99% confidence:
The portion is called the margin of error (E). It tells you how far above and below the sample mean your interval extends. Notice that as gets larger, grows, which shrinks the margin of error. Bigger samples give you narrower, more precise intervals.
Example: Suppose you sample 49 students and find a mean test score of , with a known population standard deviation of . For a 95% confidence interval:
So the interval is , or .

Interpretation of confidence intervals
Getting the interpretation right matters a lot on exams. A 95% confidence interval does not mean there's a 95% probability that the true mean falls in your specific interval. The true mean is a fixed number; it's either in the interval or it isn't.
The correct interpretation: if you repeated the sampling process many times and built a 95% confidence interval each time, about 95% of those intervals would contain the true population mean.
In context, you'd write something like: "We are 95% confident that the true average test score of the population lies between 80.04 and 83.96."
This approach relies on the sampling distribution of the sample mean being approximately normal. That's justified when:
- The population itself is normally distributed, or
- The sample size is large enough for the Central Limit Theorem to apply (generally )

Sample size for margin of error
Sometimes you need to figure out how many observations to collect before gathering data. If you want a specific margin of error , rearrange the margin of error formula to solve for :
Steps to find the required sample size:
- Choose your confidence level and find the corresponding
- Identify the known population standard deviation
- Decide on your desired margin of error
- Plug into the formula and solve
- Always round up to the next whole number, since you can't sample a fraction of an observation
Example: You want a 95% confidence interval for a population mean with and a margin of error no larger than 2.
Round up: you need .
Notice the tradeoffs: a smaller margin of error or a higher confidence level both require a larger sample size.
Statistical inference and hypothesis testing
Confidence intervals and hypothesis tests are two sides of the same coin. Both use sample data to draw conclusions about population parameters.
A confidence interval estimates where the parameter is. A hypothesis test asks whether the parameter equals a specific value. For example, if a 95% confidence interval for a population mean does not contain the value , you would reject at the significance level. The two methods will always agree when applied to the same data and significance level.
Note that this section uses the normal (z) distribution because the population standard deviation is known. When is unknown and you estimate it with the sample standard deviation , you'll use the t-distribution instead, where degrees of freedom () affect the shape of the distribution and the critical values.