← Back to Blog

Three or more groups · ~8 min read

Post-Hoc Tests After ANOVA (Tukey, Games-Howell, Dunn's)

The follow-up test's assumptions don't inherit from whichever omnibus test you happened to run first.

In short

A significant one-way ANOVA or Kruskal-Wallis test establishes only that at least one group differs from another somewhere in the dataset; it does not say which pair, and stopping at the omnibus P value without following up is a well-recognised way this family of tests gets misreported.1 The post-hoc test that follows is a separate decision with its own assumptions. Tukey's honestly significant difference (HSD) test assumes equal variances across groups and was built for that case;2 Games-Howell was built specifically for the unequal-variance case Tukey doesn't handle;3 and a significant Kruskal-Wallis test needs Dunn's test with a Bonferroni or similar correction, not Tukey, because ranked data never had equal variances to assume in the first place.5 Running Tukey when Levene's test flags unequal variances, or running uncorrected pairwise comparisons after Dunn's test, is a specific, checkable error that shows up directly in the output table a reviewer is trained to find.

The omnibus test and the post-hoc test answer different questions

A one-way ANOVA's F-test asks a single, narrow question: does at least one group mean differ from at least one other, somewhere among the groups you compared? A significant F confirms that something is going on, but the test itself is silent on which groups, by how much, or in which direction. Kruskal-Wallis, the rank-based analogue used when the outcome is skewed, ordinal, or otherwise unsuited to a mean, asks the same shape of question about the ranked data and is equally silent on where the difference sits.4 Reporting only the omnibus result, a single sentence noting that "groups differed significantly" with an F or H statistic and a P value, and stopping there is incomplete: it tells a reader that a difference exists without telling them which comparison drives it, which is exactly the follow-up question a reviewer or a treating clinician will ask next.

That follow-up is a genuinely second test, run on the same data, answering a genuinely different question, and it comes with its own assumptions that don't automatically inherit from the omnibus test you happened to run first.

Four ways to run the comparison, and why they aren't interchangeable

Once the omnibus result is significant, the choice of post-hoc procedure depends on two things: whether the comparisons are parametric or rank-based, and, for the parametric case, whether the groups have roughly equal variance. Four procedures cover almost everything a clinical or surgical dataset will need.

Tukey's HSD test compares every pair of group means using the studentized range distribution, which keeps the family-wise error rate at the nominal α across all pairwise comparisons at once rather than letting it compound the way a series of uncorrected t-tests would.2 It assumes the variances are equal across groups and performs best with equal or near-equal group sizes; when either assumption breaks, particularly the variance assumption, its error-rate control stops being trustworthy.

Games-Howell exists for exactly that failure case. It uses a Welch-type correction, calculating a separate standard error and degrees of freedom for every pair rather than pooling variance across all groups, so it stays valid whether the groups have equal variances and sample sizes or not.3 The practical rule is simple: check Levene's test (or the omnibus test's own equal-variances diagnostic) first, and let its result decide between the two, not familiarity or habit.

Dunn's test is the post-hoc procedure built for Kruskal-Wallis. Because Kruskal-Wallis operates on ranks rather than raw values, its follow-up test also compares mean ranks between pairs of groups rather than means, and Dunn's original 1964 paper specifies the correction needed to keep the family-wise error rate controlled across every pairwise rank comparison.5 In practice, Dunn's test is almost always paired with a Bonferroni correction (or a close variant such as Holm's step-down method), applied across every pairwise comparison in the family, not just the ones that turn out to look interesting.

A plain Bonferroni-corrected set of pairwise comparisons, dividing α by the number of comparisons and applying that stricter threshold to each individual test, is the simplest of the four and remains defensible for a small, prespecified set of comparisons decided before the data were seen. It is conservative, loses power quickly as the number of comparisons grows, and isn't gated by an omnibus test the way Tukey, Games-Howell, and Dunn's test typically are.

Which post-hoc test fits which situation
MethodUse afterHandles unequal variances?What it controls
Tukey HSDSignificant one-way ANOVA, variances roughly equalNo — assumes equal variancesFamily-wise error rate via the studentized range distribution
Games-HowellSignificant one-way ANOVA, variances unequal (Levene's test significant)Yes — built for itFamily-wise error rate with per-pair Welch-adjusted degrees of freedom
Dunn's testSignificant Kruskal-Wallis (ordinal, skewed, or non-normal data)N/A — compares mean ranks, not meansFamily-wise error rate via Bonferroni (or similar) correction across rank comparisons
Bonferroni-corrected pairwise testsA small, prespecified set of comparisons decided in advanceNoFamily-wise error rate via α/k per comparison

The correction has to cover the whole family, not just the interesting pairs. Running Dunn's test (or Bonferroni-corrected pairwise t-tests) across every possible pair, then reporting only the corrected P values for the comparisons that came out significant, quietly discards the correction's own logic. The family-wise error rate is only controlled if every comparison you actually ran is counted in the correction, whether or not you go on to report it.

A worked example: three surgical approaches, one skewed outcome

Suppose a study compares postoperative length of stay across three surgical approaches, open, laparoscopic, and robotic, in a cohort of 150 patients. Length of stay is bounded at zero and right-skewed by a small number of prolonged admissions, so the analysis plan calls for Kruskal-Wallis rather than one-way ANOVA. (This scenario is illustrative, not drawn from a specific published dataset.) The Kruskal-Wallis test returns H(2) = 9.8, P = .007, confirming that length of stay differs across at least one pair of approaches, but not which one.

Dunn's test with a Bonferroni correction across all three pairwise comparisons finds that the open-versus-robotic comparison is significant (adjusted P = .006) while open-versus-laparoscopic and laparoscopic-versus-robotic are not (adjusted P = .21 and .38). The Methods and Results sentences that follow from this, in AMA format, would read: "Length of stay differed significantly across surgical approach (Kruskal-Wallis H(2) = 9.8, P = .007). Dunn's post hoc test with Bonferroni correction showed a significant difference between the open and robotic groups (adjusted P = .006), with no significant difference between the laparoscopic group and either of the other two approaches." That is a materially different, more useful claim than "length of stay differed significantly by approach" on its own, and it is the sentence a reviewer expects to see once the omnibus test is significant.

How to run it — SPSS vs StatsPlease

In IBM SPSS Statistics (current documentation, version 32), the two families of post-hoc tests live in different places because they belong to different procedures. For the ANOVA case: Analyze › Compare Means › One-Way ANOVA, then the Post Hoc button opens the Multiple Comparisons dialog, where Tukey and Games-Howell both appear as tickable options in the same list. The Options button, back on the main dialog, has a "Homogeneity of variance test" checkbox that runs Levene's test, which is what should decide between the two before you even look at the pairwise output. The number that matters sits in the Multiple Comparisons table's "Sig." column, one row per pair, not the single P value in the ANOVA summary table above it; reading the ANOVA table's P value as if it already told you which groups differ is the most common misread of this output.

For the Kruskal-Wallis case, the pairwise comparisons live under a different route entirely: Analyze › Nonparametric Tests › Independent Samples (not the older Legacy Dialogs › K Independent Samples route, which returns only the omnibus H statistic with no built-in post-hoc). Running the newer procedure and then double-clicking the result to open the Model Viewer gives a Pairwise Comparisons view, with a comparison table showing each pair's standardised test statistic and an Adjusted Significance column that already has the Bonferroni correction applied across the full comparison set. The common misread here is assuming the legacy dialog's silence on post-hoc testing means SPSS "doesn't do" pairwise comparisons for Kruskal-Wallis, and falling back to a series of unadjusted Mann-Whitney tests instead.

Upload the dataset (or the relevant columns). StatsPlease's deterministic engine identifies the appropriate omnibus test and, where the result is significant, the matching post-hoc procedure from the variable type and study design, computes the result using fixed, non-LLM algorithms, and drafts the Methods/Results sentence in AMA format — the same numbers a reader would get running the tests by hand in SPSS.

References

  1. McHugh ML. Multiple comparison analysis testing in ANOVA. Biochem Med (Zagreb). 2011;21(3):203-209. https://doi.org/10.11613/BM.2011.029
  2. Tukey JW. Comparing individual means in the analysis of variance. Biometrics. 1949;5(2):99-114. https://doi.org/10.2307/3001913
  3. Games PA, Howell JF. Pairwise multiple comparison procedures with unequal N's and/or variances: a Monte Carlo study. J Educ Stat. 1976;1(2):113-125. https://doi.org/10.3102/10769986001002113
  4. Kruskal WH, Wallis WA. Use of ranks in one-criterion variance analysis. J Am Stat Assoc. 1952;47(260):583-621. https://doi.org/10.1080/01621459.1952.10483441
  5. Dunn OJ. Multiple comparisons using rank sums. Technometrics. 1964;6(3):241-252. https://doi.org/10.1080/00401706.1964.10490181

The post-hoc test is where "some group differed" turns into a claim a reader can act on, and it's also where the wrong choice is easiest for a reviewer to catch.

Whichever post-hoc procedure your omnibus result calls for, StatsPlease's deterministic engine applies the matching one automatically, Games-Howell instead of Tukey when the variances are unequal, Dunn's test with the correction it requires when Kruskal-Wallis is significant, and drafts the pairwise comparison sentence in AMA format from the same test statistics a reviewer could recompute by hand.

Try StatsPlease free