11/17
Part 5 of 7 · Many tests at onceLearn and do
Benjamini-Hochberg keeps the largest rank that passes
Benjamini-Hochberg works on ranks too, with a different rule: it finds the largest rank whose p-value is at most k/m × q, and rejects everything up to it, even past an earlier miss.
Four p-values at q = 0.05:
| Rank k | p | Bar, k/m × q | |
|---|---|---|---|
| 1 | 0.01 | 0.0125 | passes |
| 2 | 0.03 | 0.025 | misses |
| 3 | 0.035 | 0.0375 | passes |
| 4 | 0.5 | 0.05 | misses |
The largest rank that passes is 3, so the three smallest are rejected, the 0.03 included. Holm would have stopped at rank 2.
In the editor, write benjamini_hochberg(ps, q). It prints what it rejects for the dashboard's ten p-values.