Kruskal-Wallis Test
Nonparametric alternative to one-way ANOVA for k samples.
Description
The Kruskal-Wallis test examines whether k ≥ 2 independent samples come from the same distribution. It operates on the ranks of the pooled data and is therefore robust to departures from normality. Under H₀ the test statistic H is approximately χ²-distributed with k−1 degrees of freedom. A tie correction is applied when ties are present. Like ANOVA, Kruskal-Wallis is an omnibus test — it does not identify which group differs.
Formulas
Assumptions
- Observations are independent
- Continuous (or at least ordinal) data
- Distributions have similar shape under H₁ (for location test)
Limitations
- χ² approximation inaccurate for very small samples
- Omnibus test — does not identify which group differs
References
- Kruskal, W. H. & Wallis, W. A. (1952), Use of ranks in one-criterion variance analysis, JASA, 47(260), 583–621
- NIST/SEMATECH e-Handbook of Statistical Methods