Confidence Intervals for the Mean — z and t Intervals
Foundations of Statistics
Estimating Means with Precision
Confidence intervals provide a range of plausible values for the population mean, offering more information than point estimates alone. Choosing between z and t intervals depends on whether σ is known, a critical distinction in practice.
- Clinical Trials — Estimating treatment effect sizes with quantified uncertainty
- Business Planning — Forecasting average customer lifetime value with confidence bounds
- Policy Analysis — Measuring intervention effects with appropriate uncertainty
Confidence intervals turn point estimates into informed decisions.
Core Concepts
A confidence interval gives a range of plausible values for the population mean , based on sample data. The choice between z-interval and t-interval depends on whether is known.
DfConfidence Interval
A confidence interval for is an interval computed from sample data such that in repeated sampling. Equivalently, if we were to construct such intervals from infinitely many samples, of them would contain the true .
Correct Interpretation
A 95% CI does not mean "there is a 95% probability that is in this interval." In the frequentist framework, is a fixed (but unknown) constant — it is either in the interval or it is not. The 95% refers to the long-run coverage rate of the procedure, not to any single interval.
z-Interval ( Known)
z-Interval (σ known)
Here,
- =Sample mean
- =Critical value from standard normal
- =Known population standard deviation
- =Sample size
ThDerivation of the z-Interval
Since , we have . The central region satisfies:
Substituting and rearranging:
t-Interval ( Unknown)
t-Interval (σ unknown)
Here,
- =Sample mean
- =Critical value from t-distribution with n-1 df
- =Sample standard deviation
- =Sample size
ThDerivation of the t-Interval
When is unknown, we replace it with . The statistic (by Fisher's theorem). The central region:
Rearranging yields the interval . The t-interval is wider than the z-interval because for finite .
Factors Affecting Width
Interval Width
The width of a confidence interval is , where is the critical value. The width depends on:
- Confidence level: higher confidence larger wider interval
- Sample size: larger smaller narrower interval
- Variability: larger wider interval
Sample Size Formula
To achieve a margin of error at confidence level :
For example, to estimate within unit with 95% confidence when : , so .
Worked Example: z-Interval
A factory produces bolts with known mm. A sample of bolts has mm. Construct a 95% CI for .
Step 1. The critical value: .
Step 2. The standard error: .
Step 3. The margin of error: .
Step 4. The 95% CI: mm.
Interpretation: We are 95% confident that the true mean bolt length is between 12.14 and 12.46 mm.
Worked Example: t-Interval
A pharmacologist measures drug half-life in patients: hours, hours. Construct a 95% CI for .
Step 1. With degrees of freedom: .
Step 2. Standard error: .
Step 3. Margin of error: .
Step 4. The 95% CI: hours.
Comparison: If we had (incorrectly) used the z-interval: . The t-interval is wider, correctly reflecting the additional uncertainty from estimating with from only 9 observations.
Confidence Level and Coverage
Confidence Level Comparison
| Confidence Level | Relative Width | ||
|---|---|---|---|
| 90% | 1.645 | 1.812 | 1.00 |
| 95% | 1.960 | 2.228 | 1.22 |
| 99% | 2.576 | 3.169 | 1.75 |
Higher confidence requires wider intervals. The cost of being "more sure" is less precision.
Key Takeaways
Summary: Confidence Intervals for the Mean
- z-interval ( known):
- t-interval ( unknown):
- Higher confidence or smaller wider interval
- Larger narrower interval (smaller SE)
- Interpretation: "In repeated sampling, 95% of such intervals contain $\mu$"
- For large , t-critical z-critical, so the intervals are nearly identical