Confidence interval for a mean
A confidence interval is your estimate plus-or-minus a margin for sampling luck: . “95% confident” means that if you resampled many times, 95% of the intervals you'd build would capture — not that this one has a 95% chance.
Estimate ± k × standard error
Same standard error as the test, (or for a large sample). Pick from the level: . A higher level needs a bigger , so the interval gets wider (more confident, but less precise).
CI = x̄ ± k·SE. Higher level → bigger k → wider interval. The exam payoff is the reading: does the interval contain the claimed value?
Worked example
Start simple: σ known, decide vs a threshold
Pond samples are normal with . Six 100 ml samples give counts 56, 102, 48, 74, 88, 67. (a) Find a 95% CI for the mean count. (b) If a mean above 80 calls for action, what do you advise?
- ; .
- , so the CI is .
- The upper end 82.1 is above 80, so the true mean could exceed 80.
The interval reaches past 80, so advise action — and that more samples be taken.
Worked example
Build up: 99% CI vs a target
Sweet packets claim 100 g, with . Ten packets give . Find a 99% CI; does the mechanism need adjusting?
- .
- CI — it dips below the stated 100 g.
The interval dips below 100 g, so the true mean could be under target — the mechanism may need adjustment.
Why not just sample huge? The margin only shrinks like 1/√n
The width is , so to halve the margin you must quadruple . Sixteen times the sample buys only a quarter of the margin — drag below and watch the curve tighten fast at first, then crawl.
n = 1·X̄ ~ N(50, 10²/n)·SE = σ/√n = 10.00
Worked example
σ unknown, large sample, then reverse to the level
60 strawberries: g. (a) Find a 90% CI for the mean mass. (b) A CI from this sample has width 3.65 g — what confidence level is that?
- ; , so .
- (a) , giving .
- (b) Width : .
- , so the level is .
| Level C% | k = Φ⁻¹((1 + C/100)/2) |
|---|---|
| 90% | 1.645 |
| 92% | 1.751 |
| 95% | 1.960 |
| 98% | 2.326 |
| 99% | 2.576 |
Examiner note
Working backwards from a given interval
For a symmetric CI : centre , half-width . Recover from the half-width, then the level is (e.g. ). The full width is , so keep the 2.
Common mistake