A study compares three training methods on several outcomes in two subgroups, and one comparison out of many gives a p-value of . How convincing is that? If independent tests of true null hypotheses each reject with probability exactly , the chance that at least one of them rejects is about percent. This lesson shows how to state in advance which comparisons answer the research question, how to define the family of claims, and how the Bonferroni, Holm, Tukey and Benjamini-Hochberg methods control two different kinds of error across that family.
Key terms
Planned contrast and post-hoc comparison
Definition For population means , a contrast is a combination
with coefficients that are not all zero. It is estimated by . Under the one-way ANOVA model, with independent normal errors of common variance, the estimated standard error and the test statistic for are
and has a t distribution with degrees of freedom when . A planned contrast is chosen from the research question before the data are seen and is recorded in the analysis plan. A post-hoc comparison is chosen after looking at the results, for example the pair of groups whose means differ most. An ordinary p-value or interval for a post-hoc comparison ignores how it was selected. A valid post-hoc analysis uses a method that covers every comparison that could have been selected, and otherwise the result is reported as exploratory.
In plain words Coefficients that sum to zero make the combination a comparison, since shifting every mean by the same amount leaves it unchanged. A planned contrast turns the research question into one number with its own uncertainty. A comparison picked because it looked large looks large partly by chance, so testing it as if it had been planned overstates the evidence.
Example Take the constructed training data of the one-way ANOVA lesson, with means , and minutes for methods A, B and C, three people per method, and with degrees of freedom. Suppose the analysis plan, written before the data were seen, asks whether C differs from the average of A and B. That planned contrast uses the coefficients , and , so
minutes. The sum is , so minutes. Then with degrees of freedom, and the two-sided p-value is about . With the critical value , the 95 percent confidence interval is , from about to minutes. The data are compatible with no difference and with a difference of several minutes.
Family-wise error rate
Definition A family is the set of hypotheses whose conclusions are reported and interpreted together, fixed before the results are seen. If is the number of true null hypotheses in the family that are rejected, the family-wise error rate is
the probability of at least one false rejection. A procedure controls the FWER at level if this probability is at most whichever of the null hypotheses are true. When true null hypotheses are each tested with rejection probability exactly and the tests are independent, the FWER is . Without independence the exact value depends on the dependence, and it is at most .
In plain words Each test at level has a small chance of a false alarm, but a family of many tests offers many chances. Controlling the FWER keeps the chance of even one false claim in the whole family at or below the chosen level. The family should match the set of conclusions readers are asked to trust, not be narrowed afterward to the one favorable result.
Example For independent tests of true null hypotheses, each rejecting with probability exactly ,
The expected number of false rejections is whether or not the tests are independent. Dependence changes the probability of at least one. If the tests were the same test repeated, it would stay , and for other dependence structures it can be anywhere between and .
Bonferroni correction
Definition For a family of hypotheses with p-values , the Bonferroni correction rejects when , or equivalently when the adjusted p-value is at most . Suppose each p-value is valid, meaning that for every in when is true. If is the set of the true null hypotheses, the union bound gives
with no assumption about dependence between the tests. In the same way, confidence intervals, each with confidence level , all cover their parameters simultaneously with probability at least .
In plain words Split the error budget evenly among the tests. The chance of at least one false rejection is at most the sum of the individual chances, so it cannot exceed . The price is power, since with many tests each threshold becomes small, and the actual FWER can fall far below when the tests are strongly positively dependent.
Example Take the p-values , and with and . The threshold is , so only the first hypothesis is rejected. The adjusted p-values are , and . Three separate 95 percent intervals do not in general cover all three parameters with probability 95 percent, but three intervals at the level percent do so with probability at least 95 percent. For three independent tests of true null hypotheses whose p-values are uniform on , the Bonferroni FWER is , just below .
Holm procedure
Definition Order the p-values as , with matching hypotheses . Holm’s procedure compares with
starting at . It rejects in turn while each p-value is at or below its threshold, and stops at the first one that is above. That hypothesis and all later ones are not rejected, and if no p-value fails, all are rejected. With valid p-values and any dependence, Holm controls the FWER at , and it rejects every hypothesis that Bonferroni rejects, sometimes more. The Holm-adjusted p-values are the running maxima of taken in order from , and a hypothesis is rejected when its adjusted value is at most .
In plain words Holm starts with the strict Bonferroni threshold for the smallest p-value and relaxes the threshold by one step after each rejection. The stopping rule is part of the guarantee, so once a p-value fails, no later hypothesis is rejected, even one whose p-value is below its own threshold. Keep the original labels attached to the sorted p-values so that each decision returns to the right hypothesis.
Example The sorted p-values , and meet the thresholds , and . The first is below , so its hypothesis is rejected. The second is above , so the procedure stops and neither of the last two hypotheses is rejected. The adjusted p-values are , then , then . The rejection says only that the first effect is not zero. Its size belongs in an estimate with an interval, preferably a simultaneous interval for the same family.
False discovery rate and the Benjamini-Hochberg procedure
Definition Let be the number of rejected hypotheses and the number of rejected null hypotheses that are actually true. The false discovery proportion is , which is when nothing is rejected, and the false discovery rate is its expectation
The Benjamini-Hochberg procedure at level orders the p-values, finds the largest with
and rejects , even if some of the smaller p-values were above their own thresholds. If no such exists, nothing is rejected. When the p-values of the true null hypotheses are independent of each other and of the remaining p-values, or under a certain kind of positive dependence, the procedure keeps the FDR at most . Under arbitrary dependence that guarantee can fail, and the Benjamini-Yekutieli variant, which replaces by , restores it. When every null hypothesis is true, every rejection is false, so the FDR equals the FWER.
In plain words The FWER asks how likely any false claim is. The FDR asks what fraction of the claims are false, on average over repeated use of the procedure. That suits screening many outcomes for follow-up, where a few false leads among many true ones are acceptable. With , Benjamini-Hochberg rejects every hypothesis that Holm rejects and often more. An FDR of 5 percent does not mean that 5 percent of this study’s discoveries are false. The proportion in one study can be larger or smaller.
Example With and , the thresholds are , and . For the sorted p-values , and , the second is below and the third is above , so the largest passing rank is and the first two hypotheses are rejected. Holm rejected only one. Neither calculation is wrong, since the two procedures control different error rates. The Benjamini-Hochberg adjusted p-values, the running minima of taken from down to , are , and .
Tukey procedure
Definition Consider the family of all pairwise differences in a one-way design with independent normal errors, a common variance and equal group sizes . Tukey’s procedure gives the intervals
where and is the upper point of the studentized range distribution. That is the distribution of the range of independent standard normal variables divided by an independent . All the intervals cover their differences simultaneously with probability , so declaring a pair different when its interval excludes controls the FWER at for the family of all pairs. With unequal group sizes the Tukey-Kramer version replaces by , and its joint coverage is at least . The procedure does not need a significant F test first. It covers only the pairwise family, not other contrasts, other outcomes or subgroups, and unequal variances call for a different pairwise method.
In plain words The pair with the largest and smallest means gives the most extreme of all pairwise comparisons, and the studentized range is the distribution of exactly that extreme when the means are equal. Using its critical value for every pair accounts for the fact that the pair that looks most different may have been picked for that reason.
Example For the training data , , and , and , so minutes. The intervals are for B minus A and for C minus B, and , from about to , for C minus A. All three contain . Now suppose someone notices that C minus A is the largest difference and runs an ordinary t test on it. That gives with degrees of freedom and a p-value of about , just below . When all three population means are equal, testing the largest of the three differences in that way rejects about 11 percent of the time under this model, not 5 percent. Bonferroni intervals for the three pairs would have half-width about , wider than Tukey’s, because Tukey uses the exact joint distribution for this family.
Check yourself
- A family of three hypotheses, declared in advance, gives the p-values , and . Apply Holm’s procedure at and compare the result with Bonferroni.
Show the answer
The Holm thresholds are , and . The value is below , then is below , then is below , so all three hypotheses are rejected. The Holm-adjusted p-values are , and .
Bonferroni compares every p-value with , so it rejects only the first hypothesis. Both procedures control the FWER at , and Holm gains power by relaxing the threshold after each rejection.
- The p-values , and form a family of three. Apply Holm at and Benjamini-Hochberg at . Someone argues that Holm should also reject the third hypothesis because is below its threshold . Is that right?
Show the answer
For Holm, is below , so the first hypothesis is rejected, but is above , so the procedure stops there. The third hypothesis is not rejected, even though is below , because the stopping rule is part of what guarantees FWER control. The Holm-adjusted p-values are , and .
For Benjamini-Hochberg the thresholds are , and . The largest rank that passes is , since , so all three hypotheses are rejected, including the second even though is above . The procedures disagree because they control different error rates, the chance of any false rejection for Holm and the expected fraction of false rejections among the rejections for Benjamini-Hochberg.
- The same p-values , and turn out to be the three smallest of analyses across outcomes and subgroups. What does Holm’s procedure give for the full family, and what should a report disclose?
Show the answer
With the first Holm threshold is . The smallest p-value is above it, so the procedure stops at once and nothing is rejected. The Holm-adjusted value of the smallest p-value is .
Presenting a family of three would hide the other analyses and claim an error control that the search does not have. A report should state how many analyses were run and how they were chosen, give all the results or a complete summary, say which comparisons were planned and which were exploratory, name the error rate controlled across the full family, and give estimates with intervals. The three results can still suggest a new study with a planned contrast.