Multiple Comparisons
Canonical reference: Maxwell, Delaney, & Kelley (MDK) ref/mdk
Testing several comparisons in one study multiplies the opportunities for a Type I error: each contrast evaluated at is a fresh -probability chance of rejecting a true null. Multiple-comparison procedures control the error rate for a collection of tests rather than for each test in isolation. The collection is built from the comparisons defined in Linear Contrasts, and the procedures below presuppose the equal-variance, independent-groups setting of One-Way ANOVA. Bonferroni’s family definition and union-bound argument also accommodate comparison-specific within-person errors, as developed in Repeated-Measures Comparisons.
Per-comparison and familywise error
Two error rates must be distinguished.
- The per-comparison error rate is the probability of falsely rejecting one particular true null hypothesis.
- The familywise error rate is the probability of making at least one Type I error among the comparisons in a declared family. When the family comprises every comparison in a one-factor experiment, the same quantity is called the experimentwise error rate, and the two labels coincide.
Keeping each individual test at does not keep the family at . For tests each conducted at , the probability of at least one false rejection is
which is exact when the tests are independent. Three independent tests at give , nearly three times the nominal level. Comparisons within one ANOVA are typically dependent — they share the data and the pooled — so this independence formula is not an exact calculation of their familywise rate. The qualitative conclusion stands: uncorrected testing inflates that rate above the per-comparison level.
A count of errors answers a different question from the probability of any error. If is the number of true null hypotheses falsely rejected, then
where is the per-comparison level for hypothesis . When all nulls are true and every test uses the same , this expected number of Type I errors per experiment is . Because an experiment with errors contributes one to the familywise event but may contribute more than one to the error count,
Bonferroni’s choice therefore bounds both the expected error count and the probability of at least one error. Controlling that probability, rather than merely the per-comparison rate or expected count, is the default goal of the familywise procedures below; false discovery rate is a distinct alternative.
The scope of the problem grows quickly with the number of groups. With group means there are
possible pairwise comparisons — six for four groups, forty-five for ten.
Planned and post hoc comparisons
A planned comparison is selected before the data are examined; a post hoc comparison is selected after examining some or all of the data. The distinction matters because selection itself creates error pressure: testing whichever pair of means differs most, after looking, is a search over the whole pairwise family and carries more than the nominal per-comparison risk, even though only one test is reported.
What a correction must protect is therefore a defined family:
- Bonferroni requires a finite family defined independently of which results happen to look interesting — small and planned is the typical case, but a post hoc family such as all pairwise comparisons also qualifies. It cannot discipline a family whose membership is chosen because those particular results look interesting.
- Tukey’s procedure takes the family to be all pairwise comparisons, whether they were planned or chosen after inspection, which is what makes it immune to pairwise data snooping.
- Scheffé’s procedure protects the family of every possible contrast, which covers complex comparisons suggested by the observed means.
For a pairwise family, equals a subset’s size only when that subset was fixed in advance and the remaining pairs are genuinely not tested. Adding pairs after inspecting the data expands the family to all pairs; dropping uninteresting or nonsignificant pairs after looking does not shrink it again. In either case, use the full pairwise family or a procedure such as Tukey’s that protects it. Changing to match only the tests ultimately reported invalidates the claimed confirmatory error rate.
The Bonferroni procedure
Across a declared family of comparisons, test each at
for example for a family of three. The guarantee that follows from the union bound — the probability that at least one of several events occurs never exceeds the sum of their probabilities — so the correction is valid for any defined finite family and requires no independence among the tests.
Three equivalent decision routes:
- Compare each unadjusted p-value to .
- Compare each observed to the Bonferroni critical value , which depends only on the family size and the error degrees of freedom. A contrast has numerator df 1, so is the corresponding two-tailed critical value.
- Compare the Bonferroni-adjusted p-value to the familywise .
Route 3 shows why adjusted p-values must be computed from unrounded p-values: an observed on df has , so ; doubling the rounded would yield , a pure rounding artifact.
Equal division is not required. Per-comparison levels may be allocated unequally, provided they are fixed before examining the data and satisfy . A larger share for a priority contrast increases its power, while the remaining contrasts receive correspondingly less; allocating levels after seeing which results are close to significant destroys the guarantee.
Software needs the same family definition. A “Bonferroni” menu option may default to all pairwise comparisons or omit complex contrasts, so its default need not be the declared family’s . Verify the family and contrast coefficients rather than treating the procedure label as sufficient.
Worked example
A three-group study compares two active treatments with a control ( per group; means , , ; ; see One-Way ANOVA). Two comparisons are declared in advance — active A versus active B, coefficients , and the average of the actives versus control, coefficients — so and .
| Comparison | Decision | ||||
|---|---|---|---|---|---|
| A vs. B | Fail to reject | ||||
| Average of actives vs. control | Reject |
Interpretation keeps standard limits: the significant complex contrast says the average of the active treatments differs from control, not that each active treatment individually does; and the nonsignificant pairwise test does not show the two active treatments are equivalent.
Simultaneous confidence intervals
Ordinary intervals, taken as a set, do not provide coverage — and a Bonferroni decision can disagree with an ordinary interval that straddles zero. Bonferroni simultaneous intervals replace the ordinary critical value with the Bonferroni one:
with as in Linear Contrasts. For the complex contrast above, and the margin is , giving the simultaneous interval against the ordinary . The simultaneous interval is wider by construction and still excludes zero, consistent with the adjusted decision; coverage over the whole family is at least the nominal level.
The test–interval duality is general: a simultaneous procedure rejects exactly when its corresponding interval excludes . Intervals go beyond a homogeneity or significance claim by establishing direction and a range of plausible magnitudes. A procedure that merely reports that some difference exists does not, by itself, license either claim.
Tukey’s HSD and the studentized range
When the questions are all pairwise — planned or post hoc — Tukey’s honestly significant difference (HSD) controls over the entire collection of differences.
The logic begins with the largest observed difference . Even when all population means are equal, sampling variability makes some observed difference largest, so the maximum must be judged against a distribution that reflects the search over all pairs. The studentized range statistic
has that distribution; for equal it is just the largest pairwise rescaled, since . Critical values of are tabled by , the number of groups , and .
For equal sample sizes, a pairwise test uses
rejecting when exceeds the Tukey critical value. Equivalently, the margin of the simultaneous pairwise interval,
is the minimum significant difference: a pairwise difference is significant exactly when its absolute value exceeds the HSD.
Worked example
Four conditions with means , , , , per group, , . With :
- , and (both rounded).
- The pairwise differences are , , , , , ; only and exceed (equivalently, only their values of and exceed ; the -point differences give , the -point differences ).
The first condition is declared different from the third and fourth; the remaining pairs, including the two -point gaps, are not distinguished. Those nonsignificant gaps are not evidence of equality — the HSD threshold is coarse relative to the sample size available.
The example also shows why the size of an estimated difference alone cannot settle significance. The pairwise weighs the squared difference against , so the same -point gap would clear the threshold with less within-group variability or larger samples, and fail it with more variability or fewer observations. The correction matters as well: the -point gaps give , which exceeds the uncorrected critical value but not Tukey’s (see the critical-value table below). Significance is a joint property of the difference, the error estimate, the sample size, and the procedure’s critical value — never of the difference alone.
The Scheffé procedure
Scheffé’s method applies when the interesting contrast may be any contrast among the means, including a complex one suggested by the observed pattern — the setting where Bonferroni has no well-defined family and Tukey’s pairwise family is too narrow. The test statistic is the ordinary contrast from Linear Contrasts; only the critical value changes:
that is, the omnibus critical multiplied by . The same threshold applies to every contrast, however it was constructed, and the familywise level holds across all possible contrasts simultaneously.
In the four-condition example, , so . Suppose the means suggest comparing the average of the last three conditions with the first: , so and , giving . Since , the data-suggested contrast is rejected. The same threshold would retain the pairwise and reject the pairwise .
The breadth often has a price: for a small declared family, Bonferroni can be less demanding, and for an all-pairwise family Tukey’s specialized procedure is less demanding. But family breadth alone does not determine the ordering. Bonferroni’s critical value rises with the number of comparisons, whereas Scheffé’s does not, so Scheffé can eventually be less demanding even for a finite family specified in advance. The direct comparison appears under Choosing a procedure.
Dunnett’s comparisons with a control
When the only questions are the treatment–control differences, Dunnett’s many-one procedure protects exactly that family. It does not protect comparisons among the treatments; giving up those irrelevant tests is the source of its greater precision relative to Tukey’s all-pairwise family.
The observed contrast or is unchanged. For a two-sided family, compare with Dunnett’s critical , or equivalently compare with ; simultaneous intervals use . Dunnett tables report -type critical values and index as the number of groups including the control. A one-sided procedure requires a direction fixed in advance and the corresponding one-sided critical value and interval.
For the running design (, , ), the two-sided value is , so . This is below both Bonferroni’s for three declared comparisons and Tukey’s for all six pairwise comparisons. The comparison illustrates the specialized family’s precision; it does not make Dunnett valid for treatment–treatment questions.
Dunnett’s T3 is a different procedure. T3 is an unequal-variance, all-pairwise method, not the many-one correction described here.
Hsu’s comparisons with the best
The best-treatment question is not an all-pairwise question. Suppose larger means are better, and for each group define
Group is uniquely best when and is not best when . Hsu’s method forms simultaneous intervals for these differences using Dunnett’s distribution, but with the unknown “best of the others” taking the role that a known control plays in Dunnett’s procedure.
Each interval has three possible interpretations:
- entirely above zero: group is confidently identified as best;
- entirely below zero: group is confidently ruled out as best;
- containing zero: group remains a candidate for best.
The result may therefore be a possibly-best subset, not one winning group. That subset is a confidence statement about which groups remain plausible, not a failure to perform the analysis. If smaller means are better, reverse the comparison direction.
Unconstrained intervals use two-sided Dunnett critical values and retain information about how much better or worse a group may be. Constrained intervals use one-sided values and truncate limits at zero; they are narrower for selection but do not estimate that magnitude. The table-based forms assume equal sample sizes and homogeneous variances. Unequal sample sizes require software-computed critical values; these recipes do not establish an unequal-variance counterpart.
Error control and power
Holding the data and the test fixed, a smaller per-comparison level means a more extreme statistic is required to reject, wider simultaneous intervals, and lower power against any real nonzero contrast. The critical values themselves show the trade. For , , :
| Procedure | Family protected | Critical |
|---|---|---|
| Uncorrected test | One comparison | |
| Bonferroni, | Three declared comparisons | |
| Dunnett | Three treatment–control comparisons | |
| Tukey | All six pairwise | |
| Bonferroni, | All six pairwise | |
| Scheffé | Every possible contrast |
The specialized rows show why the protected family matters. Dunnett is the least demanding correction for the three treatment–control questions. For the all-pairwise family Tukey’s threshold is smaller than Bonferroni’s — Tukey is the more powerful procedure there — while Bonferroni protecting a small declared family can be less demanding than Tukey. Scheffé’s presence does not yield a universal ordering: its threshold is constant in , whereas Bonferroni’s rises with . The direct comparison under Choosing a procedure shows when each is more powerful.
The Šidák adjustment, , is slightly less conservative than Bonferroni. Equality with the familywise level holds for independent tests, but independence is not necessary for the inequality in every ANOVA application: Šidák’s probability inequality also covers nonorthogonal two-sided contrasts under the normal model. Thus dependence does not by itself make the adjustment invalid, although the result is not a distribution-free rule for arbitrary tests. The power gain over Bonferroni is small.
Fisher’s protected LSD and weaker alternatives
Fisher’s least significant difference (LSD), also called the protected -test, uses two stages:
- Test the omnibus null at . If it is not rejected, stop without testing individual contrasts.
- If it is rejected, test the individual contrasts at the ordinary per-comparison level, traditionally all pairwise comparisons at .
The gate protects the procedure when the complete null is true: if every mean is equal, the second stage is reached erroneously only at the omnibus level. It does not provide the same protection under a partial null. For example, if ten groups have equal means and an eleventh is sufficiently different to make omnibus rejection nearly certain, the gate no longer protects the 45 true pairwise nulls among the first ten. Testing all of them at produces a familywise error rate far above — approximately in the textbook’s illustration, with the precise value depending on the design and dependence among tests.
Protected LSD has a special three-group exception: under the usual ANOVA assumptions, its two-stage form controls the familywise rate for three groups. Even there, it does not provide appropriate simultaneous confidence intervals, so the exception is limited to hypothesis testing.
Newman–Keuls and Duncan’s multiple-range procedures share LSD’s familywise failure for more than three groups. REGW-Q and REGW-F can control familywise error but do not establish confident directions or simultaneous intervals. Software labels also need care: Tukey-b is not Tukey HSD and does not carry the same familywise guarantee. A smaller second-stage critical value is not evidence of superior familywise power when the procedures do not control the same error rate.
False discovery rate
Familywise error control asks for the probability of any false rejection. The false discovery rate (FDR) instead asks how large the false fraction of the reported discoveries tends to be. Let be the total number of rejections and the number that are false. The false discovery proportion and its expectation are
Thus is an event probability, whereas FDR is an expected proportion. Under the complete null, is 1 whenever any rejection occurs and 0 otherwise, so FDR and FWER coincide. More generally, , so FDR cannot exceed FWER for the same procedure. When some nulls are false, controlling FDR may therefore permit a more powerful rule while allowing FWER to exceed its target.
For a simple illustration, suppose a rule produces no false rejection 80% of the time. In the other 20%, suppose one true null is falsely rejected along with three correct rejections of false nulls. Then
This is not a loosened familywise guarantee; it is a different error target.
Benjamini–Hochberg step-up procedure
For hypotheses, first order the p-values . At target FDR , find
If no qualifies, reject nothing. Otherwise reject the hypotheses with the smallest p-values, including any whose own p-value exceeds its individual threshold. The thresholds range from Bonferroni’s at the smallest p-value to at the largest, but the step-up decision is based on the largest qualifying rank, not separate decisions at each rank.
For example, with and :
| Rank | Qualifies individually? | ||
|---|---|---|---|
| 1 | Yes | ||
| 2 | No | ||
| 3 | Yes | ||
| 4 | No | ||
| 5 | No |
Here , so the three smallest p-values are rejected — including , despite its exceeding its own threshold.
The original Benjamini–Hochberg result proves control for independent test statistics. Later dependency results establish control under positive regression dependence on the true nulls (PRDS) as well. For arbitrary dependence, the Benjamini–Yekutieli variant replaces by , where , giving thresholds and a more conservative procedure.
FDR is often useful for large exploratory families in which some false rejections can be tolerated provided they remain a small expected fraction of the discoveries. It is not a substitute when a confirmatory claim requires a familywise guarantee. BH-adjusted p-values also do not, by themselves, provide simultaneous confidence intervals or familywise-adjusted p-values.
Choosing a procedure
First choose the error target. Except for the final FDR row, this table assumes the equal-variance ANOVA setting and seeks familywise control:
| Question at hand | Procedure |
|---|---|
| A small declared finite family | Bonferroni, after comparison with any valid specialized procedure |
| A larger declared finite family including complex contrasts | Compare Bonferroni and Scheffé critical values as below |
| All pairwise comparisons, or pairwise choices made after inspecting the data | Tukey HSD |
| Data-suggested complex contrasts or unrestricted contrast exploration | Scheffé |
| Several comparisons against a single control group | Dunnett’s method |
| Identifying the best treatment | Hsu’s method |
| Three groups, omnibus-gated tests only, with no simultaneous intervals | Fisher’s protected LSD is defensible; not a general familywise procedure |
| Many exploratory hypotheses; control the expected false fraction rather than FWER | Benjamini–Hochberg, subject to its dependence conditions |
When more than one procedure validly protects the declared family, prefer the one with the smaller critical value. Family validity comes first: this rule cannot make Bonferroni valid for a family whose membership was selected because of the observed results, or Tukey valid for complex contrasts. Dunnett and Hsu provide the specialized many-one and best-selection mechanics above; the FDR row deliberately leaves the familywise framework rather than competing as another familywise correction.
A declared subset of pairwise comparisons is another overlap: Tukey remains valid because it protects the full pairwise superset. Bonferroni can be less demanding for a sufficiently small subset, but not simply because that subset is planned. In the running four-group example, Bonferroni is less demanding for four declared pairwise tests (), but Tukey is less demanding for five (). Here too, compare the valid critical values rather than relying on “planned” or “small” alone.
Bonferroni versus Scheffé for a finite family
When both are valid candidates for a declared family of contrasts, calculate both critical values at the same :
If , use Bonferroni; if , use Scheffé. Equality gives the same rejection threshold. Both procedures judge the same single-contrast statistic, so for a fixed contrast and a fixed nonzero alternative, the smaller critical value gives greater power. It also gives the narrower simultaneous confidence interval. The observed contrast does not enter this choice.
Return to the four-group example with and . Scheffé’s critical value remains regardless of , while Bonferroni’s crosses it between seven and eight comparisons. Three decimals are shown because the gap is small:
| More powerful | |||
|---|---|---|---|
| 7 | Bonferroni | ||
| 8 | Scheffé |
Thus, Scheffé can be more powerful than Bonferroni for a sufficiently large finite family, even when every contrast was planned. The crossover is not universally at : it depends on , , and . In this example, families of seven or eight contrasts necessarily include complex comparisons because four groups yield only six pairs. For an all-pairwise family, Tukey remains the specialized choice rather than a reason to switch to Scheffé.
Make the choice from the declared family and design, not by trying both procedures after seeing the data and reporting whichever one rejects.
The omnibus test and follow-up procedures
A significant omnibus is not a prerequisite for Bonferroni, Tukey, Dunnett, or Hsu. These procedures control their designated familywise error rate on their own; requiring an omnibus rejection first makes them more conservative than nominal and sacrifices power. The omnibus test answers a different, global question — whether any mean differences exist — and can be reported for that purpose rather than used as a gate. Fisher’s protected LSD is the exception because its second stage explicitly depends on the gate.
Scheffé has a different relationship: the omnibus gate is redundant because the two procedures are exactly coherent. The largest possible contrast statistic satisfies
Consequently, the omnibus test rejects if and only if at least one contrast rejects under Scheffé. If the omnibus test does not reject, no Scheffé significant contrast exists; if it does reject, at least one exists. One maximizing contrast, up to nonzero rescaling, has coefficients
That maximizing contrast may be complex and data-derived, and it need not be pairwise or substantively interesting. Tukey does not share this coherence: the omnibus test and the set of Tukey pairwise decisions can disagree in either direction.
Unequal sample sizes or unequal variances
As presented, the procedures pool a common , and the Tukey formulas assume equal . Unequal sample sizes alone require no modification of Bonferroni or Scheffé—the contrast standard error already accommodates unequal —whereas Tukey needs the Tukey–Kramer variant. Balanced designs reduce sensitivity to unequal variances but do not make a variance violation harmless.
-
Unequal variances, a declared finite family. Bonferroni combines with any per-comparison test: applying its level across separate-variance (Welch-type) contrast tests preserves the union-bound logic. With the Welch statistic and contrast-specific defined in Linear Contrasts, a simultaneous interval is
Software can use the fractional Satterthwaite df directly; these are approximate rather than exact normal-theory intervals.
-
Unequal variances, every possible contrast. The Brown–Forsythe modification of Scheffé uses the same Welch contrast statistic but critical value . The interval multiplier is , paralleling the pooled Scheffé form.
-
Unequal variances, all pairwise. Dunnett’s T3 uses the studentized maximum-modulus distribution; Games–Howell retains a studentized-range form but substitutes the separate-variance standard error and pairwise Welch df. Both differ from simply applying the pooled Tukey threshold. Their approximate accuracy depends on the design and should be judged from simulation evidence rather than a universal sample-size rule.
-
Unequal , equal variances. The Tukey–Kramer modification of the pairwise test uses
with denominator , compared against the Tukey critical value.
Connections
- Linear Contrasts supplies the contrast estimates, standard errors, and single-contrast and statistics that every correction adjusts, along with orthogonality and the partition of between-group sums of squares.
- One-Way ANOVA supplies , , and the omnibus test’s global question; the section above explains why that test is not a general gate for follow-up procedures.
- Model Comparison expresses each contrast test as a restricted-versus-full model comparison, of which the corrections above are error-control overlays.
- Crosswalk of ANOVA Quantities aligns the errors, sums of squares, and degrees of freedom across naming traditions and tabulates the degrees of freedom used by each of these procedures.
- ANOVA Power develops the omnibus-power framework; the critical-value comparisons in this note show the corresponding cost of multiplicity control.
- Hypothesis Testing and P-Values carry the decision language and the interpretation of raw and adjusted p-values.