Home / A-Level Further Maths 9231 / Topic 4.2 / Revision notes
Download PDFQuestion bank →Topic 4.2 lessons

Inference using normal and t-distributions

A-Level Further Maths 9231 · Topic 4.2 revision notes

Everything from the 3 lessons of this topic on a few pages: the key idea of each lesson, the diagram to remember, the points to learn and the traps examiners set. Read it, cover it, test yourself.

  1. The t-distribution: one-sample tests and intervals
  2. Two-sample t-tests and normal tests
  3. Paired samples and intervals for a difference

1The t-distribution: one-sample tests and intervals

Syllabus 4.2

For a random sample of size \(n\) from a NORMAL population with unknown variance, estimate the variance by \(s^{2} = \dfrac{\sum x^{2} - n\bar{x}^{2}}{n - 1}\). Then \(T = \dfrac{\bar{X} - \mu}{s/\sqrt{n}}\) has a t-distribution with \(\nu = n - 1\) degrees of freedom. Use it for tests (compare \(t\) with the table value \(t_{n-1}\)) and for the interval \(\bar{x} \pm t_{n-1}\,\dfrac{s}{\sqrt{n}}\).

t −4 −3 −2 −1 0 1 2 3 4 2.571 −2.571 1.96 −1.96 t-distribution, 5 df N(0, 1) 2.5% in each tail Two-tailed 5% test: |t| > 2.571, not 1.96
Fig. 1: the t-distribution with 5 degrees of freedom (solid) against the standard normal (dashed). The t curve is lower in the middle and heavier in the tails, so its two-tailed 5% critical values are ±2.571 (shaded regions, 2.5% each) instead of ±1.96. As the degrees of freedom increase the t curve approaches N(0, 1)

Worked example: Unbiased estimates from raw data

The masses, in grams, of six bags of flour taken at random are 502, 498, 505, 497, 503, 501. Find unbiased estimates of the population mean and variance.
  1. \(n = 6\), \(\sum x = 3006\), so \(\bar{x} = \dfrac{3006}{6} = 501\).
  2. \(\sum x^{2} = 1\,506\,052\).
  3. \[\begin{aligned} s^{2} &= \frac{\sum x^{2} - n\bar{x}^{2}}{n - 1} \\ &= \frac{1\,506\,052 - 6(501)^{2}}{5} \\ &= \frac{46}{5} = 9.2 \end{aligned}\]
  4. Check with deviations: \(1, -3, 4, -4, 2, 0\) square to \(1 + 9 + 16 + 16 + 4 + 0 = 46\), and \(\dfrac{46}{5} = 9.2\).
Answer: \(\bar{x} = 501\) g, \(s^{2} = 9.2\) g2 (so \(s = 3.03\) g)

Estimate, standardise with \(s\), read \(t_{n-1}\).

  • Estimate: \(\bar{x} = \dfrac{\sum x}{n}\), \(s^{2} = \dfrac{\sum x^{2} - n\bar{x}^{2}}{n - 1}\).
  • Hypotheses: define \(\mu\) in context; \(H_{0}: \mu = \mu_{0}\) and a one- or two-tailed \(H_{1}\).
  • Assume the population is normal; then \(t = \dfrac{\bar{x} - \mu_{0}}{s/\sqrt{n}}\) with \(\nu = n - 1\).
  • Compare with the table: for two tails, or a \(100(1 - \alpha)\%\) interval, use \(\frac{\alpha}{2}\) in each tail.
  • Conclude in context: 'there is (in)sufficient evidence at the ...% level that ...'.

Watch out!

Two different \(n\)'s to watch. Divide by \(n - 1\), not \(n\), for the unbiased variance; and read the table at \(\nu = n - 1\), not \(n\). With a sample of 6, using \(\nu = 6\) gives 2.447 instead of 2.571.

Do not write 'the mean IS less than 20' or 'H0 is true'. A test only gives evidence: say 'there is (in)sufficient evidence at the 5% level that ...'. And state the assumption that the population is normal, or the t-test is not justified.

For a 95% interval use the 2.5% one-tail value (\(t_{9} = 2.262\)), not the 5% value (1.833). Using 1.833 gives only a 90% interval. And never use 1.96 with a small sample and unknown variance.

2Two-sample t-tests and normal tests

Syllabus 4.2

Two independent samples, sizes \(n_x\) and \(n_y\). Small samples, both populations normal with a common variance: pool the variance, \(s_p^{2} = \dfrac{\sum (x - \bar x)^{2} + \sum (y - \bar y)^{2}}{n_x + n_y - 2}\), and use \(t = \dfrac{\bar x - \bar y - k}{\sqrt{s_p^{2}\left(\frac{1}{n_x} + \frac{1}{n_y}\right)}}\) with \(n_x + n_y - 2\) degrees of freedom. Large samples (or known variances): use \(z = \dfrac{\bar x - \bar y - k}{\sqrt{\frac{\sigma_x^{2}}{n_x} + \frac{\sigma_y^{2}}{n_y}}}\) with the normal distribution, replacing \(\sigma^{2}\) by \(s^{2}\) when it is unknown. Here \(k\) is the difference \(\mu_x - \mu_y\) stated in \(\mathrm{H}_0\), usually 0.

Test H₀: μx − μy = k Population variances known? yes no Both samples large? yes no Normal test (z) σx²/nx + σy²/ny normal populations Normal test (z) sx²/nx + sy²/ny Central Limit Theorem 2-sample t-test pooled sp², nx + ny − 2 df normal, common variance
Fig. 1: choosing a test for a difference of two population means from two independent samples. Known variances with small samples need normal populations; large samples do not, thanks to the Central Limit Theorem

Worked example: From raw data

Two independent samples are taken from populations with a common variance. Sample \(X\): 12, 15, 11, 14, 13. Sample \(Y\): 10, 13, 9, 12. Find the pooled estimate of the common variance.
  1. \(\bar x = \dfrac{65}{5} = 13\), \(\bar y = \dfrac{44}{4} = 11\).
  2. \(\sum (x - \bar x)^{2} = 1 + 4 + 4 + 1 + 0 = 10\).
  3. \(\sum (y - \bar y)^{2} = 1 + 4 + 4 + 1 = 10\).
  4. \[s_p^{2} = \frac{10 + 10}{5 + 4 - 2} = \frac{20}{7}\]
Answer: \(s_p^{2} = \frac{20}{7} = 2.86\) (3 s.f.)

Choose the test, then follow the structure.

  • Choose: variances known or samples large: normal test; small samples, unknown variances: 2-sample \(t\)-test.
  • Hypotheses: \(\mathrm{H}_0: \mu_x - \mu_y = k\) with \(\mu_x\), \(\mu_y\) defined in context; one or two tails from the wording.
  • Pool for \(t\) only: \(s_p^{2} = \dfrac{(n_x - 1)s_x^{2} + (n_y - 1)s_y^{2}}{n_x + n_y - 2}\).
  • Statistic: subtract \(k\), divide by the standard error; \(t\) has \(n_x + n_y - 2\) degrees of freedom.
  • Conclude in context, without certainty: 'there is (in)sufficient evidence at the ...% level that ...'.
  • Assumptions for \(t\): independent random samples, normal populations, common variance.

Watch out!

Do not average the two variances, and do not divide by \(n_x + n_y\) or \(n_x + n_y - 1\). Weight each \(s^{2}\) by its own \(n - 1\), and divide by \(n_x + n_y - 2\). If you are given standard deviations, square them first.

Subtract \(k\) in the numerator: testing 'more than 2 minutes' with \(\bar x - \bar y = 3.4\) on top would wildly overstate the evidence. And the degrees of freedom are \(n_x + n_y - 2\), not \(n_x + n_y - 1\) or \(n - 1\) for one sample.

A normal test with \(s^{2}\) in place of \(\sigma^{2}\) needs LARGE samples. With samples of 6 and 8 and unknown variances you must use the 2-sample \(t\)-test, and then you must state the normal and common-variance assumptions.

3Paired samples and intervals for a difference

Syllabus 4.2

Paired data (two measurements on the same subject or on matched subjects) are analysed through the differences \(d\). With \(n\) pairs, \(\bar{d}\) and the unbiased variance \(s_{d}^{2}\) of the differences, test \(H_{0}: \mu_{d} = k\) with \[t = \dfrac{\bar{d} - k}{s_{d}/\sqrt{n}}, \quad n - 1 \text{ degrees of freedom},\] assuming the differences are normally distributed. For two independent samples, a confidence interval for \(\mu_{x} - \mu_{y}\) is \((\bar{x} - \bar{y}) \pm t\,s_{p}\sqrt{\tfrac{1}{n_{x}} + \tfrac{1}{n_{y}}}\) with \(n_{x} + n_{y} - 2\) degrees of freedom, or \((\bar{x} - \bar{y}) \pm z\sqrt{\tfrac{s_{x}^{2}}{n_{x}} + \tfrac{s_{y}^{2}}{n_{y}}}\) when both samples are large.

45 55 65 75 Score Before After −2 −1 0 1 2 3 4 5 6 7 d = after − before 95% interval 1.10 to 4.90 mean d = 3 0 Analyse the 8 differences as one sample: n − 1 = 7 df
Fig. 1: eight students' scores before and after a revision course, each pair joined by a line (green for a rise, orange for a fall). The two columns overlap a lot because students differ, but almost every line rises. Working with the differences d = after - before removes the student-to-student variation: the eight differences have mean 3, and the 95% interval for the mean difference, 1.10 to 4.90, does not contain 0

Worked example: Before and after

Eight students sat a test before and after a revision course. Their scores were:
StudentABCDEFGH
Before5261477058644955
After5560517263655559
Test, at the 5% significance level, whether the course increases the mean score. State a necessary assumption.
  1. Differences \(d = \text{after} - \text{before}\): 3, \(-1\), 4, 2, 5, 1, 6, 4. So \(n = 8\), \(\sum d = 24\), \(\sum d^{2} = 108\).
  2. \(\bar{d} = 3\) and \[s_{d}^{2} = \dfrac{1}{7}\left(108 - \dfrac{24^{2}}{8}\right) = \dfrac{36}{7} = 5.143, \quad s_{d} = 2.268.\]
  3. \(\mu_{d}\) is the population mean increase in score. \(H_{0}: \mu_{d} = 0\), \(H_{1}: \mu_{d} \gt 0\) (one-tailed).
  4. \[t = \dfrac{3 - 0}{2.268/\sqrt{8}} = \dfrac{3}{0.8018} = 3.742.\]
  5. With 7 degrees of freedom, the one-tailed 5% critical value is \(t_{7}(0.95) = 1.895\). Since \(3.742 \gt 1.895\), reject \(H_{0}\).
  6. There is sufficient evidence at the 5% level that the course increases the mean score. Assumption: the differences in score are normally distributed.
Answer: \(t = 3.74 \gt 1.895\): sufficient evidence at the 5% level that the mean score increases; assume the differences are normal

Decide the design, then the distribution.

  • Design: linked values (same or matched subjects) are paired; separate groups are independent.
  • Paired: work with \(d\); \(t = \dfrac{\bar{d} - k}{s_{d}/\sqrt{n}}\) with \(n - 1\) df; assume the differences are normal.
  • Independent, small: pool \(s_{p}^{2}\); \((\bar{x} - \bar{y}) \pm t\,s_{p}\sqrt{\tfrac{1}{n_{x}} + \tfrac{1}{n_{y}}}\) with \(n_{x} + n_{y} - 2\) df.
  • Independent, large: \((\bar{x} - \bar{y}) \pm z\sqrt{\tfrac{s_{x}^{2}}{n_{x}} + \tfrac{s_{y}^{2}}{n_{y}}}\).
  • Conclude in context, without overclaiming: is 0 (or the claimed value) inside the interval, or beyond the critical value?

Watch out!

Do not treat paired data as two independent samples. For the scores above, the before and after columns each vary by more than 20 marks between students, so a two-sample test sees a mean gap of 3 buried in that spread and finds nothing. Pairing removes the student-to-student variation, which is the whole point. Also use \(n - 1\) degrees of freedom where \(n\) is the number of PAIRS (7 here), not \(2n - 2\).

Two slips cost marks here. First, the wrong tail: a 95% interval needs \(t(0.975)\), not the one-tailed 5% value \(t(0.95)\). Second, the wrong degrees of freedom: paired intervals use \(n - 1\) (pairs), pooled intervals use \(n_{x} + n_{y} - 2\). And a 95% interval does not mean 'a 95% probability that \(\mu\) lies in THIS interval': it means 95% of intervals built this way would contain \(\mu\).

Do not pool the variances in the large-sample \(z\) interval: it uses \(\tfrac{s_{x}^{2}}{n_{x}} + \tfrac{s_{y}^{2}}{n_{y}}\) under ONE square root. Adding the two standard errors \(\tfrac{s_{x}}{\sqrt{n_{x}}} + \tfrac{s_{y}}{\sqrt{n_{y}}}\), or forgetting the square root, gives the wrong width. And use \(z\) only when the samples are large or the variances known; for small samples with estimated variances use \(t\).

Back to A-Level Further Maths 9231 contents · (c) 2026 TheLucidSTEM · thelucidstem.com