01 / 20

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.

College Statistics

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.

Point Estimate
A single "best guess" for the parameter: the sample mean \( \bar{x} \).
Interval Estimate
A range \( (\bar{x} - E,\; \bar{x} + E) \) that accounts for sampling variability.

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.

0 Normal (z) t (df = 3) Density

Key Vocabulary

\( \bar{x} \)
Sample mean: the center of your interval.
\( s \)
Sample standard deviation: measures spread in your data.
\( n \)
Sample size: how many observations you collected.
\( t^* \)
Critical value from the t-table for your confidence level and \( df = n - 1 \).
Margin of Error
\( E = t^* \cdot \dfrac{s}{\sqrt{n}} \): the "half-width" of the interval.
Confidence Level
Typically 90%, 95%, or 99%: the long-run capture rate.

The t-Interval Formula

\( \bar{x} \)
Center of the interval: your best single estimate of \( \mu \).
\( t^* \)
Critical value controlling the confidence level, with \( df = n - 1 \).
\( \frac{s}{\sqrt{n}} \)
Standard error: estimates how much \( \bar{x} \) varies from sample to sample.

Visualizing the Interval

\( \bar{x} \)
Lower Upper E E
\( \mu \) (unknown)

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

1
Random: The data come from a random sample or randomized experiment.
2
Independence (10% Rule): When sampling without replacement, \( n \leq \frac{1}{10}N \), where \( N \) is the population size.
3
Normal/Large Sample: The population is approximately normal, or \( n \geq 30 \) (Central Limit Theorem), or for \( 15 < n < 30 \) the data show no strong skewness or outliers.

How to Construct the Interval

1
State the parameter: "We want to estimate \( \mu \), the true mean of..."
2
Check conditions: Random, Independence (10% rule), Normal/Large Sample.
3
Calculate: Find \( \bar{x} \), \( s \), \( n \), then \( df = n - 1 \) and look up \( t^* \).
4
Compute the interval: \( \bar{x} \pm t^* \cdot \dfrac{s}{\sqrt{n}} \).
5
Interpret in context: "We are C% confident that the true mean ... is between ... and ..."

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.

1
Parameter: \( \mu \) = true mean commute time of all 500 students.
2
Conditions: Random (stated). Independence: \( 36 \leq 50 \) ✓. Normal: \( n = 36 \geq 30 \) ✓ (CLT).
3
Calculate: \( df = 35 \), \( t^* = 1.690 \), \( SE = 6.1 / \sqrt{36} \approx 1.017 \), \( E = 1.690 \times 1.017 \approx 1.718 \).
4
Interval: \( 22.4 \pm 1.718 = \) (20.682, 24.118).
5
Interpret: We are 90% confident that the true mean commute time is between 20.68 and 24.12 minutes.

What Does "95% Confident" Mean?

\( \mu \)
Misses \( \mu \) Captures \( \mu \)

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

✕ Wrong Interpretation
Saying "there is a 95% probability that \( \mu \) is in this interval." The parameter is fixed: the interval either contains it or does not.
✕ Using z Instead of t
When \( \sigma \) is unknown (almost always), you must use \( t^* \). Using \( z^* \) underestimates the margin of error.
✕ Forgetting Conditions
Skipping the Random, Independence, or Normal/Large Sample check. On the AP exam, this loses "conditions" credit.
✕ Wrong df
Using \( df = n \) instead of \( df = n - 1 \). This gives an incorrect critical value.
✕ Dividing by \( n \)
Computing \( s / n \) instead of \( s / \sqrt{n} \). The standard error requires the square root of \( n \).

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?