10/17
Part 5 of 7 · Many tests at onceLearn and do

Holm rejects at least as much as Bonferroni

Bonferroni holds every p-value to the strictest bar, α/m. Holm's method relaxes the bar as it goes. Sort the p-values, compare the smallest with α/m, the next with α/(m − 1), and so on. A p-value at most its bar is rejected, and the first one above its bar stops the walk. It rejects everything Bonferroni rejects, and it still keeps the chance of any false alarm at α.

Three metrics come back with p-values of 0.01, 0.015 and 0.04, at α = 0.05:

RankpHolm's bar, α/(m − k + 1)Bonferroni's bar, α/m
10.010.0167: rejected0.0167: rejected
20.0150.025: rejected0.0167: rejected
30.040.05: rejected0.0167: kept

Holm finds all three, and Bonferroni finds two. The stop matters: once a p-value misses its bar, every larger one is kept, even if it would clear a later bar.

In the editor, write holm(ps, alpha). It prints what Holm rejects for the three metrics above.