Paired and Two-Sample t-Tests with a Pooled Variance | Cambridge A Level Maths notes

Free preview: Paired and Two-Sample t-Tests with a Pooled Variance

Paired Data: Why We Test the Differences

9231 Paper 4: Further Probability & Statistics

Let's start with an example. Eight students sit a test, have a revision session, then sit a similar test. Did the session help?

Student12345678
Before6255714866597452
After6658705571607957
d = after โˆ’ before43โˆ’175155
  • The two lists are not independent: a strong student scores well both times, a weaker one lower both times.
  • The data are paired: each "before" value belongs with one "after" value.
  • So we work with one list: the differences d for each student. This removes the student-to-student variation, which has nothing to do with the session.

Here's why that matters. The scores range from 48 to 79, a spread of over 30 marks. The effect we're looking for is a few marks. If we compare the two lists as separate groups, the big spread between students drowns the small gain.

Diagram: Each panel shows the 8 students' scores before and after the session.

What the picture shows

  • Each panel shows the 8 students' scores before and after the session.
  • Wrong: as two separate samples, the means are 60.9 and 64.5 but the scores are so spread out that t is only 0.83.
  • Right: joining each student's two scores shows 7 of the 8 going up. The differences have mean 3.625 and t = 4.005.
  • Pairing removes the student-to-student spread, so the real gain shows up.
  • Now it is a one-sample t-test on d, with H0:μd=0.

t=d¯−μdsd/n,ν=n−1

  • n is the number of pairs (here 8), not the number of values (16).
  • Assumption: the differences are Normally distributed. (The scores themselves need not be.)

๐Ÿ’ก In plain words

  • Same people twice? Subtract, then do a one-sample t-test on the differences.
  • Keep the subtraction the same way round for every pair, and match H1 to it.

โœ๏ธ YOUR TURN 1

Try this first:

Is each data set paired or two independent samples? (a) The reaction times of 10 drivers, sober and after one drink. (b) The heights of 12 boys and 12 girls in a class. (c) The yields of 6 plots, each split in half with a different fertiliser on each half.

Answer:

  1. Paired: the same drivers twice.
  2. Independent: different children, with no natural link between a boy and a girl.
  3. Paired: each plot gives a matched pair of halves.

The Paired t-Test Step by Step

Method: paired t-test

  1. Subtract within each pair, the same way round every time (e.g. after โˆ’ before).
  2. Hypotheses about μd, the mean difference for the whole population: H0:μd=0.
  3. Assume the differences are Normal.
  4. Find d¯ and sd from the differences (divisor n โˆ’ 1).
  5. t =d¯sd/n, compare with tn−1, conclude in context.

๐Ÿ‘€ Watch me do it: did the revision session raise the mean score? Test at 1%

What I writeWhy I do it
d = after โˆ’ before: 4, 3, โˆ’1, 7, 5, 1, 5, 5Step 1: positive d means improvement.
H0:μd=0, H1:μd>0, where μd is the mean improvement for all studentsStep 2: "raise" means one-tailed, upper.
Assume the differences are NormalStep 3.
∑d=29, ∑d2=151, d¯=3.625Step 4.
Sdd=151−2928=45.875, sd2=45.8757=6.554, sd=2.560Divisor 7.
t=3.6252.560/8=4.005Step 5.
Upper 1%, ν=7: 2.998. 4.005>2.998, so reject H0n = 8 pairs, so 7 degrees of freedom.
There is evidence at the 1% level that the session raises the mean scoreIn context.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in ยท Subscribe ยท Start free trial

All notes in Inference using normal and t-distributions (4.2)

  1. Large-Sample Confidence Intervals, Sample Size and Differences of Means
  2. Testing for a Difference Between Two Population Means
  3. Student's t-Distribution and t-Intervals for a Mean
  4. The One-Sample t-Test for a Mean
  5. Paired and Two-Sample t-Tests with a Pooled Variance

What's inside for this topic

5 teacher notes, 110 practice questions, 38 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp ยท Try one live lesson

Previous note: The One-Sample t-Test for a Mean

All Cambridge A Level Maths topics ยท A Level Maths