- Introduced by
- Student (W. S. Gosset)
- Year
- 1908
- Type
- Parametric mean comparison
- Family
- Classical statistics
What does it do?
The paired samples t-test is a parametric hypothesis test that compares the means of two related measurements taken from the same subjects or from matched pairs, asking whether the average within-pair difference differs from zero.
Because it works with difference scores, it can be more powerful than the independent-samples test when the paired measurements are positively correlated. Its validity rests on the distribution of those differences rather than on the raw scores.
The intuition behind the method
Imagine measuring each participant's blood pressure before and after a treatment. Because both measurements come from the same person, knowing one score tells you something about the other. The paired t-test removes this person-to-person variability by working only with each person's difference score. A large average difference relative to how consistently participants responded signals a real effect — individual variation across people no longer dilutes the signal.
History
The t distribution was introduced by William Sealy Gosset, writing as 'Student', in a 1908 paper on the probable error of a mean from small samples. That paper treats single-sample inference: it derives the distribution of the standardised distance between a sample mean and the population mean when the population standard deviation is estimated from the sample. The paired test is this one-sample procedure applied to within-pair differences. The 1908 paper does not itself describe a paired design; it supplies the distribution on which the paired procedure relies.
When to use it
Use the paired t-test when you have two measurements that are naturally linked: the same subjects measured twice (pre-test / post-test), two conditions administered to each participant, or matched pairs such as twins or left-versus-right limb. The difference scores should be approximately normally distributed, so check the differences rather than the raw scores. Inspect a histogram or Q-Q plot of the differences and, if useful, add a Shapiro-Wilk test. The Shapiro-Wilk test has limited power with few pairs, so a non-significant result does not establish normality; rely on the plot as much as on the test. Do not use this test when observations are truly independent. That case calls for the independent samples t-test. With clear non-normality or small n, prefer the Wilcoxon signed-rank test.
Limitations and considerations
- Requires that each unit appear in both conditions; if pairing breaks, the design collapses.
- Sensitive to outlying difference scores, especially in small samples.
- Assumes the difference scores are approximately normally distributed, not the raw scores.
- Limited to exactly two time points or conditions; more conditions require repeated measures ANOVA.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Can increase statistical power by removing between-subject variability from the error term, provided the paired measurements are positively correlated.
- When the pairing is informative, it can require fewer participants than an independent design to detect the same effect size; the saving depends on the strength of the within-pair correlation.
- Conceptually simple: reduces a paired problem to a one-sample test on difference scores.
- Reports Cohen's d_z as a natural, interpretable effect size within the paired context.
- Only the difference scores enter the calculation, so the normality assumption is checked on a single variable rather than on both conditions separately.
Applications
- Pre-test / post-test clinical trials assessing whether a treatment produces a significant change in a continuous outcome.
- Crossover experiments where participants receive each treatment in separate periods.
- Sensory or perceptual studies comparing two stimuli evaluated by the same raters.
- Educational research measuring learning gains from the same students before and after an intervention.
- Matched-pair epidemiological studies comparing exposed and unexposed individuals paired on confounders.
- Quality-control studies comparing two measurement instruments applied to the same specimens.
How it works
How it works
The null hypothesis states that the population mean of the within-pair differences is zero, meaning no systematic change. The alternative states that the mean difference is nonzero. This reformulation reduces a two-variable problem to a one-sample test on difference scores.
Formula
H_0:\ \mu_d = 0 \quad H_1:\ \mu_d \neq 0
A difference score is computed for each pair by subtracting the second measurement from the first. These n difference scores are the only data the test uses from this point forward, collapsing the paired structure into a single column.
Formula
d_i = x_{i1} - x_{i2}The t statistic equals the mean of the difference scores divided by the standard error of the mean difference (the standard deviation of the differences divided by the square root of n). A larger mean difference, smaller within-pair variability, or larger n all push the t value toward significance.
Formula
t = \dfrac{\bar{d}}{s_d / \sqrt{n}}Degrees of freedom equal the number of pairs minus one, because one degree of freedom is spent estimating the mean difference. With few pairs the t distribution has heavier tails than the normal distribution, so critical values are noticeably larger than the normal value; the gap narrows as the degrees of freedom increase.
Formula
df = n - 1
Choose the significance level alpha (conventionally 0.05) before the analysis. The test is two-tailed for the alternative μd ≠ 0. If the two-tailed p-value is below the pre-specified alpha, the null hypothesis is rejected. Report the mean difference, its 95% confidence interval, and the effect size Cohen's d_z (mean difference divided by the standard deviation of the differences) so readers can judge the practical magnitude of the change.
Formula
\text{reject } H_0 \text{ if } p < 0.05;\quad d_z = \bar{d} / s_dCommon pitfalls
- Testing normality on the raw scores instead of on the difference scores — normality of differences is what matters.
- Ignoring carryover or order effects in within-subject designs where counterbalancing was not applied.
- Comparing Cohen's d_z directly with Cohen's d from independent designs without acknowledging they are computed differently and are not directly comparable.
- Using the independent t-test on data that are actually paired, losing the power advantage and potentially distorting results.
Frequently asked questions
How is the paired t-test different from the independent samples t-test?
The paired test exploits the correlation between two measurements on the same unit, reducing error variance and increasing power. The independent test treats the two groups as unrelated and pools variance across them. Using an independent test on paired data wastes the pairing, inflates the error term, and reduces power.
What if the difference scores are not normally distributed?
The t test is fairly tolerant of moderate non-normality when the number of pairs is reasonably large, because the sampling distribution of the mean tends toward normality as n grows. For small samples with clearly skewed or heavy-tailed differences, use the Wilcoxon signed-rank test, which ranks the absolute differences and does not assume normality.
Should I report Cohen's d_z or Cohen's d_av?
Cohen's d_z (mean difference divided by the SD of differences) is the natural effect size for the paired t-test and is directly linked to the t statistic and power calculations. Cohen's d_av (mean difference divided by the average of the two SDs) is more comparable to effect sizes from independent designs but requires separate reporting of both SDs. Choose d_z for power analysis and d_av when comparing effect magnitudes across study designs.
Can I use the paired t-test with more than two time points?
No. For three or more repeated measurements use one-way repeated measures ANOVA, or a mixed model. Running multiple paired t-tests inflates the family-wise error rate unless a correction such as Bonferroni is applied.
Does sample size refer to the number of individuals or the number of observations?
In a paired design, n is the number of pairs (i.e., the number of individuals or matched pairs), not the total number of observations. Degrees of freedom equal n minus one.
Related methods
Sources
Student (1908). The probable error of a mean. Biometrika, 6(1), 1–25.
Open DOI referenceField, A. (2013). Discovering Statistics Using IBM SPSS Statistics (4th ed.). SAGE.
ISBN: 978-1446249185Applied Statistics: From Bivariate Through Multivariate Techniques, 2nd ed., p. 928–929