Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Statistics›Robust Kruskal-Wallis Test
Hypothesis testClassical statistics

Robust Kruskal-Wallis Test

Robust Kruskal-Wallis One-Way Analysis of Variance by Ranks · Also known as: robust K-W test, trimmed Kruskal-Wallis, robust nonparametric one-way test, robust rank-based ANOVA

The robust Kruskal-Wallis test is a nonparametric, rank-based method for comparing three or more independent groups when data contain outliers, heavy tails, or heterogeneous spread. It augments the classical Kruskal-Wallis H statistic with robust techniques — such as trimmed means on ranks or permutation-based inference — to maintain valid Type I error rates even when distributional assumptions are violated.

ScholarGate
  1. Hypothesis test
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Robust Kruskal-Wallis test
Friedman testRobust Mann-Whitney U te…Robust one-way ANOVARobust Friedman test

When to use it

Use this test when you have three or more independent groups measured on an ordinal or continuous scale and you suspect or detect outliers, heavy-tailed distributions, or substantially unequal within-group variances that would distort the classical Kruskal-Wallis chi-squared approximation. It is especially appropriate for small samples where the chi-squared approximation is poor. Do not use it when data are fully balanced, come from well-behaved symmetric distributions, and contain no outliers — the classical Kruskal-Wallis test is sufficient and identical in those cases. Also avoid when observations are not independent; use the Friedman test for repeated-measures designs.

Strengths & limitations

Strengths
  • Resistant to outliers and heavy-tailed distributions that inflate Type I error in classical rank tests.
  • Does not require normality or equal variances, extending applicability beyond parametric ANOVA.
  • Permutation-based p-values are exact in small samples, removing reliance on the chi-squared approximation.
  • Applicable to ordinal data as well as continuous variables.
  • Widely implemented in modern robust statistics software (R WRS2 package, Python statsmodels).
Limitations
  • More computationally intensive than the standard Kruskal-Wallis test, especially with permutation resampling.
  • Trimming-based robust variants reduce effective sample size, potentially reducing power when the data are actually clean.
  • Post-hoc procedures for robust rank tests are less standardized than those for classical ANOVA or Kruskal-Wallis.

Frequently asked

How does the robust Kruskal-Wallis test differ from the standard version?

The standard version uses the chi-squared approximation for the H statistic, which can be inaccurate with outliers or small samples. The robust version typically replaces this with either a permutation-derived reference distribution or corrects the statistic itself for unequal within-group variability, making rejection rates more accurate under adverse conditions.

When should I prefer the robust version over classical Kruskal-Wallis?

Prefer it when your groups show markedly unequal spread, when outliers are present, or when any group has fewer than five observations making the chi-squared approximation unreliable. If none of those conditions apply, the classical test is adequate.

Does using trimmed means change what the test is actually testing?

Yes, subtly. Trimmed-mean-based robust tests estimate the trimmed population mean rather than the median, which can matter when you want to make conclusions about a specific location parameter. Be explicit in your reporting about which location measure is being compared.

Which software implements the robust Kruskal-Wallis test?

The R package WRS2 (Mair & Wilcox) provides the t1way() and med1way() functions, which implement robust one-way tests based on trimmed means and medians respectively, with bootstrap or permutation p-values. Python's pingouin and statsmodels packages offer related nonparametric and permutation frameworks.

What post-hoc test should I use after a significant result?

Use pairwise robust rank-sum tests (e.g., WRS2::lincon or WRS2::mcp2a) with a Bonferroni or Benjamini-Hochberg correction for multiple comparisons. These maintain the robust properties of the omnibus test when drilling down to specific group pairs.

Sources

  1. Mielke, P. W., & Berry, K. J. (2007). Permutation Methods: A Distance Function Approach (2nd ed.). Springer. ISBN: 978-0387698137
  2. Wilcox, R. R. (2012). Introduction to Robust Estimation and Hypothesis Testing (3rd ed.). Academic Press. ISBN: 978-0123869838

How to cite this page

ScholarGate. (2026, June 3). Robust Kruskal-Wallis One-Way Analysis of Variance by Ranks. ScholarGate. https://scholargate.app/en/statistics/robust-kruskal-wallis-test

Related methods

Friedman testRobust Mann-Whitney U testRobust one-way ANOVA

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Friedman testStatistics↔ compare
  • Robust Mann-Whitney U testStatistics↔ compare
  • Robust one-way ANOVAStatistics↔ compare
Compare side by side →

Referenced by

Robust Friedman test

Similar methods

Kruskal-Wallis testRobust one-way ANOVARobust Friedman testRobust ANOVARobust Mann-Whitney U testMood's Median TestDunn TestConover-Iman Test

Related reference concepts

Rank-Based MethodsNonparametric StatisticsMultivariate Analysis of VariancePermutation TestsRobustness (Statistics)Multiple Hypothesis Testing

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Robust Kruskal-Wallis test (Robust Kruskal-Wallis One-Way Analysis of Variance by Ranks). Retrieved 2026-07-21 from https://scholargate.app/en/statistics/robust-kruskal-wallis-test · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Kruskal & Wallis (1952); robust extensions by Wilcox and others
Year
1952 (base); robust variants 1990s–2000s
Type
Nonparametric robust rank-based test
DataType
Ordinal or continuous with outliers or heavy-tailed distributions
Subfamily
Classical statistics
Related methods
Friedman testRobust Mann-Whitney U testRobust one-way ANOVA
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account