The Kruskal-Wallis H test compares k ≥ 2 independent groups on ranks — the non-parametric counterpart to one-way ANOVA.
Pool all observations, rank them, then compare the per-group mean ranks via the H statistic, which is approximately χ²(k − 1) under H₀ (all groups have the same distribution).
Same caveat as Mann-Whitney: K-W is a test of stochastic dominance / location shift only when all groups share the same distributional shape; with unequal shapes a significant result can come from any difference.
Post-hoc Dunn's test is the standard pairwise follow-up — it operates on the same ranks and accepts BH / Bonferroni / Holm adjustment. Don't follow K-W with pairwise Mann-Whitneys on un-pooled ranks; that's a different test and the multiple-testing correction won't behave as you expect.
Numeric response + categorical grouping column.
H statistic, df, p, ε² effect size. Optional post-hoc Dunn with adjusted p.
ε² ≈ (H − k + 1) / (n − k): proportion of rank variance explained by group. Same Cohen-style anchors as η² (0.01 small, 0.06 medium, 0.14 large).