Trimmed Mean Test (Yuen's Test)

Statistics
Introduced by
Karen K. Yuen
Year
1974
Type
Robust two-group comparison

What does it do?

The trimmed mean test compares two groups using trimmed means, which discard a fixed proportion of the most extreme observations in each tail before averaging.

Introduced by Karen K. Yuen in 1974, it is a robust alternative to the classical t-test when the data are non-normal or contain outliers and the population variances are unequal.

The intuition behind the method

Imagine measuring two groups, but a few unusually large or small values keep pulling each average away from the bulk of the data. Instead of relying on that unstable mean, you first remove a fixed share of the most extreme values from each tail, say the top and bottom 10-20% of each group, and average only the central remainder. Comparing these trimmed centres gives a verdict that a handful of extreme points is less likely to overturn.

History

Karen K. Yuen introduced the two-sample trimmed t in a 1974 Biometrika paper. The paper demonstrates the effect of nonnormality on the Welch approximate-degrees-of-freedom t test and proposes the trimmed t for unequal population variances, comparing it with the Welch test under normality and under long-tailed distributions. Rand Wilcox's book on robust estimation and hypothesis testing is among the references for this page.

When to use it

Use the trimmed mean test to compare two independent groups on a continuous outcome when the data are heavy-tailed or contain outliers and the group variances may differ, which is the setting Yuen's 1974 paper examines. Choose it when you want the result to stay a difference in trimmed centres on the original measurement scale. Do not use it when the data are close to normal and free of outliers, since the classical or Welch t-test then uses all observations and is more efficient. It is also not the right tool for paired designs or for comparisons of more than two groups. Very small samples give unstable trimmed centres and variance estimates; in that case a different approach, such as a permutation test, should be considered. When the outlier share is high, a larger trimming proportion or a median-based comparison may be needed, and this choice should be justified before the analysis is run.

Limitations and considerations

  • Discarding tail observations sacrifices some information and statistical efficiency when the data really are normal.
  • The result depends on the chosen trimming proportion, which must be fixed in advance rather than tuned to the data.
  • With very small samples, the trimmed centres and variance estimates are unstable. When contamination is heavy, trimming may not fully stabilise the centre, and the test becomes less reliable.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Resistant to outliers and heavy tails because the most extreme observations are removed before comparison.
  • Handles unequal population variances through Yuen-Welch degrees of freedom, unlike the pooled t-test.
  • Reports the difference in trimmed means on the original measurement scale, so the result remains a directly readable difference in centres rather than a rank-based statistic.

Applications

  • Two-group comparisons of a continuous outcome where the data are long-tailed or contaminated with outliers, the situation for which Yuen's 1974 paper recommends the trimmed t.
  • Two-group comparisons where the group variances are unequal, so that a pooled t-test is unsafe and Welch-type degrees of freedom are needed.
  • Robustness checks alongside a classical t-test: a large disagreement between the two can indicate that outliers or heavy tails are driving the mean difference.

How it works

How it works

1

The null hypothesis states that the two population trimmed means are equal. Trimming keeps the central part of each distribution and removes the tails, so the comparison concerns outlier-resistant centres rather than ordinary arithmetic means. The estimand is therefore each group's population trimmed mean, and the test assumes independent observations within and between groups and a trimming proportion fixed before the data are analysed. A small p-value indicates that the data are unlikely under equal trimmed means; it does not test equality of ordinary means or of whole distributions. The sign of the statistic shows which group has the higher trimmed centre, and the size of the trimmed-mean difference should be reported together with the trimming proportion used.

Formula
H_0:\ \mu_{t,1} = \mu_{t,2}
2

Each group is trimmed by a chosen proportion (commonly 10-20% per tail). If g_j observations are removed from each tail of group j, h_j = n_j - 2g_j observations remain for averaging. The test statistic divides the difference in trimmed means by a standard error built from each group's Winsorized variance s_w,j^2, the sample variance of the Winsorized values, in which the trimmed tails are replaced by the nearest retained values. The statistic is referred to a Student t distribution with Yuen-Welch degrees of freedom, ν = (d_1 + d_2)^2 / [d_1^2/(h_1 - 1) + d_2^2/(h_2 - 1)], so unequal variances and unequal sample sizes are accommodated without a separate pooling step.

Formula
T_y = \dfrac{\bar{X}_{t,1} - \bar{X}_{t,2}}{\sqrt{d_1 + d_2}},\quad d_j = \dfrac{(n_j-1)\, s_{w,j}^2}{h_j(h_j-1)}

Common pitfalls

  • Picking the trimming proportion after seeing the result, which inflates the false-positive rate.
  • Applying it when the outlier share is high without first deciding whether a larger trimming proportion or a median-based comparison is needed.
  • Running it on very small samples, where the trimmed centres and variance estimates are unstable and a permutation test may be a more reliable check.
  • Reporting the trimmed-mean difference as if it were the ordinary mean difference without noting how much was trimmed.

Frequently asked questions

How much should I trim?

Trimming 10-20% from each tail is the commonly used default. The key rule is to fix the proportion before looking at the test result, since choosing it to obtain a significant outcome invalidates the test.

How is this different from the Mann-Whitney U test?

Both are robust to outliers, but the trimmed mean test compares trimmed means and keeps a mean-like, interpretable difference, whereas Mann-Whitney compares stochastic dominance through ranks. Use the trimmed mean test when you want to reason about a central tendency on the original scale.

What happens if there are too many outliers?

When contamination is heavy, trimming a larger share of each tail may be needed, or a median-based or MAD-based comparison may be more suitable. Settle this choice before looking at the test result.

Can I use it on small samples?

Very small samples give unstable trimmed centres and variance estimates, so a permutation test is worth considering as an alternative or as a check.

Related methods

Sources

  1. Yuen, K. K. (1974). The Two-Sample Trimmed t for Unequal Population Variances. Biometrika, 61(1), 165-170.

    Open DOI reference
  2. Wilcox, R. R. (2012). Introduction to Robust Estimation and Hypothesis Testing (3rd ed.). Academic Press.

    ISBN: 978-0123869838