Benjamini–Hochberg Procedure
How Statsig applies the Benjamini-Hochberg procedure to control the false discovery rate when analyzing many metrics in an experiment scorecard.
The Benjamini-Hochberg (BH) procedure adjusts the significance level when a scorecard tests many metrics, so that only a controlled share of the results you call significant are false positives. That share is the false discovery rate. Bonferroni correction instead controls the family-wise error rate, the chance of at least one false positive. BH therefore rejects at least as many null hypotheses as Bonferroni for the same p-values, and usually more. Use BH when a scorecard has many metrics and a small, controlled share of false positives is acceptable. Use Bonferroni when any single false positive is costly.
Enable the BH procedure for a single experiment under Advanced Settings on its Setup tab, in Multiple Hypothesis Corrections. Organization admins can set it as the default, and enforce it so that teams can't turn it off, through experiment policies.
How BH adjusts the significance level
The BH procedure replaces your pre-set significance level () with a new one. Statsig calculates it as follows:
- Sort the metric p-values in ascending order.
- Pair each p-value with a threshold. The threshold is the target false discovery rate (), which is your significance level, divided by the number of comparisons (), multiplied by the rank () of that p-value in the ordered list. is the number of scorecard metrics, the number of test groups, or their product, depending on which set of p-values Statsig applies the procedure to.
- Take the largest threshold that is higher than its paired p-value. That threshold becomes the new significance level (). If no p-value is below its threshold, the new significance level is the smallest threshold, .
Statsig can apply the BH procedure across one of the following sets of p-values:
- Test groups (multiple treatment hypotheses): For each metric, Statsig aggregates the p-values from each variant and runs the BH procedure on that list.
- Metrics in the scorecard: For each variant, Statsig aggregates the p-values from each metric and runs the BH procedure on that list.
- Both test groups and metrics: Statsig aggregates all p-values and runs the BH procedure once.
When you also select Apply Benjamini-Hochberg Procedure for Primary Metrics Only, Statsig runs the procedure on primary metrics only. Secondary metrics keep your unadjusted significance level.
Statsig doesn't apply the BH procedure to the p-values of event-dimension or user-property breakdowns of an experiment metric. Statsig compares only the top-line metric results to the new significance level.
How the adjusted significance level appears in experiment results
In the experiment scorecard, Statsig derives confidence intervals for applicable metrics from (1 - adjusted ). Hovering over a confidence interval displays the adjusted alongside other metric details.
In the experiment explore section, Statsig calculates a new adjusted based on your selections, and the confidence intervals use (1 - adjusted ).
Was this helpful?
For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.