Meaning and conditions
Valid p-values and a prespecified test family are required. BH controls FDR under independence or suitable PRDS dependence, a stronger and more precise condition than arbitrary pairwise positive correlation. The calculator uses exactly five values and 0≤q≤1, with boundaries available for transparent mathematical checking.[1][2]
A Fisher exact test or chi-square test first provides a single-test p-value. Sample-size planning instead concerns design before collection; later FDR adjustment does not replace any of these tasks.[1][2]
Derivation and relations
Increase the allowed single-test threshold with ordered rank and find the last qualifying comparison.[1][2]
- Prespecify the full family of m valid p-values and common FDR target q. Sort p(1)≤…≤p(m), retaining original test identities.
- Compare each rank i with i·q/m. Find the largest qualifying rank k; if none qualifies, set k=0. An earlier failed rank does not end this step-up procedure.
- Reject every hypothesis with ordered rank 1 through k, not only those individually satisfying their own rank comparison. Equality qualifies because the rule uses≤.
- Compute adjusted values backward as min(1, minj≥im·p(j)/j), then restore original test order. Interpret q as a bound on an expected error fraction under the method’s assumptions.
See the model
The last qualifying rank decides
Free with a Quanta account. Your download stays ready after registration.
Two complete worked examples
Five tests with an exact boundary
- Given
- Fictional p-values[0.001,0.02,0.03,0.2,0.8], q=0.05, m=5.
- Find
- Find the rejection set and all adjusted values.
The five thresholds are 0.01,0.02,0.03,0.04,0.05.
Raw adjustments are 0.005,0.05,0.05,0.25,0.8. Reverse cumulative minima do not change them here.
Compare adjusted values inclusively with q.
Result: Reject the first three null hypotheses. Exact equality at ranks 2 and 3 counts.
Check: Step-up decisions agree with adjusted-value comparisons. Inputs are original teaching values, not an actual discovery list.
Unsorted input and a later qualifying rank
- Given
- Tests A, B, C, D, E give[0.04,0.001,0.03,0.03,0.9], q=0.05.
- Find
- Check step-up logic and original order.
Ordered tests are B, C, D, A, E with values 0.001,0.03,0.03,0.04,0.9. Rank 2 fails, but ranks 3 and 4 qualify.
Compute raw values 0.005,0.075,0.05,0.05,0.9 and take reverse minima.
Return to A, B, C, D, E order.
Result: Reject A, B, C, D, but not E. Stopping at failed rank 2 would be wrong.
Check: The two tied p-values receive the same adjustment. All four rejections are consistent at q=0.05.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Units, interpretation and limits
p, q and adjusted values are dimensionless; rank and family size are integer counts.5% means q=0.05. Include the full defined family rather than only results that initially look interesting.[1][2]
The numeric calculator cannot establish valid null distributions or PRDS from five entered numbers. The graphic shows original teaching values, not an empirical error-rate measurement.[1][2]
Five exercises with distinct learning goals
Calculate · Foundation
Apply BH to[0.002,0.01,0.04,0.2,0.6] at q=0.05. Which tests are rejected?
Show hint
Check all five ranks, not merely up to the first failure.
Learning goal: Calculate BH rejections
Show solution and calculation
Thresholds 0.01,0.02,0.03,0.04,0.05 give largest qualifying rank 2.
Adjusted values are 0.01,0.025,1/15≈0.066667,0.25,0.6.
Reject tests 1 and 2.
Rearrange · Application
How large must q be for p(3)=0.04 with m=5 to satisfy its own BH rank comparison?
Show hint
Solve p(3)≤3q/5 for q.
Learning goal: Rearrange one rank threshold
Show solution and calculation
q≥5·0.04/3=1/15≈0.066667.
This answers only that rank comparison.
The full rejection set still depends on the largest qualifying rank across the complete family.
Interpret · Application
After 100 rejections at q=0.05, someone claims exactly 5 findings are false. Is that justified?
Show hint
FDR is an expectation over possible samples.
Learning goal: Interpret expected FDR rather than one-list error share
Show solution and calculation
No.
Under its assumptions BH controls E[V/max(R,1)], not the unknown error count in this particular list.
Its realized count may be lower or higher.
An adjusted p-value also does not give the probability that a particular hypothesis is true.
Error analysis · Challenge
For BH on[0.01,0.021,0.029,0.2,0.5], q=0.05, a program stops at rank 2. Correct it.
Show hint
Rank 3 has threshold 0.03 and still qualifies.
Learning goal: Find early stopping and rounding errors
Show solution and calculation
Rank 2 fails because 0.021>0.02, but rank 3 satisfies 0.029≤0.03.
Thus k=3 and the first three are rejected.
Exact decimal equality also needs correct comparison; binary rounding must not turn≤into>.
Transfer · Challenge
All five p-values are exactly 0 and q=0. What does the rule give, and does it prove FDR control under arbitrary dependence?
Show hint
Evaluate the rule, then distinguish arithmetic from statistical assumptions.
Learning goal: Separate zero boundaries and dependence
Show solution and calculation
Every comparison 0≤0 qualifies, giving k=5 and all adjusted values 0.
This is a mathematical boundary check, not a proof of the procedure’s guarantee.
BH requires valid p-values and appropriate independence/PRDS assumptions; displayed rounded zero must not be misrepresented as an actual exact zero.
Check your understanding with the formula’s reference test.
8 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Sources for this explanation
Quanta · Updated November 9, 2026
- R stats: Adjust P-values for Multiple Comparisons
- Benjamini and Yekutieli (2001): The control of the false discovery rate in multiple testing under dependency
- statsmodels: fdrcorrection — p-value correction for false discovery rate
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Added a full article with explicit validity conditions, two authored examples, five checked exercises and an original native data graphic.
Cite this reference page
Quanta. Benjamini–Hochberg procedure. Updated November 9, 2026. https://quanta-study.de/en/formula-sheet/benjamini-hochberg-fdr
When citing a specific scientific statement, also cite the specialist source linked to that statement.