Kruskal-Wallis Test
Nonparametric alternative to one-way ANOVA for comparing multiple independent groups.
Test Overview & Methodology
The Kruskal-Wallis test determines whether the distribution of ranks differs significantly across three or more independent groups. It's a rank-based extension of the Mann-Whitney U test and doesn't require normality assumptions, making it robust for various data types.
Advantages:
- • No normality assumption required
- • Robust to outliers and extreme values
- • Works with ordinal data
- • Handles unequal sample sizes effectively
- • Distribution-free approach
When to Use:
- • 3 or more independent groups
- • Non-normal distributions
- • Ordinal or continuous data
- • Violated ANOVA assumptions
- • Small sample sizes
H Statistic & Effect Size Formulas
Test Statistic (H):
Kruskal-Wallis H statistic
= total sample size across all groups
= sum of ranks for group i
= size of group i
Under H0, H approximately follows a chi-square distribution with k-1 degrees of freedom, where k is the number of groups.
Effect Size Measures:
Eta-squared effect size
= Kruskal-Wallis test statistic
= number of groups
= total sample size
Interpretation: Small (0.01), Medium (0.06), Large (0.14)
Key Assumptions
- • Observations are independent within and between groups
- • The dependent variable is at least ordinal
- • Groups are compared on the shape of their distributions (not strictly means)
- • Sample sizes of at least 5 per group recommended for the chi-square approximation
Reading the Kruskal-Wallis Rank Plot
Example Result & Signal Interpretation
For the three-group Excel example below (Group_A, Group_B, Group_C, n=10 each, N=30), ranking all 30 observations together and summing ranks per group typically yields H well above the χ² critical value with 2 df (5.99 at α=0.05), because Group_C's values are consistently the largest. This produces a small p-value, signaling that at least one group's distribution differs.
No Significant Difference (p ≥ 0.05)
- • Groups have similar rank distributions
- • No evidence of systematic group differences
- • Consider whether sample size limits power
Significant Difference (p < 0.05)
- • At least one group differs from the others
- • Proceed with Dunn's post-hoc pairwise tests
- • Report η² or ε² alongside p-value for practical significance
sixsigmacenter.com Implementation Guide
This platform provides comprehensive Kruskal-Wallis analysis with automated post-hoc testing, effect size calculations, and detailed interpretation guidance for nonparametric group comparisons.
Analysis Features:
- • Automated rank calculation and H-statistic
- • Chi-square distribution p-value calculation
- • Dunn's test for pairwise comparisons
- • Effect size estimation (η² and ε²)
- • Multiple comparison corrections
Post-Hoc Analysis Options:
- • Dunn's test: Most common for pairwise comparisons
- • Conover-Iman test: Alternative pairwise method
- • Steel-Dwass test: For all possible pairs
- • Bonferroni correction: Conservative adjustment
- • Holm correction: Step-down procedure
Example Data Layout for Kruskal-Wallis Test
Separate columns for each group (3 or more). Non-parametric alternative to one-way ANOVA for non-normal data or ordinal measurements. Sample Size Recommendation: Minimum 5 observations per group, preferably 10+ for better approximation to chi-square distribution.
This is how your spreadsheet or CSV file should be structured before you upload it. Match the column names, keep one row per observation, and leave the analysis to the platform.