Theorem 3: Storey's BH with conformal p-values controls the FDR
ProvedConformalOutlierTesting.storey_bh_fdr_controlLet for an integer with , so that . Let the scores be continuously distributed, in the setting of Theorem 2 and Corollary 1. Then the BH procedure with Storey's correction, at level , applied to the marginal conformal p-values controls the FDR at level :
So the positive dependence among conformal p-values does not break the FDR control of adaptive BH, although Storey's correction can fail for general PRDS p-values.
Formalization Note The paper says "for any integer ". The procedure needs (Appendix A.4), hence . Storey's estimate uses as in Appendix A.4, where the procedure is defined. The main text writes .
import Mathlib import Definitions.Def_ConformalOutlierTesting_Basic open MeasureTheory ProbabilityTheory Filter Topology Set BoundedContinuousFunction
namespace ConformalOutlierTesting
theorem storey_bh_fdr_control {n m : ℕ} (μ : Measure ℝ) [IsProbabilityMeasure μ] [NullSingletonClass μ]
(ν : Fin m → Measure ℝ) [∀ j, IsProbabilityMeasure (ν j)] (I : Finset (Fin m))
(hI : ∀ j ∈ I, ν j = μ) (K : ℕ) (hK1 : 1 ≤ K) (hKn : K ≤ n)
(α : ℝ) (hα0 : 0 < α) (hα1 : α < 1) :
fdr (scoreLaw (n := n) μ ν) (fun ω => storeyRej α ((K : ℝ) / (n + 1)) (margPvals ω)) I ≤ α := by sorry
end ConformalOutlierTestingRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers (the number of calibration scores) and (the number of test scores).
- is a probability measure on that gives zero mass to every single point, so for all .
- For each test index , is a probability measure on . No atomlessness or other condition is imposed on the .
- is any set of test indices such that for every .
- Nothing is assumed about indices outside . Some of them may also have .
- may be empty.
- is a natural number with . This forces .
- is a real number with .
The joint law. The random data consist of calibration scores and test scores , with joint law
So the calibration scores are i.i.d. with law . The test scores are independent of the calibration scores and of each other, and has law .
The p-values. The marginal conformal p-value of test point is
It always lies in ; in particular .
The Storey–BH procedure. The procedure is applied to with threshold
so . It is built from the following quantities.
- Large p-values. Let .
- Null proportion estimate. Let
For this is strictly positive.
- Order statistics. Let be the p-values sorted in nondecreasing order.
- Number of rejections. Let
with if no qualifies.
- Rejection set.
Because every , gives .
Since the p-values are multiples of , the strict condition is the same as .
The claim. The theorem asserts that the false discovery rate of , with as the set of true nulls, is at most :
Edge cases.
- No test points. If , then is empty and the false discovery rate is .
- Empty null set. If , the integrand is identically .
- Integral convention. The expectation is a Lebesgue (Bochner) integral of a quantity with values in . Under the convention used, it is defined to be if the integrand were not measurable.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.