Confidence intervals & the central limit theorem
A sample mean is a single best guess at the population mean, but it will almost never be exactly right. A confidence interval gives a range of plausible values instead. The central limit theorem explains why this works even when the population is not normal.
1What you need to know
Tick these off as you go. By the end of the page you should be able to do all of them without notes.
- State the central limit theorem and use it for samples with AHL 4.15
- Find probabilities about a sample meanAHL 4.15
- Find a confidence interval for a mean using the normal distribution when is knownAHL 4.16
- Find a confidence interval for a mean using the t-distribution when is unknownAHL 4.16
- Interpret a confidence interval in context, and use it to judge a claimAHL 4.16
- Explain how the width depends on the confidence level and the sample sizeAHL 4.16
2Notes & worked examples
Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.
Take many samples and build a 95% confidence interval from each one. About 95% of those intervals will contain the true mean and about 5% will miss it. For one interval you cannot know which kind it is, but the method is right 95% of the time. That is what "95% confident" means.
2.1 The central limit theorem
For a random sample of size from any distribution with mean and variance , the sample mean is approximately normal for large :
In exams, is large enough. If the population is itself normal, is exactly normal for any .
2.2 Confidence intervals when σ is known
For 95%, ; for 90%, ; for 99%, . The value depends on the degrees of freedom, . In the exam the GDC does all of this.
2.3 Confidence intervals when σ is unknown
If the population standard deviation is not known, estimate it with and use the t-distribution with degrees of freedom, whatever the sample size. The value is larger than , so the interval is wider: we are less sure because is estimated too.
2.4 Interpreting and planning
Say what the interval means in context: "we are 95% confident that the mean mass of all bars lies between 48.3 g and 50.4 g". If a claimed value lies outside the interval, the data give evidence against it. The width is : to halve the width you need four times as large a sample.
On the TI-Nspire, menu → Statistics → Confidence Intervals. Use z Interval when is known and t Interval when it is not. Choose Data if you have a list, or Stats to type in , the standard deviation and . Set the C Level (0.95 for 95%). The output gives the lower and upper bounds, and the margin of error.
3Explore it
Each line is a confidence interval from a new random sample of a population with true mean μ = 50 (dashed). Intervals that miss μ are red. Move a slider to draw new samples; about the stated percentage should contain μ in the long run.
4Common mistakes & exam tips
Common mistakes
- Using the normal distribution when is unknown. With , always use .
- Saying "there is a 95% probability that is in this interval". is fixed; it is the method that is right 95% of the time.
- Using (σx) instead of (sx) in a t-interval.
- Applying the CLT to a single observation. It is about the mean of a large sample.
- Forgetting the square root: the standard deviation of is .
Exam tips
- State which interval you used and why: "t-interval, since is unknown".
- Give interval bounds to 3 significant figures, but keep full accuracy in between.
- "Comment on the claim": say whether the claimed value is inside or outside the interval, and what that suggests.
- "Justify using the CLT": the sample size is large ().
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB Maths AI HL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.
The masses of loaves from a bakery are normally distributed with standard deviation 9 g. A random sample of 20 loaves has mean mass 412 g.
- (a)Find a 95% confidence interval for the mean mass of all loaves.[2]
- (b)The bakery claims that the mean mass is 415 g. Comment on this claim.[2]
- (c)Explain why the normal distribution, and not the t-distribution, is used here.[1]
| (a) | |
| A1 | |
| A1 | |
| (b) | |
| 415 lies inside the interval | R1 |
| so the claim is plausible | A1 |
| Award R1A0 for "the claim is true". | |
| (c) | |
| the population standard deviation is known | R1 |
The times, in minutes, for ten randomly chosen students to complete a task are 18.2, 19.5, 17.8, 20.1, 18.9, 19.4, 18.0, 19.0, 18.6 and 19.7. The times are assumed to be normally distributed.
- (a)Find unbiased estimates of the mean and the standard deviation of the times.[2]
- (b)Find a 90% confidence interval for the mean time.[2]
- (c)The task designer claims that the mean time is 19.5 minutes. Comment on this claim.[2]
| (a) | |
| A1 | |
| A1 | |
| (b) | |
| A2 | |
| Award A1 for one correct bound. Award A0 for a z-interval. | |
| (c) | |
| 19.5 is outside (above) the interval | R1 |
| so there is evidence that the mean time is less than 19.5 minutes | A1 |
The time customers spend waiting on a phone line has mean 6.5 minutes and standard deviation 4 minutes. The distribution of waiting times is strongly skewed.
- (a)A random sample of 40 waiting times is taken. Find the probability that the sample mean is more than 7.5 minutes.[3]
- (b)Justify the method you used in part (a).[1]
- (c)After changes to the system, a new random sample of 40 calls has mean 6.9 minutes and standard deviation minutes. Find a 99% confidence interval for the new mean waiting time.[2]
- (d)Using , find the smallest sample size for which a 95% confidence interval for the mean has width at most 2 minutes.[3]
| (a) | |
| (M1)(A1) | |
| A1 | |
| (b) | |
| , so the central limit theorem applies | R1 |
| (c) | |
| A2 | |
| (d) | |
| (M1) | |
| (A1) | |
| A1 | |
7Check yourself
Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.
8Past-paper practice
Once you are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2025 · TZ2 · Paper 1 | Q6 | Coral reef temperatures: unbiased variance and a 95% interval | ★☆☆ |
| May 2023 · TZ2 · Paper 1 | Q15 | Coffee packets: unbiased estimates and a confidence interval | ★★☆ |
| May 2021 · TZ2 · Paper 1 | Q10 | Chocolates per packet: interval from summary statistics | ★★☆ |
| May 2025 · TZ1 · Paper 3 | Q2 | Weights of eggs: intervals and tests in context | ★★★ |
