Skip to content
Cambridge AS & A Level9231

Inference using normal and t-distributions

Further Mathematics 9231 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Inference using normal and t-distributions notes as a printable PDF.

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

Read the notes

The full Inference using normal and t-distributions notes as text: skim, search, and jump between subtopics.

~18 min read

1. One-sample t-test for a mean

Use a t-test when the sample is small, the population is normal and its variance is unknown. Estimate the variance from the sample: s² divides by n - 1, not n.

State H₀ and H₁ about the population mean. Compare t with the tabular value for n - 1 degrees of freedom.

Write the conclusion in words and in context, with some uncertainty: sufficient evidence to support the claim, or not.

s² = 1/(n-1)(sum x² - ((sum x)²)/n)

t = (barx - μ₀)/(s / √n)

nu = n - 1

Examiner insight

“A minority of candidates used a z-value in their calculations rather than a t-value. This is not appropriate when the sample size, here 10, is small.” “The conclusion must be given in context in words, not symbols, and there must be a level of uncertainty in the language used.”

Worked example 16 marks

A random sample of 9 observations of a normally distributed random variable X is as follows.

19.4, 21.3, 24.0, 20.7, 18.9, 21.2, 22.5, 23.4, 20.8

The population mean of X is μ. Test, at the 2.5% significance level, the null hypothesis μ = 20 against the alternative hypothesis μ > 20.

  1. 1

    barx = 192.2/9 = 21.36 [1]

  2. 2

    s² = 1/8(4127.64 - 192.2²/9) = 2.888 [1]

  3. 3

    t = (192.2/9 - 20)/(√(s²/9)) [1]

  4. 4

    = 2.39 [1]

  5. 5

    2.39 > 2.306 (nu = 8), so reject H₀ [1]

  6. 6

    There is sufficient evidence to support that μ > 20 [1]

2. Pooled estimate of a variance

When two normal populations are assumed to have the same variance, combine the two samples into one pooled estimate of that variance.

Add the two sums of squares about their own means. Divide by n_x + n_y - 2.

Pool only when the question says the variances are equal. Raw data and summarised data both occur.

sum (x - barx)² = sum x² - ((sum x)²)/n

s_p² = (sum (x - barx)² + sum (y - bary)²)/(n_x + n_y - 2)

Examiner insight

“The question states that the diameters of the pipes produced by the two machines are assumed to be normally distributed with equal population variances. This is a clear indication that a pooled variance needs to be used.” “A minority of candidates assumed that the two distributions shared a common population variance and so used a pooled estimate. This was incorrect because the wording of the question did not suggest that the assumption might be valid.”

Worked example 14 marks

Two independent samples come from normal populations with the same variance. The first has 6 values with sum x = 60 and sum x² = 640. The second has 9 values with sum y = 108 and sum y² = 1340. Calculate the pooled estimate of the common variance.

  1. 1

    sum (x - barx)² = 640 - 60²/6 = 40 [1]

  2. 2

    sum (y - bary)² = 1340 - 108²/9 = 44 [1]

  3. 3

    s_p² = (40 + 44)/(6 + 9 - 2) [1]

  4. 4

    = 84/13 = 6.46 [1]

3. Two-sample t-test

For two independent small samples from normal populations with equal variances, test the difference of population means. Use the pooled estimate s_p² in the standard error.

The degrees of freedom are n_x + n_y - 2. For a two-tailed test at the 10% level, use the 5% point of each tail.

The conclusion is about evidence. A test cannot show that two means are equal.

t = ((barx - bary) - (μ_x - μ_y))/(√(s_p² (1/n_x + 1/n_y)))

nu = n_x + n_y - 2

Examiner insight

“Candidates found the two sample variances explicitly, then the pooled variance, then the test statistic and finally compared this with the appropriate tabular value of t, followed by a conclusion containing a degree of uncertainty.” “Candidates should be aware that all that the hypothesis test can show is that there is insufficient evidence to suggest that the mean time at P is greater than the mean time at Q.”

Worked example 19 marks

A researcher is studying household waste recycling in two different cities, city A and city B. She randomly selects 8 households in city A and 9 households in city B. The researcher records the percentage of waste that each household recycles. Her results are as follows.

City A: 25, 49, 41, 38, 31, 21, 25, 40

City B: 18, 35, 30, 22, 13, 23, 24, 36, 24

The population variances of the percentages of waste recycled in each city are assumed to be equal. Carry out a t-test at the 10% significance level to investigate whether there is a difference in the average percentage of waste that is recycled in city A and city B.

  1. 1

    H₀: μ_A = μ_B, H₁: μ_A ≠ μ_B [1]

  2. 2

    sum (x - barx)² = 9778 - 270²/8 = 665.5 [1]

  3. 3

    sum (y - bary)² = 6079 - 225²/9 = 454.0 [1]

  4. 4

    s_p² = (665.5 + 454.0)/(8 + 9 - 2) [1]

  5. 5

    = 74.633 [1]

  6. 6

    t = (270/8 - 225/9)/(√(74.633(1/8 + 1/9))) [1]

  7. 7

    = 2.084 [1]

  8. 8

    2.084 > 1.753 (nu = 15), so reject H₀ [1]

  9. 9

    Sufficient evidence to suggest that there is a difference in the (average) percentage of waste recycled in city A and city B [1]

4. Paired-sample t-test

When each value in one sample is matched with one in the other, such as scores before and after for the same students, the data are paired. Work with the differences d. Then run a one-sample t-test on them.

The hypotheses use the value in the claim. A claim of an increase of more than 5 marks gives H₀: μ_d = 5, not 0. Take d as after minus before, so an increase is positive.

The assumption is that the population of differences is normally distributed.

d = after - before

t = (bard - μ_d)/(s_d / √n)

nu = n - 1

Examiner insight

“Some candidates worked with ‘before’ minus ‘after’ both in the hypotheses and in the final conclusion. This usually led to confusion in interpreting the result.” “The expected answer was that the distribution of the population differences is assumed to be normal. Unsatisfactory examples that were seen were ‘it is a normal distribution’, along with statements about continuity corrections, randomness and independence.”

Worked example 17 marks

Margaret has developed a new revision course to help students improve their ability in mathematics. The students each sit a mathematics test before attending the course and a test of similar difficulty after attending the course. Margaret claims that her course will increase a student's score by more than 5 marks on average. For a random sample of 8 students, the test scores before and after the revision course are given in the table. Use a t-test at the 10% significance level to investigate Margaret's claim.

studentABCDEFGH
test score before4329675434295260
test score after4953796239556562
  1. 1

    H₀: μ_d = 5, H₁: μ_d > 5, where d = after - before [1]

  2. 2

    d: 6, 24, 12, 8, 5, 26, 13, 2 [1]

  3. 3

    s_d² = 1/7(1694 - 96²/8) = 77.43 [1]

  4. 4

    t = (96/8 - 5)/(√(77.43/8)) [1]

  5. 5

    = 2.25 [1]

  6. 6

    2.25 > 1.415 (nu = 7), so reject H₀ [1]

  7. 7

    Sufficient evidence to support Margaret's claim [1]

5. Choosing a normal test: large samples, unequal variances

The question may give no reason to assume equal variances. Then do not pool. Estimate each variance separately and add the two terms in the standard error.

With large samples the test uses the normal distribution, so the critical value is a z-value, not a t-value.

Selecting the test is part of the question. Matched pairs: paired t. Independent small samples with equal variances stated: pooled t. Independent large samples: z with separate variances.

z = ((barx - bary) - (μ_x - μ_y))/(√(s_x²/n_x + s_y²/n_y))

Examiner insight

“The most common error was to use a t-value instead of the z-value required when the sample sizes are large.” “Some candidates used the pooled estimate for the population variance, but there was no information given to suggest that the population variance could be assumed to be the same for both samples.”

Worked example 18 marks

Rhiannon is investigating the mass of individual bananas sold in two supermarkets. Rhiannon claims that the mean mass of bananas sold by supermarket X is less than the mean mass of bananas sold by supermarket Y. She takes random samples of 44 bananas from supermarket X and 52 bananas from supermarket Y. She records their masses, x kg and y kg, respectively. Her results are summarised as follows.

sum x = 6.63, sum x² = 1.21, sum y = 8.56, sum y² = 1.65

You should not assume that the population variances of the masses of bananas sold by each supermarket are equal. Test Rhiannon's claim at the 10% significance level.

  1. 1

    H₀: μ_x = μ_y, H₁: μ_x < μ_y [1]

  2. 2

    s_x² = 1/43(1.21 - 6.63²/44) = 4.9065 × 10⁻³ [1]

  3. 3

    s_y² = 1/51(1.65 - 8.56²/52) = 4.7234 × 10⁻³ [1]

  4. 4

    s_x²/44 + s_y²/52 = 2.023 × 10⁻⁴ [1]

  5. 5

    z = (6.63/44 - 8.56/52)/(√(2.023 × 10⁻⁴)) [1]

  6. 6

    = -0.980 [1]

  7. 7

    -0.980 > -1.282, so do not reject H₀ [1]

  8. 8

    Insufficient evidence to support Rhiannon's claim [1]

6. Confidence interval for a mean (small sample)

A confidence interval for a population mean from a small sample of a normal population with unknown variance uses the t-distribution, never z.

For a 95% interval take the 97.5% point of t with n - 1 degrees of freedom. The interval is symmetric about barx.

Put s, the square root of the variance estimate, in the formula, not s².

barx ± t s/(√n)

Examiner insight

“The most common error was an incorrect t value used in the confidence interval formula. A small minority of candidates opted for a z value, which is not appropriate for a small sample with unknown population variance.” “Some candidates made arithmetical errors, some confused standard deviation and variance, and some used an incorrect value for t in the formula for the confidence interval.”

Worked example 15 marks

A random sample of 9 masses, in grams, is taken from a normal population with unknown variance. The sample has sum x = 225 and sum x² = 5700. Find a 95% confidence interval for the population mean mass.

  1. 1

    barx = 225/9 = 25 [1]

  2. 2

    s² = 1/8(5700 - 225²/9) = 9.375 [1]

  3. 3

    nu = 8, 97.5% point: t = 2.306 [1]

  4. 4

    25 ± 2.306 × (√(9.375))/(√9) = 25 ± 2.35 [1]

  5. 5

    (22.6 g, 27.4g) [1]

7. Confidence interval for a difference of means

The interval for μ_x - μ_y is centred on barx - bary. Its width uses the same standard error as the matching test.

Small samples with equal variances: pooled t, with n_x + n_y - 2 degrees of freedom. Large samples with no equal-variance assumption: z, with separate variances.

Do not round to 3 significant figures early in the working. Round only the final interval.

(barx - bary) ± t √(s_p²(1/n_x + 1/n_y))

(barx - bary) ± z √(s_x²/n_x + s_y²/n_y)

Examiner insight

“The most common error was a loss of accuracy as the calculation progressed, with premature approximation to 3 significant figures at an early stage.” “The more common errors were choosing the incorrect z-value or using a pooled estimate for the standard deviation.”

Worked example 16 marks

A teacher is investigating the times taken by students to complete assignments of equal difficulty in human geography and physical geography. He selects a random sample of 7 human geography students and records the times taken, x minutes, to complete an assignment. He also selects a random sample of 9 physical geography students and records the times taken, y minutes, to complete an assignment. The results are summarised as follows.

sum x = 445, sum x² = 29144, sum y = 310, sum y² = 11622

You should assume that the underlying distributions are normal and have equal population variances. Find a 95% confidence interval for the difference in population mean times taken to complete assignments in human geography and physical geography.

  1. 1

    sum (x - barx)² = 29144 - 445²/7 = 854.7 [1]

  2. 2

    sum (y - bary)² = 11622 - 310²/9 = 944.2 [1]

  3. 3

    s_p² = (854.7 + 944.2)/(7 + 9 - 2) [1]

  4. 4

    = 128.5 [1]

  5. 5

    445/7 - 310/9 ± 2.145√(128.5(1/7 + 1/9)) (nu = 14) [1]

  6. 6

    (16.9, 41.4) [1]

Recap

  • Small normal sample, unknown variance: use t with n - 1 degrees of freedom. s² divides by n - 1.
  • Pooled variance: add the two sums of squares, divide by n_x + n_y - 2. Pool only if equal variances are given.
  • Matched data: find the differences and run a one-sample t-test on them. Use the claimed value in H₀.
  • Large independent samples, equal variances not given: z-test with separate variances.
  • Confidence interval for a mean: barx ± t s / √n, with the 97.5% point for 95%.
  • Confidence interval for a difference: use the same standard error as the matching test.
  • Conclusions are in context and say there is, or is not, sufficient evidence.

End-of-chapter exercise

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

  1. A random sample of 9 observations is taken from a normal population with unknown variance. The sample mean is 24 and the unbiased estimate of the population variance is s² = 36. Calculate the value of t used to test H₀: μ = 20.2 marks
    Answer
    1. Standard error = √(36/9) = 2.
    2. t = (24 - 20)/2 = 2.

    Trap: Dividing by s² / √n = 12 gives t = 1/3: the denominator uses s, not s².

  2. A sample of 10 values has sum x = 100 and sum x² = 1090. Find the unbiased estimate of the population variance.2 marks
    Answer
    1. sum (x - barx)² = 1090 - 100²/10 = 90.
    2. s² = 90/9 = 10.

    Trap: Dividing by n = 10 gives 9. The unbiased estimate divides by n - 1.

  3. Two independent samples have sizes 6 and 9. Their sums of squares about their means are sum (x - barx)² = 40 and sum (y - bary)² = 38. Calculate the pooled estimate of the common population variance.2 marks
    Answer
    1. s_p² = (40 + 38)/(6 + 9 - 2)
    2. = 78/13 = 6.

    Trap: Averaging the two separate variance estimates (8 and 4.75) gives 6.375, and dividing by 6 + 9 = 15 gives 5.2. Both are wrong.

  4. State which test is appropriate in each case. (a) Reaction times of 12 people before and after drinking coffee. The differences are normal. (b) Heights of 8 plants given fertiliser A and 10 other plants given fertiliser B. Both populations are normal with equal variances. (c) Masses of 80 items from line P and 90 items from line Q. Equal variances are not stated.3 marks
    Answer
    1. (a)
    2. Paired-sample t-test: each person is measured twice [1].
    3. (b)
    4. Two-sample t-test with a pooled variance, as equal variances are given [1].
    5. (c)
    6. Test using the normal distribution, with each variance estimated separately: the samples are large and equal variances are not given [1].

    Trap: Treating before-and-after readings on the same people as two independent samples.

  5. A random sample of 10 masses, in grams, is taken from a normal population with unknown variance. The sample has sum x = 524 and sum x² = 27600. Find a 95% confidence interval for the population mean.4 marks
    Answer
    1. barx = 52.4 and s² = 1/9(27600 - 524²/10) = 15.82 [2].
    2. nu = 9, 97.5% point: t = 2.262 [1].
    3. 52.4 ± 2.262√(15.82/10) = 52.4 ± 2.85, so (49.6 g, 55.2 g) [1].

    Trap: Using z = 1.96 for a small sample with unknown variance gives ± 2.47.

  6. A random sample of 60 observations of X has mean 14.2 and unbiased variance estimate 9.6. An independent random sample of 80 observations of Y has mean 13.1 and unbiased variance estimate 12.0. Do not assume equal population variances. Find a 95% confidence interval for μ_x - μ_y.4 marks
    Answer
    1. barx - bary = 1.1 [1].
    2. 9.6/60 + 12.0/80 = 0.16 + 0.15 = 0.31 [1].
    3. z = 1.96, so 1.1 ± 1.96√(0.31) [1].
    4. (0.00872, 2.19) [1].

    Trap: Pooling the two variance estimates when the question gives no equal-variance assumption.

  7. A tutor claims that her course raises a student's test score by more than 2 marks on average. Five students sit a test before and after the course. Scores before: 10, 12, 15, 11, 14. Scores after, in the same order: 11, 15, 19, 16, 21. The differences are normally distributed. Test the claim at the 5% significance level, using the critical value 2.132.5 marks
    Answer
    1. H₀: μ_d = 2, H₁: μ_d > 2, where d = after - before [1].
    2. d: 1, 3, 4, 5, 7, so bard = 4 [1].
    3. sum d² = 100, so s_d² = (100 - 400/5)/4 = 5 [1].
    4. t = (4 - 2)/(√(5/5)) = 2 [1].
    5. 2 < 2.132, so do not reject H₀: insufficient evidence to suggest that the course raises the mean score by more than 2 marks [1].

    Trap: Using H₀: μ_d = 0 gives t = 4 and a wrong rejection.

  8. A machine is set to fill packets with 40 g of flour. The masses, in grams, of a random sample of 8 packets are 41, 38, 44, 40, 46, 43, 39 and 45. The masses are normally distributed. Test, at the 5% significance level, whether the mean mass differs from 40 g.6 marks
    Answer
    1. H₀: μ = 40, H₁: μ ≠ 40 [1].
    2. sum x = 336, so barx = 42 [1].
    3. sum x² = 14172, so s² = 1/7(14172 - 336²/8) = 8.571 [1].
    4. t = (42 - 40)/(√(8.571/8)) = 1.93 [1].
    5. Two-tailed, nu = 7: critical value 2.365 [1].
    6. 1.93 < 2.365, so do not reject H₀: insufficient evidence that the mean mass differs from 40 g [1].

    Trap: The one-tailed value 1.895 would wrongly reject H₀. The alternative is μ ≠ 40, so use 2.365.

  9. A courier records journey times, in minutes, on two routes: a random sample of 7 journeys on route A, times x, and an independent random sample of 8 journeys on route B, times y. The times are normally distributed with equal population variances. sum x = 354, sum x² = 17952, sum y = 357 and sum y² = 15981. A driver claims that route A journeys take more than 4 minutes longer on average than route B journeys. Test the claim at the 5% significance level.7 marks
    Answer
    1. H₀: μ_A - μ_B = 4, H₁: μ_A - μ_B > 4 [1].
    2. sum (x - barx)² = 17952 - 354²/7 = 49.71 [1].
    3. sum (y - bary)² = 15981 - 357²/8 = 49.875 [1].
    4. s_p² = (49.71 + 49.875)/(7 + 8 - 2) = 7.661 [1].
    5. t = ((354/7 - 357/8) - 4)/(√(7.661(1/7 + 1/8))) = (5.946 - 4)/1.432 = 1.36 [1].
    6. nu = 13, one-tailed 5% point 1.771: 1.36 < 1.771, so do not reject H₀ [1].
    7. Insufficient evidence to support the driver's claim that route A journeys take more than 4 minutes longer on average [1].

    Trap: Using H₀: μ_A - μ_B = 0 ignores the 4 minutes in the claim and gives t = 4.15 and a wrong rejection.

  10. A biologist measures the wingspans of a random sample of 10 moths of one species. Wingspans are normally distributed. She reports only a 95% confidence interval for the population mean wingspan, found using a t-distribution: (48.2 mm, 53.8 mm). (a) Find the sample mean and the unbiased estimate of the population variance. (b) Test, at the 5% significance level, whether the population mean wingspan is greater than 49 mm.7 marks
    Answer
    1. (a)
    2. barx = (48.2 + 53.8)/2 = 51.0 [1].
    3. nu = 9, 97.5% point 2.262: 2.262 × s/(√10) = 2.8 [1].
    4. s = 3.914, so s² = 15.32 [1].
    5. (b)
    6. H₀: μ = 49, H₁: μ > 49 [1].
    7. t = (51.0 - 49)/(√(15.32/10)) = 1.62 [1].
    8. nu = 9, one-tailed 5% point 1.833: 1.62 < 1.833, so do not reject H₀ [1].
    9. Insufficient evidence to suggest that the population mean wingspan is greater than 49 mm [1].

    Trap: Recovering s with z = 1.96 or the wrong t-value gives the wrong variance (1.96 gives s² = 20.41). Examiners also report candidates confusing standard deviation and variance.

Say this, not that

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

Loses the markGets the mark
‘it is a normal distribution’the population of differences is normally distributed
so the mean times are equal (the test is proved)insufficient evidence to suggest that the means differ
H₀: μ_d = 0 for a claim of an increase of more than 5H₀: μ_d = 5
a z-value for a small sample with unknown variancea t-value with the right degrees of freedom

Frequently asked questions

When should I use a t-test rather than a z-test for a mean?
Use a t-test when the sample is small, the population is normal and its variance is unknown. Compare t with the tabular value for n - 1 degrees of freedom. With large samples the test uses the normal distribution, so the critical value is a z-value, not a t-value.
Why do I divide by n - 1 when estimating a population variance?
The unbiased estimate of the population variance divides by n - 1, not n. Find the sums of squares about the mean and divide by n - 1. For 10 values with sum x = 100 and sum x² = 1090, the sums of squares about the mean is 90, so s² = 10.
How do I run a paired t-test on before and after scores?
Work with the differences d, taking d as after minus before, then run a one-sample t-test on them. The hypotheses use the value in the claim: a claim of an increase of more than 5 marks gives H₀: μ_d = 5, not 0. The assumption is that the population of differences is normally distributed.
How do I find a 95% confidence interval for a mean from a small sample?
Use the t-distribution, never z, with n - 1 degrees of freedom. For a 95% interval take the 97.5% point of t. The interval is barx ± t s/√n, with s, the square root of the variance estimate, not s². The interval is symmetric about the sample mean.
When should I pool two sample variances into one estimate?
Pool the two variances only when the question says the populations have equal variances. Add the two sums of squares about their own means and divide by n_x + n_y - 2. If the question gives no reason to assume equal variances, do not pool: estimate each variance separately.
What is the common mistake when stating the paired t-test assumption?
Writing 'it is a normal distribution' is unsatisfactory, and so are statements about continuity corrections, randomness and independence. The expected answer is that the population of differences is normally distributed.

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