The Paired
\(t\)-Test
Learn how to compare two related measurements from the same subjects using the paired \(t\)-test: the go-to method for matched data.
What Is Paired Data?
Paired data arises when each observation in one group has a natural partner in the other group. The two measurements are linked because they come from the same subject or a deliberately matched pair.
Why Pairing Matters
Each person has their own baseline: some people naturally have high blood pressure, others low. By computing differences within each pair, we remove that between-subject variability and isolate the treatment effect.
The Key Idea: Reduce to One Sample
For each pair \(i\), compute the difference:
Now we have a single sample of differences \(d_1, d_2, \ldots, d_n\). The paired \(t\)-test is simply a one-sample \(t\)-test on these differences, testing whether the mean difference \(\mu_d\) equals zero.
Setting Up the Hypotheses
The mean difference is zero: no effect.
The mean difference is not zero.
The Paired \(t\) Statistic
Visualizing the \(t\)-Distribution
Assumptions of the Paired \(t\)-Test
Paired vs. Independent \(t\)-Test
| Paired \(t\)-Test | Independent \(t\)-Test | |
|---|---|---|
| Design | Same subjects, two conditions | Two separate groups |
| Data used | Differences \(d_i\) | Raw scores in each group |
| Degrees of freedom | \(n - 1\) | Approx. \(n_1 + n_2 - 2\) |
| Controls for | Subject variability | Nothing (assumes equal var.) |
| Power | Often higher (less noise) | Lower if subjects vary a lot |
How to Apply the Paired \(t\)-Test
Example 1: Blood Pressure Study
Five patients had their systolic blood pressure measured before and after a new medication. Test at \(\alpha = 0.05\) whether the drug significantly reduces blood pressure.
| Patient | Before | After | \(d_i\) |
|---|---|---|---|
| 1 | 142 | 138 | -4 |
| 2 | 150 | 140 | -10 |
| 3 | 135 | 132 | -3 |
| 4 | 148 | 143 | -5 |
| 5 | 160 | 152 | -8 |
Example 1: Calculation
Example 2: Reaction Time Study
Eight athletes had their reaction time (ms) measured before and after a caffeine supplement. Test at \(\alpha = 0.05\) (two-sided) whether caffeine changes reaction time.
| Athlete | Before | After | \(d_i\) |
|---|---|---|---|
| 1 | 230 | 215 | -15 |
| 2 | 245 | 238 | -7 |
| 3 | 220 | 210 | -10 |
| 4 | 260 | 250 | -10 |
| 5 | 235 | 228 | -7 |
| 6 | 250 | 245 | -5 |
| 7 | 215 | 218 | +3 |
| 8 | 240 | 230 | -10 |
Example 2: Solution
Confidence Interval for \(\mu_d\)
Beyond hypothesis testing, we can estimate how large the true mean difference is:
Using Example 1: \(\bar{d} = -6.0\), \(s_d = 2.915\), \(n = 5\), and \(t^*_{0.025,4} = 2.776\):
Common Mistakes
Question 1 of 5
In a paired \(t\)-test with 12 pairs, how many degrees of freedom does the test have?
Question 2 of 5
Given \(\bar{d} = 3.2\), \(s_d = 4.0\), and \(n = 16\) pairs, what is the paired \(t\) statistic?
Question 3 of 5
A researcher measures the weight of 20 participants before and after a diet program. Which test is most appropriate?
Question 4 of 5
The 95% confidence interval for \(\mu_d\) is \((-1.5, \; 4.3)\). What can you conclude at \(\alpha = 0.05\)?
Question 5 of 5
Which assumption is most critical for the paired \(t\)-test when the sample size is small (e.g., \(n = 8\))?