☰ IB Maths AI HL · course menu
Topics
IB Maths AI HL · free cheatsheet
Estimation & Confidence Intervals cheatsheet (IB Maths AI HL)
Everything you need for estimation in IB Mathematics Applications & Interpretation HL — point estimates and unbiased estimators, the standard error, confidence intervals for a mean built on the GDC, the margin of error and interval width, and how to choose the sample size and read a confidence interval correctly. Written by an IB-certified teacher.
What this cheatsheet covers
Estimation is where the Statistics & Probability strand of IB Mathematics Applications & Interpretation HL turns a single sample into a statement about a whole population you can never measure in full — polling, quality control, medical trials all live here. It is applications mathematics at its purest: you collect data, read a point estimate straight off the GDC, then attach a margin of error to produce a confidence interval. A calculator is always allowed, so the interval itself is built by the TInterval / ZInterval routine — the marks live in choosing $t$ or $z$, entering the unbiased sample standard deviation, and interpreting the result in context, not in grinding the arithmetic.
This cheatsheet condenses AHL 4.14–4.15 onto one page — point estimates and unbiased estimators, the standard error $\sigma/\sqrt{n}$, the confidence interval for a mean, the margin of error and interval width, how confidence level and sample size trade off, choosing $n$ for a target accuracy, and the one interpretation examiners actually reward — and flags the traps that quietly cost marks ($s_x$ versus $\sigma_x$, dividing by $\sqrt{n}$ not $n$, $t$ versus $z$, rounding $n$ up).
Point estimates & unbiased estimators
AHL 4.14Estimate of the mean:$\hat{\mu}=\bar{x}=\dfrac{\sum x}{n}$ — the sample mean estimates the population mean $\mu$.Estimate of the variance:$\widehat{\sigma^{2}}=s_{n-1}^{2}=\dfrac{\sum (x-\bar{x})^{2}}{n-1}$ — divide by $n-1$, not $n$.Unbiased means:$E(\bar{x})=\mu$ and $E(s_{n-1}^{2})=\sigma^{2}$ — right on average, not too big or too small.
A sample can only estimate a population's parameters. A point estimate is a single best-guess value; the good ones are unbiased — correct on average over all possible samples.
The standard error of the mean
AHL 4.14Sampling distribution:$\bar{X}\sim N\!\left(\mu,\dfrac{\sigma^{2}}{n}\right)$ — exact for a normal population, approximate for any population when $n$ is large.Standard error:$\text{SE}=\dfrac{\sigma}{\sqrt{n}}$ (known $\sigma$) or $\dfrac{s}{\sqrt{n}}$ (unknown $\sigma$) — the standard deviation of $\bar{x}$.
Take another sample and $\bar{x}$ shifts. The standard error measures how much the sample mean itself varies from sample to sample — the smaller it is, the sharper your estimate.
Confidence interval for a mean
AHL 4.15The interval:$\bar{x}\pm E$ — always centred on the sample mean.$\sigma$ known ($z$-interval):$\bar{x}\pm z^{*}\dfrac{\sigma}{\sqrt{n}}$.$\sigma$ unknown ($t$-interval):$\bar{x}\pm t^{*}\dfrac{s}{\sqrt{n}}$, with $t^{*}$ read at $\nu=n-1$ degrees of freedom.
A confidence interval wraps the point estimate $\bar{x}$ in a margin of error, giving a range expected to capture $\mu$ a stated proportion of the time.
Building the interval on the GDC
AHL 4.15Data mode:Enter the raw list → choose TInterval (or ZInterval) → set the C-level, e.g. $0.95$.Stats mode:Type in $\bar{x}$, $s_x$ (or $\sigma$) and $n$ → same routine, same C-level.Output:The interval $(a,\,b)$, ready to quote, together with $\bar{x}$ and $n$.
AI is GDC-first: once you know which interval, the calculator returns the limits directly. There are two input modes.
Margin of error & the interval limits
AHL 4.15Margin of error:$E=t^{*}\dfrac{s}{\sqrt{n}}$ (or $z^{*}\dfrac{\sigma}{\sqrt{n}}$) — critical value $\times$ standard error.Limits:lower $=\bar{x}-E$, upper $=\bar{x}+E$.Critical values $z^{*}$:$1.645,\;1.96,\;2.576$ for $90\%,\;95\%,\;99\%$ confidence.
The margin of error $E$ is the half-width of the interval — the "$\pm$" part — and it fixes both endpoints.
Width of the interval & reading a reported CI
AHL 4.15Width:$w=2E=2t^{*}\dfrac{s}{\sqrt{n}}$ — upper limit minus lower limit.Mean from $(a,\,b)$:$\bar{x}=\dfrac{a+b}{2}$ — the midpoint of the interval.Margin from $(a,\,b)$:$E=\dfrac{b-a}{2}$ — half the gap between the ends.
The width is the full span of the interval — twice the margin of error — and it lets you reverse-engineer a quoted interval.
Confidence level vs sample size
AHL 4.15Extra margin, 95% → 99%:$(z^{*}_{99}-z^{*}_{95})\dfrac{\sigma}{\sqrt{n}}=(2.576-1.96)\dfrac{\sigma}{\sqrt{n}}$ — same sample, only the critical value changes.
Two levers set the width. Knowing which one moves it — and by how much — is a favourite exam theme.
| Change | Effect on the interval | Why |
|---|---|---|
| Raise the confidence level (95% → 99%) | wider | larger critical value $z^{*}$/$t^{*}$; the SE is unchanged |
| Increase the sample size $n$ | narrower | standard error $s/\sqrt{n}$ falls |
| Halve the margin of error | need $\approx 4\times$ the data | width $\propto 1/\sqrt{n}$ |
| More variable data (larger $s$) | wider | standard error rises |
Choosing $n$ for a required width
AHL 4.15Solve for $n$:from $E=z^{*}\dfrac{\sigma}{\sqrt{n}}$, $\;n=\left(\dfrac{z^{*}\sigma}{E}\right)^{2}$.Target a width $w$:put $E=\dfrac{w}{2}$, so $n=\left(\dfrac{2z^{*}\sigma}{w}\right)^{2}$.
Turn the margin-of-error formula around to plan a sample before collecting the data.
Interpreting a confidence interval
AHL 4.15Correct wording:"We are $95\%$ confident that the interval contains the population mean $\mu$."What it means:over many repeated samples, about $95\%$ of the intervals built this way capture $\mu$.
One sentence earns the interpretation mark — and one tempting sentence loses it.
Exam attack plan
All sections
| Question cue | What to do | Watch for |
|---|---|---|
| "Find a point estimate of the mean / variance" | Read $\bar{x}$ and $s_x^{2}$ from 1-Var Stats | The variance uses the $n-1$ value $s_x$, not $\sigma_x$ |
| "Construct a 95% confidence interval" | GDC TInterval ($\sigma$ unknown) or ZInterval ($\sigma$ given); set the C-level | Enter $s_x$ in the s.d. field; choose $t$ vs $z$ correctly |
| "State the margin of error" | $E=\dfrac{b-a}{2}$ from the interval, or $E=t^{*}\dfrac{s}{\sqrt{n}}$ | It is the half-width; keep the $\sqrt{n}$ in the SE |
| "Find the width of the interval" | $w=b-a=2E$ | Full span — do not forget the factor of $2$ |
| "The CI is $(a,b)$; find the mean" | $\bar{x}=\dfrac{a+b}{2}$ | Mean is the midpoint, not a limit |
| "Effect of a higher confidence level" | Larger $z^{*}/t^{*}$ → wider; centre unchanged | Only the critical value changes for a fixed sample |
| "Sample size for a margin below $E$" | $n=\left(\dfrac{z^{*}\sigma}{E}\right)^{2}$, then round up | Round up; use $z^{*}$; need an estimate of $\sigma$ |
| "Interpret the interval" | "95% confident the interval contains $\mu$" | Not a probability statement about $\mu$ |
Worked Example — A Confidence Interval for a Mean
Question (AI HL Paper 2 style — 9 marks)
A café measures the caffeine content, in mg, of a random sample of 8 espressos from its machine:
118, 122, 125, 127, 130, 131, 134, 137.
The caffeine content is assumed to be normally distributed.
(a) Find (i) the sample mean $\bar{x}$ and (ii) an unbiased estimate of the population standard deviation.
(b) Construct a $95\%$ confidence interval for the mean caffeine content of all espressos from this machine.
(c) State the margin of error and interpret your interval in context.
(d) The café wants to estimate the mean to within $3$ mg with $95\%$ confidence. Using the sample standard deviation as an estimate of $\sigma$, find the least number of espressos it must test.
Solution
- (a) Enter the 8 values into 1-Var Stats. (M1) The mean is $\bar{x}=128$ mg (A1). The unbiased estimate of the population standard deviation is the sample s.d. $s=s_{n-1}=\sqrt{\dfrac{\sum (x-\bar{x})^{2}}{n-1}}=\sqrt{\dfrac{276}{7}}=6.28$ mg (3 s.f.) (A1). (Use $s_x$, not $\sigma_x=5.87$.)
- (b) $\sigma$ is unknown, so use a $t$-interval with $\nu=n-1=7$. TInterval with $\bar{x}=128$, $s_x=6.28$, $n=8$, C-level $0.95$ (M1) gives $122.75<\mu<133.25$, i.e. $(122.75,\;133.25)$ mg. (A1)
- (c) Margin of error $E=\dfrac{133.25-122.75}{2}=5.25$ mg (A1). Interpretation: we are $95\%$ confident that the interval $(122.75,\,133.25)$ mg contains the true mean caffeine content $\mu$ of all espressos from the machine — a procedure like this captures $\mu$ about $95\%$ of the time. (A1)
- (d) Require $E\le 3$ with $z^{*}=1.96$ and $\sigma\approx s=6.28$: $n=\left(\dfrac{z^{*}\sigma}{E}\right)^{2}=\left(\dfrac{1.96\times 6.28}{3}\right)^{2}=(4.10)^{2}=16.8$ (M1). Round up: the café must test at least $n=17$ espressos. (A1)
Examiner's note: three marks are routinely dropped here — quoting $\sigma_x$ instead of $s_x$ for the estimate and the interval; using a $z$-interval when only the sample s.d. is known (it must be $t$); and rounding the sample size down. Keep the units (mg), and remember the interval is a statement about the mean $\mu$, not about individual espressos.
Common Student Questions
- Do I use a $z$-interval or a $t$-interval?
- Why divide by $n-1$ here, when Univariate Statistics told me to use $\sigma_x$?
- What does "$95\%$ confident" actually mean?
- How do I decide the sample size for a given accuracy?
- What changes the width of a confidence interval?
Do I use a $z$-interval or a $t$-interval?
Why divide by $n-1$ here, when Univariate Statistics told me to use $\sigma_x$?
What does "$95\%$ confident" actually mean?
How do I decide the sample size for a given accuracy?
What changes the width of a confidence interval?
Your next step




