The shape of the lesson
By the end of the lesson, learners can
- The paired sample t-test: Two samples are paired when each value in one is naturally linked to exactly one value in the other: the same person measured before and after a treatment, the left and right hand of the same person, two methods applied to the same specimen, or twins split between two groups.
- Confidence intervals for a difference: A confidence interval answers 'how big is the difference?', not just 'is there one?'.
- Large samples and choosing the right method: When both samples are large (as a guide, each of size 30 or more), the Central Limit Theorem makes \(\bar{X} - \bar{Y}\) approximately normal whatever the populations, and the sample variances are reliable estimates of the population variances.
- 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?
One picture every idea returns to
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.
Forty-five minutes, phase by phase
| Time | Phase | What happens in the room | Grouping |
|---|---|---|---|
| 0 to 5 min | Hook: predict | Open with the question in the title, Same subjects twice? Test the differences.. When every value in one sample is matched to a value in the other (the same people before and after, twins, the same plots with two fertilisers), the samples are not independent. Put the figure on the board: it is the one picture every idea in the lesson returns to. | Whole class, then pairs |
| 5 to 13 min | Teach and check: The paired sample t-test | Two samples are paired when each value in one is naturally linked to exactly one value in the other: the same person measured before and after a treatment, the left and right hand of the same person, two methods applied to the same specimen, or twins split between two groups. Project tab 1 of the lab (Distributions lab, t versus normal) and let a student drive it while the class predicts. Model the worked example Before and after on the board, one line at a time. Your turn: Sixteen pairs give differences with \(\bar{d} = 1.8\) and \(s_{d} = 2.4\). Test \(H_{0}: \mu_{d} = 0\) against \(H_{1}: \mu_{d} \ne 0\) at the 5% level. | Whole class, then pairs |
| 13 to 21 min | Teach and check: Confidence intervals for a difference | A confidence interval answers 'how big is the difference?', not just 'is there one?'. Model the worked example Interval from paired data on the board, one line at a time. Your turn: Ten pairs give \(\bar{d} = 2.6\) and \(s_{d} = 1.5\). Find a 99% confidence interval for \(\mu_{d}\). | Pairs |
| 21 to 30 min | Teach and check: Large samples and choosing the right method | When both samples are large (as a guide, each of size 30 or more), the Central Limit Theorem makes \(\bar{X} - \bar{Y}\) approximately normal whatever the populations, and the sample variances are reliable estimates of the population variances. Model the worked example Large-sample normal interval on the board, one line at a time. | Numbered Heads Together |
| 30 to 36 min | Check | The four Stage 1 questions from the student lesson, answered on mini whiteboards or by show of fingers. Re-teach the one most get wrong. | Individual, then whole class |
| 36 to 43 min | Plenary | The exam-style questions from Stage 2, one at a time: thirty seconds alone, then a random call. The feedback lines in the key give the examiner's wording. | Individual, random call |
| 43 to 45 min | Exit and homework | Set the worksheet below (6 questions, 33 marks). Learners self-assess against the objectives before they leave. | Individual |
Protect the parts that carry the learning
The sequence carries about fifty minutes of material, so the lab is driven by one student while the class predicts rather than explored freely. Times are a guide.
Protected: the check at 30 minutes. It is the only individual read on whether the key idea landed, and it is not cut.
Cut first if the build overruns: the last check in Large samples and choosing the right method, never the check or the plenary.
In a 60 minute block: run worksheet questions 1 to 3 in class as a Rally Coach set and model both the hardest worked example and its check live.
Numbered Heads Together
Teams of four number off. Put up a question, give the team time to make sure every member can answer, then call a number: that student answers for the team, so nobody can leave the thinking to someone else.
The full structure, with its PIES check and a worked example for every subject, is on the cooperative-learning page, one of fifteen structures there.
What to head off, and how
| Trap learners fall into | Teaching move that pre-empts it |
|---|---|
| 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\). |
Paired samples and intervals for a difference: worksheet
6 questions, 33 marks. Written in the style of the papers; no past paper question is reproduced.
For each study, state whether a paired t-test or a two-sample t-test is appropriate, with a reason.
(a) The reaction times of 15 drivers are measured before and after drinking coffee.
(b) The battery lives of 8 phones of brand X and 10 phones of brand Y are recorded.
(c) Each of 12 pairs of identical twins is split, one twin following diet A and the other diet B.
Six volunteers' reaction times (ms) were measured without and with a caffeine drink:
| Volunteer | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| Without | 312 | 298 | 305 | 321 | 290 | 307 |
| With | 301 | 295 | 298 | 315 | 292 | 299 |
Test, at the 5% significance level, whether caffeine reduces the mean reaction time. State any assumption you make.
Twelve students each took two versions of a mental arithmetic test. The improvement \(d\) (second score minus first) gave \(\sum d = 54\) and \(\sum d^{2} = 330\).
(a) Find a 90% confidence interval for the population mean improvement, assuming the improvements are normally distributed.
(b) The test designer claims that the mean improvement is 6. Comment.
Eight bolts from machine X have mean length \(\bar{x} = 15.6\) mm with \(\sum(x - \bar{x})^{2} = 21.0\). Seven bolts from machine Y have \(\bar{y} = 13.1\) mm with \(\sum(y - \bar{y})^{2} = 18.0\).
(a) Assuming normal populations with a common variance, find a 99% confidence interval for \(\mu_{X} - \mu_{Y}\).
(b) Is there evidence, at the 1% level, of a difference in mean length?
Large independent samples from two populations give the 95% confidence interval \((1.2,\ 4.8)\) for \(\mu_{1} - \mu_{2}\), calculated using a normal distribution.
(a) Find \(\bar{x}_{1} - \bar{x}_{2}\) and the standard error used.
(b) Find the 99% confidence interval from the same data, and state whether it supports a difference in the means.
(c) Explain why a normal distribution is appropriate even though the populations are not known to be normal.
A tutoring company claims that its course raises pupils' marks by more than 5 on average. Nine pupils took a test before and after the course; the increases \(d\) gave \(\sum d = 54\) and \(\sum d^{2} = 380\).
(a) Explain why a paired test is appropriate here and state the assumption needed.
(b) Test the company's claim at the 5% significance level.
(c) Find a 95% confidence interval for the mean increase and explain how it relates to your answer to (b).
Answer key and marking notes
- (a) Paired: each driver gives two linked times, so analyse the 15 differences.
- (b) Two-sample: the phones are different and the samples are independent (and of different sizes, so pairing is impossible).
- (c) Paired: twins are matched subjects, so each twin pair gives one difference (A minus B).
- \(d = \text{without} - \text{with}\): 11, 3, 7, 6, \(-2\), 8. \(\sum d = 33\), \(\sum d^{2} = 283\), \(\bar{d} = 5.5\).
- \[s_{d}^{2} = \dfrac{1}{5}\left(283 - \dfrac{33^{2}}{6}\right) = \dfrac{101.5}{5} = 20.3, \quad s_{d} = 4.506.\]
- \(\mu_{d}\) = population mean reduction in reaction time (ms). \(H_{0}: \mu_{d} = 0\), \(H_{1}: \mu_{d} \gt 0\).
- \[t = \dfrac{5.5}{4.506/\sqrt{6}} = \dfrac{5.5}{1.839} = 2.990.\]
- \(t_{5}(0.95) = 2.015\). \(2.990 \gt 2.015\), so reject \(H_{0}\).
- There is sufficient evidence at the 5% level that caffeine reduces the mean reaction time, assuming the differences are normally distributed.
- (a) \(\bar{d} = 4.5\), \[s_{d}^{2} = \dfrac{1}{11}\left(330 - \dfrac{54^{2}}{12}\right) = \dfrac{87}{11} = 7.909, \quad s_{d} = 2.812.\]
- 11 degrees of freedom: \(t_{11}(0.95) = 1.796\). Standard error \(\dfrac{2.812}{\sqrt{12}} = 0.8118\).
- \(4.5 \pm 1.796 \times 0.8118 = 4.5 \pm 1.458\), giving \((3.04,\ 5.96)\).
- (b) 6 lies just above the upper limit 5.96, so at the 10% level the data are not consistent with a mean improvement of 6: there is some evidence that it is less than 6, though only just.
- (a) Independent samples, so pool: \[s_{p}^{2} = \dfrac{21.0 + 18.0}{8 + 7 - 2} = \dfrac{39}{13} = 3, \quad s_{p} = 1.732.\]
- \(\sqrt{\tfrac{1}{8} + \tfrac{1}{7}} = 0.5175\), so the standard error is \(1.732 \times 0.5175 = 0.8964\).
- 13 degrees of freedom: \(t_{13}(0.995) = 3.012\). \(2.5 \pm 3.012 \times 0.8964 = 2.5 \pm 2.700\), giving \((-0.200,\ 5.20)\) mm.
- (b) 0 lies inside the interval, so there is insufficient evidence at the 1% level of a difference in mean length (a two-tailed 1% test would not reject \(\mu_{X} = \mu_{Y}\)).
- (a) The centre is \(\tfrac{1.2 + 4.8}{2} = 3.0\). The half-width is \(1.8 = 1.96 \times \text{s.e.}\), so \(\text{s.e.} = \dfrac{1.8}{1.96} = 0.9184\).
- (b) \(3.0 \pm 2.576 \times 0.9184 = 3.0 \pm 2.366\), giving \((0.634,\ 5.37)\).
- 0 is still outside, so even at the 1% level the data support a difference between the means (with \(\mu_{1} \gt \mu_{2}\)).
- (c) The samples are large, so by the Central Limit Theorem \(\bar{X}_{1} - \bar{X}_{2}\) is approximately normal, and the sample variances are close enough to the population variances to be used in place of them.
- (a) Each pupil gives a before and an after mark, so the two sets are linked and not independent; analysing the differences removes the variation in ability between pupils. Assume the increases are normally distributed.
- (b) \(\bar{d} = 6\), \[s_{d}^{2} = \dfrac{1}{8}\left(380 - \dfrac{54^{2}}{9}\right) = \dfrac{56}{8} = 7, \quad s_{d} = 2.646.\]
- \(\mu_{d}\) = population mean increase in mark. \(H_{0}: \mu_{d} = 5\), \(H_{1}: \mu_{d} \gt 5\).
- \[t = \dfrac{6 - 5}{2.646/3} = \dfrac{1}{0.8819} = 1.134.\]
- \(t_{8}(0.95) = 1.860\). \(1.134 \lt 1.860\), so do not reject \(H_{0}\): there is insufficient evidence at the 5% level that the mean increase is more than 5 marks.
- (c) \(t_{8}(0.975) = 2.306\): \(6 \pm 2.306 \times 0.8819 = 6 \pm 2.034\), giving \((3.97,\ 8.03)\).
- The interval contains 5 and values below it, so a mean increase of 5 or less is consistent with the data, matching (b). It lies wholly above 0, so the course does seem to raise marks; the data just cannot confirm the 'more than 5' claim.
8 multiple-choice questions on this lesson
From the topic question bank. Assign them in the app for a marked score in your gradebook, or run the topic as a class game.
Five patients have a reading taken before and after a treatment. Before: 72, 65, 80, 58, 69. After: 76, 66, 85, 63, 70. Find the paired t statistic for \(\mathrm{H}_0: \mu_d = 0\), where \(d\) = after minus before.
- A\(t = 3.90\)
- B\(t = 3.12\)
- C\(t = 1.56\)
- D\(t = 3.49\)
A paired sample t-test is carried out on 9 pairs of measurements. Which assumption does the test need?
- AThe number of pairs is at least 30
- BBoth populations are normal with a common variance
- CThe two samples are independent of each other
- DThe differences come from a normal distribution
Twelve pairs give differences with \(\bar{d} = 1.6\) and \(s_{d} = 2.0\) (unbiased). Assuming the differences are normal, find a 95% confidence interval for \(\mu_{d}\).
- A\((0.27,\ 2.93)\)
- B\((0.34,\ 2.86)\)
- C\((0.33,\ 2.87)\)
- D\((0.47,\ 2.73)\)
Independent samples from normal populations with a common variance: \(n_x = 5\), \(\bar{x} = 18.4\), \(s_x^{2} = 3.0\); \(n_y = 7\), \(\bar{y} = 15.9\), \(s_y^{2} = 4.2\). Find a 95% confidence interval for \(\mu_x - \mu_y\).
- A\((0.04,\ 4.96)\)
- B\((0.29,\ 4.71)\)
- C\((0.06,\ 4.94)\)
- D\((-0.02,\ 5.02)\)
A tutor claims that a revision course raises scores by more than 1.5 marks on average. Nine students' gains \(d\) (after minus before) give \(\sum d = 27\) and \(\sum d^{2} = 113\). Assuming gains are normal, test the claim at the 5% level. Which is correct?
- A\(t = 2.25 > 1.860\): reject \(\mathrm{H}_0\); evidence that the mean gain exceeds 1.5
- B\(t = 4.50 > 1.860\): reject \(\mathrm{H}_0\); evidence that the mean gain exceeds 1.5
- C\(t = 2.25 < 2.896\): do not reject \(\mathrm{H}_0\); insufficient evidence that the mean gain exceeds 1.5
- D\(t = 2.25 < 2.306\): do not reject \(\mathrm{H}_0\); insufficient evidence that the mean gain exceeds 1.5
Independent random samples of 100 from population \(A\) and 80 from population \(B\) give \(\bar{a} = 54.3\), \(s_a^{2} = 64\) and \(\bar{b} = 50.1\), \(s_b^{2} = 72\). Find a 99% confidence interval for \(\mu_A - \mu_B\).
- A\((1.00,\ 7.40)\)
- B\((1.77,\ 6.63)\)
- C\((-0.30,\ 8.70)\)
- D\((3.72,\ 4.68)\)
A 90% confidence interval for a mean difference \(\mu_{d}\), from 10 pairs with normal differences, is \((0.42,\ 3.18)\). Find \(\bar{d}\) and the unbiased \(s_{d}\).
- A\(\bar{d} = 1.8,\ s_{d} = 4.76\)
- B\(\bar{d} = 1.8,\ s_{d} = 2.65\)
- C\(\bar{d} = 1.8,\ s_{d} = 2.38\)
- D\(\bar{d} = 1.8,\ s_{d} = 2.41\)
Samples of 8 from each of two normal populations with a common variance give \(\bar{x} = 63.5\), \(s_x^{2} = 20\), \(\bar{y} = 55.2\), \(s_y^{2} = 16\). A coach claims \(\mu_x - \mu_y = 14\). Using a 99% confidence interval for \(\mu_x - \mu_y\), which is correct?
- A\((1.99,\ 14.61)\); 14 is inside, so no evidence at the 1% level against the claim
- B\((3.75,\ 12.85)\); 14 is outside, so evidence at the 1% level against the claim
- C\((2.84,\ 13.76)\); 14 is outside, so evidence at the 1% level against the claim
- D\((1.99,\ 14.61)\); 14 is inside, so the claim is shown to be true
Quiz key
Differences 4, 1, 5, 5, 1: \(\bar{d} = 3.2\), \(s_{d}^{2} = \dfrac{68 - 5(3.2)^{2}}{4} = 4.2\), \(s_{d} = 2.049\). \(t = \dfrac{3.2}{2.049/\sqrt{5}} = 3.49\). \(3.90\) uses the divisor \(n\) for the variance. \(3.12\) divides \(s_{d}\) by \(\sqrt{n - 1} = 2\). \(1.56\) forgets the \(\sqrt{n}\), computing \(\bar{d}/s_{d}\).
The paired test is a one-sample t-test on the differences, so it needs the differences to be (a sample from) a normal distribution. A common variance is the condition for the pooled 2-sample test, not the paired one. Paired samples are NOT independent; each pair is linked. A large sample would allow a z-approach, but the t-test is designed for small samples.
With \(t_{11} = 2.201\): \(1.6 \pm 2.201 \times \dfrac{2.0}{\sqrt{12}} = 1.6 \pm 1.271\), giving \((0.33,\ 2.87)\). \((0.34,\ 2.86)\) uses \(\nu = 12\) (\(t = 2.179\)). \((0.47,\ 2.73)\) uses the normal value 1.96. \((0.27,\ 2.93)\) divides by \(\sqrt{11}\) instead of \(\sqrt{12}\).
\(s_p^{2} = \dfrac{4(3.0) + 6(4.2)}{10} = 3.72\). Standard error \(\sqrt{3.72(1/5 + 1/7)} = 1.129\). With \(t_{10} = 2.228\): \(2.5 \pm 2.52\), giving \((-0.02,\ 5.02)\). \((0.04,\ 4.96)\) uses \(\nu = 12\) (\(t = 2.179\)). \((0.29,\ 4.71)\) uses the normal value 1.96. \((0.06,\ 4.94)\) does not pool, using \(\sqrt{3.0/5 + 4.2/7}\).
\(\bar{d} = 3\), \(s_{d}^{2} = \dfrac{113 - 9(9)}{8} = 4\), \(s_{d} = 2\). \(t = \dfrac{3 - 1.5}{2/\sqrt{9}} = 2.25\). One-tailed 5% with \(\nu = 8\): 1.860, so reject \(\mathrm{H}_0\). The second option uses the two-tailed value 2.306. The third uses the 1% one-tailed value 2.896. The fourth tests \(\mu_{d} = 0\), forgetting to subtract the claimed 1.5.
Standard error \(\sqrt{0.64 + 0.9} = 1.241\). \(4.2 \pm 2.576 \times 1.241 = 4.2 \pm 3.20\), giving \((1.00,\ 7.40)\). \((1.77,\ 6.63)\) uses the 95% value 1.96. \((-0.30,\ 8.70)\) adds the two standard errors \(0.8 + 0.949\) instead of the variances. \((3.72,\ 4.68)\) divides each standard deviation by \(n\) instead of each variance.
\(\bar{d} = \dfrac{0.42 + 3.18}{2} = 1.8\); half-width 1.38. With \(t_{9} = 1.833\): \(s_{d} = \dfrac{1.38\sqrt{10}}{1.833} = 2.38\). \(2.65\) uses the normal value 1.645. \(2.41\) uses \(\nu = 10\) (\(t = 1.812\)). \(4.76\) uses the full width 2.76 as the margin.
\(s_p^{2} = \dfrac{7(20) + 7(16)}{14} = 18\), standard error \(\sqrt{18(1/8 + 1/8)} = 2.121\). With \(t_{14} = 2.977\): \(8.3 \pm 6.31\), giving \((1.99,\ 14.61)\). 14 is inside, so the claim is not contradicted at the 1% level. \((2.84,\ 13.76)\) uses the normal value 2.576. \((3.75,\ 12.85)\) uses the 95% value 2.145. The last option has the right interval but treats a value inside it as proved, when it is only plausible.
What to project
The student lesson embeds these tabs. Open them full screen on the projector; every slider has a drag handle on the stage.
Slides for this lesson
A projectable deck for every pack is on the way. Until then, present the student lesson full screen: its sections, figure and lab tabs follow the same order as the plan above.