The Kruskal–Wallis test is the nonparametric version of the one-way ANOVA. Its mathematical approach is to rank the data and compare the median of the ranks for all groups with the individual group medians.