Skip to content
IB Diploma ProgrammeSL & HL

Confidence intervals

Mathematics: Applications and Interpretation SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Confidence intervals notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Confidence intervals notes as text: skim, search, and jump between subtopics.

~13 min read

1. What a confidence interval says

A sample mean barx is one estimate of the population mean μ. A confidence interval is a range of values built around barx that is likely to contain μ. The population is assumed to be normal.

A 95% interval is made by a method that captures μ in about 95% of all the samples you could take. Any one interval either contains μ or it does not. The sample mean is always the midpoint of the interval, and the interval is for μ, never for barx.

An interval must be interpreted in context. A value of μ outside the interval is not supported by the data. A value inside it is consistent with the data, which is not the same as proved.

interval = barx ± margin

barx = (lower end + upper end)/2

Worked example 13 marks

A 95% confidence interval for the mean time, in minutes, that a bus takes to complete its route is (41.2, 46.8). The bus company claims that the mean time is 45 minutes.

(a) Write down the sample mean.

(b) Comment on the company's claim.

  1. 1

    (a) A1: sample mean is the midpoint, (41.2 + 46.8)/2 = 44 minutes [1]

  2. 2

    (b) R1: 45 lies inside the interval [1]

  3. 3

    A1: the data are consistent with the claim, but they do not prove it [1]

2. Population standard deviation known: normal

When the population standard deviation σ is known, use the normal distribution. The sample mean of n values has standard deviation σ/(√n).

For a c% interval, find the value z that leaves (100 - c)/2% in each tail of the standard normal distribution. The margin is z × σ/(√n). On a graphic display calculator, choose the Z-interval and enter σ, barx, n and the confidence level.

Common values are z = 1.645 for 90%, 1.960 for 95% and 2.576 for 99%. Take σ divided by √n, not by n.

barx ± z σ/(√n)

Worked example 14 marks

The masses of bags of flour are normally distributed with standard deviation 8 g. A random sample of 25 bags has mean mass 250 g.

(a) Calculate a 95% confidence interval for the mean mass of a bag, giving the end points to three significant figures.

(b) The manufacturer states that the mean mass is 255 g. Comment on this statement.

  1. 1

    (a) M1: σ is known, so use the normal distribution: z = 1.960 and σ/(√n) = 8/(√25) = 1.6 [1]

  2. 2

    A1: lower end 250 - 1.960 × 1.6 = 247 g [1]

  3. 3

    A1: upper end 250 + 1.960 × 1.6 = 253 g [1]

  4. 4

    (b) R1: 255 lies outside (247, 253), so the data do not support a mean of 255 g [1]

3. Population standard deviation unknown: t

When σ is unknown, use the t-distribution and the sample standard deviation sn₋₁ (the unbiased estimate), for every sample size.

The margin is t × (sn₋₁)/(√n). On a graphic display calculator, enter the raw data into a list and choose the T-interval. Read sn₋₁ from the one-variable statistics, not the population value σn.

At the same level t is larger than z, so the interval is wider: 3.250 against 2.576 for n = 10 at 99%.

barx ± t (sn₋₁)/(√n)

Worked example 12 marks

In an effort to increase the mean weight of his eggs, Farmer Giles gives the chickens a new food, Chick Crackle, for one month. He then randomly selects 10 eggs and weighs them. His results, in grams, are given in Table 1.

Farmer Giles assumes the weights of all his eggs are still normally distributed but believes the mean and standard deviation of the weights may have changed.

Find a 99% confidence interval for the mean weight of Giles's eggs, after feeding his chickens Chick Crackle.

Egg12345678910
Weight (g)54.552.450.454.354.253.150.251.852.253.5
  1. 1

    σ is unknown, so use a t-interval: barx = 52.66, sn₋₁ = 1.55, n = 10, level 99%

  2. 2

    A1: lower end 51.1 [1]

  3. 3

    A1: upper end 54.2, so the interval is (51.1, 54.2) [1]

4. Confidence level and sample size

The width of an interval depends on the confidence level, the spread of the data and the sample size. A higher confidence level needs a larger z or t, so the interval is wider.

A larger sample makes the interval narrower, because n sits under a square root. To halve the width you need four times as many values, not twice as many. The width is twice the margin.

width = 2 × z σ/(√n)

Worked example 14 marks

The sample of 25 bags of flour has mean mass 250 g. The population standard deviation is 8 g and the masses are normally distributed.

(a) Calculate a 99% confidence interval for the mean mass, giving the end points to three significant figures.

(b) Explain why this interval is wider than the 95% interval (247, 253).

  1. 1

    (a) M1: σ is known, so use the normal distribution: z = 2.576 [1]

  2. 2

    A1: lower end 250 - 2.576 × 1.6 = 246 g [1]

  3. 3

    A1: upper end 250 + 2.576 × 1.6 = 254 g [1]

  4. 4

    (b) R1: a higher confidence level needs a larger z (2.576 against 1.960), so the margin is larger and the interval is wider [1]

Recap

  • A confidence interval is a range likely to contain the population mean μ, built around the sample mean barx from a normal population.
  • σ known: use the normal distribution, barx ± zσ/(√n).
  • σ unknown: use the t-distribution with sn₋₁, barx ± t(sn₋₁)/(√n), for every sample size.
  • Higher confidence level: wider interval. Larger n: narrower interval, with width proportional to 1/(√n).
  • Interpret in context: a value inside the interval is consistent with the data, a value outside is not supported.
  • Write the answer as barx ± margin or in interval notation (a, b).

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State which distribution is used to find a confidence interval for the mean of a normal population when the population standard deviation is known.1 mark
    Answer
    1. The normal distribution.

    Trap: Choosing the t-distribution because the sample is small. A known σ means the normal distribution, whatever the sample size.

  2. A random sample of 50 values is taken from a normal population with unknown standard deviation. A confidence interval for the mean is needed. Which statement is correct? A. Use the normal distribution, because n is large. B. Use the t-distribution, because σ is unknown. C. Use the t-distribution only if n is small. D. Either distribution gives the same interval.1 mark
    Answer
    1. The answer is B: when σ is unknown the t-distribution is used regardless of sample size.
    2. A and C make the choice depend on n. D is wrong because the t value is larger than the z value, so the intervals differ.

    Trap: Letting the sample size decide the distribution. It is whether σ is known.

  3. A random sample of 16 values from a normal population with standard deviation 4.0 has mean 20.0. Calculate a 95% confidence interval for the population mean, giving the end points to three significant figures.3 marks
    Answer
    1. σ is known, so use the normal distribution with z = 1.960. (M1)
    2. Margin = 1.960 × 4.0/(√16) = 1.960.
    3. Lower end = 20.0 - 1.960 = 18.0. (A1)
    4. Upper end = 20.0 + 1.960 = 22.0. (A1)
    5. The interval is (18.0, 22.0).

    Trap: Dividing σ by n = 16 instead of √n = 4, which gives a margin of 0.49.

  4. A normal population has standard deviation 12 cm. A random sample of 36 values has mean 150 cm. Calculate a 90% confidence interval for the population mean, giving the end points to three significant figures.3 marks
    Answer
    1. σ is known, so use the normal distribution. For 90%, z = 1.645. (M1)
    2. Margin = 1.645 × 12/(√36) = 1.645 × 2 = 3.29.
    3. Lower end = 150 - 3.29 = 147 cm. (A1)
    4. Upper end = 150 + 3.29 = 153 cm. (A1)

    Trap: Using z = 1.960 for every level. That value belongs to 95% only and gives (146, 154).

  5. The lengths of leaves from a tree are normally distributed. A random sample of 9 leaves has mean length 34.6 mm and sample standard deviation sn₋₁ = 2.4 mm. Calculate a 95% confidence interval for the mean length of leaves from the tree, giving the end points to three significant figures.3 marks
    Answer
    1. The population standard deviation is unknown, so use the t-distribution with n = 9. (M1)
    2. t = 2.306 and (sn₋₁)/(√n) = 2.4/3 = 0.8.
    3. Margin = 2.306 × 0.8 = 1.845.
    4. Lower end = 34.6 - 1.845 = 32.8 mm. (A1)
    5. Upper end = 34.6 + 1.845 = 36.4 mm. (A1)

    Trap: Using z = 1.960 because sn₋₁ is given. That gives (33.0, 36.2), which is too narrow.

  6. The volumes, in litres, of six randomly chosen cartons of juice are 12.1, 11.8, 12.6, 12.0, 12.4, 11.9 The volumes are normally distributed. Use your graphic display calculator to find a 95% confidence interval for the mean volume, giving the end points to three significant figures.3 marks
    Answer
    1. σ is unknown, so use a t-interval. Enter the six values into a list. (M1)
    2. barx = 12.13 and sn₋₁ = 0.3077, with t = 2.571 for n = 6.
    3. Lower end = 11.8 litres. (A1)
    4. Upper end = 12.5 litres. (A1)

    Trap: Using the population value σn = 0.2809 from the calculator in place of sn₋₁, which gives (11.8, 12.4).

  7. A 95% confidence interval for the mean time, in seconds, to load a web page is (47.2, 52.8). A technician claims that the mean time is 52 seconds. (a) Write down the sample mean. (b) Comment on the technician's claim.3 marks
    Answer
    1. (a)
    2. The sample mean is the midpoint: (47.2 + 52.8)/2 = 50.0 seconds. (A1)
    3. (b)
    4. 52 lies inside the interval. (R1)
    5. So the data are consistent with the claim, but they do not prove it. (A1)

    Trap: Writing that the claim is proved true because 52 is inside the interval.

  8. A 95% confidence interval for a population mean is found from a random sample of 25 values from a normal population with known standard deviation. Its width is 6.0. (a) A new sample of 100 values is taken from the same population. Find the width of the new 95% interval. (b) State what happens to the width of the original interval if the confidence level is raised to 99%.3 marks
    Answer
    1. (a)
    2. Width is proportional to 1/(√n). (M1)
    3. n is multiplied by 4, so the width is divided by √4 = 2: new width = 3.0. (A1)
    4. (b)
    5. The width increases, because z is larger. (A1)

    Trap: Dividing the width by 4, the factor n changed by, to get 1.5. The width depends on √n.

  9. A machine fills jars with honey. The masses of honey are normally distributed with standard deviation 5 g. An inspector wants a 99% confidence interval for the mean mass whose width is at most 2.0 g. Determine the smallest sample size the inspector needs.4 marks
    Answer
    1. σ is known, so use the normal distribution with z = 2.576. The width is twice the margin: 2 × 2.576 × 5/(√n) ≤ 2.0. (M1)
    2. √n ≥ (2 × 2.576 × 5)/2.0 = 12.88. (A1)
    3. n ≥ 12.88² = 165.9. (A1)
    4. n is a whole number, so round up: the smallest sample size is 166. (R1)

    Trap: Setting the margin, not the width, equal to 2.0, which gives n ≥ 41.5 and a sample of only 42.

  10. A sensor is designed to respond in a mean time of 3.15 seconds. The response times of sensors are normally distributed with unknown standard deviation. From 12 randomly chosen sensors, an engineer reports only a 95% confidence interval for the mean response time: (3.19, 3.65) seconds. (a) Write down the sample mean. (b) Show that the sample standard deviation sn₋₁ is 0.362 seconds, to three significant figures. (c) Calculate a 99% confidence interval for the mean response time, giving the end points to three significant figures. (d) Evaluate the claim that the sensors meet the design value of 3.15 seconds.8 marks
    Answer
    1. (a)
    2. The sample mean is the midpoint: (3.19 + 3.65)/2 = 3.42 seconds. (A1)
    3. (b)
    4. σ is unknown, so the interval used the t-distribution with n = 12: at 95%, t = 2.201. The margin is half the width, (3.65 - 3.19)/2 = 0.23. (M1)
    5. 2.201 × (sn₋₁)/(√12) = 0.23, so sn₋₁ = (0.23 × √12)/2.201 = 0.36199… = 0.362 seconds. (A1)(AG)
    6. (c)
    7. At 99% with n = 12, t = 3.106. (M1)
    8. Margin = 3.106 × 0.36199/(√12) = 0.3246, keeping the unrounded sn₋₁.
    9. Lower end = 3.42 - 0.3246 = 3.10 seconds. (A1)
    10. Upper end = 3.42 + 0.3246 = 3.74 seconds. (A1)
    11. (d)
    12. 3.15 lies below the 95% interval (3.19, 3.65) but inside the 99% interval (3.10, 3.74). (R1)
    13. At 95% the data do not support a mean of 3.15 seconds; at 99% they are consistent with it. The sensors may be slower than designed, but the evidence is not conclusive, and a larger sample would give a narrower interval. (A1)

    Trap: Using z = 1.960 to recover sn₋₁ and z = 2.576 for the 99% interval, which gives sn₋₁ = 0.407 and (3.12, 3.72).

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
52.66, 1.59 or 52.66 1.59 with no ±.52.66 ± 1.59. The markscheme gives the interval in this form or as (51.1, 54.2), and an incorrect or missing ± loses a mark.
51.1 54.2 with no brackets.(51.1, 54.2) in interval notation. The markscheme allows 51.1 ≤ μ ≤ 54.2 too.
The sample is large, so use the normal distribution.σ is unknown, so use the t-distribution whatever the sample size.
The interval is for the sample mean.The interval is for the population mean μ. The sample mean is its midpoint.

Frequently asked questions

What does a 95% confidence interval for a population mean mean?
A confidence interval is a range built around the sample mean barx that is likely to contain the population mean μ. A 95% interval is made by a method that captures μ in about 95% of all the samples you could take. Any one interval either contains μ or it does not, and the sample mean is always its midpoint.
How do you calculate a confidence interval for the mean when the population standard deviation is known?
Use the normal distribution. The interval is barx ± zσ/(√n), where z leaves (100 - c)/2% in each tail for a c% interval. Common values are z = 1.645 for 90%, 1.960 for 95% and 2.576 for 99%. Divide σ by √n, not by n.
When should I use the t-distribution for a confidence interval for the mean?
Use the t-distribution when the population standard deviation σ is unknown, for every sample size. The interval is barx ± t(sn₋₁)/(√n), using the sample standard deviation sn₋₁, not the population value σn. For a graphic display calculator, enter the raw data and choose the T-interval.
How do the confidence level and the sample size change the width of a confidence interval?
A higher confidence level needs a larger z or t, so the interval is wider. A larger sample makes it narrower, because n sits under a square root, with width 2 × zσ/(√n). To halve the width you need four times as many values, not twice as many.
Does a claimed value inside a confidence interval prove the claim is true?
No. A value inside the interval is consistent with the data, but that is not the same as proved. For example, a 95% interval (41.2, 46.8) for a bus route contains a claimed mean of 45 minutes, so the data are consistent with the claim but do not prove it. A value outside the interval is not supported by the data.
How do you find the smallest sample size that gives a confidence interval of a required width?
The width is twice the margin, so set 2 × zσ/(√n) ≤ the required width and solve for n. For a 99% interval with σ = 5 g and width at most 2.0 g, √n ≥ 12.88, so n ≥ 165.9. Round up to a whole number, giving 166.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters