Salam Academy
Estimation, confidence intervals and tests · Subtopic 2 of 2

Confidence Intervals

A single estimate is almost certainly a little wrong. A confidence interval gives a range, xˉ±zσn\bar x\pm z\dfrac{\sigma}{\sqrt n}, built so that in, say, 95%95\% of samples the range would capture the true mean.

Cambridge 9709 Paper 6Edexcel YMA01 WST03Edexcel 9FM0 OptionAQA 7367 Paper 3≈ 40 minRevision 5 · updated 2026-10-27
Section 1 of 14

Learning objectives

  • Calculate a confidence interval for μ\mu: xˉ±zσn\bar x\pm z\dfrac\sigma{\sqrt n}.
  • Use the right zz for 90%90\%, 95%95\% and 99%99\% intervals.
  • Calculate an approximate confidence interval for a proportion.
  • Interpret an interval correctly and find the sample size for a required width.
Pause and think

A poll says a party has 40%40\% support "plus or minus 3%3\%". What do you think the ±3%\pm3\% is telling you?

Section 2 of 14

Core idea

Start hereA net, not a spear

Estimating the population mean by xˉ\bar x alone is like throwing a spear at an invisible fish. A confidence interval throws a net: a range that, by its construction, catches the true mean 95% of the time.

The big idea

95% confidence interval for μ\mu: xˉ±1.96σn\bar x\pm1.96\dfrac{\sigma}{\sqrt n}. For a proportion: p^±zp^(1−p^)n\hat p\pm z\sqrt{\dfrac{\hat p(1-\hat p)}n}.

1. Building the interval

Turning the statement round
  1. P(−1.96<Xˉ−μσ/n<1.96)=0.95P\left(-1.96<\frac{\bar X-\mu}{\sigma/\sqrt n}<1.96\right)=0.95
    Standard normal.
  2. P(Xˉ−1.96σn<μ<Xˉ+1.96σn)=0.95P\left(\bar X-1.96\tfrac\sigma{\sqrt n}<\mu<\bar X+1.96\tfrac\sigma{\sqrt n}\right)=0.95
    Rearrange each inequality for μ\mu.
The random interval captures μ\mu with probability 0.950.95.
12 samples, 12 intervals: one misses the true mean
4648505254562468101214valuesamplemissestrue μ = 50
Each line is xˉ±1.96\bar x\pm1.96. The 7th sample happened to give an unusually high mean, so its interval misses 5050.
Worked examplen=25n=25, xˉ=52.3\bar x=52.3, σ=10\sigma=10

95% CI for μ\mu.

Goal
Interval.
Strategy
Formula.
  1. 105=2\tfrac{10}{5}=2
    Standard error.
  2. 52.3±3.9252.3\pm3.92
    1.96×21.96\times2.
Answer(48.4, 56.2)(48.4,\ 56.2).
✓ CheckCentred on xˉ\bar x ✓.
Worked exampleSample size for a given width

Width at most 4 at 95%, σ=10\sigma=10. Least nn?

Goal
nn.
Strategy
Width =2×1.96σn=2\times1.96\frac\sigma{\sqrt n}.
  1. 39.2n≤4⇒n≥9.8\frac{39.2}{\sqrt n}\le4\Rightarrow\sqrt n\ge9.8
    Rearrange.
  2. n≥96.04n\ge96.04
    Square.
Answern=97n=97.
✓ CheckRound up to guarantee the width ✓.
Worked exampleProportion

72 of 200 prefer brand A. 95% CI for pp.

Goal
Interval.
Strategy
p^=0.36\hat p=0.36.
  1. 0.36×0.64200=0.0339\sqrt{\tfrac{0.36\times0.64}{200}}=0.0339
    Standard error.
  2. 0.36±0.06650.36\pm0.0665
    1.96×0.03391.96\times0.0339.
Answer(0.293, 0.427)(0.293,\ 0.427).
✓ CheckWithin [0,1][0,1] ✓.
Common misconceptionInterpretation "95% of such intervals contain μ\mu", not "μ\mu has a 95% chance of being in this particular interval" (μ\mu is fixed).
Pause and think

Wider interval: more or less confidence?

Summary

  • xˉ±zσ/n\bar x\pm z\sigma/\sqrt n.
  • Proportion version.
Key words
Confidence interval
Range likely to contain the parameter.
HistoryNeyman's intervals. The Polish statistician Jerzy Neyman introduced confidence intervals in 1937, carefully defining them by what happens over repeated sampling. He did much of this work in London at University College, alongside Egon Pearson, the son of Karl Pearson.
Fun fact19 out of 20. A 95%95\% confidence level means that, on average, 11 in every 2020 properly calculated intervals misses the true value. If a newspaper reports 2020 polls with their margins of error, you should expect about one of them to be "wrong" through pure chance.
Keep reading for free

Create a free account to read the rest of this lesson: key formulae, worked examples, explore the graph, common mistakes, exam tip, guided practice and more. Your answers are checked and your progress is saved.