1. Overview
Kruskal-Wallis Test is a nonparametric test used to compare the medians of independent population groups. It is a nonparametric alternative to the one-way ANOVA test.
In the Kruskal-Wallis Test:
- There is no normal distribution assumption for the data.
- It still requires the homoscedasticity assumption, i.e. equal variance.
2. Test Procedure
Assume there are independent population groups with sample sizes . Given the null hypothesis , and the alternative hypothesis .
Compute the test statistic as follows:
Define the test statistic as
As a chi-square test, the rejection region is always right-tailed: