The Kruskal–Wallis test is a non-parametric statistical method used to determine whether there are significant differences between three or more independent groups. It serves as the non-parametric alternative to one-way ANOVA when the data does not follow a normal distribution or when sample sizes are small or unequal.
Developed by William Kruskal and W. Allen Wallis in 1952, this test extends the Mann–Whitney U test to multiple groups. Instead of comparing means, it compares the median ranks of each group to assess whether they come from the same population. Because it does not assume normality, the Kruskal–Wallis test is especially useful in social sciences, biology, and medical research where data may be ordinal or skewed.
The Kruskal–Wallis test is used in situations where ANOVA assumptions cannot be met. Examples include comparing customer satisfaction levels across several stores, examining differences in plant growth under various soil types, or analysing patient recovery scores across treatment groups. Researchers often visualise the results with boxplots to show median and variability.
This test is an essential tool for robust data analysis when dealing with non-normal or ordinal data. It enhances reliability by avoiding misleading conclusions that may arise from parametric tests under invalid assumptions. Its simplicity and versatility make it a staple in non-parametric statistical analysis.