ANOVA vs. Kruskal-Wallis: A Direct Comparison
Overviewβ
This unit examines how one-way ANOVA (parametric) and Kruskal-Wallis ANOVA (non-parametric) compare β not just conceptually, but computationally, including the remarkable mathematical equivalence between the F and H statistics when applied to the same data.
3.7 Full Comparisonβ
Conceptual Comparison Tableβ
| Feature | One-Way ANOVA | Kruskal-Wallis ANOVA |
|---|---|---|
| What it compares | Group means | Group medians |
| Data type | Interval/ratio | Ordinal or above |
| Normality required | Yes | No |
| Homogeneity of variance | Required (explicit) | Implied by identical shapes |
| Test statistic | F ratio | H statistic |
| Critical value table | F distribution | Table H (small n) or ΟΒ² (large n) |
| Significance direction | F β₯ F-critical | H β₯ critical value |
| Post-hoc tests | Tukey, ScheffΓ©, Bonferroni | Dunn's test, pairwise MW-U |
| Outlier sensitivity | High (mean-based) | Low (rank-based) |
| Special case at k = 2 | Equivalent to independent t-test | Equivalent to Mann-Whitney U |
| Developed by | R.A. Fisher | Kruskal & Wallis (1952) |
Worked Comparison: Same Data, Both Testsβ
Research Scenarioβ
Three groups perform a task. We compare their scores using both tests.
Data:
| Group 1 | Group 2 | Group 3 |
|---|---|---|
| 3 | 6 | 9 |
| 5 | 7 | 10 |
| 6 | 8 | 11 |
| 7 | 9 | 12 |
| 8 | 10 | 15 |
| 9 | 10 | β |
| β | 11 | β |
Sample sizes: , , ,
One-Way ANOVA Calculationβ
Step 1: Group Sums
Step 2: Sum of Squares
Step 3: ANOVA Table
| Source | SS | df | MS | F |
|---|---|---|---|---|
| Between Groups | 70.038 | 2 | 35.019 | 8.213 |
| Within Groups | 63.962 | 15 | 4.264 | β |
| Total | 134.000 | 17 | β | β |
Critical F at Ξ± = .05, df = (2, 15): 3.68
Since F = 8.213 > 3.68: Reject Hβ β the three groups differ significantly.
Kruskal-Wallis Calculation (Same Data)β
Step 1: Rank all 18 scores
| Group 1 | Rank | Group 2 | Rank | Group 3 | Rank |
|---|---|---|---|---|---|
| 3 | 1 | 6 | 3.5 | 9 | 10 |
| 5 | 2 | 7 | 5.5 | 10 | 13 |
| 6 | 3.5 | 8 | 7.5 | 11 | 15.5 |
| 7 | 5.5 | 9 | 10 | 12 | 17 |
| 8 | 7.5 | 10 | 13 | 15 | 18 |
| 9 | 10 | 10 | 13 | β | β |
| β | β | 11 | 15.5 | β | β |
| Tβ = 29.5 | Tβ = 68 | Tβ = 73.5 |
Step 2: Compute H
Critical ΟΒ² at Ξ± = .05, df = 2: 5.99
Since H = 9.22 > 5.99: Reject Hβ β the three groups differ significantly.
Both tests reach the same conclusion: Group 3 > Group 2 > Group 1.
The Mathematical Equivalence of F and Hβ
Iman and Conover (1981) demonstrated that F and H are mathematically related through the rank transform principle:
Verification with Our Exampleβ
We found F = 8.213 and H = 9.22.
(Minor discrepancy due to rounding; both reject Hβ consistently.)
This equivalence illustrates that Kruskal-Wallis is literally ANOVA applied to ranks β the rank transform bridges the parametric and non-parametric worlds.
When the Two Tests Disagreeβ
Both tests will usually agree in their conclusion. However, discrepancies can occur when:
- Data is heavily skewed: ANOVA may be more influenced by extreme scores; Kruskal-Wallis is more robust
- Outliers are present: ANOVA F can be inflated or deflated by outliers; H is resistant
- Variance heterogeneity: ANOVA is more sensitive to unequal variances; H is less so
- Very small samples: Exact small-sample corrections make a larger difference
Decision Framework: ANOVA or Kruskal-Wallis?β
Indian Research Contextβ
In Indian psychological research β particularly in clinical, educational, and rural community settings β Kruskal-Wallis is frequently the preferred choice because:
- Small institutional samples (hospital wards, school cohorts) rarely exceed 20β30 per group
- Likert-scale data is ubiquitous in personality, attitude, and wellbeing research
- Non-normal distributions are the rule rather than exception in applied settings
- Studies comparing groups such as income brackets, caste categories, or urban/rural/tribal populations often have naturally ordinal or skewed measures
Post-Hoc Testing After a Significant Kruskal-Wallis Resultβ
A significant H tells you only that at least one pair of groups differs. To identify which pairs differ, use:
| Method | Description | When to Use |
|---|---|---|
| Dunn's test | Pairwise comparisons with Bonferroni-style correction | Standard choice; available in SPSS |
| Pairwise Mann-Whitney U with Bonferroni | Each pair tested with U; Ξ± divided by number of comparisons | Simple and transparent |
| Steel-Dwass test | More powerful than Bonferroni correction | When many comparisons are needed |
Bonferroni correction formula: Adjusted Ξ± = .05 / number of pairwise comparisons
For k = 3 groups: 3 pairs β adjusted Ξ± = .05/3 = .0167
For k = 4 groups: 6 pairs β adjusted Ξ± = .05/6 = .0083
Self-Assessment Questionsβ
Level 1 β Recallβ
-
In what direction is the Kruskal-Wallis H test significant: when H is larger or smaller than the critical value?
-
What is the degrees of freedom for the chi-square approximation of H when k = 4?
-
State the mathematical relationship between F and H as demonstrated by Iman and Conover (1981).
Level 2 β Applicationβ
-
Using the formula , compute F if k = 3, N = 21, and H = 7.5. Is this F significant at Ξ± = .05 with df = (2, 18)? (Critical F β 3.55)
-
A researcher runs a Kruskal-Wallis test across 4 groups and finds H = 10.2, df = 3. Is this significant at Ξ± = .05? (Critical ΟΒ² = 7.815.) If significant, what post-hoc test would you recommend, and what would the Bonferroni-adjusted Ξ± be?
Level 3 β Critical Thinkingβ
-
Two researchers analyse the same dataset. Researcher A uses one-way ANOVA (F = 4.1, p = .031, significant). Researcher B uses Kruskal-Wallis (H = 3.8, p = .052, not significant). Both use Ξ± = .05. How is this possible? What does this reveal about the relationship between the two tests?
-
A colleague argues: "Kruskal-Wallis is always preferable to ANOVA because it makes fewer assumptions." Construct a counter-argument explaining when one-way ANOVA is the better choice. Include statistical power considerations in your answer.
π§ Memory Aidβ
"HAWK soars above both F and H"
- H = H statistic (Kruskal-Wallis)
- A = ANOVA equivalent (when rank-transformed)
- W = Wallis (one of the developers)
- K = Kruskal (the other developer)
The F-H relationship: Think of it as "F on ranks β H" β ranking the data first turns an ANOVA into a Kruskal-Wallis.
Post-hoc reminder: Significant K-W β use Dunn's test (named for the statistician Olive Jean Dunn β "Done with Dunn's test after K-W").
π External Resourcesβ
Foundational Readingβ
- π Wikipedia: Kruskal-Wallis test β Post-hoc analysis β Dunn's test and other follow-ups
- π Wikipedia: Rank-based statistics β Overview of the rank transform principle
Tutorialsβ
- π Statistics How To: Post Hoc Tests for Kruskal-Wallis β Dunn's test and Bonferroni correction explained
- π SPSS: Kruskal-Wallis with Post-Hoc β Complete SPSS tutorial including pairwise comparisons
- π UCLA OARC: Non-Parametric Analysis in SPSS β Decision guide
Videosβ
- π₯ ANOVA vs. Kruskal-Wallis β When to Use Which β Conceptual comparison
- π₯ Post-hoc Tests after Kruskal-Wallis in SPSS β Pairwise comparison tutorial
Research Articlesβ
- π Iman, R. L., & Conover, W. J. (1981). Rank transformations as a bridge between parametric and nonparametric statistics. The American Statistician, 35(3), 124β129. (F-H equivalence)
- π Zimmerman, D. W., & Zumbo, B. D. (1993). The relative power of parametric and nonparametric statistical methods. A handbook for data analysis in the behavioral sciences, 1, 481β517.
- π Dunn, O. J. (1964). Multiple comparisons using rank sums. Technometrics, 6(3), 241β252. (Original Dunn's test paper)
Source PDFs:
- π Block-4/Unit-3.pdf β Pages 43β46
- π MPC-006 Statistics in Psychology