How this calculation works
Closed testing can give a simultaneous lower confidence bound on genuine discoveries inside a subset chosen after inspecting a complete family of p-values. Simes local intersection tests and complete closure are used here; the bound depends on their validity under the stated independence or dependence assumptions.
d(R)=|R|−max{|I∩R|:H_I is not rejected by closure}; a closed intersection is rejected only when all containing local intersections reject.A worked example
For p-values[.001,.01,.2,.8], alpha.05 and selected hypotheses0and1, both selected singleton nulls are rejected by closure. The simultaneous true-discovery lower bound for that selected pair is2.
Good to know
2–12 valid p-values, fixed alpha0.001–0.2 and one selected subset. Exhaustive intersection hypotheses with a subset dynamic program; return local/closed rejections and a witness attaining the upper false-discovery count. Require validity of Simes local tests under independence or a justified dependence condition. Do not claim arbitrary-dependence control or estimate which individual nulls are false.
Reference: Goeman and Solari, Multiple Testing for Exploratory Research (opens in a new tab) ↗
Count discoveries in a selected set
An exploratory analysis often produces a group of hypotheses that looks interesting only after the data are seen. A confidence bound for the number of true discoveries in that selected group answers a different question from returning one adjusted p-value per test. The selected group can contain uncertain individual members while still supporting a useful joint discovery bound.
Closed testing supplies simultaneous statements across all candidate subsets under valid local intersection tests. The family of tested hypotheses must be declared completely. Omitting inconvenient tests after examining their p-values changes the family and its error protection. The page therefore accepts the complete p-value list separately from the indices defining the subset of interest.
Compare this with the Benjamini–Hochberg adjustment for four p-values calculator. Provide simultaneous lower confidence bounds on the number of genuine discoveries in any user-selected subset by complete closed testing with Simes local tests. This is a post-selection statement about all subsets, not a Benjamini–Hochberg adjusted-p-value list or a simple four-value size extension.
Define local intersection tests carefully
For each nonempty subset I, the intersection hypothesis says that every null indexed by I is true. The Simes local p-value compares its ordered p-values with their rank-scaled thresholds. Small p-values can reject an intersection even when some individual components do not cross a simple Bonferroni threshold. That nonconsonant behavior is useful for discovery counting.
Simes validity is not automatic under every dependence structure. Independent valid p-values satisfy its usual null calibration, and some positive-dependence conditions also suffice. Arbitrarily dependent or invalid p-values require another justified local test. The calculator does not infer dependence from a single p-value list or certify a correction merely because enumeration finishes.
Apply closure rather than only local rejection
An intersection is closed-rejected only if every larger intersection containing it is locally rejected. This protects the family against selectively reporting a favorable local result. Complete enumeration is feasible for the small supported family size. A subset dynamic program can propagate the required supersets without repeatedly checking every pair of subsets.
After closure, inspect intersections that remain unrejected. For a selected set R, an unrejected intersection containing many members of R is a witness to a larger compatible number of true nulls inside R. The maximum such overlap is the simultaneous upper bound on false discoveries; subtracting it from the selected-set size gives the true-discovery lower bound.
Follow the four-hypothesis example
The default p-values are0.001,0.01,0.2and0.8. The selected set contains the first two indices. The complete-family Simes value is at most four times0.001, or0.004. Intersections containing the first hypothesis reject locally, and those needed for the second singleton also pass the closure requirement, including the subset with0.01,0.2and0.8.
For that latter subset, three times0.01 is0.03, below alpha0.05. Both selected singleton hypotheses are therefore closed-rejected. No unrejected intersection can retain either selected null, so the compatible false-discovery upper count in this pair is zero. The lower bound on genuine discoveries is two, with simultaneous rather than subset-specific interpretation.
Interpret the witness and the bound
A lower bound of two is not an estimate that exactly two hypotheses in the entire family are false. It applies to the selected set and states a minimum count under the simultaneous confidence construction. A bound of zero is inconclusive; it does not establish that every selected hypothesis is a true null. Discovery bounds are one-sided confidence statements.
The witness intersection helps explain why a selected set receives its displayed bound. It is a combinatorial object from the closed-testing calculation, not a discovered scientific causal mechanism. Different unrejected intersections can tie for the same maximum overlap. Any returned witness should be checked against both the selected indices and the complete rejection table.
Check invariance and special selections
Permuting the p-values and carrying their labels and selected indices through the same permutation must preserve the bound. The empty selected set has zero discoveries by definition. All-one p-values provide no positive discovery guarantee, whereas a family of sufficiently tiny valid p-values may permit every selected member to count as a discovery.
Independent validation can enumerate every containing intersection directly for a small family and compare it with the propagated closure table. The selected-set calculation should then be recomputed from unrejected intersections without using the implementation’s own shortcut. Ties at a significance threshold require one consistent rejection convention throughout local tests and closure.
Keep multiplicity claims appropriately scoped
This page uses Simes local tests because they illustrate post-selection true-discovery bounds. It does not promise arbitrary-dependence validity, identify which individual signals caused a positive count or replace scientific effect-size estimation. A family-level guarantee also does not make a weakly designed underlying experiment reliable or an improperly computed p-value valid.
Benjamini–Hochberg adjusted p-values control an expected false-discovery proportion under their own assumptions. Closed-testing count bounds provide simultaneous confidence statements for freely chosen subsets. These are related multiple-testing ideas but different outputs and error criteria. Report the complete family size, local test, dependence assumptions, alpha and selected subset with the resulting lower bound.
A few questions, answered
Is this just a larger Benjamini–Hochberg calculator?
No. It returns simultaneous subset discovery-count bounds through intersection testing and closure, rather than only adjusted individual p-values.
Can I choose the subset after seeing p-values?
The closed-testing construction supports such subset choice, provided the complete family and valid local tests are retained.
Does a zero lower bound mean there are no signals?
No. It means this procedure cannot guarantee a positive number of genuine discoveries in that selected set.
Does Simes work for arbitrary dependence?
Not generally. Its local-test validity needs independence or an appropriate justified dependence condition; the page does not diagnose that condition.