Introduction
High-throughput exploratory studies often test hundreds or thousands of hypotheses to identify candidates for follow-up validation experiments. The false discovery rate (FDR) is a common measure of error in exploratory analysis, as it is less stringent than alternatives such as the familywise error rate (FWER). Standard FDR control methods, such as the Benjamini–Hochberg (BH) procedure and its variants, start from a prespecified level and return a set of discoveries [2 , 17 ] .
For scientists, the goal of exploratory analysis is to obtain a set of candidates for downstream confirmatory studies, and the number of discoveries can matter no less than the error rate: a certain number of discoveries are necessary for follow-up confirmation, whereas the FDR level need only remain below an acceptable upper limit. It has been recognized that a prespecified FDR level may not address the demand [16 , 7 , 11 , 20 , 8 , 10 , 15 , 22 ] (Xu et al. 2025). As illustrated in Figure 1 with the breast-cancer data [9 , 18 ] , for an investigator who seeks around 50 genes for follow-up and accepts FDR levels no larger than 0.50, the BH procedure at a prespecified level of 0.05 gives no discoveries, and hence no candidates for a confirmatory study, whereas at 0.50 it yields nearly 200, beyond the capacity for confirmation and at an unnecessarily high error rate1 .
Figure 1. Discovery-targeted level selection for the breast-cancer data. The plot shows the number of BH discoveries at FDR levels up to 0.50; the smallest BH level reaching the target K = 50 K = 50 K = 50 is about 0.22. The table gives the reported FDR level and the number of discoveries for the methods of § 4 , with K = 50 K = 50 K = 50 , B = m B = m B = m , [ q min , q max ] = [ 0 , 0.50 ] [q_{\min}, q_{\max}] = [0, 0.50] [ q m i n , q m a x ] = [ 0 , 0.50 ] .
Motivated by this practical need, we aim for a procedure that allows the investigator to specify a discovery target and returns a small acceptable FDR level together with a rejection set of approximately that size. A tempting approach, which may have been adopted implicitly in practice, raises the BH level until at least K K K hypotheses are rejected and adopts that level, or equivalently, uses the K K K th smallest BH-adjusted p-value, or q-value, as the level ([16 , 18 ] ). However, selecting the level from the same data that are then tested need not control FDR (see Appendix § 9 .1.2 for a counter example).
Table 1.
In contrast to BH inversion, several lines of work provide valid error control at data-driven levels that can target a given number of discoveries. Xing et al. [20 ] consider selecting a desired number of top-ranked p-values, but the FDR guarantee holds only asymptotically. Alternatively, simultaneous methods permit level selection by bounding the FDP across rejection sets or thresholds ([7 , 11 , 10 , 15 ] ); however, simultaneous control over all levels is unnecessary for a single reported level and can sacrifice power. In addition, e-value methods allow post hoc selection, including data-dependent levels ([19 , 8 , 12 , 22 ] (Xu et al. 2025)); however, the procedures are generally less powerful than their p-value-based counterparts, owing to the conservativeness of Markov’s inequality.
We propose a procedure with finite-sample FDR control at a data-driven level that targets the desired number of discoveries. The proposal divides the information in the p-values between level selection and multiple testing (Figure 2 ). Explicitly, following the null-augmentation idea in Li et al. (2026), we pool the p-values with synthetic null p-values and use the identity-masked pool to select the FDR level. We then unmask the identities to compute conformal p-values (Bates et al. [1 ] ) and apply the BH procedure to them at the selected level. The procedure also extends to conformal p-values (Bates et al. [1 ] ; Gao & Zhao [6 ] ) and can also incorporate an estimate of the null proportion ([3 , 16 , 17 , 4 , 5 ] ).
Figure 2. Diagram of the proposal. The p-values are pooled with synthetic null p-values, and the pool, with labels masked, determines the level q ^ K \widehat{q}_K q K . The labels are then unmasked to compute conformal p-values, to which the BH procedure is applied at level q ^ K \widehat{q}_K q K .
E { FDP ( S ) ∣ q ^ K } ≤ q ^ K , (1) \operatorname{E}\{\operatorname{FDP}(S)\mid\hat{q}_K\}\le\hat{q}_K, \tag*{(1)} E { FDP ( S ) ∣ q ^ K } ≤ q ^ K , (1)
where FDP ( S ) \operatorname{FDP}(S) FDP ( S ) is the false discovery proportion of S S S . The conditional guarantee implies that, although data-dependent, q ^ K \hat{q}_K q ^ K admits the same interpretation as a prespecified level; (1) also implies the marginal guarantee E { FDP ( S ) / q ^ K } ≤ 1 \operatorname{E}\{\operatorname{FDP}(S)/\widehat{q}_K\} \le1 E { FDP ( S ) / q K } ≤ 1 of e-value methods [22 ] (Xu et al. 2025), but not conversely.
For the number of rejections and the selected level, we show asymptotic optimality, in the sense that the number of rejections concentrates around K K K and q ^ K \widehat{q}_K q K converges to its oracle value (the smallest level that yields K K K rejections in the population).
In the motivating example, the proposal makes 64 discoveries at reported level 0.24, whereas the FDP-bound method of Katsevich & Ramdas [11 ] makes 28 and the other FDP-bound method and the e-value methods make none, even at the cap of 0.50 (details in § 4 ).
Organization. § 1.1 formulates the problem. § 2 describes the proposal. § 3 establishes conditional FDR control and asymptotic optimality. § 4 contains simulations and the breast-cancer example. The Appendix gives proposal extensions, proofs, and additional empirical results.
Notation. For a vector v v v , v ( r ) v_{(r)} v ( r ) is its r r r th smallest coordinate. The symbol 1 { A } \mathbb{1}\{A\} 1 { A } denotes the indicator of an event A A A . We write a ∨ b = max ( a , b ) a \vee b = \max(a,b) a ∨ b = max ( a , b ) and x + = max ( x , 0 ) x_+ = \max(x,0) x + = max ( x , 0 ) , and use [ x ] [ a , b ] = min { b , max ( a , x ) } [x]_{[a,b]} = \min\{b,\max(a,x)\} [ x ] [ a , b ] = min { b , max ( a , x )} for clipping. Let Φ \Phi Φ denote the standard normal distribution function. For a square-integrable random variable Y Y Y , ∥ Y ∥ 2 = { E ( Y 2 ) } 1 / 2 \lVert Y\rVert_2 = \{\operatorname{E}(Y^2)\}^{1/2} ∥ Y ∥ 2 = { E ( Y 2 ) } 1/2 . The relation a m ≍ b m a_m \asymp b_m a m ≍ b m means that their positive ratio is bounded above and away from zero.
Problem formulation
Let P 1 , … , P m P_1,\ldots,P_m P 1 , … , P m be independent p-values, let H 0 \mathcal{H}_0 H 0 be the fixed set of true null hypotheses, and write m 0 = ∣ H 0 ∣ m_0 = |\mathcal{H}_0| m 0 = ∣ H 0 ∣ , π 0 = ∣ H 0 ∣ / m \pi_0 = |\mathcal{H}_0|/m π 0 = ∣ H 0 ∣/ m . Assume P i P_i P i is uniform on ( 0 , 1 ) (0,1) ( 0 , 1 ) for i ∈ H 0 i \in\mathcal{H}_0 i ∈ H 0 (Remark 2 extends to null p-values that are stochastically larger than uniform). For a rejection set S S S , define
FDR ( S ) = E { FDP ( S ) } , FDP ( S ) = ∣ S ∩ H 0 ∣ R ∨ 1 , R = ∣ S ∣ . \operatorname{FDR}(S)=\mathbb{E}\{\operatorname{FDP}(S)\},\qquad\operatorname{FDP}(S)=\frac{|S\cap\mathcal{H}_0|}{R\vee1},\qquad R=|S|. FDR ( S ) = E { FDP ( S )} , FDP ( S ) = R ∨ 1 ∣ S ∩ H 0 ∣ , R = ∣ S ∣.
Let 1 ≤ K < m 1\le K<m 1 ≤ K < m be a prespecified target number of discoveries and [ q min , q max ] [q_{\min},q_{\max}] [ q m i n , q m a x ] a prespecified range of acceptable levels, where 0 ≤ q min < q max < 1 0\le q_{\min}<q_{\max}<1 0 ≤ q m i n < q m a x < 1 (q min = 0 q_{\min}=0 q m i n = 0 imposes no lower limit). Our goal is to select a level q ^ K ∈ [ q min , q max ] \widehat{q}_K\in[q_{\min},q_{\max}] q K ∈ [ q m i n , q m a x ] and a rejection set S S S such that R R R is close to K K K and the conditional guarantee (1) holds.
For p-values p = ( p 1 , … , p m ) p=(p_1,\ldots,p_m) p = ( p 1 , … , p m ) with ordered values p ( 1 ) ≤ ⋯ ≤ p ( m ) p_{(1)}\le\cdots\le p_{(m)} p ( 1 ) ≤ ⋯ ≤ p ( m ) , the BH procedure at level q ∈ [ 0 , 1 ) q\in[0,1) q ∈ [ 0 , 1 ) rejects the set S q ( p ) S_q(p) S q ( p ) of size R q ( p ) R_q(p) R q ( p ) , where
R q ( p ) = max { r ∈ { 1 , … , m } : p ( r ) ≤ q r / m } , S q ( p ) = { i : p i ≤ p ( R q ( p ) ) } , R_q(p)=\max\{r\in\{1,\ldots,m\}:p_{(r)}\le qr/m\},\qquad S_q(p)=\{i:p_i\le p_{(R_q(p))}\}, R q ( p ) = max { r ∈ { 1 , … , m } : p ( r ) ≤ q r / m } , S q ( p ) = { i : p i ≤ p ( R q ( p )) } ,
with R q ( p ) = 0 R_q(p)=0 R q ( p ) = 0 and S q ( p ) = ∅ S_q(p)=\varnothing S q ( p ) = ∅ if no such r r r exists.
Method
In this section, we describe our proposal. We generate synthetic null p-values and pool them with the original p-values. The pooled p-values contain two types of information: the set of their values, and the labels of these values (whether the value is an original p-value or a synthetic null). We use the first to select the FDR level and the second for multiple testing. Unlike randomly splitting the hypotheses, the procedure keeps every hypothesis in the testing step. Below we provide the details.
For a fixed integer B ≥ 1 B\ge1 B ≥ 1 , we generate synthetic null p-values U 1 , … , U B U_1,\ldots,U_B U 1 , … , U B , independent and uniform on ( 0 , 1 ) (0,1) ( 0 , 1 ) , and pool all m + B m+B m + B values with their labels masked. Let F ^ a l l \widehat{F}_{\mathrm{all}} F all be the empirical distribution function of the pool. Of the ( m + B ) F ^ a l l ( t ) (m+B)\widehat{F}_{\mathrm{all}}(t) ( m + B ) F all ( t ) pooled values not exceeding t t t , about B t Bt B t are synthetic, so ( m + B ) F ^ a l l ( t ) − B t (m+B)\widehat{F}_{\mathrm{all}}(t)-Bt ( m + B ) F all ( t ) − B t estimates the number of original p-values not exceeding t t t without using the labels. We take the smallest threshold at which this estimate reaches K K K ,
t ^ K , B = inf { t ∈ [ 0 , 1 ] : ( m + B ) F ^ a l l ( t ) − B t ≥ K } . (2) \widehat{t}_{K,B}=\inf\{t\in[0,1]:(m+B)\widehat{F}_{\mathrm{all}}(t)-Bt\ge K\}. \tag*{(2)} t K , B = inf { t ∈ [ 0 , 1 ] : ( m + B ) F all ( t ) − B t ≥ K } . (2)
We then define the level by analogy with the q-value at rank K K K , with t ^ K , B \widehat{t}_{K,B} t K , B in place of the K K K th smallest p-value:
q ^ K , B r a w = m K 1 + B t ^ K , B B + 1 , q ^ K = [ q ^ K , B r a w ] [ q min , q max ] . (3) \widehat{q}^{\mathrm{raw}}_{K,B}=\frac{m}{K}\frac{1+B\widehat{t}_{K,B}}{B+1},\qquad\widehat{q}_K=[\widehat{q}^{\mathrm{raw}}_{K,B}]_{[q_{\min},q_{\max}]}. \tag*{(3)} q K , B raw = K m B + 1 1 + B t K , B , q K = [ q K , B raw ] [ q m i n , q m a x ] . (3)
Unlike BH inversion, q ^ K \widehat{q}_K q K depends on the data only through the masked pool.
Remark 1. The estimate ( m + B ) F ^ a l l ( t ) − B t (m+B)\widehat{F}_{\mathrm{all}}(t)-Bt ( m + B ) F all ( t ) − B t in (2) may be replaced by any other estimate of the number of original p-values not exceeding t t t , provided that it depends on the data only through the masked pool.
Once q ^ K \widehat{q}_K q K is obtained, we unmask the labels and use the B B B synthetic nulls to compute the conformal p-values and the rejection set
P ~ i = 1 + ∑ b = 1 B 1 { U b ≤ P i } B + 1 , S = S q ^ K ( P ~ ) , (4) \widetilde{P}_i=\frac{1+\sum_{b=1}^{B}\boldsymbol{1}\{U_b\le P_i\}}{B+1},\qquad S=S_{\widehat{q}_K}(\widetilde{P}), \tag*{(4)} P i = B + 1 1 + ∑ b = 1 B 1 { U b ≤ P i } , S = S q K ( P ) , (4)
where P ~ = ( P ~ 1 , … , P ~ m ) \widetilde{P}=(\widetilde{P}_1,\ldots,\widetilde{P}_m) P = ( P 1 , … , P m ) ; that is, the BH procedure is applied to the conformal p-values at level q ^ K \widehat{q}_K q K . Since P ~ i \widetilde{P}_i P i is a nondecreasing function of P i P_i P i , the conformal p-values preserve the ordering of the original p-values, and S S S always consists of the hypotheses with the smallest original p-values.
The number B B B of synthetic nulls balances two sources of error: a larger B B B yields finer conformal p-values but a more variable estimated level q ^ K \widehat{q}_K q K . For the asymptotic analysis, we consider the marginal model
P 1 , … , P m ∼ i . i . d . F , (5) P_1,\ldots,P_m\mathrel{\mathop{\sim}^{\mathrm{i.i.d.}}}F, \tag*{(5)} P 1 , … , P m ∼ i.i.d. F , (5)
where F F F is a distribution function with density f f f . Let t K t_K t K be the smallest solution of F ( t ) = K / m F(t)=K/m F ( t ) = K / m , and suppose that m t K f ( t K ) / K < 1 mt_Kf(t_K)/K<1 m t K f ( t K ) / K < 1 . In Proposition 4, we show that
E ( R ) ≈ K , var ( R ) ≈ t K ( 1 − t K ) { 1 − m t K f ( t K ) / K } 2 { B + 2 B ⋆ + ( B ⋆ ) 2 B } , (6) \operatorname{E}(R)\approx K,\qquad\operatorname{var}(R)\approx\frac{t_K(1-t_K)}{\{1-mt_Kf(t_K)/K\}^{2}}\left\{B+2B^\star+\frac{(B^\star)^2}{B}\right\}, \tag*{(6)} E ( R ) ≈ K , var ( R ) ≈ { 1 − m t K f ( t K ) / K } 2 t K ( 1 − t K ) { B + 2 B ⋆ + B ( B ⋆ ) 2 } , (6)
where B ⋆ = m f ( t K ) B^\star=mf(t_K) B ⋆ = m f ( t K ) . The variance is minimized at B = B ⋆ B=B^\star B = B ⋆ . Since B ⋆ B^\star B ⋆ depends on the unknown density f ( t K ) f(t_K) f ( t K ) , we use B = m B=m B = m as a default, which is likely to be close to the optimal choice when the null proportion is close to one.
We extend the procedure to incorporate a null proportion estimate in Appendix § 7 .§ 1 and to conformal p p p -values in Appendix § 7 .§ 1.1 , and Remark 2 extends its guarantee to null p p p -values that are stochastically larger than uniform.
FDR control and asymptotic optimality
Conditional FDR control
Theorem 1 (Conditional FDR control). Suppose that P 1 , … , P m P_1,\ldots,P_m P 1 , … , P m are independent and that P i P_i P i is uniform on ( 0 , 1 ) (0,1) ( 0 , 1 ) for i ∈ H 0 i\in\mathcal{H}_0 i ∈ H 0 . Then, for any B ≥ 1 B\geq1 B ≥ 1 , the rejection set S S S and the level q ^ K \widehat{q}_K q K defined by (3) and (4) satisfy
E { FDP ( S ) ∣ q ^ K } ≤ m 0 m q ^ K a.s. \operatorname{E}\{\operatorname{FDP}(S)\mid\widehat{q}_K\}\leq\frac{m_0}{m}\widehat{q}_K\quad\text{a.s.} E { FDP ( S ) ∣ q K } ≤ m m 0 q K a.s.
The conditional guarantee means that q ^ K \widehat{q}_K q K admits the same interpretation as a prespecified level; it also implies the marginal guarantee E { FDP ( S ) / q ^ K } ≤ 1 \operatorname{E}\{\operatorname{FDP}(S)/\widehat{q}_K\}\leq1 E { FDP ( S ) / q K } ≤ 1 . Similar results for the adaptive extension and for conformal p p p -values are given in Appendices § 7 .§ 1 and § 7 .§ 1.1 .
Remark 2. Theorem 1 also holds if each null p p p -value P i P_i P i , i ∈ H 0 i\in\mathcal{H}_0 i ∈ H 0 , has a nondecreasing density f i f_i f i on ( 0 , 1 ) (0,1) ( 0 , 1 ) instead of being uniform.
Asymptotic optimality
We show the asymptotic optimality of the procedure when B B B is of the same order as m m m , including the default choice B = m B=m B = m . Under model (5) , let t K t_K t K be the solution of F ( t ) = K / m F(t)=K/m F ( t ) = K / m . Let q ⋆ = m t K / K q^\star=mt_K/K q ⋆ = m t K / K , which we call the oracle level, as it is the smallest level at which the BH procedure rejects at least K K K hypotheses in the population when F F F is concave.
Assumption 1. As m → ∞ m\to\infty m → ∞ , K / m → κ ∈ ( 0 , 1 ) K/m\to\kappa\in(0,1) K / m → κ ∈ ( 0 , 1 ) and B / m → β ∈ ( 0 , ∞ ) B/m\to\beta\in(0,\infty) B / m → β ∈ ( 0 , ∞ ) . Let t κ t_\kappa t κ be the solution of F ( t ) = κ F(t)=\kappa F ( t ) = κ . The density f f f is continuous at t κ t_\kappa t κ , and 0 < t κ f ( t κ ) κ < 1 0<\frac{t_\kappa f(t_\kappa)}{\kappa}<1 0 < κ t κ f ( t κ ) < 1 , q min < t κ / κ < q max q_{\min}<t_\kappa/\kappa<q_{\max} q m i n < t κ / κ < q m a x .
Proposition 1 (Asymptotic optimality). Under Assumption 1, as m → ∞ m\to\infty m → ∞ ,
m 1 / 2 ( 1 − R / K ) + = O p ( 1 ) , m 1 / 2 ∥ q ^ K − q ⋆ ∥ 2 → { κ ( 1 − κ ) + β t κ ( 1 − t κ ) } 1 / 2 κ f ( t κ ) . m^{1/2}(1-R/K)_+=O_p(1),\qquad m^{1/2}\lVert\widehat{q}_K-q^\star\rVert_2\to\frac{\{\kappa(1-\kappa)+\beta t_\kappa(1-t_\kappa)\}^{1/2}}{\kappa f(t_\kappa)}. m 1/2 ( 1 − R / K ) + = O p ( 1 ) , m 1/2 ∥ q K − q ⋆ ∥ 2 → κ f ( t κ ) { κ ( 1 − κ ) + β t κ ( 1 − t κ ) } 1/2 . If, in addition, F F F is concave, then
m 1 / 2 ∥ R K − 1 ∥ 2 → { β + f ( t κ ) } { t κ ( 1 − t κ ) } 1 / 2 β 1 / 2 { κ − t κ f ( t κ ) } . m^{1/2}\left\lVert\frac{R}{K}-1\right\rVert_2\to\frac{\{\beta+f(t_\kappa)\}\{t_\kappa(1-t_\kappa)\}^{1/2}}{\beta^{1/2}\{\kappa-t_\kappa f(t_\kappa)\}}. m 1/2 K R − 1 2 → β 1/2 { κ − t κ f ( t κ )} { β + f ( t κ )} { t κ ( 1 − t κ ) } 1/2 .
Numerical results
Simulation
We compare the following methods (more details in Appendix § 9 ).
We generate independent scores X i ∼ N ( 0 , 1 ) X_i \sim N(0, 1) X i ∼ N ( 0 , 1 ) for i ∈ H 0 i \in\mathcal{H}_0 i ∈ H 0 and X i ∼ N ( − μ , 1 ) X_i \sim N(-\mu, 1) X i ∼ N ( − μ , 1 ) otherwise, and set P i = Φ ( X i ) P_i = \Phi(X_i) P i = Φ ( X i ) . The default is ( m , B , K , μ , π 0 ) = ( 1000 , 1000 , 100 , 2 , 0.8 ) (m, B, K, \mu, \pi_0) = (1000, 1000, 100, 2, 0.8) ( m , B , K , μ , π 0 ) = ( 1000 , 1000 , 100 , 2 , 0.8 ) . Reported levels are restricted to [ q min , q max ] = [ 0.01 , 0.30 ] [q_{\min}, q_{\max}] = [0.01, 0.30] [ q m i n , q m a x ] = [ 0.01 , 0.30 ] . Figure 3 varies K K K , μ \mu μ , π 0 \pi_0 π 0 and m m m , with B = m B = m B = m and K = m / 10 K = m/10 K = m /10 . Each setting uses 3000 repetitions.
Figure 3. Mean number of rejections (top) and mean reported level (bottom) as K K K , μ \mu μ , π 0 \pi_0 π 0 and m m m vary, with the other parameters at the default ( m , B , K , μ , π 0 ) = ( 1000 , 1000 , 100 , 2 , 0.8 ) (m, B, K, \mu, \pi_0) = (1000, 1000, 100, 2, 0.8) ( m , B , K , μ , π 0 ) = ( 1000 , 1000 , 100 , 2 , 0.8 ) ; the size sweep uses B = m B = m B = m and K = m / 10 K = m/10 K = m /10 . Levels are clipped to [ 0.01 , 0.30 ] [0.01, 0.30] [ 0.01 , 0.30 ] . Curves are means over 3000 paired repetitions, including empty outputs; bars show 1.96 Monte Carlo standard errors. Details of the methods are given in Appendix § 9 .
Figure 3 reports the number of rejections and the reported level. At the default setting, the proposal and the independent-sample oracle make 102.9 and 100.4 discoveries on average, at mean levels 0.167 and 0.156, respectively. The proposal largely follows the oracle curves, although the cap at q max q_{\max} q m a x limits the number of discoveries for large targets (K > 170 K > 170 K > 170 ), weak signals (μ < 1.6 \mu< 1.6 μ < 1.6 ) or high null proportions (π 0 > 0.86 \pi_0 > 0.86 π 0 > 0.86 ). The e-value and FDP-bound methods often report higher FDR levels, near the cap, while still making fewer discoveries.
Breast-cancer dataset
We analyse the hereditary breast-cancer data of Hedenfalk et al. [9 ] , as reanalysed by Storey & Tibshirani [18 ] , which give log-base-two expression for 3170 genes in seven BRCA1 and eight BRCA2 tumours. For each gene we compute a one-sided two-sample Student t-test for lower expression in BRCA1 tumours, with 13 degrees of freedom. We set K = 50 K = 50 K = 50 , B = m = 3170 B = m = 3170 B = m = 3170 and [ q min , q max ] = [ 0.01 , 0.50 ] [q_{\min}, q_{\max}] = [0.01, 0.50] [ q m i n , q m a x ] = [ 0.01 , 0.50 ] . The results are given in the table of Figure 1 . The proposal makes 64 discoveries at reported level 0.2386. Both e-value methods and the SC bound make no discoveries at q max q_{\max} q m a x , whereas the KR bound makes 28.
Conclusion
In exploratory studies, investigators often need a certain number of discoveries as well as FDR control. In this paper, we address this need with a procedure that aims at a target number of discoveries and reports the corresponding FDR level. We use synthetic null p-values to split the information between label-blind level selection and label-dependent testing, which yields FDR control conditionally on the reported level. Asymptotically, the number of rejections and the reported level converge to the target and the optimal value.
AI disclaimer. OpenAI ChatGPT and Anthropic Claude were used to assist with coding, proofs and drafting. The author takes full responsibility for the content of the paper.
Appendices
These appendices give the extensions of the procedure and their guarantees (Section A), the proofs (Section B) and additional numerical results (Section C). We use the main article’s notation: m m m hypotheses, true-null set H 0 \mathcal{H}_0 H 0 of size m 0 m_0 m 0 , target K K K , calibration size B B B , and selected set S S S of size R R R . Thus FDP ( S ) = ∣ S ∩ H 0 ∣ / ( R ∨ 1 ) \operatorname{FDP}(S)=|S\cap\mathcal{H}_0|/(R\vee1) FDP ( S ) = ∣ S ∩ H 0 ∣/ ( R ∨ 1 ) ; Φ \Phi Φ denotes the standard normal distribution function and ∥ X ∥ p = ( E ∣ X ∣ p ) 1 / p \lVert X\rVert_p=(\mathbb{E}|X|^p)^{1/p} ∥ X ∥ p = ( E ∣ X ∣ p ) 1/ p .
Extensions
Extension to a null proportion estimate
Method
Fix λ ∈ ( 0 , 1 ) \lambda\in(0,1) λ ∈ ( 0 , 1 ) . Of the ( m + B ) { 1 − F ^ a l l ( λ ) } (m+B)\{1-\widehat{F}_{\mathrm{all}}(\lambda)\} ( m + B ) { 1 − F all ( λ )} pooled values exceeding λ \lambda λ , about B ( 1 − λ ) B(1-\lambda) B ( 1 − λ ) are synthetic, so ( m + B ) { 1 − F ^ a l l ( λ ) } − B ( 1 − λ ) (m+B)\{1-\widehat{F}_{\mathrm{all}}(\lambda)\}-B(1-\lambda) ( m + B ) { 1 − F all ( λ )} − B ( 1 − λ ) estimates the number of original p-values exceeding λ \lambda λ without using the labels. This gives a masked-pool version of the estimator of Storey [16 ] ,
π ^ 0 p o o l = min [ 1 , max { 0 , 1 + ( m + B ) { 1 − F ^ a l l ( λ ) } − B ( 1 − λ ) m ( 1 − λ ) } ] . (7) \widehat{\pi}_0^{\mathrm{pool}}=\min\left[1,\max\left\{0,\frac{1+(m+B)\{1-\widehat{F}_{\mathrm{all}}(\lambda)\}-B(1-\lambda)}{m(1-\lambda)}\right\}\right]. \tag*{(7)} π 0 pool = min [ 1 , max { 0 , m ( 1 − λ ) 1 + ( m + B ) { 1 − F all ( λ )} − B ( 1 − λ ) } ] . (7)
We then define the FDR level by multiplying the level in (3) by this null proportion estimate:
q ~ K a d a = [ π ^ 0 p o o l q ^ K , B r a w ] [ q min , q max ] . (8) \widetilde{q}^{\mathrm{ada}}_K=\left[\widehat{\pi}_0^{\mathrm{pool}}\widehat{q}^{\mathrm{raw}}_{K,B}\right]_{[q_{\min},q_{\max}]}. \tag*{(8)} q K ada = [ π 0 pool q K , B raw ] [ q m i n , q m a x ] . (8)
Like q K q_K q K , the level q ^ K a d a \widehat{q}^{\mathrm{ada}}_K q K ada depends on the data only through the masked pool. Once q ^ K a d a \widehat{q}^{\mathrm{ada}}_K q K ada is obtained, we unmask the labels and compute the conformal p-values in (4) , with ordered values P ~ ( 1 ) ≤ ⋯ ≤ P ~ ( m ) \widetilde{P}_{(1)} \le\cdots\le\widetilde{P}_{(m)} P ( 1 ) ≤ ⋯ ≤ P ( m ) . For a fixed integer 1 ≤ k τ ≤ B 1 \le k_\tau\le B 1 ≤ k τ ≤ B and τ = k τ / ( B + 1 ) \tau= k_\tau/(B+1) τ = k τ / ( B + 1 ) , we estimate the null proportion again and apply the adaptive BH procedure of Bates et al. [1 ] :
R a d a = max { r : P ~ ( r ) ≤ q ^ K a d a r m π ^ 0 c o n f , P ~ ( r ) < τ } , π ^ 0 c o n f = 1 + ∑ i = 1 m 1 { P ~ i ≥ τ } m ( 1 − τ ) , S a d a = { i : P ~ i ≤ P ~ ( R a d a ) } , (9) R^{\mathrm{ada}} = \max\left\{r : \widetilde{P}_{(r)} \le\frac{\widehat{q}^{\mathrm{ada}}_K r}{m\widehat{\pi}^{\mathrm{conf}}_0},\ \widetilde{P}_{(r)} < \tau\right\},\qquad\widehat{\pi}^{\mathrm{conf}}_0 = \frac{1+\sum_{i=1}^{m}\mathbf{1}\{\widetilde{P}_i \ge\tau\}}{m(1-\tau)},\qquad S^{\mathrm{ada}} = \{i:\widetilde{P}_i \le\widetilde{P}_{(R^{\mathrm{ada}})}\}, \tag*{(9)} R ada = max { r : P ( r ) ≤ m π 0 conf q K ada r , P ( r ) < τ } , π 0 conf = m ( 1 − τ ) 1 + ∑ i = 1 m 1 { P i ≥ τ } , S ada = { i : P i ≤ P ( R ada ) } , (9)
with R a d a = 0 R^{\mathrm{ada}}=0 R ada = 0 and S a d a = ∅ S^{\mathrm{ada}}=\varnothing S ada = ∅ if no such r r r exists. We remark that the estimate π ^ 0 c o n f \widehat{\pi}^{\mathrm{conf}}_0 π 0 conf is not truncated at one.
The number B B B of synthetic nulls again balances finer conformal p-values against a more variable estimated level. Under model (5) , suppose that t K < λ t_K < \lambda t K < λ , and let
ρ = 1 − F ( λ ) 1 − λ , w = t K f ( t K ) ρ ( 1 − λ ) . \rho= \frac{1-F(\lambda)}{1-\lambda},\qquad w = \frac{t_K f(t_K)}{\rho(1-\lambda)}. ρ = 1 − λ 1 − F ( λ ) , w = ρ ( 1 − λ ) t K f ( t K ) .
where ρ \rho ρ is the limit of the estimate of the null proportion. In Proposition 4, we show that, as m → ∞ m \to\infty m → ∞ with K K K and B B B of the same order as m m m ,
E ( R a d a ) = K + o ( m 1 / 2 ) , var ( R a d a ) = c 0 B + 2 m c 1 + m 2 c 2 / B { 1 − m t K f ( t K ) / K } 2 + o ( m ) , (10) \mathbb{E}(R^{\mathrm{ada}}) = K + o(m^{1/2}),\qquad\operatorname{var}(R^{\mathrm{ada}}) = \frac{c_0B + 2mc_1 + m^2c_2/B}{\{1-mt_Kf(t_K)/K\}^2} + o(m), \tag*{(10)} E ( R ada ) = K + o ( m 1/2 ) , var ( R ada ) = { 1 − m t K f ( t K ) / K } 2 c 0 B + 2 m c 1 + m 2 c 2 / B + o ( m ) , (10)
where
c 0 = t K ( 1 − t K ) + 2 w t K ( 1 − λ ) + w 2 λ ( 1 − λ ) , c 1 = f ( t K ) t K ( 1 − t K ) + w { f ( t K ) + f ( λ ) } t K ( 1 − λ ) + w 2 f ( λ ) λ ( 1 − λ ) , c 2 = f ( t K ) 2 t K ( 1 − t K ) + 2 w f ( t K ) f ( λ ) t K ( 1 − λ ) + w 2 f ( λ ) 2 λ ( 1 − λ ) . (11) \begin{aligned}
c_0 &= t_K(1-t_K) + 2wt_K(1-\lambda) + w^2\lambda(1-\lambda),\\
c_1 &= f(t_K)t_K(1-t_K) + w\{f(t_K)+f(\lambda)\}t_K(1-\lambda) + w^2f(\lambda)\lambda(1-\lambda),\\
c_2 &= f(t_K)^2t_K(1-t_K) + 2wf(t_K)f(\lambda)t_K(1-\lambda) + w^2f(\lambda)^2\lambda(1-\lambda). \tag*{(11)}
\end{aligned} c 0 c 1 c 2 = t K ( 1 − t K ) + 2 w t K ( 1 − λ ) + w 2 λ ( 1 − λ ) , = f ( t K ) t K ( 1 − t K ) + w { f ( t K ) + f ( λ )} t K ( 1 − λ ) + w 2 f ( λ ) λ ( 1 − λ ) , = f ( t K ) 2 t K ( 1 − t K ) + 2 w f ( t K ) f ( λ ) t K ( 1 − λ ) + w 2 f ( λ ) 2 λ ( 1 − λ ) . (11)
The leading term of the variance is minimized at B = m ( c 2 / c 0 ) 1 / 2 B=m(c_2/c_0)^{1/2} B = m ( c 2 / c 0 ) 1/2 . Since this value depends on unknown quantities such as t K t_K t K and f ( t K ) f(t_K) f ( t K ) , we again use B = m B=m B = m as a practical default. We label the resulting procedure Proposal + adaptive BH in the numerical comparisons.
Conditional FDR control
Theorem 2 (Conditional FDR control). Suppose that P 1 , … , P m P_1,\ldots,P_m P 1 , … , P m are independent and that P i P_i P i is uniform on ( 0 , 1 ) (0,1) ( 0 , 1 ) for i ∈ H 0 i\in\mathcal{H}_0 i ∈ H 0 . Then, for any B ≥ 1 B\ge1 B ≥ 1 , λ ∈ ( 0 , 1 ) \lambda\in(0,1) λ ∈ ( 0 , 1 ) and 1 ≤ k τ ≤ B 1\le k_\tau\le B 1 ≤ k τ ≤ B , the rejection set S a d a S^{\mathrm{ada}} S ada and the level q ^ K a d a \widehat{q}^{\mathrm{ada}}_K q K ada defined by (8) and (9) satisfy
E { FDP ( S a d a ) ∣ q ^ K a d a } ≤ q ^ K a d a a.s. \mathbb{E}\{\operatorname{FDP}(S^{\mathrm{ada}})\mid\widehat{q}^{\mathrm{ada}}_K\}\le\widehat{q}^{\mathrm{ada}}_K\qquad\text{a.s.} E { FDP ( S ada ) ∣ q K ada } ≤ q K ada a.s.
Compared with Theorem 1, the bound no longer carries the factor m 0 / m m_0/m m 0 / m because the null proportion is estimated. The proof is given in Section B.
Asymptotic optimality
Let q K ∗ = ρ m t K / K q_K^{\ast}=\rho m t_K/K q K ∗ = ρ m t K / K , which we call the oracle level of the adaptive procedure, as it is the smallest level at which the BH procedure with null proportion ρ \rho ρ rejects at least K K K hypotheses in the population when F F F is concave.
Proposition 2 (Asymptotic optimality). Suppose that Assumption 1 holds, and further assume that the density f f f is continuous at λ \lambda λ , t K < λ t_K<\lambda t K < λ and 0 < ρ < 1 0<\rho<1 0 < ρ < 1 . Assume also that τ = λ + O ( B − 1 ) \tau=\lambda+O(B^{-1}) τ = λ + O ( B − 1 ) and q min < ρ t K / K < q max q_{\min}<\rho t_K/K<q_{\max} q m i n < ρ t K / K < q m a x .
Let w w w , c 0 c_0 c 0 , c 1 c_1 c 1 and c 2 c_2 c 2 be as in (11) with t K t_K t K replaced by t κ t_\kappa t κ , and let v = κ ( 1 − κ ) + 2 w κ { 1 − F ( λ ) } + w 2 F ( λ ) { 1 − F ( λ ) } v=\kappa(1-\kappa)+2w\kappa\{1-F(\lambda)\}+w^2F(\lambda)\{1-F(\lambda)\} v = κ ( 1 − κ ) + 2 w κ { 1 − F ( λ )} + w 2 F ( λ ) { 1 − F ( λ )} . Then, as m → ∞ m\to\infty m → ∞ ,
m 1 / 2 ( 1 − R a d a / K ) + = O p ( 1 ) , m 1 / 2 ∥ q K a d a − q ∗ a d a ∥ 2 → ρ ( v + β c 0 ) 1 / 2 κ f ( t κ ) . m^{1/2}(1-R^{\mathrm{ada}}/K)_+=O_p(1),\qquad m^{1/2}\left\|q_K^{\mathrm{ada}}-q_*^{\mathrm{ada}}\right\|_2\to\frac{\rho(v+\beta c_0)^{1/2}}{\kappa f(t_\kappa)}. m 1/2 ( 1 − R ada / K ) + = O p ( 1 ) , m 1/2 q K ada − q ∗ ada 2 → κ f ( t κ ) ρ ( v + β c 0 ) 1/2 .
If, in addition, F F F is concave, then
m 1 / 2 ∥ R a d a K − 1 ∥ 2 → ( β c 0 + 2 c 1 + c 2 / β ) 1 / 2 κ − t κ f ( t κ ) . m^{1/2}\left\|\frac{R^{\mathrm{ada}}}{K}-1\right\|_2\to\frac{(\beta c_0+2c_1+c_2/\beta)^{1/2}}{\kappa-t_\kappa f(t_\kappa)}. m 1/2 K R ada − 1 2 → κ − t κ f ( t κ ) ( β c 0 + 2 c 1 + c 2 / β ) 1/2 .
Compared with Proposition 1, the same target is met at an oracle level smaller by the factor ρ \rho ρ .
Extension to conformal p-values
Method
Let T 1 , … , T m T_1,\ldots,T_m T 1 , … , T m be test scores obtained from a fixed scoring rule, with small values providing evidence against the null, and suppose that their null distribution function F 0 F_0 F 0 is unknown but a null reference sample is available [14 , 1 , 6 ] . We split the reference sample into an estimation fold W 1 , … , W n W_1,\ldots,W_n W 1 , … , W n and a calibration fold Z 1 , … , Z B Z_1,\ldots,Z_B Z 1 , … , Z B , and pool the calibration scores with the test scores in place of the synthetic nulls. Let F ^ 0 \widehat F_0 F 0 be the empirical distribution function of the estimation fold, and let F ^ a l l \widehat F_{\mathrm{all}} F all now denote that of the m + B m+B m + B pooled scores. Of the ( m + B ) F ^ a l l ( s ) (m+B)\widehat F_{\mathrm{all}}(s) ( m + B ) F all ( s ) pooled scores not exceeding s s s , about B F ^ 0 ( s ) B\widehat F_0(s) B F 0 ( s ) are calibration scores, so ( m + B ) F ^ a l l ( s ) − B F ^ 0 ( s ) (m+B)\widehat F_{\mathrm{all}}(s)-B\widehat F_0(s) ( m + B ) F all ( s ) − B F 0 ( s ) estimates the number of test scores not exceeding s s s without using the labels. We take the smallest threshold at which this estimate reaches K K K ,
s ^ K , B , n = inf { s : ( m + B ) F ^ a l l ( s ) − B F ^ 0 ( s ) ≥ K } . (12) \widehat s_{K,B,n}=\inf\{s:(m+B)\widehat F_{\mathrm{all}}(s)-B\widehat F_0(s)\ge K\}. \tag*{(12)} s K , B , n = inf { s : ( m + B ) F all ( s ) − B F 0 ( s ) ≥ K } . (12)
We then define the FDR level as in (3) , with F ^ 0 ( s ^ K , B , n ) \widehat F_0(\widehat s_{K,B,n}) F 0 ( s K , B , n ) in place of t ^ K , B \widehat t_{K,B} t K , B :
q ^ K r e f = [ m K 1 + B F ^ 0 ( s ^ K , B , n ) B + 1 ] [ q min , q max ] . (13) \widehat q_K^{\mathrm{ref}}=\left[\frac{m}{K}\frac{1+B\widehat F_0(\widehat s_{K,B,n})}{B+1}\right]_{[q_{\min},q_{\max}]}. \tag*{(13)} q K ref = [ K m B + 1 1 + B F 0 ( s K , B , n ) ] [ q m i n , q m a x ] . (13)
The level q ^ K r e f \widehat q_K^{\mathrm{ref}} q K ref depends on the data only through the estimation fold and the masked pool. Once q ^ K r e f \widehat q_K^{\mathrm{ref}} q K ref is obtained, we unmask the labels and use the calibration fold to compute the conformal p-values and the rejection set
P ~ i = 1 + ∑ b = 1 B 1 { Z b ≤ T i } B + 1 , S r e f = S q ^ K r e f ( P ~ ) . (14) \widetilde P_i=\frac{1+\sum_{b=1}^{B}\mathbf{1}\{Z_b\le T_i\}}{B+1},\qquad S^{\mathrm{ref}}=S_{\widehat q_K^{\mathrm{ref}}}(\widetilde P). \tag*{(14)} P i = B + 1 1 + ∑ b = 1 B 1 { Z b ≤ T i } , S ref = S q K ref ( P ) . (14)
The calibration size B B B again balances finer conformal p-values against a more variable estimated level, and the estimation fold adds a further source of error. Suppose that the p-values P i = F 0 ( T i ) P_i=F_0(T_i) P i = F 0 ( T i ) , which would be available if F 0 F_0 F 0 were known, satisfy model (5) . In Proposition 4, we show that, as m → ∞ m\to\infty m → ∞ with K K K , B B B and n n n of the same order as m m m ,
E ( R r e f ) = K + o ( m 1 / 2 ) , \mathbb{E}(R^{\mathrm{ref}})=K+o(m^{1/2}), E ( R ref ) = K + o ( m 1/2 ) ,
var ( R r e f ) = t K ( 1 − t K ) { 1 − m t K f ( t K ) / K } 2 ( B + B ⋆ ) 2 ( 1 B + 1 n ) + o ( m ) . (15) \operatorname{var}(R^{\mathrm{ref}})=\frac{t_K(1-t_K)}{\{1-mt_Kf(t_K)/K\}^2}(B+B^\star)^2\left(\frac{1}{B}+\frac{1}{n}\right)+o(m). \tag*{(15)} var ( R ref ) = { 1 − m t K f ( t K ) / K } 2 t K ( 1 − t K ) ( B + B ⋆ ) 2 ( B 1 + n 1 ) + o ( m ) . (15)
where R r e f = ∣ S r e f ∣ R^{\mathrm{ref}}=|S^{\mathrm{ref}}| R ref = ∣ S ref ∣ and B ⋆ = m f ( t K ) B^\star=mf(t_K) B ⋆ = m f ( t K ) . For a fixed ratio n / B n/B n / B , the leading term of the variance is again minimized at B = B ⋆ B=B^\star B = B ⋆ . Since this value depends on unknown quantities such as t K t_K t K and f ( t K ) f(t_K) f ( t K ) , we again use B = m B=m B = m as a practical default.
Conditional FDR control
Theorem 3 (Conditional FDR control). Suppose that the test scores and the reference scores are independent, and that the true null test scores and the reference scores have a common continuous distribution function F 0 F_0 F 0 . Then, for any B ≥ 1 B \ge1 B ≥ 1 and n ≥ 1 n \ge1 n ≥ 1 , the rejection set S r e f S^{\mathrm{ref}} S ref and the level q ^ K r e f \widehat{q}^{\mathrm{ref}}_K q K ref defined by (13) and (14) satisfy
E { FDP ( S r e f ) ∣ q ^ K r e f } ≤ m 0 m q ^ K r e f a.s. \mathbb{E}\{\operatorname{FDP}(S^{\mathrm{ref}}) \mid\widehat{q}^{\mathrm{ref}}_K\} \le\frac{m_0}{m}\widehat{q}^{\mathrm{ref}}_K \quad\text{a.s.} E { FDP ( S ref ) ∣ q K ref } ≤ m m 0 q K ref a.s.
Compared with Theorem 1, the bound is unchanged although the null distribution is estimated. The proof is given in Section B.
Asymptotic optimality
The oracle level is q ∗ = m t K / K q_* = mt_K/K q ∗ = m t K / K , as in Section 4, with t K t_K t K defined for the p-values P i = F 0 ( T i ) P_i = F_0(T_i) P i = F 0 ( T i ) .
Proposition 3 (Asymptotic optimality). Suppose that the p-values P i = F 0 ( T i ) P_i = F_0(T_i) P i = F 0 ( T i ) satisfy model (5) and Assumption 1, and further assume that n / m → γ ∈ ( 0 , ∞ ) n/m \to\gamma\in(0,\infty) n / m → γ ∈ ( 0 , ∞ ) . Then, as m → ∞ m \to\infty m → ∞ , m 1 / 2 ( 1 − R r e f / K ) + = O p ( 1 ) m^{1/2}(1-R^{\mathrm{ref}}/K)_+ = O_p(1) m 1/2 ( 1 − R ref / K ) + = O p ( 1 ) and
m 1 / 2 ∥ q ^ K r e f − q ∗ ∥ 2 → { κ ( 1 − κ ) + t κ ( 1 − t κ ) [ β + { β + f ( t κ ) } 2 / γ ] } 1 / 2 κ f ( t κ ) . m^{1/2}\left\lVert\widehat{q}^{\mathrm{ref}}_K-q_*\right\rVert_2 \to\frac{\left\{\kappa(1-\kappa)+t_\kappa(1-t_\kappa)\left[\beta+\{\beta+f(t_\kappa)\}^2/\gamma\right]\right\}^{1/2}}{\kappa f(t_\kappa)}. m 1/2 q K ref − q ∗ 2 → κ f ( t κ ) { κ ( 1 − κ ) + t κ ( 1 − t κ ) [ β + { β + f ( t κ ) } 2 / γ ] } 1/2 . If, in addition, F F F is concave, then
m 1 / 2 ∥ R r e f K − 1 ∥ 2 → ( 1 β + 1 γ ) 1 / 2 { β + f ( t κ ) } { t κ ( 1 − t κ ) } 1 / 2 κ − t κ f ( t κ ) . m^{1/2}\left\lVert\frac{R^{\mathrm{ref}}}{K}-1\right\rVert_2 \to\left(\frac{1}{\beta}+\frac{1}{\gamma}\right)^{1/2}\frac{\{\beta+f(t_\kappa)\}\{t_\kappa(1-t_\kappa)\}^{1/2}}{\kappa-t_\kappa f(t_\kappa)}. m 1/2 K R ref − 1 2 → ( β 1 + γ 1 ) 1/2 κ − t κ f ( t κ ) { β + f ( t κ )} { t κ ( 1 − t κ ) } 1/2 .
Compared with Proposition 1, the oracle level is unchanged, and both limits reduce to those of Proposition 1 as γ → ∞ \gamma\to\infty γ → ∞ .
Incorporating a null proportion estimate
For a boundary ℓ \ell ℓ that is a function of the estimation fold, with F ^ 0 ( ℓ ) < 1 \widehat{F}_0(\ell)<1 F 0 ( ℓ ) < 1 , the analogue of (7) is
π ^ 0 r e f = min [ 1 , max { 0 , 1 + ( m + B ) { 1 − F ^ a l l ( ℓ ) } − B { 1 − F ^ 0 ( ℓ ) } m { 1 − F ^ 0 ( ℓ ) } } ] . (16) \widehat{\pi}^{\mathrm{ref}}_0=\min\left[1,\max\left\{0,\frac{1+(m+B)\{1-\widehat{F}_{\mathrm{all}}(\ell)\}-B\{1-\widehat{F}_0(\ell)\}}{m\{1-\widehat{F}_0(\ell)\}}\right\}\right]. \tag*{(16)} π 0 ref = min [ 1 , max { 0 , m { 1 − F 0 ( ℓ )} 1 + ( m + B ) { 1 − F all ( ℓ )} − B { 1 − F 0 ( ℓ )} } ] . (16)
We multiply the raw level inside the brackets in (13) by this estimate before clipping to [ q min , q max ] [q_{\min},q_{\max}] [ q m i n , q m a x ] , and apply the adaptive BH procedure (9) at the resulting level to the conformal p-values in (14) . Under the assumptions of Theorem 3, the bound of Theorem 2 holds for the resulting rejection set and level; the proof is given in Section B.
Proofs
Conditional FDR control
Theorem 4 (Conditional FDR control for a general level). Let G \mathcal{G} G be the sigma-field generated by the order statistics of ( P 1 , … , P m , U 1 , … , U B ) (P_1,\ldots,P_m,U_1,\ldots,U_B) ( P 1 , … , P m , U 1 , … , U B ) . Under the assumptions of Theorem 1, for any G \mathcal{G} G -measurable q ^ ∈ [ 0 , 1 ) \widehat{q}\in[0,1) q ∈ [ 0 , 1 ) and S = S q ^ ( P ~ ) S=S_{\widehat{q}}(\widetilde{P}) S = S q ( P ) ,
E { FDP ( S ) ∣ q ^ } ≤ m 0 m q ^ a.s. \mathbb{E}\{\operatorname{FDP}(S)\mid\widehat{q}\}\le\frac{m_0}{m}\widehat{q}\quad\text{a.s.} E { FDP ( S ) ∣ q } ≤ m m 0 q a.s.
Proof of Theorem 4. Fix i ∈ H 0 i \in\mathcal{H}_0 i ∈ H 0 . Let W ( 1 ) < ⋯ < W ( B + 1 ) W_{(1)} < \cdots< W_{(B+1)} W ( 1 ) < ⋯ < W ( B + 1 ) be the order statistics of P i , U 1 , … , U B P_i, U_1, \ldots, U_B P i , U 1 , … , U B , which are distinct almost surely, and let ρ i \rho_i ρ i be the rank of P i P_i P i among them. Let F i \mathcal{F}_i F i be the sigma-field generated by ( P j ) j ≠ i (P_j)_{j \ne i} ( P j ) j = i and ( W ( 1 ) , … , W ( B + 1 ) ) (W_{(1)}, \ldots, W_{(B+1)}) ( W ( 1 ) , … , W ( B + 1 ) ) . Since P i , U 1 , … , U B P_i,U_1,\ldots,U_B P i , U 1 , … , U B are independent and uniform on ( 0 , 1 ) (0,1) ( 0 , 1 ) , and independent of ( P j ) j ≠ i (P_j)_{j \ne i} ( P j ) j = i , the rank ρ i \rho_i ρ i is uniform on { 1 , … , B + 1 } \{1,\ldots,B+1\} { 1 , … , B + 1 } and independent of F i \mathcal{F}_i F i . The masked pool is a function of ( P j ) j ≠ i (P_j)_{j \ne i} ( P j ) j = i and ( W ( 1 ) , … , W ( B + 1 ) ) (W_{(1)},\ldots,W_{(B+1)}) ( W ( 1 ) , … , W ( B + 1 ) ) , so G ⊆ F i \mathcal{G} \subseteq\mathcal{F}_i G ⊆ F i and q ^ \widehat{q} q is F i \mathcal{F}_i F i -measurable.
Given F i \mathcal{F}_i F i , write P ~ j ( r ) \widetilde{P}_j(r) P j ( r ) and R ( r ) R(r) R ( r ) for the conformal p-values and the number of rejections when ρ i = r \rho_i=r ρ i = r . Then P ~ i ( r ) = r / ( B + 1 ) \widetilde{P}_i(r)=r/(B+1) P i ( r ) = r / ( B + 1 ) and, for j ≠ i j \ne i j = i ,
∑ b = 1 B 1 { U b ≤ P j } = ∑ s = 1 B + 1 1 { W ( s ) ≤ P j } − 1 { W ( r ) ≤ P j } . \sum_{b=1}^{B}\mathbf{1}\{U_b \le P_j\}=\sum_{s=1}^{B+1}\mathbf{1}\{W_{(s)} \le P_j\}-\mathbf{1}\{W_{(r)} \le P_j\}. b = 1 ∑ B 1 { U b ≤ P j } = s = 1 ∑ B + 1 1 { W ( s ) ≤ P j } − 1 { W ( r ) ≤ P j } .
which is nondecreasing in r r r . Hence every conformal p-value is nondecreasing in r r r , and R ( r ) R(r) R ( r ) is nonincreasing in r r r . By the definition of the BH procedure, hypothesis i i i is rejected when ρ i = r \rho_i=r ρ i = r if and only if
r B + 1 ≤ q ^ R ( r ) m . (17) \frac{r}{B+1} \le\frac{\widehat{q}R(r)}{m}. \tag*{(17)} B + 1 r ≤ m q R ( r ) . (17)
The left side of (17) is increasing in r r r and the right side is nonincreasing, so (17) holds exactly for r ≤ r ∗ r \le r_* r ≤ r ∗ , for some r ∗ ∈ { 0 , … , B + 1 } r_* \in\{0,\ldots,B+1\} r ∗ ∈ { 0 , … , B + 1 } . If r ∗ ≥ 1 r_* \ge1 r ∗ ≥ 1 ,
E { 1 { i ∈ S } R ∨ 1 ∣ F i } = 1 B + 1 ∑ r = 1 r ∗ 1 R ( r ) ≤ r ∗ ( B + 1 ) R ( r ∗ ) ≤ q ^ m . \mathbb{E}\left\{\left.\frac{\mathbf{1}\{i \in S\}}{R \vee1}\right|\mathcal{F}_i\right\}
=\frac{1}{B+1}\sum_{r=1}^{r_*}\frac{1}{R(r)}
\le\frac{r_*}{(B+1)R(r_*)}
\le\frac{\widehat{q}}{m}. E { R ∨ 1 1 { i ∈ S } F i } = B + 1 1 r = 1 ∑ r ∗ R ( r ) 1 ≤ ( B + 1 ) R ( r ∗ ) r ∗ ≤ m q .
where the equality holds because ρ i \rho_i ρ i is uniform and independent of F i \mathcal{F}_i F i , the first inequality because R ( r ) ≥ R ( r ∗ ) R(r) \ge R(r_*) R ( r ) ≥ R ( r ∗ ) for r ≤ r ∗ r \le r_* r ≤ r ∗ , and the second by (17) at r = r ∗ r=r_* r = r ∗ . If r ∗ = 0 r_*=0 r ∗ = 0 the left side is zero. Since G ⊆ F i \mathcal{G} \subseteq\mathcal{F}_i G ⊆ F i , the same bound holds given G \mathcal{G} G , and summing over i ∈ H 0 i \in\mathcal{H}_0 i ∈ H 0 gives E { FDP ( S ) ∣ G } ≤ ( m 0 / m ) q ^ \mathbb{E}\{\operatorname{FDP}(S) \mid\mathcal{G}\} \le(m_0/m)\widehat{q} E { FDP ( S ) ∣ G } ≤ ( m 0 / m ) q . □ \square □
Theorem 1 follows from Theorem 4: q ^ K \widehat{q}_K q K depends on the data only through the masked pool, so it is G \mathcal{G} G -measurable, and the bound given G \mathcal{G} G implies the bound given q ^ K \widehat{q}_K q K .
Proof of Remark 2. Let G \mathcal{G} G be the sigma-field generated by the order statistics of ( P 1 , … , P m , U 1 , … , U B ) (P_1,\ldots,P_m,U_1,\ldots,U_B) ( P 1 , … , P m , U 1 , … , U B ) . The level q ^ K \widehat{q}_K q K is G \mathcal{G} G -measurable, so it suffices to show that E { FDP ( S ) ∣ G } ≤ ( m 0 / m ) q ^ \mathbb{E}\{\operatorname{FDP}(S)\mid\mathcal{G}\}\le(m_0/m)\widehat{q} E { FDP ( S ) ∣ G } ≤ ( m 0 / m ) q for any G \mathcal{G} G -measurable q ^ ∈ [ 0 , 1 ) \widehat{q}\in[0,1) q ∈ [ 0 , 1 ) and S = S q ^ ( P ~ ) S=S_{\widehat{q}}(\widetilde{P}) S = S q ( P ) .
Fix i ∈ H 0 i \in\mathcal{H}_0 i ∈ H 0 . Let W ( 1 ) < ⋯ < W ( B + 1 ) W_{(1)} < \cdots< W_{(B+1)} W ( 1 ) < ⋯ < W ( B + 1 ) be the order statistics of P i , U 1 , … , U B P_i,U_1,\ldots,U_B P i , U 1 , … , U B , which are distinct almost surely, and let ρ i \rho_i ρ i be the rank of P i P_i P i among them. Let F i \mathcal{F}_i F i be the sigma-field generated by ( P j ) j ≠ i (P_j)_{j \ne i} ( P j ) j = i and ( W ( 1 ) , … , W ( B + 1 ) ) (W_{(1)},\ldots,W_{(B+1)}) ( W ( 1 ) , … , W ( B + 1 ) ) , so that G ⊆ F i \mathcal{G} \subseteq\mathcal{F}_i G ⊆ F i . Since U 1 , … , U B U_1,\ldots,U_B U 1 , … , U B are independent and uniform on ( 0 , 1 ) (0,1) ( 0 , 1 ) and independent of P i P_i P i , and ( P i , U 1 , … , U B ) (P_i,U_1,\ldots,U_B) ( P i , U 1 , … , U B ) is independent of ( P j ) j ≠ i (P_j)_{j \ne i} ( P j ) j = i ,
Pr ( ρ i = r ∣ F i ) = f i ( W ( r ) ) ∑ s = 1 B + 1 f i ( W ( s ) ) ( r = 1 , … , B + 1 ) , \Pr(\rho_i=r\mid\mathcal{F}_i)=\frac{f_i(W_{(r)})}{\sum_{s=1}^{B+1}f_i(W_{(s)})}\qquad(r=1,\ldots,B+1), Pr ( ρ i = r ∣ F i ) = ∑ s = 1 B + 1 f i ( W ( s ) ) f i ( W ( r ) ) ( r = 1 , … , B + 1 ) ,
where the denominator is positive almost surely. As f i f_i f i is nondecreasing, these probabilities are nondecreasing in r r r , so
Pr ( ρ i ≤ k ∣ F i ) ≤ k B + 1 ( k = 1 , … , B + 1 ) . (18) \Pr(\rho_i \le k\mid\mathcal{F}_i)\le\frac{k}{B+1}\qquad(k=1,\ldots,B+1). \tag*{(18)} Pr ( ρ i ≤ k ∣ F i ) ≤ B + 1 k ( k = 1 , … , B + 1 ) . (18)
Given F i \mathcal{F}_i F i , write P ~ j ( r ) \widetilde{P}_j(r) P j ( r ) and R ( r ) R(r) R ( r ) for the conformal p-values and the number of rejections when ρ i = r \rho_i=r ρ i = r . Then P ~ i ( r ) = r / ( B + 1 ) \widetilde{P}_i(r)=r/(B+1) P i ( r ) = r / ( B + 1 ) and, for j ≠ i j \ne i j = i ,
∑ b = 1 B 1 { U b ≤ P j } = ∑ s = 1 B + 1 1 { W ( s ) ≤ P j } − 1 { W ( r ) ≤ P j } , \sum_{b=1}^{B}\mathbf{1}\{U_b \le P_j\}=\sum_{s=1}^{B+1}\mathbf{1}\{W_{(s)} \le P_j\}-\mathbf{1}\{W_{(r)} \le P_j\}, b = 1 ∑ B 1 { U b ≤ P j } = s = 1 ∑ B + 1 1 { W ( s ) ≤ P j } − 1 { W ( r ) ≤ P j } ,
which is nondecreasing in r r r . Hence every conformal p-value is nondecreasing in r r r , and R ( r ) R(r) R ( r ) is nonincreasing in r r r . By the definition of the BH procedure, hypothesis i i i is rejected when ρ i = r \rho_i=r ρ i = r if and only if
r B + 1 ≤ q ^ R ( r ) m . (19) \frac{r}{B+1} \le\frac{\widehat q R(r)}{m}. \tag*{(19)} B + 1 r ≤ m q R ( r ) . (19)
The left side of (19) is increasing in r r r and the right side is nonincreasing, so (19) holds exactly for r ≤ r ∗ r \le r_* r ≤ r ∗ , for some r ∗ ∈ { 0 , … , B + 1 } r_* \in\{0,\ldots,B+1\} r ∗ ∈ { 0 , … , B + 1 } . If r ∗ ≥ 1 r_* \ge1 r ∗ ≥ 1 ,
E { 1 { i ∈ S } R ∨ 1 ∣ F i } = ∑ r = 1 r ∗ Pr ( ρ i = r ∣ F i ) R ( r ) ≤ Pr ( ρ i ≤ r ∗ ∣ F i ) R ( r ∗ ) ≤ r ∗ ( B + 1 ) R ( r ∗ ) ≤ q ^ m , \mathbb{E}\left\{\left.\frac{\mathbf{1}\{i\in S\}}{R\vee1}\right|\mathcal{F}_i\right\}
=\sum_{r=1}^{r_*}\frac{\Pr(\rho_i=r\mid\mathcal{F}_i)}{R(r)}
\le\frac{\Pr(\rho_i\le r_*\mid\mathcal{F}_i)}{R(r_*)}
\le\frac{r_*}{(B+1)R(r_*)}
\le\frac{\widehat q}{m}, E { R ∨ 1 1 { i ∈ S } F i } = r = 1 ∑ r ∗ R ( r ) Pr ( ρ i = r ∣ F i ) ≤ R ( r ∗ ) Pr ( ρ i ≤ r ∗ ∣ F i ) ≤ ( B + 1 ) R ( r ∗ ) r ∗ ≤ m q ,
where the first inequality holds because R ( r ) ≥ R ( r ∗ ) R(r)\ge R(r_*) R ( r ) ≥ R ( r ∗ ) for r ≤ r ∗ r\le r_* r ≤ r ∗ , the second by (18), and the third by (19) at r = r ∗ r=r_* r = r ∗ . If r ∗ = 0 r_*=0 r ∗ = 0 the left side is zero. Since G ⊆ F i \mathcal{G}\subseteq\mathcal{F}_i G ⊆ F i , the same bound holds given G \mathcal{G} G , and summing over i ∈ H 0 i\in\mathcal{H}_0 i ∈ H 0 gives E { FDP ( S ) ∣ G } ≤ ( m 0 / m ) q ^ \mathbb{E}\{\operatorname{FDP}(S)\mid\mathcal{G}\}\le(m_0/m)\widehat q E { FDP ( S ) ∣ G } ≤ ( m 0 / m ) q . □
Proof of Theorem 2. Let G \mathcal{G} G be as in Theorem 4. As q ^ K a d a \widehat q_K^{\mathrm{ada}} q K ada is G \mathcal{G} G -measurable, it suffices to show that E { FDP ( S a d a ) ∣ G } ≤ q ^ \mathbb{E}\{\operatorname{FDP}(S^{\mathrm{ada}})\mid\mathcal{G}\}\le\widehat q E { FDP ( S ada ) ∣ G } ≤ q for any G \mathcal{G} G -measurable q ^ ∈ [ 0 , 1 ) \widehat q\in[0,1) q ∈ [ 0 , 1 ) in place of q ^ K a d a \widehat q_K^{\mathrm{ada}} q K ada in (9). If m 0 = 0 m_0=0 m 0 = 0 this is immediate, and if q ^ = 0 \widehat q=0 q = 0 or k τ = 1 k_\tau=1 k τ = 1 no hypothesis is rejected; we therefore take m 0 ≥ 1 m_0\ge1 m 0 ≥ 1 , q ^ > 0 \widehat q>0 q > 0 and k τ ≥ 2 k_\tau\ge2 k τ ≥ 2 .
Fix i ∈ H 0 i\in\mathcal{H}_0 i ∈ H 0 , with W ( 1 ) < ⋯ < W ( B + 1 ) W_{(1)}<\cdots<W_{(B+1)} W ( 1 ) < ⋯ < W ( B + 1 ) , ρ i \rho_i ρ i and F i \mathcal{F}_i F i as in the proof of Theorem 4, and let H \mathcal{H} H be the sigma-field generated by ( P j ) j ∉ H 0 (P_j)_{j\notin\mathcal{H}_0} ( P j ) j ∈ / H 0 and the order statistics of { P j : j ∈ H 0 } ∪ { U 1 , … , U B } \{P_j:j\in\mathcal{H}_0\}\cup\{U_1,\ldots,U_B\} { P j : j ∈ H 0 } ∪ { U 1 , … , U B } , so that G ⊆ H ⊆ F i \mathcal{G}\subseteq\mathcal{H}\subseteq\mathcal{F}_i G ⊆ H ⊆ F i . Given F i \mathcal{F}_i F i , write A ( r ) A(r) A ( r ) and R ( r ) R(r) R ( r ) for ∑ j = 1 m 1 { P ~ j ≥ τ } \sum_{j=1}^m\mathbf{1}\{\widetilde P_j\ge\tau\} ∑ j = 1 m 1 { P j ≥ τ } and R a d a R^{\mathrm{ada}} R ada when ρ i = r \rho_i=r ρ i = r . Every conformal p-value is nondecreasing in r r r , so A ( r ) A(r) A ( r ) is nondecreasing and R ( r ) R(r) R ( r ) is nonincreasing, and i ∈ S a d a i\in S^{\mathrm{ada}} i ∈ S ada if and only if
r B + 1 ≤ q ^ ( 1 − τ ) R ( r ) 1 + A ( r ) , r B + 1 < τ . (20) \frac{r}{B+1}\le\frac{\widehat q(1-\tau)R(r)}{1+A(r)},\qquad\frac{r}{B+1}<\tau. \tag*{(20)} B + 1 r ≤ 1 + A ( r ) q ( 1 − τ ) R ( r ) , B + 1 r < τ . (20)
that is, if and only if r ≤ r ∗ r\le r_* r ≤ r ∗ for some r ∗ ∈ { 0 , … , B + 1 } r_*\in\{0,\ldots,B+1\} r ∗ ∈ { 0 , … , B + 1 } . For r ∗ ≥ 1 r_*\ge1 r ∗ ≥ 1 ,
E { 1 { i ∈ S a d a } R a d a ∨ 1 ∣ F i } = 1 B + 1 ∑ r = 1 r ∗ 1 R ( r ) ≤ r ∗ ( B + 1 ) R ( r ∗ ) ≤ q ^ ( 1 − τ ) 1 + A ( 1 ) , (21) \mathbb{E}\left\{\left.\frac{\mathbf{1}\{i\in S^{\mathrm{ada}}\}}{R^{\mathrm{ada}}\vee1}\right|\mathcal{F}_i\right\}
=\frac{1}{B+1}\sum_{r=1}^{r_*}\frac{1}{R(r)}
\le\frac{r_*}{(B+1)R(r_*)}
\le\frac{\widehat q(1-\tau)}{1+A(1)}, \tag*{(21)} E { R ada ∨ 1 1 { i ∈ S ada } F i } = B + 1 1 r = 1 ∑ r ∗ R ( r ) 1 ≤ ( B + 1 ) R ( r ∗ ) r ∗ ≤ 1 + A ( 1 ) q ( 1 − τ ) , (21)
by (20) at r = r ∗ r=r_* r = r ∗ and A ( r ∗ ) ≥ A ( 1 ) A(r_*)\ge A(1) A ( r ∗ ) ≥ A ( 1 ) ; for r ∗ = 0 r_*=0 r ∗ = 0 the left side is zero.
Let A = A ( ρ i ) A=A(\rho_i) A = A ( ρ i ) , and let V V V be the ( k τ − 1 ) (k_\tau-1) ( k τ − 1 ) th smallest of U 1 , … , U B U_1,\ldots,U_B U 1 , … , U B . Then P ~ j ≥ τ \widetilde P_j\ge\tau P j ≥ τ if and only if P j ≥ V P_j\ge V P j ≥ V , so A ≥ Y = ∑ j ∈ H 0 , j ≠ i 1 { P j ≥ V } A\ge Y=\sum_{j\in\mathcal{H}_0,j\ne i}\mathbf{1}\{P_j\ge V\} A ≥ Y = ∑ j ∈ H 0 , j = i 1 { P j ≥ V } . Since ρ i \rho_i ρ i is uniform and independent of F i ⊇ H \mathcal{F}_i\supseteq\mathcal{H} F i ⊇ H ,
E [ ( 1 + A ( 1 ) ) − 1 ∣ H ] = ( B + 1 ) E [ ( 1 + A ) − 1 1 { ρ i = 1 } ∣ H ] ≤ ( B + 1 ) E [ ( 1 + Y ) − 1 1 { ρ i = 1 } ∣ H ] = E [ ( 1 + Y ) − 1 ∣ ρ i = 1 ] , (22) \mathbb{E}\left[\left.(1+A(1))^{-1}\right|\mathcal{H}\right]
=(B+1)\mathbb{E}\left[\left.(1+A)^{-1}\mathbf{1}\{\rho_i=1\}\right|\mathcal{H}\right]
\le(B+1)\mathbb{E}\left[\left.(1+Y)^{-1}\mathbf{1}\{\rho_i=1\}\right|\mathcal{H}\right]
=\mathbb{E}\left[(1+Y)^{-1}\mid\rho_i=1\right], \tag*{(22)} E [ ( 1 + A ( 1 ) ) − 1 H ] = ( B + 1 ) E [ ( 1 + A ) − 1 1 { ρ i = 1 } H ] ≤ ( B + 1 ) E [ ( 1 + Y ) − 1 1 { ρ i = 1 } H ] = E [ ( 1 + Y ) − 1 ∣ ρ i = 1 ] , (22)
where the last equality holds because, given H \mathcal{H} H , every assignment of the m 0 + B m_0+B m 0 + B null and synthetic null values to their labels is equally likely, and Y Y Y and 1 { ρ i = 1 } \mathbf{1}\{\rho_i=1\} 1 { ρ i = 1 } depend only on the relative order of these values. Given ρ i = 1 \rho_i=1 ρ i = 1 , V = W ( k τ ) V=W_{(k_\tau)} V = W ( k τ ) has the Beta( k τ , B + 2 − k τ ) (k_\tau,B+2-k_\tau) ( k τ , B + 2 − k τ ) distribution and, given V V V , Y Y Y is binomial with index m 0 − 1 m_0-1 m 0 − 1 and probability 1 − V 1-V 1 − V . Hence
E [ ( 1 + Y ) − 1 ∣ ρ i = 1 ] = E ( 1 − V m 0 m 0 ( 1 − V ) ) ≤ 1 m 0 E ( 1 1 − V ) = B + 1 m 0 ( B + 1 − k τ ) = 1 m 0 ( 1 − τ ) . (23) \mathbb{E}\left[(1+Y)^{-1}\mid\rho_i=1\right]
=\mathbb{E}\left(\frac{1-V^{m_0}}{m_0(1-V)}\right)
\le\frac{1}{m_0}\mathbb{E}\left(\frac{1}{1-V}\right)
=\frac{B+1}{m_0(B+1-k_\tau)}
=\frac{1}{m_0(1-\tau)}. \tag*{(23)} E [ ( 1 + Y ) − 1 ∣ ρ i = 1 ] = E ( m 0 ( 1 − V ) 1 − V m 0 ) ≤ m 0 1 E ( 1 − V 1 ) = m 0 ( B + 1 − k τ ) B + 1 = m 0 ( 1 − τ ) 1 . (23)
By (21)–(23), E [ 1 { i ∈ S a d a } / ( R a d a ∨ 1 ) ∣ H ] ≤ q ^ / m 0 \mathbb{E}[\mathbf{1}\{i\in S^{\mathrm{ada}}\}/(R^{\mathrm{ada}}\vee1)\mid\mathcal{H}]\le\widehat q/m_0 E [ 1 { i ∈ S ada } / ( R ada ∨ 1 ) ∣ H ] ≤ q / m 0 . Summing over i ∈ H 0 i\in\mathcal{H}_0 i ∈ H 0 and taking expectations given G \mathcal{G} G gives the result. □
Proof of Theorem 3. Let G r e f \mathcal{G}^{\mathrm{ref}} G ref be the sigma-field generated by the estimation fold W = ( W 1 , … , W n ) \mathcal{W}=(W_1,\ldots,W_n) W = ( W 1 , … , W n ) and the masked pool, that is, the unordered set of the m + B m+B m + B test and calibration scores. The level q ^ K r e f \widehat{q}^{\mathrm{ref}}_K q K ref is G r e f \mathcal{G}^{\mathrm{ref}} G ref -measurable, so it suffices to show that, for any G r e f \mathcal{G}^{\mathrm{ref}} G ref -measurable level q ^ ∈ [ 0 , 1 ) \widehat{q}\in[0,1) q ∈ [ 0 , 1 ) and S = S q ^ ( P ^ ) S=S_{\widehat{q}}(\widehat{P}) S = S q ( P ) ,
E { FDP ( S ) ∣ G r e f } ≤ ( m 0 / m ) q ^ . \mathbb{E}\{\operatorname{FDP}(S)\mid\mathcal{G}^{\mathrm{ref}}\}\leq(m_0/m)\widehat{q}. E { FDP ( S ) ∣ G ref } ≤ ( m 0 / m ) q .
Fix i ∈ H 0 i\in\mathcal{H}_0 i ∈ H 0 , and let X ( 1 ) < ⋯ < X ( B + 1 ) X_{(1)}<\cdots<X_{(B+1)} X ( 1 ) < ⋯ < X ( B + 1 ) denote the ordered values of T i T_i T i and Z 1 , … , Z B Z_1,\ldots,Z_B Z 1 , … , Z B , which are distinct almost surely because F 0 F_0 F 0 is continuous. Let ρ i \rho_i ρ i be the rank of T i T_i T i among them, and let F i \mathcal{F}_i F i be the sigma-field generated by W \mathcal{W} W , ( T j ) j ≠ i (T_j)_{j\neq i} ( T j ) j = i and ( X ( 1 ) , … , X ( B + 1 ) ) (X_{(1)},\ldots,X_{(B+1)}) ( X ( 1 ) , … , X ( B + 1 ) ) . Since T i T_i T i and Z 1 , … , Z B Z_1,\ldots,Z_B Z 1 , … , Z B are independent with distribution function F 0 F_0 F 0 , and independent of W \mathcal{W} W and ( T j ) j ≠ i (T_j)_{j\neq i} ( T j ) j = i , the rank ρ i \rho_i ρ i is uniform on { 1 , … , B + 1 } \{1,\ldots,B+1\} { 1 , … , B + 1 } and independent of F i \mathcal{F}_i F i . The estimation fold and the masked pool are functions of the variables generating F i \mathcal{F}_i F i , so G r e f ⊆ F i \mathcal{G}^{\mathrm{ref}}\subseteq\mathcal{F}_i G ref ⊆ F i and q ^ \widehat{q} q is F i \mathcal{F}_i F i -measurable.
The conformal p-values in (14) depend on the scores only through the indicators 1 { Z b ≤ T j } \mathbf{1}\{Z_b\leq T_j\} 1 { Z b ≤ T j } . The remainder of the proof of Theorem 4 therefore applies with T j T_j T j , Z b Z_b Z b and X ( s ) X_{(s)} X ( s ) in place of P j P_j P j , U b U_b U b and W ( s ) W_{(s)} W ( s ) , and gives
E { 1 { i ∈ S } R ∨ 1 ∣ F i } ≤ q ^ m . \mathbb{E}\left\{\left.\frac{\mathbf{1}\{i\in S\}}{R\vee1}\right|\mathcal{F}_i\right\}\leq\frac{\widehat{q}}{m}. E { R ∨ 1 1 { i ∈ S } F i } ≤ m q .
Since G r e f ⊆ F i \mathcal{G}^{\mathrm{ref}}\subseteq\mathcal{F}_i G ref ⊆ F i , the same bound holds given G r e f \mathcal{G}^{\mathrm{ref}} G ref , and summing over i ∈ H 0 i\in\mathcal{H}_0 i ∈ H 0 gives the claim.
For the procedure with a null proportion estimate, let H r e f \mathcal{H}^{\mathrm{ref}} H ref be the sigma-field generated by the estimation fold, the non-null test scores and the unordered set of the m 0 + B m_0+B m 0 + B true null test scores and calibration scores. Then G r e f ⊆ H r e f ⊆ F i \mathcal{G}^{\mathrm{ref}}\subseteq\mathcal{H}^{\mathrm{ref}}\subseteq\mathcal{F}_i G ref ⊆ H ref ⊆ F i , and, given H r e f \mathcal{H}^{\mathrm{ref}} H ref , every assignment of the values in that unordered set to the true null test scores and the calibration scores is equally likely. The proof of Theorem 2 therefore applies with G r e f \mathcal{G}^{\mathrm{ref}} G ref and H r e f \mathcal{H}^{\mathrm{ref}} H ref in place of G \mathcal{G} G and H \mathcal{H} H , and gives E { FDP ( S a d a ) ∣ G r e f } ≤ q ^ \mathbb{E}\{\operatorname{FDP}(S^{\mathrm{ada}})\mid\mathcal{G}^{\mathrm{ref}}\}\leq\widehat{q} E { FDP ( S ada ) ∣ G ref } ≤ q for any G r e f \mathcal{G}^{\mathrm{ref}} G ref -measurable level q ^ ∈ [ 0 , 1 ) \widehat{q}\in[0,1) q ∈ [ 0 , 1 ) . □ \square □
Asymptotic optimality
Assume model (5) and Assumption 1. Let F ^ m ( v ) = m − 1 ∑ i 1 ( P i ≤ v ) \widehat{F}_m(v)=m^{-1}\sum_i\mathbf{1}(P_i\leq v) F m ( v ) = m − 1 ∑ i 1 ( P i ≤ v ) and F ^ B ( v ) = B − 1 ∑ b 1 ( U b ≤ v ) \widehat{F}_B(v)=B^{-1}\sum_b\mathbf{1}(U_b\leq v) F B ( v ) = B − 1 ∑ b 1 ( U b ≤ v ) . Let κ m = K / m \kappa_m=K/m κ m = K / m , b m = B / m b_m=B/m b m = B / m , g = f ( t K ) g=f(t_K) g = f ( t K ) , d K = 1 − t K g / κ m d_K=1-t_Kg/\kappa_m d K = 1 − t K g / κ m , h = t K ( 1 − t K ) h=t_K(1-t_K) h = t K ( 1 − t K ) , η = F ^ m ( t K ) − κ m \eta=\widehat{F}_m(t_K)-\kappa_m η = F m ( t K ) − κ m and ξ = F ^ B ( t K ) − t K \xi=\widehat{F}_B(t_K)-t_K ξ = F B ( t K ) − t K . Then η \eta η and ξ \xi ξ are independent, with var ( η ) = κ m ( 1 − κ m ) / m \operatorname{var}(\eta)=\kappa_m(1-\kappa_m)/m var ( η ) = κ m ( 1 − κ m ) / m and var ( ξ ) = h / B \operatorname{var}(\xi)=h/B var ( ξ ) = h / B . Because f f f is continuous at t κ t_\kappa t κ with f ( t κ ) > 0 f(t_\kappa)>0 f ( t κ ) > 0 , F F F is strictly increasing near t κ t_\kappa t κ . Because K / m → κ K/m\to\kappa K / m → κ , t K t_K t K is therefore unique for large m m m and t K → t κ t_K\to t_\kappa t K → t κ . It follows that g → f ( t κ ) g\to f(t_\kappa) g → f ( t κ ) and d K → d = 1 − t κ f ( t κ ) / κ d_K\to d=1-t_\kappa f(t_\kappa)/\kappa d K → d = 1 − t κ f ( t κ ) / κ , which is positive by Assumption 1. We write X m = o L 2 ( m − 1 / 2 ) X_m=o_{L^2}(m^{-1/2}) X m = o L 2 ( m − 1/2 ) if m 1 / 2 ∥ X m ∥ 2 → 0 m^{1/2}\lVert X_m\rVert_2\to0 m 1/2 ∥ X m ∥ 2 → 0 .
Lemma 1. Let I I I be compact with 0 < f − ≤ f ≤ f + 0<f_-\leq f\leq f_+ 0 < f − ≤ f ≤ f + on I I I , v ∈ I v\in I v ∈ I , δ m = m − 1 / 2 log m \delta_m=m^{-1/2}\log m δ m = m − 1/2 log m , M m ∈ { F ^ m − F , F ^ B − id } M_m\in\{\widehat{F}_m-F,\widehat{F}_B-\operatorname{id}\} M m ∈ { F m − F , F B − id } , and
Δ m = sup u max { ∣ F ^ m ( u ) − F ( u ) ∣ , ∣ F ^ B ( u ) − u ∣ } , \Delta_m=\sup_u\max\{|\widehat{F}_m(u)-F(u)|,|\widehat{F}_B(u)-u|\}, Δ m = u sup max { ∣ F m ( u ) − F ( u ) ∣ , ∣ F B ( u ) − u ∣ } , G m = sup { w − u : ( u , w ] ⊆ I , F ^ m ( w ) = F ^ m ( u ) } , G_m=\sup\{w-u:(u,w]\subseteq I,\ \widehat{F}_m(w)=\widehat{F}_m(u)\}, G m = sup { w − u : ( u , w ] ⊆ I , F m ( w ) = F m ( u )} , ω m = sup ∣ u − v ∣ ≤ δ m ∣ M m ( u ) − M m ( v ) ∣ . \omega_m=\sup_{|u-v|\leq\delta_m}|M_m(u)-M_m(v)|. ω m = ∣ u − v ∣ ≤ δ m sup ∣ M m ( u ) − M m ( v ) ∣. Then, for x > 0 x>0 x > 0 and p ≥ 1 p\geq1 p ≥ 1 ,
Pr ( Δ m > x ) ≤ C 0 e − c 0 m x 2 , ∥ G m ∥ p = O ( log m m ) , ∥ ω m ∥ p = O ( m − 3 / 4 log m ) . \Pr(\Delta_m>x)\leq C_0e^{-c_0mx^2},\qquad\lVert G_m\rVert_p=O\left(\frac{\log m}{m}\right),\qquad\lVert\omega_m\rVert_p=O(m^{-3/4}\log m). Pr ( Δ m > x ) ≤ C 0 e − c 0 m x 2 , ∥ G m ∥ p = O ( m log m ) , ∥ ω m ∥ p = O ( m − 3/4 log m ) .
Proof of Lemma 1. By the Dvoretzky–Kiefer–Wolfowitz inequality and B ≥ β m / 2 B\geq\beta m/2 B ≥ β m /2 for large m m m ,
Pr ( Δ m > x ) ≤ 2 e − 2 m x 2 + 2 e − 2 B x 2 ≤ 4 e − min ( 1 , β ) m x 2 , E Δ m p = ∫ 0 ∞ p x p − 1 Pr ( Δ m > x ) d x = O ( m − p / 2 ) . \Pr(\Delta_m>x)\leq2e^{-2mx^2}+2e^{-2Bx^2}\leq4e^{-\min(1,\beta)mx^2},\qquad\mathbb{E}\Delta_m^p=\int_0^\infty px^{p-1}\Pr(\Delta_m>x)\,dx=O(m^{-p/2}). Pr ( Δ m > x ) ≤ 2 e − 2 m x 2 + 2 e − 2 B x 2 ≤ 4 e − m i n ( 1 , β ) m x 2 , E Δ m p = ∫ 0 ∞ p x p − 1 Pr ( Δ m > x ) d x = O ( m − p /2 ) .
Divide I I I into cells J 1 , … , J N J_1,\ldots,J_N J 1 , … , J N of length y / 2 y/2 y /2 , with N ≤ 2 ∣ I ∣ / y + 1 N \le2|I|/y+1 N ≤ 2∣ I ∣/ y + 1 . Any subinterval of I I I of length y y y contains a cell, so
Pr ( G m > y ) ≤ ∑ k = 1 N { 1 − F ( J k ) } m ≤ ( 2 ∣ I ∣ y + 1 ) e − m f − y / 2 . \Pr(G_m>y)\le\sum_{k=1}^{N}\{1-F(J_k)\}^m\le\left(\frac{2|I|}{y}+1\right)e^{-mf_-y/2}. Pr ( G m > y ) ≤ k = 1 ∑ N { 1 − F ( J k ) } m ≤ ( y 2∣ I ∣ + 1 ) e − m f − y /2 .
With y m = b log m / m y_m=b\log m/m y m = b log m / m and b f − / 2 ≥ p + 1 bf_-/2\ge p+1 b f − /2 ≥ p + 1 , since G m ≤ ∣ I ∣ G_m\le|I| G m ≤ ∣ I ∣ ,
∥ G m ∥ p ≤ y m + ∣ I ∣ Pr ( G m > y m ) 1 / p ≤ y m + C m − 1 = O ( log m / m ) . \|G_m\|_p\le y_m+|I|\Pr(G_m>y_m)^{1/p}\le y_m+Cm^{-1}=O(\log m/m). ∥ G m ∥ p ≤ y m + ∣ I ∣ Pr ( G m > y m ) 1/ p ≤ y m + C m − 1 = O ( log m / m ) .
Let n m ∈ { m , B } n_m\in\{m,B\} n m ∈ { m , B } be the sample size of M m M_m M m , and let u k = v + k m − 2 u_k=v+km^{-2} u k = v + k m − 2 for ∣ k ∣ ≤ m 2 δ m |k|\le m^2\delta_m ∣ k ∣ ≤ m 2 δ m . Then n m { M m ( u k ) − M m ( v ) } n_m\{M_m(u_k)-M_m(v)\} n m { M m ( u k ) − M m ( v )} is a sum of n m n_m n m independent centred terms bounded by one, with variance σ m 2 ≤ n m ( f + ∨ 1 ) δ m \sigma_m^2\le n_m(f_+\vee1)\delta_m σ m 2 ≤ n m ( f + ∨ 1 ) δ m . By Bernstein’s inequality,
Pr { ∣ M m ( u k ) − M m ( v ) ∣ > x } ≤ 2 exp { − n m 2 x 2 2 ( σ m 2 + n m x / 3 ) } . \Pr\{|M_m(u_k)-M_m(v)|>x\}\le2\exp\left\{-\frac{n_m^2x^2}{2(\sigma_m^2+n_mx/3)}\right\}. Pr { ∣ M m ( u k ) − M m ( v ) ∣ > x } ≤ 2 exp { − 2 ( σ m 2 + n m x /3 ) n m 2 x 2 } .
By monotonicity of F ^ m \widehat F_m F m and F ^ B \widehat F_B F B , for u k ≤ u ≤ u k + 1 u_k\le u\le u_{k+1} u k ≤ u ≤ u k + 1 ,
∣ M m ( u ) − M m ( v ) ∣ ≤ max l = k , k + 1 ∣ M m ( u l ) − M m ( v ) ∣ + ( f + ∨ 1 ) m − 2 . |M_m(u)-M_m(v)|\le\max_{l=k,k+1}|M_m(u_l)-M_m(v)|+(f_+\vee1)m^{-2}. ∣ M m ( u ) − M m ( v ) ∣ ≤ l = k , k + 1 max ∣ M m ( u l ) − M m ( v ) ∣ + ( f + ∨ 1 ) m − 2 .
Take x m = b m − 3 / 4 log m x_m=bm^{-3/4}\log m x m = b m − 3/4 log m . Then n m x m 2 / δ m ≍ b 2 log m n_mx_m^2/\delta_m\asymp b^2\log m n m x m 2 / δ m ≍ b 2 log m and n m x m ≫ log m n_mx_m\gg\log m n m x m ≫ log m , so a union bound over the at most 3 m 2 3m^2 3 m 2 grid points gives
Pr ( ω m > 2 x m ) ≤ 12 m 2 − c b 2 . \Pr(\omega_m>2x_m)\le12m^{2-cb^2}. Pr ( ω m > 2 x m ) ≤ 12 m 2 − c b 2 .
Since ω m ≤ 2 \omega_m\le2 ω m ≤ 2 , for b b b large,
∥ ω m ∥ p ≤ 2 x m + 2 Pr ( ω m > 2 x m ) 1 / p = O ( m − 3 / 4 log m ) . \|\omega_m\|_p\le2x_m+2\Pr(\omega_m>2x_m)^{1/p}=O(m^{-3/4}\log m). ∥ ω m ∥ p ≤ 2 x m + 2 Pr ( ω m > 2 x m ) 1/ p = O ( m − 3/4 log m ) .
□ \square □
Proof of Proposition 1. By continuity of f f f at t κ t_\kappa t κ and f ( t κ ) > 0 f(t_\kappa)>0 f ( t κ ) > 0 , there is ε > 0 \varepsilon>0 ε > 0 such that Lemma 1 applies on I = [ t κ − 3 ε , t κ + 3 ε ] I=[t_\kappa-3\varepsilon,t_\kappa+3\varepsilon] I = [ t κ − 3 ε , t κ + 3 ε ] . For large m m m , ∣ t K − t κ ∣ ≤ ε |t_K-t_\kappa|\le\varepsilon ∣ t K − t κ ∣ ≤ ε and 1 − q ∗ f ≥ d / 2 1-q_*f\ge d/2 1 − q ∗ f ≥ d /2 on I I I . Let E m = { Δ m ≤ x 0 } E_m=\{\Delta_m\le x_0\} E m = { Δ m ≤ x 0 } , with x 0 x_0 x 0 small, so that Pr ( E m c ) ≤ C e − c m \Pr(E_m^c)\le Ce^{-cm} Pr ( E m c ) ≤ C e − c m .
By (2) , t ^ K , B \widehat t_{K,B} t K , B is the first v v v at which F ^ m ( v ) + b m { F ^ B ( v ) − v } \widehat F_m(v)+b_m\{\widehat F_B(v)-v\} F m ( v ) + b m { F B ( v ) − v } reaches κ m \kappa_m κ m . This function is within C Δ m C\Delta_m C Δ m of F F F uniformly and increases only through jumps of size m − 1 m^{-1} m − 1 , so
F ^ m ( t ^ K , B ) + b m { F ^ B ( t ^ K , B ) − t ^ K , B } ∈ [ κ m , κ m + m − 1 ] . (24) \widehat F_m(\widehat t_{K,B})+b_m\{\widehat F_B(\widehat t_{K,B})-\widehat t_{K,B}\}\in[\kappa_m,\kappa_m+m^{-1}]. \tag*{(24)} F m ( t K , B ) + b m { F B ( t K , B ) − t K , B } ∈ [ κ m , κ m + m − 1 ] . (24)
As F F F is nondecreasing and strictly increasing on I I I , on E m E_m E m we have
∣ t ^ K , B − t K ∣ ≤ C ( Δ m + m − 1 ) . (25) |\widehat t_{K,B}-t_K|\le C(\Delta_m+m^{-1}). \tag*{(25)} ∣ t K , B − t K ∣ ≤ C ( Δ m + m − 1 ) . (25)
The raw level is Q = ( m / K ) ( 1 + B t ^ K , B ) / ( B + 1 ) Q=(m/K)(1+B\widehat t_{K,B})/(B+1) Q = ( m / K ) ( 1 + B t K , B ) / ( B + 1 ) , so ∣ Q − q ∗ ∣ ≤ C ( Δ m + m − 1 ) |Q-q_*|\le C(\Delta_m+m^{-1}) ∣ Q − q ∗ ∣ ≤ C ( Δ m + m − 1 ) on E m E_m E m . Since q min < t κ / κ < q max q_{\min}<t_\kappa/\kappa<q_{\max} q m i n < t κ / κ < q m a x , q ^ K = Q \widehat q_K=Q q K = Q on E m E_m E m .
The conformal p-value of P ( r ) = v P(r)=v P ( r ) = v is { 1 + B F ^ B ( v ) } / ( B + 1 ) \{1+B\widehat F_B(v)\}/(B+1) { 1 + B F B ( v )} / ( B + 1 ) , and r = m F ^ m ( v ) r=m\widehat F_m(v) r = m F m ( v ) . Hence P ~ ( r ) ≤ q ^ K r / m \widetilde P(r)\le\widehat q_Kr/m P ( r ) ≤ q K r / m if and only if
D m ( P ( r ) ) ≤ 0 , D m ( v ) = 1 + B F ^ B ( v ) B + 1 − q ^ K F ^ m ( v ) , D_m(P(r))\le0,\qquad D_m(v)=\frac{1+B\widehat F_B(v)}{B+1}-\widehat q_K\widehat F_m(v), D m ( P ( r )) ≤ 0 , D m ( v ) = B + 1 1 + B F B ( v ) − q K F m ( v ) ,
and R R R is the largest such r r r . On E m E_m E m , sup v ∣ D m ( v ) − { v − q ∗ F ( v ) } ∣ ≤ r m = C ( Δ m + m − 1 ) \sup_v|D_m(v)-\{v-q_*F(v)\}|\le r_m=C(\Delta_m+m^{-1}) sup v ∣ D m ( v ) − { v − q ∗ F ( v )} ∣ ≤ r m = C ( Δ m + m − 1 ) . As v − q ∗ F ( v ) v-q_*F(v) v − q ∗ F ( v ) vanishes at t K t_K t K and has derivative 1 − q ∗ f ≥ d / 2 1-q_*f\ge d/2 1 − q ∗ f ≥ d /2 on I I I , D m < 0 D_m<0 D m < 0 on ( t K − ε , t K − 2 r m / d ) (t_K-\varepsilon,t_K-2r_m/d) ( t K − ε , t K − 2 r m / d ) . Hence, on E m ∩ { G m ≤ ε } E_m\cap\{G_m\le\varepsilon\} E m ∩ { G m ≤ ε } , some P ( r ) ∈ [ t K − 2 r m / d − G m , t K − 2 r m / d ) P(r)\in[t_K-2r_m/d-G_m,t_K-2r_m/d) P ( r ) ∈ [ t K − 2 r m / d − G m , t K − 2 r m / d ) has D m ( P ( r ) ) ≤ 0 D_m(P(r))\le0 D m ( P ( r )) ≤ 0 , so R ≥ r R\ge r R ≥ r and
κ m − R m ≤ F ( t K ) − F ^ m ( t K − 2 r m / d − G m ) ≤ f + ( 2 r m / d + G m ) + Δ m . \kappa_m-\frac{R}{m}\le F(t_K)-\widehat F_m(t_K-2r_m/d-G_m)\le f_+(2r_m/d+G_m)+\Delta_m. κ m − m R ≤ F ( t K ) − F m ( t K − 2 r m / d − G m ) ≤ f + ( 2 r m / d + G m ) + Δ m .
By Lemma 1, ∥ ( 1 − R / K ) + ∥ 2 = O ( m − 1 / 2 ) \lVert(1-R/K)_+\rVert_2=O(m^{-1/2}) ∥( 1 − R / K ) + ∥ 2 = O ( m − 1/2 ) , which proves the first claim.
Let E m ′ = E m ∩ { Δ m + G m ≤ c δ m } E'_m=E_m\cap\{\Delta_m+G_m\le c\delta_m\} E m ′ = E m ∩ { Δ m + G m ≤ c δ m } , so that Pr ( ( E m ′ ) c ) ≤ C e − c log 2 m \Pr((E'_m)^c)\le Ce^{-c\log^2m} Pr (( E m ′ ) c ) ≤ C e − c l o g 2 m . Let ε m = sup { ∣ f ( u ) − g ∣ : ∣ u − t K ∣ ≤ 2 δ m + ∣ t K − t κ ∣ } \varepsilon_m=\sup\{|f(u)-g|:|u-t_K|\le2\delta_m+|t_K-t_\kappa|\} ε m = sup { ∣ f ( u ) − g ∣ : ∣ u − t K ∣ ≤ 2 δ m + ∣ t K − t κ ∣ } , which tends to zero. For a random argument u ^ \widehat{u} u with ∣ u ^ − t K ∣ ≤ δ m |\widehat{u}-t_K|\le\delta_m ∣ u − t K ∣ ≤ δ m on E m ′ E'_m E m ′ ,
F ^ m ( u ^ ) = κ m + η + g ( u ^ − t K ) + e m , F ^ B ( u ^ ) = u ^ + ξ + e B , (26) \widehat{F}_m(\widehat{u})=\kappa_m+\eta+g(\widehat{u}-t_K)+e_m,\qquad\widehat{F}_B(\widehat{u})=\widehat{u}+\xi+e_B, \tag*{(26)} F m ( u ) = κ m + η + g ( u − t K ) + e m , F B ( u ) = u + ξ + e B , (26)
where, on E m ′ E'_m E m ′ , ∣ e m ∣ + ∣ e B ∣ ≤ 2 ω m + ε m ∣ u ^ − t K ∣ |e_m|+|e_B|\le2\omega_m+\varepsilon_m|\widehat{u}-t_K| ∣ e m ∣ + ∣ e B ∣ ≤ 2 ω m + ε m ∣ u − t K ∣ , which is o L 2 ( m − 1 / 2 ) o_{L^2}(m^{-1/2}) o L 2 ( m − 1/2 ) . Substituting (26) with u ^ = t ^ K , B \widehat{u}=\widehat{t}_{K,B} u = t K , B into (24) gives
g ( t ^ K , B − t K ) = − ( η + b m ξ ) + o L 2 ( m − 1 / 2 ) . g(\widehat{t}_{K,B}-t_K)=-(\eta+b_m\xi)+o_{L^2}(m^{-1/2}). g ( t K , B − t K ) = − ( η + b m ξ ) + o L 2 ( m − 1/2 ) .
Hence
Q − q ∗ = B κ m ( B + 1 ) ( t ^ K , B − t K ) + O ( m − 1 ) = − η + b m ξ κ m g + o L 2 ( m − 1 / 2 ) . Q-q_*=\frac{B}{\kappa_m(B+1)}(\widehat{t}_{K,B}-t_K)+O(m^{-1})=-\frac{\eta+b_m\xi}{\kappa_m g}+o_{L^2}(m^{-1/2}). Q − q ∗ = κ m ( B + 1 ) B ( t K , B − t K ) + O ( m − 1 ) = − κ m g η + b m ξ + o L 2 ( m − 1/2 ) .
As q ^ K \widehat{q}_K q K and Q Q Q are bounded, the events ( E m ′ ) c (E'_m)^c ( E m ′ ) c and { q ^ K ≠ Q } \{\widehat{q}_K\ne Q\} { q K = Q } contribute o ( m − 1 ) o(m^{-1}) o ( m − 1 ) to E ( q ^ K − q ∗ ) 2 \mathbb{E}(\widehat{q}_K-q_*)^2 E ( q K − q ∗ ) 2 . Since var ( η + b m ξ ) = { κ m ( 1 − κ m ) + b m h } / m \operatorname{var}(\eta+b_m\xi)=\{\kappa_m(1-\kappa_m)+b_mh\}/m var ( η + b m ξ ) = { κ m ( 1 − κ m ) + b m h } / m ,
m E ( q ^ K − q ∗ ) 2 = κ m ( 1 − κ m ) + b m h κ m 2 g 2 + o ( 1 ) ⟶ κ ( 1 − κ ) + β t κ ( 1 − t κ ) κ 2 f ( t κ ) 2 . m\mathbb{E}(\widehat{q}_K-q_*)^2=\frac{\kappa_m(1-\kappa_m)+b_mh}{\kappa_m^2g^2}+o(1)\longrightarrow\frac{\kappa(1-\kappa)+\beta t_\kappa(1-t_\kappa)}{\kappa^2f(t_\kappa)^2}. m E ( q K − q ∗ ) 2 = κ m 2 g 2 κ m ( 1 − κ m ) + b m h + o ( 1 ) ⟶ κ 2 f ( t κ ) 2 κ ( 1 − κ ) + β t κ ( 1 − t κ ) .
If F F F is concave, then v − q ∗ F ( v ) v-q_*F(v) v − q ∗ F ( v ) is convex; as it vanishes at t K t_K t K and increases on I I I , it is positive for v > t K v>t_K v > t K . With the lower bound above, this gives ∣ s − t K ∣ ≤ 2 r m / d + G m |s-t_K|\le2r_m/d+G_m ∣ s − t K ∣ ≤ 2 r m / d + G m on E m E_m E m , where s = P ( R ) s=P_{(R)} s = P ( R ) . Let s + = P ( R + 1 ) s^+=P_{(R+1)} s + = P ( R + 1 ) . Then D m ( s ) ≤ 0 < D m ( s + ) D_m(s)\le0<D_m(s^+) D m ( s ) ≤ 0 < D m ( s + ) , by maximality of R R R , and F ^ m ( s + ) = F ^ m ( s ) + m − 1 \widehat{F}_m(s^+)=\widehat{F}_m(s)+m^{-1} F m ( s + ) = F m ( s ) + m − 1 give
∣ D m ( s ) ∣ ≤ F ^ B ( s + ) − F ^ B ( s ) ≤ ( s + − s ) + 2 ω m ≤ G m + 2 ω m = o L 2 ( m − 1 / 2 ) , |D_m(s)|\le\widehat{F}_B(s^+)-\widehat{F}_B(s)\le(s^+-s)+2\omega_m\le G_m+2\omega_m=o_{L^2}(m^{-1/2}), ∣ D m ( s ) ∣ ≤ F B ( s + ) − F B ( s ) ≤ ( s + − s ) + 2 ω m ≤ G m + 2 ω m = o L 2 ( m − 1/2 ) ,
because s s s and s + ≤ s + G m s^+\le s+G_m s + ≤ s + G m lie within δ m \delta_m δ m of t K t_K t K on E m ′ E'_m E m ′ . Substituting (26) with u ^ = s \widehat{u}=s u = s and the expansion of Q Q Q into D m ( s ) D_m(s) D m ( s ) gives
d K ( s − t K ) = t K κ m η − η + b m ξ g − ξ + o L 2 ( m − 1 / 2 ) , d_K(s-t_K)=\frac{t_K}{\kappa_m}\eta-\frac{\eta+b_m\xi}{g}-\xi+o_{L^2}(m^{-1/2}), d K ( s − t K ) = κ m t K η − g η + b m ξ − ξ + o L 2 ( m − 1/2 ) ,
where products of two first-order terms, each with L 4 L^4 L 4 norm O ( m − 1 / 2 ) O(m^{-1/2}) O ( m − 1/2 ) , have L 2 L^2 L 2 norm O ( m − 1 ) O(m^{-1}) O ( m − 1 ) by the Cauchy–Schwarz inequality. Since R / m − κ m = η + g ( s − t K ) + e m R/m-\kappa_m=\eta+g(s-t_K)+e_m R / m − κ m = η + g ( s − t K ) + e m and 1 + ( g t K / κ m − 1 ) / d K = 0 1+(gt_K/\kappa_m-1)/d_K=0 1 + ( g t K / κ m − 1 ) / d K = 0 ,
R K − 1 = − ( b m + g ) ξ κ m d K + o L 2 ( m − 1 / 2 ) . \frac{R}{K}-1=-\frac{(b_m+g)\xi}{\kappa_md_K}+o_{L^2}(m^{-1/2}). K R − 1 = − κ m d K ( b m + g ) ξ + o L 2 ( m − 1/2 ) .
Since R ≤ m R\le m R ≤ m , the event ( E m ′ ) c (E'_m)^c ( E m ′ ) c contributes o ( 1 ) o(1) o ( 1 ) to m E ( R / K − 1 ) 2 m\mathbb{E}(R/K-1)^2 m E ( R / K − 1 ) 2 , so
m E ( R K − 1 ) 2 = ( b m + g ) 2 h b m κ m 2 d K 2 + o ( 1 ) ⟶ { β + f ( t κ ) } 2 t κ 2 ( 1 − t κ ) β { κ − t κ f ( t κ ) } 2 . m\mathbb{E}\left(\frac{R}{K}-1\right)^2=\frac{(b_m+g)^2h}{b_m\kappa_m^2d_K^2}+o(1)\longrightarrow\frac{\{\beta+f(t_\kappa)\}^2t_\kappa^2(1-t_\kappa)}{\beta\{\kappa-t_\kappa f(t_\kappa)\}^2}. m E ( K R − 1 ) 2 = b m κ m 2 d K 2 ( b m + g ) 2 h + o ( 1 ) ⟶ β { κ − t κ f ( t κ ) } 2 { β + f ( t κ ) } 2 t κ 2 ( 1 − t κ ) .
Taking square roots completes the proof. □
Analysis of the number of rejections and the FDR level
We treat together the procedure of Section 3, the adaptive procedure of Section A.1 and their conformal counterparts in Section A.2. In the last case we take P i = F 0 ( T i ) P_i=F_0(T_i) P i = F 0 ( T i ) and U b = F 0 ( Z b ) U_b=F_0(Z_b) U b = F 0 ( Z b ) .
Let P 1 , … , P m P_1,\ldots,P_m P 1 , … , P m be independent with distribution functions F 1 , … , F m F_1,\ldots,F_m F 1 , … , F m , and let F = m − 1 ∑ i = 1 m F i F=m^{-1}\sum_{i=1}^mF_i F = m − 1 ∑ i = 1 m F i have density f f f . For the adaptive procedure let ρ \rho ρ , w w w and c 0 , c 1 , c 2 c_0,c_1,c_2 c 0 , c 1 , c 2 be as in (11); for the non-adaptive procedure, let ρ = 1 \rho=1 ρ = 1 and w = 0 w=0 w = 0 , so that c j = f ( t K ) t K ( 1 − t K ) c_j=f(t_K)t_K(1-t_K) c j = f ( t K ) t K ( 1 − t K ) for j = 0 , 1 , 2 j=0,1,2 j = 0 , 1 , 2 . For v ∈ ( 0 , 1 ) v\in(0,1) v ∈ ( 0 , 1 ) let
η ( v ) = ∑ i = 1 m 1 { P i ≤ v } − m F ( v ) , ξ ( v ) = ∑ b = 1 B 1 { U b ≤ v } − B v , \eta(v)=\sum_{i=1}^{m}\mathbf{1}\{P_i\le v\}-mF(v),\qquad\xi(v)=\sum_{b=1}^{B}\mathbf{1}\{U_b\le v\}-Bv, η ( v ) = i = 1 ∑ m 1 { P i ≤ v } − m F ( v ) , ξ ( v ) = b = 1 ∑ B 1 { U b ≤ v } − B v ,
and, with a null reference sample, let ζ ( v ) = n − 1 ∑ j = 1 n 1 { F 0 ( W j ) ≤ v } − v \zeta(v) = n^{-1}\sum_{j=1}^{n}1\{F_0(W_j) \le v\} - v ζ ( v ) = n − 1 ∑ j = 1 n 1 { F 0 ( W j ) ≤ v } − v ; otherwise let ζ ( v ) = 0 \zeta(v) = 0 ζ ( v ) = 0 . Then η \eta η , ξ \xi ξ and ζ \zeta ζ are independent with mean zero and, for u ≤ v u \le v u ≤ v ,
cov { ξ ( u ) , ξ ( v ) } = B u ( 1 − v ) , cov { ζ ( u ) , ζ ( v ) } = u ( 1 − v ) / n . (27) \operatorname{cov}\{\xi(u),\xi(v)\} = Bu(1-v), \qquad\operatorname{cov}\{\zeta(u),\zeta(v)\} = u(1-v)/n. \tag*{(27)} cov { ξ ( u ) , ξ ( v )} = B u ( 1 − v ) , cov { ζ ( u ) , ζ ( v )} = u ( 1 − v ) / n . (27)
Assumption 2. As m → ∞ m \to\infty m → ∞ ,
(a) K / m K/m K / m , B / m B/m B / m and, with a null reference sample, n / m n/m n / m are bounded away from zero and infinity, K / m K/m K / m is bounded away from one, and t K t_K t K , f ( t K ) f(t_K) f ( t K ) and 1 − B ⋆ t K / K 1-B^\star t_K/K 1 − B ⋆ t K / K are bounded away from zero;
(b) F F F has a bounded second derivative near t K t_K t K and, for the adaptive procedure, near λ \lambda λ , with λ − t K \lambda-t_K λ − t K , ρ \rho ρ and 1 − ρ 1-\rho 1 − ρ bounded away from zero and τ = λ + O ( B − 1 ) \tau=\lambda+O(B^{-1}) τ = λ + O ( B − 1 ) ;
(c) for v ^ ∈ { t ^ , s } \hat v \in\{\hat t,s\} v ^ ∈ { t ^ , s } , where t ^ \hat t t ^ is the threshold selected for the level and s s s the largest rejected p-value,
E { ( v ^ − t K ) 4 } = O ( m − 2 ) , E\{(\hat v-t_K)^4\}=O(m^{-2}), E {( v ^ − t K ) 4 } = O ( m − 2 ) , ∥ η ( v ^ ) − η ( t K ) ∥ 2 + ∥ ξ ( v ^ ) − ξ ( t K ) ∥ 2 + B ∥ ζ ( v ^ ) − ζ ( t K ) ∥ 2 = o ( m 1 / 2 ) ; \lVert\eta(\hat v)-\eta(t_K)\rVert_2+\lVert\xi(\hat v)-\xi(t_K)\rVert_2+B\lVert\zeta(\hat v)-\zeta(t_K)\rVert_2=o(m^{1/2}); ∥ η ( v ^ ) − η ( t K ) ∥ 2 + ∥ ξ ( v ^ ) − ξ ( t K ) ∥ 2 + B ∥ ζ ( v ^ ) − ζ ( t K ) ∥ 2 = o ( m 1/2 ) ; and, for the adaptive procedure,
E { ( π ^ 0 p o o l − ρ ) 4 } + E { ( π ^ 0 c o n f − ρ ) 4 } = O ( m − 2 ) , E\{(\hat\pi_0^{\mathrm{pool}}-\rho)^4\}+E\{(\hat\pi_0^{\mathrm{conf}}-\rho)^4\}=O(m^{-2}), E {( π ^ 0 pool − ρ ) 4 } + E {( π ^ 0 conf − ρ ) 4 } = O ( m − 2 ) , and the second display holds with t K t_K t K replaced by λ \lambda λ and v ^ \hat v v ^ by each threshold at which π ^ 0 p o o l \hat\pi_0^{\mathrm{pool}} π ^ 0 pool and π ^ 0 c o n f \hat\pi_0^{\mathrm{conf}} π ^ 0 conf are evaluated.
For the procedure of § 2 , part (c) holds under model (5) and Assumption 1 with F F F concave, by Lemma 1 and the argument in the proof of Proposition 1.
Proposition 4 (Expansions for the procedure and its extensions). Let q ^ \hat q q ^ be the level before capping and R R R the number of rejections at that level. Under Assumption 2, E ( R ) = K + o ( m 1 / 2 ) E(R)=K+o(m^{1/2}) E ( R ) = K + o ( m 1/2 ) , E ( q ^ ) = ρ q ∗ + o ( m − 1 / 2 ) E(\hat q)=\rho q_*+o(m^{-1/2}) E ( q ^ ) = ρ q ∗ + o ( m − 1/2 ) ,
var ( R ) = 1 + B / n ( 1 − B ⋆ t K / K ) 2 ( c 0 B + 2 m c 1 + m 2 c 2 B ) + o ( m ) , (28) \operatorname{var}(R)=\frac{1+B/n}{(1-B^\star t_K/K)^2}\left(c_0B+2mc_1+\frac{m^2c_2}{B}\right)+o(m), \tag*{(28)} var ( R ) = ( 1 − B ⋆ t K / K ) 2 1 + B / n ( c 0 B + 2 m c 1 + B m 2 c 2 ) + o ( m ) , (28) var ( q ^ ) = ρ 2 { K f ( t K ) } 2 [ var { η ( t K ) + w η ( λ ) } + c 0 B + c 0 B 2 + 2 m c 1 B + m 2 c 2 n ] + o ( m − 1 ) , (29) \operatorname{var}(\hat q)=\frac{\rho^2}{\{Kf(t_K)\}^2}\left[\operatorname{var}\{\eta(t_K)+w\eta(\lambda)\}+c_0B+\frac{c_0B^2+2mc_1B+m^2c_2}{n}\right]+o(m^{-1}), \tag*{(29)} var ( q ^ ) = { K f ( t K ) } 2 ρ 2 [ var { η ( t K ) + w η ( λ )} + c 0 B + n c 0 B 2 + 2 m c 1 B + m 2 c 2 ] + o ( m − 1 ) , (29) where
var { η ( t K ) + w η ( λ ) } = ∑ i = 1 m [ F i ( t K ) { 1 − F i ( t K ) } + 2 w F i ( t K ) { 1 − F i ( λ ) } + w 2 F i ( λ ) { 1 − F i ( λ ) } ] . \operatorname{var}\{\eta(t_K)+w\eta(\lambda)\}=\sum_{i=1}^{m}\left[F_i(t_K)\{1-F_i(t_K)\}+2wF_i(t_K)\{1-F_i(\lambda)\}+w^2F_i(\lambda)\{1-F_i(\lambda)\}\right]. var { η ( t K ) + w η ( λ )} = i = 1 ∑ m [ F i ( t K ) { 1 − F i ( t K )} + 2 w F i ( t K ) { 1 − F i ( λ )} + w 2 F i ( λ ) { 1 − F i ( λ )} ] .
Proof. Throughout the proof, remainder terms in expansions of random quantities are in L 2 L^2 L 2 norm, and π ^ 0 p o o l \hat\pi_0^{\mathrm{pool}} π ^ 0 pool and π ^ 0 c o n f \hat\pi_0^{\mathrm{conf}} π ^ 0 conf are replaced by one for the non-adaptive procedure. By Assumption 2(c), the relation
∑ i = 1 m 1 { P i ≤ t ^ } + ∑ b = 1 B 1 { U b ≤ t ^ } − B { t ^ + ζ ( t ^ ) } = K + O ( 1 ) \sum_{i=1}^{m}1\{P_i\le\hat t\}+\sum_{b=1}^{B}1\{U_b\le\hat t\}-B\{\hat t+\zeta(\hat t)\}=K+O(1) i = 1 ∑ m 1 { P i ≤ t ^ } + b = 1 ∑ B 1 { U b ≤ t ^ } − B { t ^ + ζ ( t ^ )} = K + O ( 1 )
defining t ^ \hat t t ^ gives
B ⋆ ( t ^ − t K ) + η ( t K ) + ξ ( t K ) − B ζ ( t K ) = o ( m 1 / 2 ) , B^\star(\hat t-t_K)+\eta(t_K)+\xi(t_K)-B\zeta(t_K)=o(m^{1/2}), B ⋆ ( t ^ − t K ) + η ( t K ) + ξ ( t K ) − B ζ ( t K ) = o ( m 1/2 ) ,
and, since ζ ^ ( t ) = ζ ( t K ) + o ( m − 1 / 2 ) \widehat{\zeta}(t)=\zeta(t_K)+o(m^{-1/2}) ζ ( t ) = ζ ( t K ) + o ( m − 1/2 ) ,
q ^ π ^ 0 p o o l − q ∗ = − η ( t K ) − ξ ( t K ) + ( B ⋆ + B ) ζ ( t K ) K f ( t K ) + o ( m − 1 / 2 ) . \frac{\widehat{q}}{\widehat{\pi}_0^{\mathrm{pool}}}-q_*=\frac{-\eta(t_K)-\xi(t_K)+(B^\star+B)\zeta(t_K)}{Kf(t_K)}+o(m^{-1/2}). π 0 pool q − q ∗ = K f ( t K ) − η ( t K ) − ξ ( t K ) + ( B ⋆ + B ) ζ ( t K ) + o ( m − 1/2 ) .
For the adaptive procedure, the same expansions at λ \lambda λ , together with the fact that P ~ i ≥ τ \widetilde{P}_i\ge\tau P i ≥ τ if and only if P i P_i P i is at least the ( k τ − 1 ) (k_\tau-1) ( k τ − 1 ) th smallest of U 1 , … , U B U_1,\ldots,U_B U 1 , … , U B , give
π ^ 0 p o o l − ρ = − η ( λ ) − ξ ( λ ) + { m f ( λ ) + B } ζ ( λ ) m ( 1 − λ ) + o ( m − 1 / 2 ) , \widehat{\pi}_0^{\mathrm{pool}}-\rho=\frac{-\eta(\lambda)-\xi(\lambda)+\{mf(\lambda)+B\}\zeta(\lambda)}{m(1-\lambda)}+o(m^{-1/2}), π 0 pool − ρ = m ( 1 − λ ) − η ( λ ) − ξ ( λ ) + { m f ( λ ) + B } ζ ( λ ) + o ( m − 1/2 ) ,
π ^ 0 c o n f − ρ = − η ( λ ) + { m f ( λ ) / B } ξ ( λ ) m ( 1 − λ ) + o ( m − 1 / 2 ) , \widehat{\pi}_0^{\mathrm{conf}}-\rho=\frac{-\eta(\lambda)+\{mf(\lambda)/B\}\xi(\lambda)}{m(1-\lambda)}+o(m^{-1/2}), π 0 conf − ρ = m ( 1 − λ ) − η ( λ ) + { m f ( λ ) / B } ξ ( λ ) + o ( m − 1/2 ) ,
so that
π ^ 0 p o o l − π ^ 0 c o n f = 1 + m f ( λ ) / B m ( 1 − λ ) { B ζ ( λ ) − ξ ( λ ) } + o ( m − 1 / 2 ) . (30) \widehat{\pi}_0^{\mathrm{pool}}-\widehat{\pi}_0^{\mathrm{conf}}=\frac{1+mf(\lambda)/B}{m(1-\lambda)}\{B\zeta(\lambda)-\xi(\lambda)\}+o(m^{-1/2}). \tag*{(30)} π 0 pool − π 0 conf = m ( 1 − λ ) 1 + m f ( λ ) / B { B ζ ( λ ) − ξ ( λ )} + o ( m − 1/2 ) . (30)
By the fourth-moment bounds in Assumption 2(c), the product of q ^ / π ^ 0 p o o l − q ∗ \widehat{q}/\widehat{\pi}_0^{\mathrm{pool}}-q_* q / π 0 pool − q ∗ and π ^ 0 p o o l − ρ \widehat{\pi}_0^{\mathrm{pool}}-\rho π 0 pool − ρ is O ( m − 1 ) O(m^{-1}) O ( m − 1 ) , so
K f ( t K ) ρ ( q ^ − ρ q ∗ ) = − η ( t K ) − w η ( λ ) − ξ ( t K ) − w ξ ( λ ) + ( B ⋆ + B ) ζ ( t K ) \frac{Kf(t_K)}{\rho}(\widehat{q}-\rho q_*)=-\eta(t_K)-w\eta(\lambda)-\xi(t_K)-w\xi(\lambda)+(B^\star+B)\zeta(t_K) ρ K f ( t K ) ( q − ρ q ∗ ) = − η ( t K ) − w η ( λ ) − ξ ( t K ) − w ξ ( λ ) + ( B ⋆ + B ) ζ ( t K )
+ w { m f ( λ ) + B } ζ ( λ ) + o ( m 1 / 2 ) . (31) \qquad+w\{mf(\lambda)+B\}\zeta(\lambda)+o(m^{1/2}). \tag*{(31)} + w { m f ( λ ) + B } ζ ( λ ) + o ( m 1/2 ) . (31)
By Assumption 2(c), the threshold s s s satisfies
s + ξ ( t K ) B = q ^ { K + η ( t K ) + B ⋆ ( s − t K ) } m π ^ 0 c o n f + o ( m − 1 / 2 ) . s+\frac{\xi(t_K)}{B}=\frac{\widehat{q}\{K+\eta(t_K)+B^\star(s-t_K)\}}{m\widehat{\pi}_0^{\mathrm{conf}}}+o(m^{-1/2}). s + B ξ ( t K ) = m π 0 conf q { K + η ( t K ) + B ⋆ ( s − t K )} + o ( m − 1/2 ) .
Linearizing about q ^ = ρ q ∗ \widehat{q}=\rho q_* q = ρ q ∗ and π ^ 0 c o n f = ρ \widehat{\pi}_0^{\mathrm{conf}}=\rho π 0 conf = ρ ,
( 1 − B ⋆ t K K ) ( s − t K ) = K ( q ^ − ρ q ∗ ) m ρ − t K ( π ^ 0 c o n f − ρ ) ρ + t K η ( t K ) K − ξ ( t K ) B + o ( m − 1 / 2 ) . \left(1-\frac{B^\star t_K}{K}\right)(s-t_K)=\frac{K(\widehat{q}-\rho q_*)}{m\rho}-\frac{t_K(\widehat{\pi}_0^{\mathrm{conf}}-\rho)}{\rho}+\frac{t_K\eta(t_K)}{K}-\frac{\xi(t_K)}{B}+o(m^{-1/2}). ( 1 − K B ⋆ t K ) ( s − t K ) = m ρ K ( q − ρ q ∗ ) − ρ t K ( π 0 conf − ρ ) + K t K η ( t K ) − B ξ ( t K ) + o ( m − 1/2 ) .
As R − K = η ( t K ) + B ⋆ ( s − t K ) + o ( m 1 / 2 ) R-K=\eta(t_K)+B^\star(s-t_K)+o(m^{1/2}) R − K = η ( t K ) + B ⋆ ( s − t K ) + o ( m 1/2 ) , substituting (31) and (30) gives
( 1 − B ⋆ t K K ) ( R − K ) = ( 1 + B ⋆ B ) { B ζ ( t K ) − ξ ( t K ) } + w { 1 + m f ( λ ) B } { B ζ ( λ ) − ξ ( λ ) } + o ( m 1 / 2 ) . (32) \left(1-\frac{B^\star t_K}{K}\right)(R-K)=\left(1+\frac{B^\star}{B}\right)\{B\zeta(t_K)-\xi(t_K)\}+w\left\{1+\frac{mf(\lambda)}{B}\right\}\{B\zeta(\lambda)-\xi(\lambda)\}+o(m^{1/2}). \tag*{(32)} ( 1 − K B ⋆ t K ) ( R − K ) = ( 1 + B B ⋆ ) { B ζ ( t K ) − ξ ( t K )} + w { 1 + B m f ( λ ) } { B ζ ( λ ) − ξ ( λ )} + o ( m 1/2 ) . (32)
By (27), B ζ ( u ) − ξ ( u ) B\zeta(u)-\xi(u) B ζ ( u ) − ξ ( u ) and B ζ ( v ) − ξ ( v ) B\zeta(v)-\xi(v) B ζ ( v ) − ξ ( v ) have covariance ( B + B 2 / n ) u ( 1 − v ) (B+B^2/n)u(1-v) ( B + B 2 / n ) u ( 1 − v ) for u ≤ v u\le v u ≤ v , so the leading term on the right of (32) has variance
( B + B 2 n ) ( c 0 + 2 m c 1 B + m 2 c 2 B 2 ) . \left(B+\frac{B^2}{n}\right)\left(c_0+\frac{2mc_1}{B}+\frac{m^2c_2}{B^2}\right). ( B + n B 2 ) ( c 0 + B 2 m c 1 + B 2 m 2 c 2 ) .
which gives the leading term of (28). The terms of (31) in η \eta η , ξ \xi ξ and ζ \zeta ζ are independent, with variances var { η ( t K ) + w η ( λ ) } \operatorname{var}\{\eta(t_K)+w\eta(\lambda)\} var { η ( t K ) + w η ( λ )} , c 0 B c_0B c 0 B and ( c 0 B 2 + 2 m c 1 B + m 2 c 2 ) / n (c_0B^2+2mc_1B+m^2c_2)/n ( c 0 B 2 + 2 m c 1 B + m 2 c 2 ) / n , which gives the leading term of (29). The leading terms have mean zero, and variances of order m m m and m − 1 m^{-1} m − 1 respectively, so the stated means, variances and mean squared errors follow from the Cauchy–Schwarz inequality. □
Table 1 (PDF p. 19). Guarantees of methods targeting K K K discoveries.
The lower bound for BH inversion assumes K K K is attainable within the acceptable range; the e-value and FDP-bound methods select levels from ranks within 10% of K K K , but their final counts depend on the data. ‘Close to K K K ’ is made precise in Proposition 1.
Additional numerical results
Comparison methods
Oracles
In the numerical comparisons, all reported levels are clipped to [ q min , q max ] [q_{\min},q_{\max}] [ q m i n , q m a x ] . The population oracle applies the BH procedure at the level m t K / K mt_K/K m t K / K , where F ( t K ) = K / m F(t_K)=K/m F ( t K ) = K / m . The independent-sample oracle applies it at the level m P ( K ) p i l o t / K mP^{\mathrm{pilot}}_{(K)}/K m P ( K ) pilot / K , where P ( K ) p i l o t P^{\mathrm{pilot}}_{(K)} P ( K ) pilot is the K K K th smallest p-value in an independent copy of the data. The adaptive population oracle reports the level π 0 m t K / K \pi_0mt_K/K π 0 m t K / K and applies the BH procedure at that level divided by the known null proportion π 0 \pi_0 π 0 .
BH inversion
BH inversion reports the level min r ≥ K m P ( r ) / r \min_{r\ge K}mP_{(r)}/r min r ≥ K m P ( r ) / r , computed from the p-values that are then tested; its adaptive version multiplies this level by the estimate of the null proportion of Storey et al. [17 ] with a fixed λ \lambda λ .
BH inversion does not control FDR at the reported level. Below is a simple counter example. Suppose that all m m m hypotheses are null, with independent uniform p-values, and consider BH inversion with K = 1 K=1 K = 1 and no cap, which reports q ^ = min 1 ≤ r ≤ m m P ( r ) / r \widehat{q}=\min_{1\le r\le m}mP_{(r)}/r q = min 1 ≤ r ≤ m m P ( r ) / r and applies the BH procedure at q ^ \widehat{q} q . If r ∗ r^* r ∗ attains the minimum, then P ( r ∗ ) = q ^ r ∗ / m P_{(r^*)}=\widehat{q}r^*/m P ( r ∗ ) = q r ∗ / m , so the BH procedure rejects at least r ∗ ≥ 1 r^*\ge1 r ∗ ≥ 1 hypotheses, all of them null, and F D P ( S ) = 1 \mathrm{FDP}(S)=1 FDP ( S ) = 1 . Moreover, q ^ ≤ q \widehat{q}\le q q ≤ q exactly when the BH procedure at level q q q makes a rejection, which under the global null has probability equal to its FDR, q q q [2 ] . Hence q ^ \widehat{q} q is uniform on ( 0 , 1 ) (0,1) ( 0 , 1 ) and
E { F D P ( S ) ∣ q ^ } = 1 > q ^ a.s. \operatorname{E}\{\mathrm{FDP}(S)\mid\widehat{q}\}=1>\widehat{q}\quad\text{a.s.} E { FDP ( S ) ∣ q } = 1 > q a.s.
With a cap q max q_{\max} q m a x and any K K K , the same holds whenever the reported level is below q max q_{\max} q m a x .
E-value-based methods
For a positive function h h h , statistics X 1 , … , X m X_1,\ldots,X_m X 1 , … , X m and independent null statistics Z 1 , … , Z B Z_1,\ldots,Z_B Z 1 , … , Z B , let
E i = ( B + 1 ) h ( X i ) h ( X i ) + ∑ b = 1 B h ( Z b ) ( i = 1 , … , m ) . E_i=\frac{(B+1)h(X_i)}{h(X_i)+\sum_{b=1}^{B}h(Z_b)}\quad(i=1,\ldots,m). E i = h ( X i ) + ∑ b = 1 B h ( Z b ) ( B + 1 ) h ( X i ) ( i = 1 , … , m ) .
For i ∈ H 0 i\in\mathcal{H}_0 i ∈ H 0 , X i , Z 1 , … , Z B X_i,Z_1,\ldots,Z_B X i , Z 1 , … , Z B are exchangeable, so E ( E i ) = 1 \operatorname{E}(E_i)=1 E ( E i ) = 1 . Let E ( 1 ) ≥ ⋯ ≥ E ( m ) E_{(1)}\ge\cdots\ge E_{(m)} E ( 1 ) ≥ ⋯ ≥ E ( m ) . The candidate level is the minimum of m / ( r E ( r ) ) m/(rE_{(r)}) m / ( r E ( r ) ) over ranks r r r with ∣ r − K ∣ ≤ 0.1 K |r-K|\le0.1K ∣ r − K ∣ ≤ 0.1 K at the ends of tie blocks, with ties broken by the distance to K K K and then by the smaller rank. The reported level q ^ \widehat{q} q is the candidate level clipped to [ q min , q max ] [q_{\min},q_{\max}] [ q m i n , q m a x ] , and the e-BH procedure (Wang & Ramdas [19 ] ) is applied at q ^ \widehat{q} q . For any rejection set S S S and level q ^ \widehat{q} q such that E i ≥ m / ( q ^ ∣ S ∣ ) E_i \ge m/(\widehat{q}|S|) E i ≥ m / ( q ∣ S ∣ ) for all i ∈ S i \in S i ∈ S ,
FDP ( S ) q ^ ≤ 1 m ∑ i ∈ H 0 E i , E { FDP ( S ) q ^ } ≤ m 0 m , (33) \frac{\operatorname{FDP}(S)}{\widehat{q}} \le\frac{1}{m}\sum_{i\in H_0} E_i,\qquad\mathbb{E}\left\{\frac{\operatorname{FDP}(S)}{\widehat{q}}\right\}\le\frac{m_0}{m}, \tag*{(33)} q FDP ( S ) ≤ m 1 i ∈ H 0 ∑ E i , E { q FDP ( S ) } ≤ m m 0 , (33)
where the ratio is zero if S = ∅ S = \varnothing S = ∅ .
The first e-value-based method uses the fixed function
h ( x ) = { e − x − 1 / 2 + e − 3 x − 9 / 2 2 } γ , h(x)=\left\{\frac{e^{-x-1/2}+e^{-3x-9/2}}{2}\right\}^{\gamma}, h ( x ) = { 2 e − x − 1/2 + e − 3 x − 9/2 } γ ,
with γ = 3 \gamma= 3 γ = 3 in the simulations and γ = 50 \gamma= 50 γ = 50 for the breast-cancer data, following the powered-odds construction of Zhu & Simeone [22 ] . Here X i X_i X i is the normal score in the simulations and Φ − 1 ( P i ) \Phi^{-1}(P_i) Φ − 1 ( P i ) for the breast-cancer data.
The second method learns h h h from the data. The statistics X 1 , … , X m X_1,\ldots,X_m X 1 , … , X m are divided into five folds independently of their values, and m m m further null statistics, independent of Z 1 , … , Z B Z_1,\ldots,Z_B Z 1 , … , Z B , are generated for training. For each fold, a linear discriminant with equal prior probabilities, pooled variance and slope constrained to be nonpositive is fitted to the statistics outside the fold against the training nulls. The fitted odds raised to the power γ \gamma γ are used as h h h for the statistics in the fold and for Z 1 , … , Z B Z_1,\ldots,Z_B Z 1 , … , Z B .
FDP-bound-based methods
Let S r = { i : P i ≤ P ( r ) } S_r=\{i:P_i\le P_{(r)}\} S r = { i : P i ≤ P ( r ) } for ranks r r r at the ends of tie blocks, so that ∣ S r ∣ = r |S_r|=r ∣ S r ∣ = r , and, for δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , let
c δ = log ( 1 / δ ) log { 1 + log ( 1 / δ ) } , U δ ( S r ) = min { 1 , ⌊ c δ ( 1 + m P ( r ) ) ⌋ r } . c_\delta=\frac{\log(1/\delta)}{\log\{1+\log(1/\delta)\}},\qquad U_\delta(S_r)=\min\left\{1,\frac{\left\lfloor c_\delta(1+mP_{(r)})\right\rfloor}{r}\right\}. c δ = log { 1 + log ( 1/ δ )} log ( 1/ δ ) , U δ ( S r ) = min { 1 , r ⌊ c δ ( 1 + m P ( r ) ) ⌋ } .
Lemma 2 [11 Theorem 1] . Suppose that the null p p p -values are independent and stochastically no smaller than uniform. If 0 < δ ≤ 0.3 0<\delta\le0.3 0 < δ ≤ 0.3 , then
Pr { FDP ( S r ) ≤ U δ ( S r ) for all r } ≥ 1 − δ . \Pr\{\operatorname{FDP}(S_r)\le U_\delta(S_r)\text{ for all }r\}\ge1-\delta. Pr { FDP ( S r ) ≤ U δ ( S r ) for all r } ≥ 1 − δ .
Proposition 5. Let S \mathcal{S} S be a family of sets and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , and suppose that U δ ( S ) ∈ [ 0 , 1 ] U_\delta(S)\in[0,1] U δ ( S ) ∈ [ 0 , 1 ] satisfies Pr { FDP ( S ) ≤ U δ ( S ) for all S ∈ S } ≥ 1 − δ \Pr\{\operatorname{FDP}(S)\le U_\delta(S)\text{ for all }S\in\mathcal{S}\}\ge1-\delta Pr { FDP ( S ) ≤ U δ ( S ) for all S ∈ S } ≥ 1 − δ . Let S ∈ S ∪ { ∅ } S\in\mathcal{S}\cup\{\varnothing\} S ∈ S ∪ { ∅ } and q ^ \widehat{q} q depend on the data, with q ^ ≥ U δ ( S ) + δ 1 / 2 \widehat{q}\ge U_\delta(S)+\delta^{1/2} q ≥ U δ ( S ) + δ 1/2 whenever S ≠ ∅ S\ne\varnothing S = ∅ . Then
E { FDP ( S ) q ^ } ≤ 1 , \mathbb{E}\left\{\frac{\operatorname{FDP}(S)}{\widehat{q}}\right\}\le1, E { q FDP ( S ) } ≤ 1 , where the ratio is zero if S = ∅ S=\varnothing S = ∅ .
Proof. Let A A A be the event that FDP ( S ′ ) ≤ U δ ( S ′ ) \operatorname{FDP}(S')\le U_\delta(S') FDP ( S ′ ) ≤ U δ ( S ′ ) for all S ′ ∈ S S'\in\mathcal{S} S ′ ∈ S . If S ≠ ∅ S\ne\varnothing S = ∅ , then on A A A
FDP ( S ) q ^ ≤ U δ ( S ) U δ ( S ) + δ 1 / 2 ≤ 1 1 + δ 1 / 2 , \frac{\operatorname{FDP}(S)}{\widehat{q}}\le\frac{U_\delta(S)}{U_\delta(S)+\delta^{1/2}}\le\frac{1}{1+\delta^{1/2}}, q FDP ( S ) ≤ U δ ( S ) + δ 1/2 U δ ( S ) ≤ 1 + δ 1/2 1 ,
as U δ ( S ) ≤ 1 U_\delta(S)\le1 U δ ( S ) ≤ 1 , and on A c A^c A c the ratio is at most 1 / q ^ ≤ δ − 1 / 2 1/\widehat{q}\le\delta^{-1/2} 1/ q ≤ δ − 1/2 . Since Pr ( A c ) ≤ δ \Pr(A^c)\le\delta Pr ( A c ) ≤ δ ,
E { FDP ( S ) q ^ } ≤ 1 − δ 1 + δ 1 / 2 + δ δ 1 / 2 = 1. \mathbb{E}\left\{\frac{\operatorname{FDP}(S)}{\widehat{q}}\right\}\le\frac{1-\delta}{1+\delta^{1/2}}+\frac{\delta}{\delta^{1/2}}=1. E { q FDP ( S ) } ≤ 1 + δ 1/2 1 − δ + δ 1/2 δ = 1.
The converted bound controls the expected ratio of the FDP to the reported level, but it does not provide the conditional guarantee (1) .
In the comparisons, for each bound we minimize U δ ( S r ) + δ 1 / 2 U_{\delta}(S_r) + \delta^{1/2} U δ ( S r ) + δ 1/2 over ranks r r r at the ends of tie blocks with ∣ r − K ∣ ≤ 0.1 K |r-K| \le0.1K ∣ r − K ∣ ≤ 0.1 K , clip it to [ q min , q max ] [q_{\min}, q_{\max}] [ q m i n , q m a x ] to give the reported level q ^ \widehat{q} q , and reject S r S_r S r for the rank r r r closest to K K K with U δ ( S r ) + δ 1 / 2 ≤ q ^ U_{\delta}(S_r) + \delta^{1/2} \le\widehat{q} U δ ( S r ) + δ 1/2 ≤ q ; if there is no such rank, no rejection is made.
The main comparisons use 99% confidence, chosen after seeing the results as the level among 90, 95 and 99% with the smallest mean ∣ R − K ∣ |R-K| ∣ R − K ∣ at the default setting (this choice favors the FDP-bound-based methods). Figure 4 and Figure 5 compare the three confidence levels with and without conversion. The retained main and benchmark KR simulations use the original floating-point comparison at the cap, whereas the sensitivity calculation includes equality at the cap; their 99% mean rejection counts at the default setting are therefore 43.9 and 45.6, respectively.
Figure 4. Converted FDP bounds at 90% (solid), 95% (dashed) and 99% (dash-dot) confidence, in the first three sweeps of Figure 3 , with levels clipped to [0.01, 0.30]: mean number of rejections (top) and mean reported level (bottom). Conversion adds δ 1 / 2 \delta^{1/2} δ 1/2 to the bound (Proposition 5); at 90% this exceeds the cap, so the bound-based methods make no rejections. Red lines mark the target K K K ; bars show 1.96 Monte Carlo standard errors.
Figure 5. As Figure 4 , without conversion; these bounds give simultaneous confidence statements for the FDP, not FDR control at the reported level.
Choice of synthetic null size B B B
We extend the study of the number B B B of synthetic nulls in § 2 to the adaptive and conformal extensions, whose variances are approximated in Proposition 4. We use the default setting of § 4 with B / m ∈ { 0.25 , 0.5 , 1 , 2 , 5 } B/m \in\{0.25, 0.5, 1, 2, 5\} B / m ∈ { 0.25 , 0.5 , 1 , 2 , 5 } , λ = 0.5 \lambda= 0.5 λ = 0.5 , τ = ⌊ ( B + 1 ) / 2 ⌋ / ( B + 1 ) \tau= \lfloor(B + 1)/2 \rfloor/(B + 1) τ = ⌊( B + 1 ) /2 ⌋ / ( B + 1 ) , n = B n = B n = B and uncapped levels, with 3000 independent repetitions; within each repetition, the original data and nested prefixes of the calibration and estimation samples are shared across values of B B B .
As shown in Figure 7 , the observations are similar to those for the proposal in Figure 6 : the theoretical approximations track the empirical standard deviations across B B B .
Figure 6. Standard deviation of the raw level of the proposal in the setting of Section C.2. Bars are approximate 95% Monte Carlo intervals, the dashed curve is the theoretical approximation, and the dotted line marks the recommended B = m B = m B = m .
Figure 7. Standard deviations of R / K R/K R / K (left) and the raw level (right) for the adaptive (top row) and conformal (bottom row) extensions, with the design and interval convention of Figure 6.
Simulations for the extensions
We extend the comparisons of § 4 to the adaptive and conformal extensions in Sections A.1 and A.2. The comparison methods are the same as in § 4 , and the design is similar, with λ = 0.5 \lambda= 0.5 λ = 0.5 for the adaptive extension and n = B n = B n = B for the conformal extension; see the caption of Figure 8 . Figure 9 shows the comparison methods.
Figure 8. Mean number of rejections (top) and mean reported level (bottom) of the proposal, its adaptive and conformal extensions, and the oracles. Each column varies one parameter from the default of § 4 : K = 50 , 65 , … , 200 K = 50, 65, \ldots, 200 K = 50 , 65 , … , 200 , μ = 0.5 , 0.75 , … , 3 \mu= 0.5, 0.75, \ldots, 3 μ = 0.5 , 0.75 , … , 3 , π 0 = 0.60 , 0.63 , … , 0.90 \pi_0 = 0.60, 0.63, \ldots, 0.90 π 0 = 0.60 , 0.63 , … , 0.90 , or m ∈ { 250 , 500 , 750 , 1000 , 1250 , 1500 , 1750 , 2000 , 2500 , 3000 , 4000 } m \in\{250, 500, 750, 1000, 1250, 1500, 1750, 2000, 2500, 3000, 4000\} m ∈ { 250 , 500 , 750 , 1000 , 1250 , 1500 , 1750 , 2000 , 2500 , 3000 , 4000 } with K = m / 10 K = m/10 K = m /10 and B = m B = m B = m ; levels are clipped to [ 0.01 , 0.30 ] [0.01, 0.30] [ 0.01 , 0.30 ] . Red lines mark the target K K K ; bars show 1.96 Monte Carlo standard errors.
Figure 9. As Figure 8 , for the comparison methods of Section C.1; KR and SC use converted 99% bounds for original p p p -values, and BH inversion has no FDR guarantee.
Adaptive
As shown in Figure 8 , the results are largely similar to those in § 4 ; the difference is that the adaptive extension reports smaller levels, by about the factor ρ \rho ρ of Proposition 2.
In Figure 8 , the conformal extension (labelled Proposal (observed nulls)) averages 100.6 discoveries at mean level 0.165 at the default setting, compared with 102.9 and 0.167 for the proposal.
Mouse-protein data
We analyse a mouse-brain proteomics dataset with 1040 candidate proteins and 421 annotated reference proteins, used as nulls. The score of each protein is the negative of its second treatment-to-control abundance ratio in the prefrontal cortex, so small scores indicate enrichment. The reference proteins are split at random into an estimation and a calibration set; see the caption of Table 2 . We apply the conformal extension of Section A.2; the e-value methods use γ = 50 \gamma= 50 γ = 50 , with the learned score trained on the 121 estimation references, and the bound of Song et al. [15 ] is calibrated for the dependent conformal p-values.
Table 2. PFC2 mouse proteins at K = 60 K = 60 K = 60 using one reference partition with seed 318: 1040 tests, 121 estimation and 300 calibration references. Reported levels are clipped to [0.01, 0.30].
Table 2 gives the results. The proposal makes 59 discoveries at reported level 0.20, close to the target of 60; BH inversion makes 63 at level 0.22, without an FDR guarantee; e-BH with the fixed and learned scores
makes 13 and 0 discoveries, and the FDP bound makes none, all at the cap 0.30.