Skip to content
Part IA Easter Term

Confidence Intervals

Definition

A 100(1α)%100(1-\alpha)\% confidence interval for parameter θ\theta is a random interval (L,U)(L, U) such that:

P(L<θ<U)=1αP(L < \theta < U) = 1 - \alpha

Interpretation

If we repeated the sampling procedure many times, about 100(1α)%100(1-\alpha)\% of the computed intervals would contain the true parameter.

Not: There is a (1α)(1-\alpha) probability that θ\theta lies in this interval. (θ\theta is fixed, the interval is random.)

CI for Mean (Known Variance)

X1,,XnX_1, \ldots, X_n from population with known σ2\sigma^2:

Xˉ±zα/2σn\bar{X} \pm z_{\alpha/2} \frac{\sigma}{\sqrt{n}}

where zα/2=Φ1(1α/2)z_{\alpha/2} = \Phi^{-1}(1 - \alpha/2).

Derivation: By CLT, Xˉμσ/nN(0,1)\frac{\bar{X} - \mu}{\sigma/\sqrt{n}} \approx N(0,1).

P(zα/2<Xˉμσ/n<zα/2)1αP\left(-z_{\alpha/2} < \frac{\bar{X} - \mu}{\sigma/\sqrt{n}} < z_{\alpha/2}\right) \approx 1 - \alpha

CI for Mean (Unknown Variance)

Use tt-distribution with n1n-1 degrees of freedom:

Xˉ±tn1,α/2Sn\bar{X} \pm t_{n-1, \alpha/2} \frac{S}{\sqrt{n}}

For large nn, tn1zt_{n-1} \approx z.

Common Confidence Levels

Confidence Levelα\alphazα/2z_{\alpha/2}
90%0.101.645
95%0.051.96
99%0.012.576

Example: Heights

n=25n = 25 heights with Xˉ=170\bar{X} = 170 cm, S=10S = 10 cm.

95% CI: 170±1.96×1025=170±3.92170 \pm 1.96 \times \frac{10}{\sqrt{25}} = 170 \pm 3.92

95% CI: (166.08,173.92)(166.08, 173.92) cm.

Interpretation

We are 95% confident that the true mean height lies between 166.08 cm and 173.92 cm.

“Confident” refers to the procedure, not the probability of this specific interval.

Summary

ParameterCI Formula
Mean (σ\sigma known)Xˉ±zα/2σ/n\bar{X} \pm z_{\alpha/2}\sigma/\sqrt{n}
Mean (σ\sigma unknown)Xˉ±tn1,α/2S/n\bar{X} \pm t_{n-1, \alpha/2}S/\sqrt{n}