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 - 1Variables
| Variable | Description | Default |
|---|---|---|
N | Total N | 30 |
k | Number of Groups | 3 |
ss_ranks | Sum of Ri squared / ni | 5200 |
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
- 01H = (12/930) * 5200 - 93
Ready to run the numbers?
Open Kruskal-Wallis H Test Calculator