Paired t-Test — Definition, Formula & Example
The paired t-test is a hypothesis test for data that come in matched pairs, such as before-and-after measurements on the same people. You subtract within each pair and then test whether the average difference is zero.
Let for be paired observations with differences . Assume the differences are independent draws from an approximately normal population with mean . The paired t-test tests (usually ) with the statistic . Under , this statistic follows a t-distribution with degrees of freedom, exactly when the differences are normal and approximately otherwise.
Key Formula
Where:
- = mean of the paired differences
- = hypothesized mean difference, usually 0
- = sample standard deviation of the differences
- = number of pairs (not the total number of measurements)
- = degrees of freedom for the t-distribution
Worked Example
Problem: Five people follow a 6-week fitness program. Their weights in pounds before and after the program are: Person A 180 and 178, B 165 and 161, C 200 and 197, D 150 and 145, E 172 and 171. At the 0.05 significance level (two-tailed), is there evidence that mean weight changed?
Step 1: Use the hypotheses and . For each person, compute the difference . Then find the mean difference.
Step 2: Find the standard deviation of the differences. The deviations from 3 are −1, 1, 0, 2, and −2.
Step 3: Compute the t-statistic with and pairs.
Step 4: Compare the statistic to the critical value. With 4 degrees of freedom, the two-tailed critical value at the 0.05 level is about 2.776. Since 4.243 > 2.776, you reject .
Answer: Reject the null hypothesis. With t ≈ 4.243 and 4 degrees of freedom, there is significant evidence at the 0.05 level that mean weight changed. On average, participants lost 3 pounds.
Why It Matters
Matched-pairs designs are a core topic in AP Statistics. They are also standard in medical research, where each patient is measured before and after a treatment. Pairing removes person-to-person variation, so a small but consistent effect can be detected with only a few subjects.
Common Mistakes
Mistake: Analyzing before-and-after data as two independent samples with a two-sample t-test.
Correction: The two columns describe the same people, so they are not independent. In the example, body weights range from 145 to 200 pounds, and that spread would hide the steady 3-pound change. Always subtract within each pair first, then run a one-sample test on the differences using degrees of freedom, where is the number of pairs.
