- Introduced by
- Welch (1951); robust trimmed-mean approach popularised by Wilcox
- Year
- 1951
- Type
- Robust one-way analysis of variance
What does it do?
Robust ANOVA is a family of one-way tests that compares the central tendency of three or more groups when normality and equal variances are doubtful.
It covers Welch's heteroscedasticity-adjusted statistic (Welch, 1951) and a variant based on trimmed means, in which a fixed fraction of each group's extreme values is removed before averaging. Both aim to give usable comparisons when group spreads differ or outliers are present. The trimmed-mean variant is described here through its trimmed-mean estimator; the inferential step for that variant requires the trimmed-mean test procedure from the literature cited below.
The intuition behind the method
Classical one-way ANOVA assumes that all groups share one error variance and that the data are roughly normal. When those assumptions fail, its F-test can give misleading results. Welch's statistic handles unequal spreads by weighting each group mean by the precision of that mean, so a group whose mean is estimated imprecisely (large variance relative to its size) counts for less. The trimmed-mean variant addresses outliers differently: it removes a fixed share of the smallest and largest observations in each group and compares the remaining averages, so a few extreme values cannot dominate the comparison.
History
B. L. Welch proposed his heteroscedasticity-adjusted statistic for comparing several means in 1951, as an alternative to the classical F-test that does not require equal variances. The trimmed-mean approach was popularised by Rand Wilcox, whose book on robust estimation and hypothesis testing is cited for it.
When to use it
Choose Robust ANOVA to compare three or more independent groups on a continuous outcome when normality or equal variances is doubtful, when outliers are present, or when group spreads clearly differ. Welch's statistic needs only group means, variances and sizes, so it suits designs where unequal spread is the main concern. The method assumes independent observations. A total sample of about 20 is a practical guideline rather than a formal requirement. Classical ANOVA is preferable only when its assumptions have been checked and hold. Do not use it for dependent or repeated measurements, and be cautious with very small per-group samples, where a permutation test is safer. As a rough guide: use Welch's statistic when variances differ but outliers are few; use the trimmed-mean variant when outliers or heavy tails are present; use a permutation test when the per-group sample size is very small; and use a higher trimming fraction or a median-based method when outliers make up a large share of each group. These are heuristics rather than fixed rules, and the choice should be stated when reporting results.
Limitations and considerations
- With very small per-group samples, the group variances that enter the weights are themselves poorly estimated, so the Welch statistic is unstable and a permutation test is then safer.
- The trimming fraction is fixed in advance; when outliers make up a large share of the data, a fixed fraction removes too little, and a higher trimming rate or a median-based method is needed.
- It requires independent observations and is not designed for repeated-measures or clustered data.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Welch's statistic remains usable when group variances are unequal, because each group is weighted by the precision of its own mean rather than by a pooled variance that classical ANOVA assumes.
- The trimmed-mean version reduces the influence of outliers and heavy tails by excluding a fixed fraction of each group's extremes before averaging.
- Welch's version needs only group means, variances and sample sizes, so it can be recomputed from summary statistics.
Applications
- Comparing outcome means across three or more groups measured with clearly different spreads, such as sites or instruments with different precision.
- Group comparisons of heavy-tailed continuous outcomes, where a few extreme observations would dominate a standard mean-based comparison.
- One-way designs in which a check of equal variances fails, so the classical F-test is not justified.
How it works
How it works
Each group i has its own mean μᵢ and its own error variance σᵢ², rather than one variance shared by all groups. Allowing the variances to differ is what lets the procedure tolerate the unequal spreads that classical ANOVA cannot.
Formula
y_{ij} = \mu_i + \varepsilon_{ij}, \quad \mathrm{Var}(\varepsilon_{ij}) = \sigma_i^2Welch's statistic W compares the group means against a weighted grand mean ỹ, the weighted average ỹ = Σwᵢȳᵢ/Σwᵢ of the group means. Each group receives the weight wᵢ = nᵢ / sᵢ², which is proportional to the precision of that group's mean (the reciprocal of the estimated variance of the mean, sᵢ²/nᵢ), so groups with more precise means count more. The denominator correction term accounts for the unequal weights and group sizes. To turn W into a test result, it is referred to an F distribution with numerator degrees of freedom k−1 and an approximate denominator degree of freedom estimated from the group weights and sizes (Welch, 1951). The null hypothesis is H0: μ1 = … = μk.
Formula
W = \dfrac{\sum_i w_i (\bar{y}_i - \tilde{y})^2 / (k-1)}{1 + \frac{2(k-2)}{k^2-1}\sum_i \frac{(1-w_i/\sum w_i)^2}{n_i-1}}, \quad w_i = \frac{n_i}{s_i^2}The trimmed-mean route sets gᵢ = ⌊γnᵢ⌋ observations to be removed from each tail of group i, where γ is the trimming proportion, commonly 20%. The remaining nᵢ − 2gᵢ middle order statistics are averaged to give the trimmed mean. Removing the tails before averaging makes each group's location estimate less sensitive to outliers and heavy-tailed data. The trimmed means are the location estimates on which the trimmed-mean variant rests; a test built on them needs its own variance estimate and reference distribution, which should be taken from the trimmed-mean literature.
Formula
\bar{y}_{t,i} = \frac{1}{n_i - 2g_i}\sum_{j=g_i+1}^{n_i-g_i} y_{(j),i}, \quad g_i = \lfloor \gamma n_i \rfloorCommon pitfalls
- Applying it to dependent or repeated measurements, which violates the independence assumption.
- Keeping the trimming fraction you chose (commonly 20%) when outliers make up a large share of each group; increase the trimming or switch to a median-based method.
- Running it on very small per-group samples and trusting the result more than the sample size justifies.
- Reading a trimmed-mean result as a comparison of ordinary means; the trimmed version compares trimmed means, which estimate a different quantity.
Frequently asked questions
How is this different from ordinary one-way ANOVA?
Ordinary ANOVA assumes equal group variances and approximately normal data. Robust ANOVA relaxes both: Welch's statistic allows unequal variances, and the trimmed-mean version removes extreme observations so that outliers have less influence on the comparison.
What does trimming actually do?
Trimming discards a fixed proportion (often 20%) of the smallest and largest values in each group before computing the mean. This trimmed mean is far less sensitive to outliers and heavy tails than the ordinary mean, so the test stays reliable on messy data.
When should I not use Robust ANOVA?
Avoid it for very small per-group samples, where a permutation test is more trustworthy, and when outliers make up a large share of each group, where a higher trimming fraction or a median-based method is more suitable.
How large a sample do I need?
A total sample of about 20 is a practical guideline, not a formal assumption, with enough observations per group that trimming still leaves meaningful values to compare. For very small groups the variance estimates that enter the weights are unstable, and a permutation test is then preferable.
Related methods
Sources
Welch, B. L. (1951). On the comparison of several mean values: an alternative approach. Biometrika, 38(3/4), 330-336.
Open DOI referenceWilcox, R. R. (2012). Introduction to Robust Estimation and Hypothesis Testing (3rd ed.). Academic Press.
ISBN: 978-0123869838