All revision notes topics

Tests for the difference between two Normal meansEdexcel A-Level Further Maths: Revision notes

Section 1

The distribution of the difference of two sample means

Take independent random samples X1,…,XnxX_1,\ldots,X_{n_x} from N(μx,σx2)\mathrm{N}(\mu_x,\sigma_x^2) and Y1,…,YnyY_1,\ldots,Y_{n_y} from N(μy,σy2)\mathrm{N}(\mu_y,\sigma_y^2). Then Xˉ∼N(μx,σx2nx)\bar X\sim\mathrm{N}\left(\mu_x,\frac{\sigma_x^2}{n_x}\right) and Yˉ∼N(μy,σy2ny)\bar Y\sim\mathrm{N}\left(\mu_y,\frac{\sigma_y^2}{n_y}\right). The difference of independent Normal variables is Normal, with the means subtracted but the variances added:Xˉ−Yˉ∼N(μx−μy, σx2nx+σy2ny).\bar X-\bar Y\sim\mathrm{N}\left(\mu_x-\mu_y,\ \frac{\sigma_x^2}{n_x}+\frac{\sigma_y^2}{n_y}\right).

Key termsdifference of meansindependent samples
Common mistake

Subtracting the variances. Variances always add for a difference of independent variables.

Section 2

The test with known variances

Under H0:μx=μyH_0:\mu_x=\mu_y, the test statistic isZ=(Xˉ−Yˉ)−(μx−μy)σx2nx+σy2ny∼N(0,1),Z=\frac{(\bar X-\bar Y)-(\mu_x-\mu_y)}{\sqrt{\frac{\sigma_x^2}{n_x}+\frac{\sigma_y^2}{n_y}}}\sim\mathrm{N}(0,1), with μx−μy=0\mu_x-\mu_y=0 under H0H_0. Method: 1. state H0H_0 and H1H_1 in terms of population means; 2. calculate zz; 3. compare with the critical value, or find the pp-value; 4. conclude in context. Example: nx=20n_x=20, σx2=9\sigma_x^2=9, xˉ=52.8\bar x=52.8; ny=30n_y=30, σy2=16\sigma_y^2=16, yˉ=51.2\bar y=51.2. Standard error =0.45+0.5333=0.992=\sqrt{0.45+0.5333}=0.992, z=1.60.992=1.61z=\frac{1.6}{0.992}=1.61.

Key termstest statisticnull hypothesis
Common mistake

Writing hypotheses with xˉ\bar x and yˉ\bar y. Hypotheses are always about population means μx\mu_x and μy\mu_y.

Section 3

One-tailed and two-tailed tests

Choose the alternative from the wording. 'Differ' or 'is different' gives two-tailed H1:μx≠μyH_1:\mu_x\ne\mu_y, with the significance level split between both tails (critical values ±1.96\pm1.96 at 5%5\%). 'Greater' or 'larger' gives one-tailed H1:μx>μyH_1:\mu_x>\mu_y (critical value 1.6451.645 at 5%5\%, 2.3262.326 at 1%1\%). For a two-tailed test double the tail probability to get the pp-value. Reject H0H_0 if p<p< the significance level. Always write the conclusion in context, as evidence for or against, never as proof: 'there is insufficient evidence that ...' rather than 'the means are the same'.

Key termsone-tailedtwo-tailedp-value
Exam tip

Look for direction words in the question before choosing H1H_1. If there is no direction, use a two-tailed test.

Section 4

Unknown variances and large samples

When the population variances are unknown, replace σx2\sigma_x^2 and σy2\sigma_y^2 by the sample variances sx2s_x^2 and sy2s_y^2. For large samples the Central Limit Theorem says Xˉ−Yˉ\bar X-\bar Y is approximately Normal, even if the populations are not Normal, and s2s^2 is close to σ2\sigma^2, soZ=(Xˉ−Yˉ)−(μx−μy)Sx2nx+Sy2ny≈N(0,1).Z=\frac{(\bar X-\bar Y)-(\mu_x-\mu_y)}{\sqrt{\frac{S_x^2}{n_x}+\frac{S_y^2}{n_y}}}\approx\mathrm{N}(0,1).Example: n1=60n_1=60, s12=18.4s_1^2=18.4, xˉ1=24.6\bar x_1=24.6; n2=75n_2=75, s22=22.5s_2^2=22.5, xˉ2=23.1\bar x_2=23.1. Standard error =0.3067+0.3=0.779=\sqrt{0.3067+0.3}=0.779, z=1.50.779=1.93<1.96z=\frac{1.5}{0.779}=1.93<1.96, so a two-tailed 5%5\% test does not reject H0H_0 (p=0.054p=0.054).

Key termsCentral Limit Theoremlarge sample
Exam tip

Quote the Central Limit Theorem and the large samples when you use sample variances in place of population variances.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Tests for the difference between two Normal means

  1. Independent random samples are taken from two Normal populations. Sample XX: nx=20n_x=20, xˉ=52.8\bar x=52.8, population variance σx2=9\sigma_x^2=9. Sample YY: ny=30n_y=30, yˉ=51.2\bar y=51.2, population variance σy2=16\sigma_y^2=16. Both variances are known.
    Test, at the 5%5\% significance level, whether the mean of XX is greater than the mean of YY. State your conclusion in context.2 marks
  2. Reaction times, in milliseconds, are measured for two independent groups, AA and BB. Each reaction time is Normally distributed with standard deviation 4040. Group AA has 3636 people with mean time 312312. Group BB has 4949 people with mean time 298298. A researcher tests whether the mean reaction times of the two populations differ, at the 5%5\% level.
    State the conclusion of the test, with a reason, in context.2 marks
  3. Two classes take the same task. The times, in minutes, are not assumed to be Normal and the population variances are unknown. Class 11: n1=60n_1=60, xˉ1=24.6\bar x_1=24.6, s12=18.4s_1^2=18.4. Class 22: n2=75n_2=75, xˉ2=23.1\bar x_2=23.1, s22=22.5s_2^2=22.5. The teacher tests whether the population mean times differ.
    Calculate the value of the test statistic for H0:μ1=μ2H_0:\mu_1=\mu_2.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).