Skip to content

Benchmark tables and multiplicity

A table of models × metrics × slices is a family of comparisons. Define the family before you look, choose familywise or false-discovery control on purpose, adjust the whole family, and report effects with intervals.

Advanced ~14 min9 steps

What runs in CodeSplash

You will be able to

  • Define the family of comparisons behind a results table before testing
  • Choose between Holm and Benjamini–Hochberg by the error rate you need
  • Apply both procedures to a short list of p-values
  • Explain why slice discovery needs a split or an adjustment

Read first

01

A table is a family

Read

Five models, four metrics and six slices make 120 comparisons. Bold the best cell in each column and some of the bold will be luck. That table is a family of hypotheses, whether or not anyone wrote down a p-value.

Define the family before testing: which models, which metrics are primary, which slices were planned. Keep exploratory screening apart from confirmatory claims. Adjusting only the few comparisons you chose to publish, after looking at many, doesn't account for the search.

02

Two error rates

Read
  • HolmHolm correctionA step-down version of Bonferroni that controls the same error rate with more power; use it instead. controls the familywise error rateFamily-wise error rateThe chance of at least one false positive across a family of tests.: the chance of even one false claim. It is valid under any dependence between the tests, and never rejects less than Bonferroni.
  • Benjamini–HochbergBenjamini–Hochberg procedureControls the false discovery rate by comparing sorted p-values with rising thresholds. controls the false discovery rateFalse discovery rateThe expected share of false positives among the results you call significant.: the expected share of false claims among those you make. Its standard guarantee needs independent or positively dependent tests.

Pick by the decision. When one false claim would be costly (a model promoted to production), control the familywise rate. When you screen many candidates for follow-up, the false discovery rate may be the right budget.

Reference · EVA055 · Runs in CodeSplashHolm and Benjamini–Hochberg multiplicity proceduresControl different error rates when many model, subgroup, or metric hypotheses are tested.
03

Step by step

Read

Sort the mm p-values from smallest up. Holm steps down: reject while p(i)≤α/(m−i+1)p_{(i)} \le \alpha/(m-i+1), and stop at the first failure. Benjamini–Hochberg steps up: find the largest kk with p(k)≤kq/mp_{(k)} \le kq/m and reject the first kk.

In the reference's example with four p-values, the Holm-adjusted values are 0.016, 0.06, 0.08 and 0.2. The R version also prints the BH-adjusted values: 0.016, 0.04, 0.053 and 0.2. At 5%, Holm keeps one claim and BH keeps two.

04

See the step-up

Explore

Drag the p-values and watch which ones Benjamini–Hochberg keeps. The rising line is kq/mkq/m; everything up to the last point under it is rejected, even points that sit above the line earlier.

BExplorable · The Benjamini–Hochberg step-up

How does controlling the false discovery rate find more than Bonferroni while keeping errors in check?

How many tests will Benjamini–Hochberg reject?

100
How sure?
40
8
3.0
0.10
Benjamini–Hochberg rejects 5

Commit your prediction above to see the result

Make your prediction first; the figure appears when you commit.

Make your prediction to see the result.

BH doesn't control the chance of any false claim; it controls their expected share. A list of BH discoveries can contain some false ones by design.

05

Finding the weak slice honestly

Read

"Where does the model do worse?" is a search. Scan fifty slices and the worst one will look bad partly by chance, and look less bad on new data.

Two fixes: plan the slices in advance (the evaluation plan), or split the rows, search on one half and measure the chosen slices on the other, adjusting for how many you carried forward. Report each slice's row count and interval; small slices give unstable rankings, and a slice difference isn't a causal explanation.

06

Multiplicity in CodeSplash

In the app

In Predict's run Slices tab, Weak-slice search picks candidate slices on one half of the rows and measures them on the other half, with Benjamini–Hochberg across the candidates; Results by slice in the Evaluate step shows the slices you planned. The comparison view adds "All models together" (a Friedman-type test across folds) before pairwise differences.

In Analyze, the multiplicity ledger keeps a family across the analyses of a project and adjusts it with Bonferroni, Holm, Hochberg, Hommel, Benjamini–Hochberg or Benjamini–Yekutieli.

07

What runs here

Read
08

Check: multiplicity

Checkpoint

Check yourself

After comparing 8 models on 5 metrics, you report the 3 comparisons with the smallest p-values, Holm-adjusted among those 3. What is wrong?

Show the answer

Answer: b

The adjustment must cover every comparison that could have been reported. Post hoc filtering can't restore validity.

Check yourself

Holm at α = 0.05 with p-values .003, .012, .030, .200. How many hypotheses are rejected?

Show the answer

Answer: 2

Thresholds .05/4 = .0125, .05/3 ≈ .0167, .05/2 = .025. The first two pass (.003 ≤ .0125, .012 ≤ .0167); .030 > .025 stops the procedure.

Check yourself

Benjamini–Hochberg at q = 0.05 with the same p-values .003, .012, .030, .200. How many are rejected?

Show the answer

Answer: 3

Lines kq/m: .0125, .025, .0375, .05. The largest k with p(k)p_{(k)} under its line is k = 3 (.030 ≤ .0375), so the first three are rejected.

Check yourself

You screen 200 candidate features for a follow-up study and can tolerate some false leads. Which control fits?

Show the answer

Answer: b

Screening for follow-up budgets the share of false leads, not the chance of any. BH spends that budget with more power.

Check yourself

What does controlling the false discovery rate at 5% promise?

Show the answer

Answer: b

FDR is an expected proportion. Any single list can contain false discoveries.

Check yourself

Why does Predict's weak-slice search measure the slices it picked on a different half of the rows?

Show the answer

Answer: a

Picking and measuring on the same rows favors unlucky slices. The other half gives an honest reading, adjusted for the number of candidates.

09

Recap

Recap
  • A results table is a family; define it before testing and adjust all of it.
  • Holm controls the chance of any false claim under any dependence; BH controls the expected share, under independence or positive dependence.
  • Holm steps down, BH steps up; report effects with intervals beside the decisions.
  • Find weak slices on one half and confirm on the other, with row counts and intervals.

Concepts in this lesson