All revision notes topics

Difference between two means: pooled t-testEdexcel A-Level Further Maths: Revision notes

Section 1

When the pooled test applies

Use the pooled tt-test to compare the means μX\mu_X and μY\mu_Y of two populations when you have two independent random samples, of sizes nXn_X and nYn_Y, and the population variances are unknown but assumed equal. The populations must be Normal. The common variance σ2\sigma^2 is unknown, so it has to be estimated from both samples together. Because σ2\sigma^2 is estimated, the standardised difference follows a tt distribution rather than a Normal distribution.

Key termsindependent samplescommon variance
Common mistake

Using a pooled test for paired data. If each value in one sample is linked to a value in the other, take the differences and use a one-sample test instead.

Section 2

The pooled estimate of variance

Combine the two unbiased sample variances, weighting each by its degrees of freedom: s2=(nX−1)sx2+(nY−1)sy2nX+nY−2.s^2=\frac{(n_X-1)s_x^2+(n_Y-1)s_y^2}{n_X+n_Y-2}. If you are given sums instead of variances, use Sxx=∑x2−(∑x)2nS_{xx}=\sum x^2-\frac{(\sum x)^2}{n}, so that s2=Sxx+SyynX+nY−2s^2=\frac{S_{xx}+S_{yy}}{n_X+n_Y-2}. The pooled value always lies between the two sample variances, nearer to the one from the larger sample.

Key termspooled estimate of variance
Exam tip

Check that your pooled variance lies between sx2s_x^2 and sy2s_y^2. If it does not, you have an arithmetic or formula error.

Section 3

The test statistic and degrees of freedom

Under H0:μX=μYH_0:\mu_X=\mu_Y, T=Xˉ−YˉS1nX+1nY∼tnX+nY−2.T=\frac{\bar{X}-\bar{Y}}{S\sqrt{\frac{1}{n_X}+\frac{1}{n_Y}}}\sim t_{n_X+n_Y-2}. More generally (Xˉ−Yˉ)−(μX−μY)S1/nX+1/nY∼tnX+nY−2\frac{(\bar{X}-\bar{Y})-(\mu_X-\mu_Y)}{S\sqrt{1/n_X+1/n_Y}}\sim t_{n_X+n_Y-2}. The degrees of freedom are nX+nY−2n_X+n_Y-2: one is lost for each sample mean estimated. The denominator s1nX+1nYs\sqrt{\frac1{n_X}+\frac1{n_Y}} is the estimated standard error of Xˉ−Yˉ\bar{X}-\bar{Y}.

Key termstest statisticdegrees of freedomstandard error
Common mistake

Dividing by nX+nY−2n_X+n_Y-2 in the pooled variance but then using nX+nY−1n_X+n_Y-1 degrees of freedom for the critical value. Both use nX+nY−2n_X+n_Y-2.

Section 4

Carrying out the hypothesis test

  1. State H0:μX=μYH_0:\mu_X=\mu_Y and H1H_1 (one-tailed μX>μY\mu_X>\mu_Y or μX<μY\mu_X<\mu_Y, or two-tailed μX≠μY\mu_X\neq\mu_Y).
  2. Find s2s^2, then tt.
  3. Find the critical value of tnX+nY−2t_{n_X+n_Y-2} at the stated significance level (halve the level for two tails).
  4. Compare, and state the conclusion in the context of the question.

Worked example. nX=6n_X=6, xˉ=20.5\bar{x}=20.5, sx2=2.4s_x^2=2.4; nY=8n_Y=8, yˉ=18.9\bar{y}=18.9, sy2=3.1s_y^2=3.1. Test H1:μX>μYH_1:\mu_X>\mu_Y at 5%5\%. s2=5(2.4)+7(3.1)12=2.808s^2=\frac{5(2.4)+7(3.1)}{12}=2.808, so t=1.62.808(16+18)=1.77t=\frac{1.6}{\sqrt{2.808(\frac16+\frac18)}}=1.77. The critical value of t12t_{12} is 1.7821.782. As 1.77<1.7821.77<1.782, do not reject H0H_0: insufficient evidence that μX>μY\mu_X>\mu_Y.

Key termsnull hypothesiscritical value
Exam tip

Write the conclusion as a sentence about the real situation, such as 'evidence that fertiliser XX gives a higher mean yield', not just 'reject H0H_0'.

Section 5

Confidence interval for the difference

A (1−α)(1-\alpha) confidence interval for μX−μY\mu_X-\mu_Y is (xˉ−yˉ)±tnX+nY−2  s1nX+1nY,(\bar{x}-\bar{y})\pm t_{n_X+n_Y-2}\;s\sqrt{\frac{1}{n_X}+\frac{1}{n_Y}}, where tt is the two-tailed critical value (for 95%95\%, the upper 2.5%2.5\% point). Using the worked example's data with t12=2.179t_{12}=2.179: 1.6±2.179×0.905=(−0.37, 3.57)1.6\pm2.179\times0.905=(-0.37,\ 3.57). If the interval contains 00, there is no evidence of a difference in means at the corresponding significance level; if it does not, there is.

Key termsconfidence interval
Common mistake

Using the one-tailed critical value for a confidence interval. Intervals are two-sided, so use the point leaving α/2\alpha/2 in each tail.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Difference between two means: pooled t-test

  1. Independent random samples are taken from two Normal populations whose variances are equal but unknown. Sample XX has size 1010 and sample variance sx2=3.6s_x^2=3.6. Sample YY has size 1212 and sample variance sy2=6.0s_y^2=6.0. The pooled estimate of the common variance is s2s^2.
    Find the estimated standard error of Xˉ−Yˉ\bar{X}-\bar{Y}, that is s110+112s\sqrt{\frac{1}{10}+\frac{1}{12}}, to 3 significant figures.2 marks
  2. A pooled tt test of H0:μX=μYH_0:\mu_X=\mu_Y is carried out using independent random samples of sizes nX=6n_X=6 and nY=9n_Y=9 from two Normal populations. The sample means are xˉ=52.4\bar{x}=52.4 and yˉ=49.1\bar{y}=49.1, and the pooled estimate of the common variance is s2=11.7s^2=11.7. The test is two-tailed at the 5%5\% significance level.
    Calculate the value of the test statistic.2 marks
  3. Students solve the same puzzle using one of two methods. Eight students use method A, with times xx seconds, where ∑x=96\sum x=96 and ∑x2=1180\sum x^2=1180. Ten different students use method B, with times yy seconds, where ∑y=150\sum y=150 and ∑y2=2310\sum y^2=2310. Times for each method may be assumed to be Normally distributed with a common variance.
    Find the pooled estimate of the common variance of the two populations.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).