01 / 21

Post-Hoc
Comparisons

After ANOVA tells you something differs, post-hoc tests reveal exactly which groups are driving that difference: and how to do it without inflating your error rate.

Business Statistics

What Is a Post-Hoc Test?

"Post-hoc" is Latin for "after this." In statistics, it refers to pairwise comparisons made after an ANOVA has rejected the null hypothesis. ANOVA tells you that at least one group mean differs, but it does not tell you which specific pairs of means are different.

Why Not Just Use Multiple \(t\)-Tests?

If you have \(k\) groups, the number of pairwise comparisons is \(\binom{k}{2} = \frac{k(k-1)}{2}\). Each test at \(\alpha = 0.05\) carries a 5% false-positive risk. Running many tests inflates the overall error rate dramatically.

0% 20% 40% 60% 80% Family-wise Error Rate Number of Groups (k) 0.05 2 5% 3 14% 4 26% 5 40% 7 66% 10 90%

The Family-wise Error Rate

The family-wise error rate (FWER) is the probability of making at least one Type I error across all pairwise comparisons. If each test uses significance level \(\alpha\), then for \(m\) independent comparisons:

\(\alpha\)
Per-comparison significance level (typically 0.05)
\(m\)
Total number of pairwise comparisons in the family
FWER
Overall probability of at least one false rejection

When Do You Need Post-Hoc Tests?

Run ANOVA (F-test) p < 0.05? Reject H0? No Stop. No differences. Yes Run Post-Hoc Tests Identify which specific pairs differ

The Bonferroni Correction

The simplest post-hoc adjustment: divide the significance level by the number of comparisons. Each pairwise test uses an adjusted alpha:

Strength
Simple, widely applicable, works with any test statistic
Weakness
Very conservative: as \(m\) grows, power drops sharply

Tukey's HSD Test

Tukey's Honestly Significant Difference (HSD) is the most popular post-hoc test. It compares all pairs simultaneously using the Studentized Range Distribution \(q\).

1
\(q_{\alpha, k, N-k}\) : critical value from the Studentized Range table
2
\(MS_W\) : Mean Square Within (from the ANOVA table)
3
\(n\) : sample size per group (assumes equal group sizes)

Bonferroni vs. Tukey

Bonferroni Tukey HSD
Approach Adjusts \(\alpha\) for each test Uses Studentized Range \(q\)
Comparisons Any subset of pairs All pairwise comparisons
Conservatism More conservative Less conservative
Equal Sizes? Not required Assumes equal \(n\)
Best When Few planned comparisons All pairs need testing

Other Post-Hoc Methods

Scheffé
Most conservative. Allows any contrast (not just pairwise). Best for complex comparisons.
Fisher's LSD
Least conservative. Essentially individual \(t\)-tests after ANOVA. Higher power but weaker error control.
Dunnett
Compares each treatment to a single control group. Fewer comparisons means more power.

How to Apply Post-Hoc Tests

1
Run ANOVA first. Confirm the overall F-test is significant (\(p < \alpha\)).
2
Choose a post-hoc method. Tukey for all pairs, Bonferroni for a few planned comparisons, Dunnett for control vs. treatments.
3
Compute the critical difference (e.g., Tukey HSD threshold) or the adjusted \(p\)-values.
4
Compare each pair. If \(|\bar{X}_i - \bar{X}_j| > \text{HSD}\) (or adjusted \(p < \alpha\)), declare that pair significantly different.
5
Report results. List which pairs differ and which do not. Use a compact letter display or table.

Example: Three Ad Campaigns

A company tests three advertising campaigns (A, B, C) on click-through rates. Each campaign is shown to \(n = 10\) users. ANOVA yields \(F = 5.82\), \(p = 0.008\). We reject \(H_0\) and proceed with Tukey HSD.

Campaign A
\(\bar{X}_A = 4.2\%\)
Campaign B
\(\bar{X}_B = 5.8\%\)
Campaign C
\(\bar{X}_C = 6.1\%\)

Computing the HSD Threshold

Now compare every pair of means against the threshold of 1.33:

Pair \(|\bar{X}_i - \bar{X}_j|\) Significant?
A vs. B \(|4.2 - 5.8| = 1.6\) ✓ Yes (1.6 > 1.33)
A vs. C \(|4.2 - 6.1| = 1.9\) ✓ Yes (1.9 > 1.33)
B vs. C \(|5.8 - 6.1| = 0.3\) ✕ No (0.3 < 1.33)

Example: Bonferroni with 4 Groups

A retailer tests 4 store layouts (k = 4). ANOVA is significant. Using Bonferroni at \(\alpha = 0.05\):

Each pairwise \(t\)-test must have \(p < 0.0083\) to be declared significant. Suppose the results are:

Pair \(p\)-value Significant?
1 vs. 20.032✕ No
1 vs. 30.004✓ Yes
1 vs. 40.001✓ Yes
2 vs. 30.210✕ No
2 vs. 40.018✕ No
3 vs. 40.045✕ No

Visualizing Post-Hoc Results

A common way to display post-hoc results is a mean comparison diagram with connecting lines showing which groups differ significantly.

Mean Score 0 20 40 60 A 25 B 38 C 41 * ** n.s. Significant Not sig.

Common Mistakes

✕ Skipping ANOVA
Running post-hoc comparisons without first confirming a significant overall F-test inflates error rates.
✕ No Correction
Performing multiple \(t\)-tests without adjusting \(\alpha\) leads to a family-wise error rate far above 0.05.
✕ Wrong Method
Using Tukey HSD with unequal group sizes, or Bonferroni when all pairs need testing (unnecessarily conservative).

Summary of Post-Hoc Methods

Method Controls FWER? Conservatism Best Use
Bonferroni ✓ Yes High Few planned comparisons
Tukey HSD ✓ Yes Moderate All pairwise (equal \(n\))
Scheffé ✓ Yes Highest Complex contrasts
Fisher LSD ✕ Weak Low Exploratory only
Dunnett ✓ Yes Moderate Treatments vs. control

Question 1 of 5

What is the primary purpose of a post-hoc test?

Question 2 of 5

With \(k = 5\) groups, how many pairwise comparisons are there?

Question 3 of 5

Using the Bonferroni correction with \(\alpha = 0.05\) and \(m = 10\) comparisons, what is the adjusted significance level for each test?

Question 4 of 5

A researcher runs an ANOVA on 3 groups and gets \(p = 0.12\). What should they do next?

Question 5 of 5

Which post-hoc method is most appropriate when you want to compare every treatment group to a single control group?