When to use it
Use when comparing 3+ independent groups and ANOVA normality assumptions fail.
Required Inputs
- Groups of numeric/ordinal values
- Alpha level
- Post-hoc correction (Dunn-Bonferroni)
Compare three or more independent groups using the non-parametric Kruskal-Wallis H test, with H statistic, chi-square p-value, epsilon-squared effect size, and Dunn post-hoc tests.
Run this test live in StatLab npm i @statlab/coreUse when comparing 3+ independent groups and ANOVA normality assumptions fail.
H = [ 12 / (N(N+1)) ] * Σ (R_i² / n_i) - 3(N+1)
from scipy import stats
res = stats.kruskal(group_a, group_b, group_c)
print(f"H={res.statistic:.4f}, p={res.pvalue:.4f}")
kruskal.test(list(group_a, group_b, group_c))
import { kruskalWallis } from '@statlab/core';
const result = kruskalWallis([groupA, groupB, groupC]);
Continuous A/B testing, statistical telemetry analysis, and automated feedback loops for live backend services.
Explore VoxelPulse →Fixed-price AI release-readiness sprints, automated regression testing, and reliability statistical benchmarks.
Explore VoxelAssurance →Explore static calculators across the StatLab inference engine suite.