Robust Independent Samples t-test

Statistics
Introduced by
Rand R. Wilcox; Karen K. Yuen (trimmed-mean form)
Year
1974–1990s
Type
Robust parametric mean comparison
Family
Classical statistics

What does it do?

The robust independent samples t-test compares the central tendency of two independent groups using trimmed means and Winsorized variances, so it is less affected by outliers and heavy tails than the classical Student or Welch t-test.

A well-known form is Yuen's test, which also allows the two groups to have unequal population variances.

The intuition behind the method

When a group contains extreme values or has a long-tailed distribution, the sample mean and ordinary variance are pulled by those values, and the classical t-test can then behave poorly. The robust version removes a fixed proportion of the most extreme observations from each tail of each group and compares the means of what remains. Instead of discarding the trimmed observations entirely when estimating variability, it uses Winsorized values, which replace them with the nearest retained values, so the variance estimate is less distorted by outliers. The test statistic is then referred to a t-distribution with degrees of freedom approximated by a Welch-type formula, which accommodates unequal spreads across groups.

History

Karen K. Yuen (1974) proposed a two-sample trimmed t statistic for populations with unequal variances and compared its performance with Welch's t test under normality and under long-tailed distributions. Her abstract recommends the trimmed form when the underlying distribution is long-tailed or contaminated with outliers. The method is presented systematically in Rand R. Wilcox's textbook on robust estimation and hypothesis testing (2012), which is listed in the references for this page.

When to use it

Choose the robust t-test for two independent groups with a continuous outcome when the data show clear outliers, heavy tails, or marked skewness, and when the comparison of typical values is the question of interest. It is a reasonable alternative to Welch's test when the groups may have unequal variances and the distributions are not close to normal. Do not use it when the distributions are close to normal and free of outliers, because the classical test may then have somewhat higher power. Do not use it for matched or repeated measurements, for which the robust paired form is appropriate, and do not use it for ordinal or count outcomes, where rank-based or count-based methods are more suitable. Decisions about normality should rest on plots of the data and the scientific question, not on a normality test alone.

Limitations and considerations

  • Trimmed means estimate a different quantity from the population mean, so results are not directly interchangeable with classical mean differences, and the reporting must say which quantity was compared.
  • When samples are small, trimming removes a large share of each group's observations, leaving little information and making inference less reliable.
  • The result depends on the chosen trim proportion, so conclusions near the decision threshold may change under other reasonable choices.
  • The degrees-of-freedom approximation and the variance estimator depend on the Winsorized values, so accuracy can be affected when the trimming is inadequate for the contamination present.

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

Strengths

  • Yuen's evaluation compares the trimmed statistic with Welch's test under normality and under long-tailed distributions, and the abstract recommends the trimmed form when the underlying distribution is long-tailed or contaminated with outliers.
  • The Welch-type degrees-of-freedom approximation lets the test handle groups with unequal population variances, as stated in the original title and method.
  • The trim proportion is an explicit, user-chosen parameter, so the analyst can check how sensitive the conclusion is to it.
  • Because trimmed observations are replaced rather than dropped in the variance step, the sample size used for variability is kept in the calculation.

Applications

  • Comparing outcomes between intervention and control groups in trials where a few participants respond unusually strongly or weakly.
  • Behavioural and social science experiments in which reaction times or other skewed measures are compared between two independent conditions.
  • Comparing score distributions between two independent cohorts where a small number of extreme scores may be present.
  • Comparing measurements from two independent sites or instruments where occasional anomalous readings are known to occur.

How it works

How it works

1

The null hypothesis states that the population trimmed means of the two groups are equal, and the alternative states that they differ. Because the comparison concerns trimmed means, the hypotheses refer to the centre of each distribution after extreme tails are set aside, not to the ordinary population means.

Formula
H_0:\ \mu_{t1} = \mu_{t2} \quad H_1:\ \mu_{t1} \neq \mu_{t2}
2

Within each group, the observations are sorted and the g smallest and g largest values are removed, where g is the number of observations in each tail determined by the trim proportion (g is the trim proportion times n, rounded down). The trimmed mean is the average of the remaining h = n − 2g observations, which gives a location estimate that is less sensitive to extreme values.

Formula
\bar{X}_{tg} = \frac{1}{h_g}\sum_{i=g+1}^{n_g - g} X_{(i)}
3

Rather than discarding the trimmed observations for the variability estimate, Winsorization replaces each of them with the nearest retained value. The Winsorized variance computed from these adjusted values is used in the standard error of the trimmed mean.

Formula
s_{wg}^2 = \frac{1}{h_g - 1}\sum_{i=1}^{n_g}(W_{ig} - \bar{W}_g)^2
4

The test statistic divides the difference between the two trimmed means by the square root of the sum of the two scaled Winsorized variance terms. Degrees of freedom are approximated with the Welch-type formula df = (d1 + d2)^2 / (d1^2/(h1 − 1) + d2^2/(h2 − 1)), where h_g is the number of retained observations in group g, and p-values are taken from a t-distribution with this df. The approach does not assume equal variances in the two groups.

Formula
t_y = \frac{\bar{X}_{t1} - \bar{X}_{t2}}{\sqrt{d_1 + d_2}},\quad d_g = \frac{s_{wg}^2}{h_g(h_g-1)}
5

If the p-value is below the chosen significance level (0.05 in the formula above), the null hypothesis is rejected. Report the difference in trimmed means together with a confidence interval for that difference. The mechanics section also lists ξ, a standardized difference that uses a pooled classical standard deviation; it is a classical effect measure and not a robust effect size.

Formula
\text{reject } H_0 \text{ if } p < 0.05;\quad \xi = \frac{\bar{X}_{t1} - \bar{X}_{t2}}{\hat{\sigma}_{\text{pooled}}}

Common pitfalls

  • Accepting the 20% symmetric trim without checking whether it suits the amount of contamination and asymmetry in the data.
  • Reporting the result as a difference in means when the test compared trimmed means, which can mislead readers.
  • Treating robustness to outliers as a reason to skip inspecting the data; plots of both groups should inform the choice of trim proportion and method.
  • Applying the test to dependent groups, such as pre- and post-measurements on the same participants; the robust paired form is the appropriate method there.

Frequently asked questions

How do I choose the trim proportion?

A 20% symmetric trim, removing the lowest and highest 20% of each group, is the value used as the default example on this page. A smaller trim, such as 10%, may be considered when contamination appears mild. The choice should be justified from the data and reported, and the sensitivity of the conclusion to it can be checked.

Is this different from the Mann-Whitney U test?

Yes. The Mann-Whitney U test compares rank distributions and does not compare means. The robust t-test compares trimmed means, a location estimate on the scale of the data, so its result is expressed as a difference in trimmed means. The two tests answer somewhat different questions.

Should I report a confidence interval as well as the test?

Yes. A confidence interval for the difference in trimmed means shows the size and precision of the difference and is more informative than the p-value alone. State the method used to compute the interval in the report.

Do I need to report this differently from a standard t-test?

Yes. State that trimmed means were compared, give the trim proportion, report the trimmed means and Winsorized standard deviations with the test statistic and p-value, and include a confidence interval for the difference in trimmed means. This makes the analysis reproducible and the interpretation clear.

Will reviewers accept this method?

Acceptance depends on the journal and the field. A clear justification based on the observed data, together with a full report of the trim proportion and the reasons for choosing trimmed means, is the most useful way to make the choice transparent to reviewers.

Related methods

Sources

  1. Wilcox, R. R. (2012). Introduction to Robust Estimation and Hypothesis Testing (3rd ed.). Academic Press.

    ISBN: 978-0123869838
  2. Yuen, K. K. (1974). The two-sample trimmed t for unequal population variances. Biometrika, 61(1), 165–170.

    Open DOI reference