Confidence Interval
for a Mean
Learn how to construct and interpret a t-interval to estimate a population mean \( \mu \) when the population standard deviation is unknown.
What Is a Confidence Interval?
A confidence interval gives a range of plausible values for an unknown population parameter. Instead of a single point estimate, we report an interval that we believe, with a stated level of confidence, captures the true value.
Why Use the t-Distribution?
In practice we almost never know the population standard deviation \( \sigma \). We substitute the sample standard deviation \( s \), which introduces extra uncertainty. The t-distribution accounts for this by having heavier tails than the normal curve.
Key Vocabulary
The t-Interval Formula
Visualizing the Interval
The sample mean \( \bar{x} \) sits at the center. The margin of error \( E \) extends equally in both directions. If the true mean \( \mu \) falls inside, our interval "captures" it.
z-Interval vs t-Interval
| z-Interval | t-Interval | |
|---|---|---|
| When to use | \( \sigma \) is known | \( \sigma \) is unknown |
| Critical value | \( z^* \) (from Normal) | \( t^* \) (from t-dist) |
| Standard error | \( \frac{\sigma}{\sqrt{n}} \) | \( \frac{s}{\sqrt{n}} \) |
| Degrees of freedom | Not applicable | \( df = n - 1 \) |
| Interval width | Narrower (for same \( n \)) | Wider (heavier tails) |
Conditions for Inference
How to Construct the Interval
Example 1: Coffee Shop Wait Times
A random sample of \( n = 25 \) customers at a coffee shop has a mean wait time of \( \bar{x} = 4.2 \) minutes with \( s = 1.3 \) minutes. Construct a 95% confidence interval for the true mean wait time.
Example 2: Battery Lifetimes
A quality engineer tests \( n = 12 \) batteries and finds \( \bar{x} = 48.5 \) hours and \( s = 3.8 \) hours. The data appear roughly symmetric with no outliers. Find a 99% confidence interval for the mean battery life.
Example 3: Full AP-Style Write-Up
A teacher randomly selects 36 students and records their commute times. She finds \( \bar{x} = 22.4 \) min and \( s = 6.1 \) min. Construct a 90% CI for the mean commute time. There are 500 students total.
What Does "95% Confident" Mean?
If we repeated the sampling process many times, about 95% of the resulting intervals would capture the true mean \( \mu \). It does not mean there is a 95% probability that \( \mu \) lies in one particular interval.
What Affects Width?
| Change | Effect on Width | Why? |
|---|---|---|
| Increase \( n \) | Narrower | \( \sqrt{n} \) in denominator grows |
| Increase \( s \) | Wider | More variability in data |
| Increase confidence level | Wider | Larger \( t^* \) needed |
| Decrease confidence level | Narrower | Smaller \( t^* \) needed |
Common Mistakes
Question 1 of 5
When constructing a confidence interval for a population mean with an unknown population standard deviation, which distribution should you use?
Question 2 of 5
A sample of \( n = 20 \) yields \( \bar{x} = 50 \) and \( s = 8 \). For a 95% CI, \( t^* = 2.093 \). What is the margin of error?
Question 3 of 5
Which of the following is a correct interpretation of a 95% confidence interval \( (12.3, 18.7) \) for the mean?
Question 4 of 5
All else being equal, what happens to the width of a confidence interval when the sample size is quadrupled?
Question 5 of 5
A researcher collects a random sample of \( n = 10 \) reaction times from a population she believes is normal. She obtains \( \bar{x} = 0.83 \) sec and \( s = 0.12 \) sec. For a 90% CI, \( t^* = 1.833 \). What is the confidence interval?