Kruskal-Wallis H Test Calculator Formula

Understand the math behind the kruskal-wallis h test calculator. Each variable explained with a worked example.

Formulas Used

H Statistic

h_stat = (12 / (N * (N + 1))) * ss_ranks - 3 * (N + 1)

Degrees of Freedom

df = k - 1

Variables

VariableDescriptionDefault
NTotal N30
kNumber of Groups3
ss_ranksSum of Ri squared / ni5200

How It Works

Kruskal-Wallis H Test

H = [12/N(N+1)] * Sum(Ri^2/ni) - 3(N+1)

Non-parametric alternative to one-way ANOVA.

Worked Example

N=30, 3 groups.

N = 30k = 3ss_ranks = 5200
  1. 01H = (12/930) * 5200 - 93

Ready to run the numbers?

Open Kruskal-Wallis H Test Calculator