Worked Example: Worked Mathematical Example: Kruskal-Wallis H-Test
Compute Kruskal-Wallis H statistic, χ²(2) significance, and ε² / η²_H effect size.
- Specify the function parameters, matrix entries, or confusion matrix counts.
- Apply the closed-form or iterative formula: H = [ 12 / (N(N + 1)) ] × Σ (R_i² / n_i) − 3(N + 1); ε² = H / ((N² − 1) / (N + 1)).
- Examine the primary result, error bounds, and 3 interactive SVG plots.
Result: Computes Kruskal-Wallis H-Test via H = [ 12 / (N(N + 1)) ] × Σ (R_i² / n_i) − 3(N + 1); ε² = H / ((N² − 1) / (N + 1)).
Mathematics & Statistics · Non-Parametric & Hypothesis Testing
Kruskal-Wallis H-Test (3-Group Non-Parametric One-Way ANOVA by Ranks) Calculator: inputs, method, and how to read the result
Compute Kruskal-Wallis H statistic, χ²(2) significance, and ε² / η²_H effect size.
Choose inputs for the case you are checking
The defaults are illustrative. Replace them with values for your case and keep the units shown beside each field.
- Per Group Sample Size N: Sample size per group (n₁ = n₂ = n₃ = n; total N = 3n).
- Group1 Rank Sum R1: Sum of ranks in Group 1 (R₁).
- Group2 Rank Sum R2: Sum of ranks in Group 2 (R₂; R₃ is inferred from N(N+1)/2 − R₁ − R₂).
What the calculation includes
With the default values shown, Kruskal-Wallis H Statistic (df = 2) is 9.29 H. The calculation follows Kruskal-Wallis H-Test Formula; the formula and variable definitions above show how the inputs combine.
One-input check: With the other defaults held constant, changing Per Group Sample Size N from 10 n per group to 11 n per group changes Kruskal-Wallis H Statistic (df = 2) from 9.29 H to 24.175 H. This is a comparison inside the calculator's stated model, not a prediction.
Where to use caution
- Uses exact analytical or standard numerical analysis formulations from NIST DLMF.
- Double-precision floating-point arithmetic has ~15–17 significant decimal digits of precision.
Scope: Global Mathematical & Statistical Standard Check the assumptions and limitations against your situation before relying on the estimate.
More in Mathematics & Statistics: Scientific Calculator, Statistics & Standard Deviation Calculator, Permutations, Combinations, Probability, Sample Size & P-Value Calculator.