- Introduced by
- K. K. Yuen; extended by Rand R. Wilcox
- Year
- 1974
- Type
- Robust parametric mean comparison
- Family
- Classical statistics
What does it do?
The robust paired samples t-test compares two related measurements by taking within-pair differences, trimming a fixed proportion of the most extreme differences, and using a Winsorized variance to estimate the standard error.
It is intended for paired data in which outliers or heavy tails would distort the classic paired t-test. It applies the trimmed-t idea of Yuen (1974), who proposed a two-sample trimmed t, to the one-sample problem posed by the difference scores; Wilcox (2012) describes the broader framework of robust estimation and testing.
The intuition behind the method
The classic paired t-test computes differences within each matched pair and then tests whether the average difference is zero. When a few extreme values are present, that average can be pulled far from the center, inflating the standard error and masking real effects. The robust version trims a fixed percentage of the most extreme differences before computing the mean, and estimates the standard error from a Winsorized variance in which the tails are pulled in rather than left unbounded. The resulting statistic is referred to a t distribution and is much less sensitive to wild observations, giving a more representative picture of the typical paired change.
History
Yuen (1974, Biometrika) proposed a two-sample trimmed t statistic for unequal population variances and recommended it for long-tailed or outlier-contaminated distributions. Applying trimming and Winsorizing to paired difference scores follows the same logic and reduces the problem to a one-sample trimmed-mean test. Wilcox's Introduction to Robust Estimation and Hypothesis Testing (3rd ed., 2012) presents the broader framework of robust methods, and the R package WRS2 offers related implementations.
When to use it
Use the robust paired samples t-test when you have matched pairs or repeated measures on the same subjects and the difference scores show notable outliers, skewness, or heavy tails that make the classic paired t-test unreliable. It is most useful with small to moderate samples where non-normality cannot be ignored. Avoid it when the untrimmed mean is the quantity of theoretical interest. With very small samples, few observations remain after trimming and results become unstable. For purely ordinal data, the Wilcoxon signed-rank test is a more suitable choice.
Limitations and considerations
- The trimmed mean is not the same as the arithmetic mean, so results may not be directly comparable to studies using the classic test.
- The best trim proportion depends on the unknown degree of contamination; 20% is a common default but may not be ideal in all situations.
- Power is lower than the classic paired t-test when data are truly normal without outliers.
- Less familiar to reviewers in applied fields, which may require additional explanation in manuscripts.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- The trimmed mean difference is a location estimate on the original measurement scale, so its size can be read directly in the units of the data.
- Extreme differences are down-weighted through trimming and Winsorizing rather than converted to ranks, which keeps more of the magnitude information than the Wilcoxon signed-rank test.
- Yuen's (1974) abstract recommends the trimmed t for long-tailed or outlier-contaminated distributions in the two-sample setting; the same trimming logic is applied here to the difference scores.
- Can be combined with a bootstrap confidence interval as an optional extension.
- Implementations of trimmed-mean methods are available in R, for example in the WRS2 package.
Applications
- Pre-post intervention studies in psychology, medicine, and education where change scores contain outliers.
- Repeated-measures comparisons in laboratory experiments with occasional extreme readings.
- Clinical crossover trials where individual variability or protocol deviations produce extreme differences.
- Neuroimaging or psychophysiology studies comparing two conditions within the same participant when artifacts inflate tails.
- Quality-control paired measurements where occasional defects create extreme deviations.
How it works
How it works
The null hypothesis states that the population trimmed mean of the within-pair differences is zero; the alternative states that it is not. Formulating hypotheses in terms of trimmed means makes explicit that the test targets the central bulk of the distribution rather than the arithmetic mean pulled by extremes. (When the difference distribution is symmetric, the trimmed mean and the ordinary mean coincide in the population.)
Formula
H_0:\ \mu_{t1} = \mu_{t2} \quad H_1:\ \mu_{t1} \neq \mu_{t2}Compute a within-pair difference score for every matched pair. This reduces the paired problem to a one-sample problem on the difference scores, just as in the classic paired t-test.
Formula
D_i = X_{i1} - X_{i2},\quad i = 1,\ldots,nSort the difference scores and remove g observations from each tail, where g is the trim proportion times n, rounded down (commonly 20%). The trimmed mean is the average of the remaining h = n − 2g central values. Trimming reduces the influence of extreme observations on the location estimate.
Formula
\bar{D}_t = \frac{1}{h}\sum_{i=g+1}^{n-g} D_{(i)},\quad h = n - 2gReplace each trimmed observation at the lower tail with the smallest retained value and each trimmed observation at the upper tail with the largest retained value, producing Winsorized scores. The Winsorized variance of those scores is the building block of the standard error; it limits the influence of outliers without discarding data. The standard error of the trimmed mean is obtained by rescaling this variance using h, and the scaling must be applied once, consistently, in whichever software is used.
Formula
s_w^2 = \frac{1}{n-1}\sum_{i=1}^{n}(W_i - \bar{W})^2Divide the trimmed mean of differences by its estimated standard error derived from the Winsorized variance. Under the null hypothesis the statistic is referred to a t distribution with h − 1 degrees of freedom, which gives approximate critical values and p-values.
Formula
t = \frac{\bar{D}_t}{\sqrt{d}},\quad d = \frac{(n-1)\,s_w^2}{h(h-1)},\quad \text{df} = h-1If the p-value is below the pre-specified significance level (typically 0.05), reject the null hypothesis and conclude that the paired conditions differ in their trimmed central tendency. Report the trimmed mean difference and the trim proportion.
Formula
\text{reject } H_0 \text{ if } p < 0.05;\quad \xi = \bar{D}_tCommon pitfalls
- Choosing the trim proportion after inspecting the data; it should be fixed a priori to maintain valid Type I error control.
- Interpreting the trimmed mean difference as if it were the arithmetic mean difference.
- Neglecting to report the trim proportion and the effective sample size h, which prevents reproducibility.
- Assuming this test is always more powerful than nonparametric alternatives; for highly skewed or ordinal data, rank-based methods may still be preferable.
- Implementing the standard error by hand with inconsistent scaling of the Winsorized variance; use validated software.
Frequently asked questions
How is this different from the Wilcoxon signed-rank test?
The Wilcoxon signed-rank test ranks the absolute differences and sums the ranks, discarding magnitude information. The robust paired t-test keeps the size of the differences but reduces the influence of extremes through trimming. It can be preferable when differences are roughly symmetric with heavy tails, while the Wilcoxon test is often chosen for strongly skewed or ordinal data.
What trim proportion should I use?
20% from each tail is a common default and protects against a range of outlier levels. Smaller proportions (e.g. 10%) keep more data but give less protection; larger ones discard more information when outliers are rare. Whatever the choice, fix it before looking at the data.
Can I add bootstrapping to this test?
Yes, as an optional extension. Resample the pairs with replacement, recompute the trimmed mean difference in each resample, and take percentile limits of the resulting values as a confidence interval. This avoids reliance on the approximate t reference distribution and may be helpful for small or asymmetric samples.
Does this test still require independence of pairs?
Yes. The two measurements within a pair are related by design, but pairs must be independent of each other. This assumption is the same as for the classic paired t-test.
What assumptions does the test make?
Pairs are independent; the difference scores are from a continuous distribution that is symmetric or nearly so, so the trimmed mean can be read as the center; the t distribution with h − 1 degrees of freedom is an adequate approximation; and enough observations remain after trimming. The trim proportion must be fixed in advance.
How do I report results?
Report the trim proportion, the trimmed mean difference, its standard error, the t statistic, degrees of freedom (h − 1), the p-value, and ideally a confidence interval. State explicitly that a trimmed mean was used so readers interpret the location estimate correctly.
Related methods
Sources
Yuen, K. K. (1974). The two-sample trimmed t for unequal population variances. Biometrika, 61(1), 165–170.
Open DOI referenceWilcox, R. R. (2012). Introduction to Robust Estimation and Hypothesis Testing (3rd ed.). Academic Press.
ISBN: 978-0123869838