Introduction
A two-sample test answers whether two populations are identical. In many applications they are known not to be: the two arms of an observational study, a training sample and the population on which a model will be deployed, a reference cohort and a new batch. The useful question is then how different they are, and the contamination model [40 ] gives it a precise answer. The total-variation distance
d T V ( P , Q ) = sup A ∣ P ( A ) − Q ( A ) ∣ d_{\mathrm{TV}}(P,Q)=\sup_{A}\lvert P(A)-Q(A)\rvert d TV ( P , Q ) = A sup ∣ P ( A ) − Q ( A )∣
is the largest difference between the probabilities that two laws P P P and Q Q Q give to one event. The two laws can be written as mixtures P = ( 1 − α ) R + α P 0 P=(1-\alpha)R+\alpha P_0 P = ( 1 − α ) R + α P 0 and Q = ( 1 − α ) R + α Q 0 Q=(1-\alpha)R+\alpha Q_0 Q = ( 1 − α ) R + α Q 0 that share a component R R R of weight 1 − α 1-\alpha 1 − α exactly when d T V ( P , Q ) ≤ α d_{\mathrm{TV}}(P,Q)\leq\alpha d TV ( P , Q ) ≤ α . The smallest such α \alpha α , α ⋆ = d T V ( P , Q ) \alpha^\star=d_{\mathrm{TV}}(P,Q) α ⋆ = d TV ( P , Q ) , which we call the contamination level, is therefore the fraction of each population with no counterpart in the other. In an observational study it is the smallest fraction whose removal from each arm lets the covariate distributions coincide. We certify lower bounds on α ⋆ \alpha^\star α ⋆ from two samples, of sizes n n n and m m m , on any sample space that carries a bounded characteristic kernel, with finite-sample guarantees and without a model for how the populations differ, and we also return the trimming of each sample at that level.
Discarding part of a population is a trimming. An α \alpha α -trimming of P P P is a law obtained from P P P by removing at most a fraction α \alpha α of its mass, possibly only partially at each point, and renormalizing, that is, a law with density at most ( 1 − α ) − 1 (1-\alpha)^{-1} ( 1 − α ) − 1 relative to P P P [32 , 2 ] . Álvarez-Esteban et al. [4 ] observed that two laws have a common α \alpha α -trimming exactly when d T V ( P , Q ) ≤ α d_{\mathrm{TV}}(P,Q) \le\alpha d TV ( P , Q ) ≤ α , so α ⋆ \alpha^\star α ⋆ is the smallest level at which P P P and Q Q Q can be trimmed into the same law. Their test of d T V ( P , Q ) ≤ α d_{\mathrm{TV}}(P,Q) \le\alpha d TV ( P , Q ) ≤ α trims both samples to minimize a Wasserstein distance, with a bootstrap guarantee that is asymptotic, pointwise and univariate, and they ask whether “a different choice of metric could lead to some type of uniform bound” [4 p. 617] . With a kernel discrepancy the answer is positive at every sample size, which gives a lower confidence bound on α ⋆ \alpha^\star α ⋆ . An upper bound needs assumptions: data can show that d T V ( P , Q ) d_{\mathrm{TV}}(P,Q) d TV ( P , Q ) is large, not that it is small (Theorem 2.6 ).
A bounded kernel k k k on the sample space maps each point x x x to a feature vector ϕ ( x ) \phi(x) ϕ ( x ) in a Hilbert space H \mathcal{H} H , the reproducing kernel Hilbert space (RKHS) of k k k , and each law P P P to the mean of its feature vectors, the kernel mean embedding μ P = E P [ ϕ ( X ) ] \mu_P = \mathbb{E}_P[\phi(X)] μ P = E P [ ϕ ( X )] . The distance ∥ μ P − μ Q ∥ H \lVert\mu_P-\mu_Q\rVert_{\mathcal{H}} ∥ μ P − μ Q ∥ H is the maximum mean discrepancy (MMD) of Gretton et al. [34 ] , and for a characteristic kernel, such as the Gaussian or the Laplace kernel, the embedding determines the law. Our approach is geometric: instead of an optimal trimming, we follow the set of everything the trimmings can produce. The trimmed region C α ( P ) C_\alpha(P) C α ( P ) , the set of the embeddings of all α \alpha α -trimmings of P P P , is a convex compact subset of H \mathcal{H} H that grows with α \alpha α from the single point μ P \mu_P μ P , and the regions of P P P and Q Q Q first meet exactly at α ⋆ \alpha^\star α ⋆ , since a point common to both is the embedding of a trimming of P P P and of a trimming of Q Q Q , which must then be the same law (Figure 1 ). The distance D α ( P , Q ) D_\alpha(P,Q) D α ( P , Q ) between the regions is thus positive below α ⋆ \alpha^\star α ⋆ and zero from α ⋆ \alpha^\star α ⋆ on. For the empirical laws the regions are polytopes, whose distance is one convex quadratic program, and to show that d T V ( P , Q ) > α d_{\mathrm{TV}}(P,Q) > \alpha d TV ( P , Q ) > α is to show that two compact convex sets are apart, which the direction that joins their closest points shows.
Figure 1. Left: the regions C α ( P ) C_\alpha(P) C α ( P ) and C α ( Q ) C_\alpha(Q) C α ( Q ) of laws with weights ( 0.60 , 0.30 , 0.10 ) (0.60, 0.30, 0.10) ( 0.60 , 0.30 , 0.10 ) and ( 0.15 , 0.35 , 0.50 ) (0.15, 0.35, 0.50) ( 0.15 , 0.35 , 0.50 ) on three points whose feature vectors are unit vectors at 120 degrees in the plane, drawn isometrically (untrimmed embeddings as dots), at α = 0.20 \alpha= 0.20 α = 0.20 , at α = d T V ( P , Q ) = 0.45 \alpha= d_{\mathrm{TV}}(P,Q) = 0.45 α = d TV ( P , Q ) = 0.45 and at α = 0.65 \alpha= 0.65 α = 0.65 . Right: the distance D α ( P , Q ) D_\alpha(P,Q) D α ( P , Q ) , computed exactly, with these levels marked.
The difference of the two closest points is the witness, a function on the sample space that is large where the first trimmed law has more mass than the second. Once the witness is fixed, choosing the trimming is a linear problem of bathtub type, so the optimal trimmings keep at full weight the observations on one side of a cut of the witness and discard those beyond it, only the observations at the cut sharing weight. The quadratic program that gives the distance, solved on all the data at the certified level, therefore also gives the trimmed samples. They converge to the best trimming at a fixed level, at the rate ( n ∧ m ) − 1 / 2 (n \wedge m)^{-1/2} ( n ∧ m ) − 1/2 when the witness has a density at the cuts, and to the common component of P P P and Q Q Q at the estimated level, the target of a cohort of comparable patients.
Any function ψ \psi ψ with values in [ 0 , 1 ] [0,1] [ 0 , 1 ] has E P ψ − E Q ψ ≤ d T V ( P , Q ) \mathbb{E}_P\psi-\mathbb{E}_Q\psi\le d_{\mathrm{TV}}(P,Q) E P ψ − E Q ψ ≤ d TV ( P , Q ) , so a test that shows E P ψ − E Q ψ > α \mathbb{E}_P\psi-\mathbb{E}_Q\psi> \alpha E P ψ − E Q ψ > α shows that d T V ( P , Q ) > α d_{\mathrm{TV}}(P,Q) > \alpha d TV ( P , Q ) > α , and the geometry says which ψ \psi ψ to use. In a direction f ∈ H f \in\mathcal{H} f ∈ H a region reaches as far as a trimmed mean, the mean of f ( X ) f(X) f ( X ) over the upper ( 1 − α ) (1-\alpha) ( 1 − α ) -fraction of its values, so the separation of the two regions in that direction is a difference of two trimmed means. A trimmed mean is an infimum of ordinary means, inf t { t + ( 1 − α ) − 1 E P [ ( f ( X ) − t ) + ] } \inf_t\{t+(1-\alpha)^{-1}\mathbb{E}_P[(f(X)-t)_+]\} inf t { t + ( 1 − α ) − 1 E P [( f ( X ) − t ) + ]} , one for each cut t t t [80 ] . At the two cuts at which the trimmings at the tested level cut, the separation in the direction of the witness is at most a positive multiple of the excess E P ψ − E Q ψ − α \mathbb{E}_P\psi-\mathbb{E}_Q\psi-\alpha E P ψ − E Q ψ − α of a ramp ψ \psi ψ over the level, where ψ \psi ψ is 0 0 0 below the lower cut, 1 1 1 above the upper cut, and linear in between, so a positive separation gives a positive excess. We fit the witness and its cuts on one part of the sample. As the ramp is bounded and fixed before the rest of the data are seen, betting on it gives a test valid at every sample size with no assumption on the laws, which rejects the faster the larger the excess. Our lower confidence bound α ^ \hat{\alpha} α ^ runs this test on a grid of levels fixed in advance, read upward to the first level not rejected, and its error is measured against the mesh of the grid, the largest gap between its levels.
Betting, like classification, is a problem of estimating a set. For every [ 0 , 1 ] [0,1] [ 0 , 1 ] -valued ψ \psi ψ , E P ψ − E Q ψ = α ⋆ − err ( ψ ) \mathbb{E}_P\psi-\mathbb{E}_Q\psi=\alpha^\star-\operatorname{err}(\psi) E P ψ − E Q ψ = α ⋆ − err ( ψ ) , with err ( ψ ) \operatorname{err}(\psi) err ( ψ ) the distance under ∣ P − Q ∣ \lvert P-Q\rvert ∣ P − Q ∣ from ψ \psi ψ to the indicator of the set where P P P has the larger density (§ 5.2 ), so betting on ψ \psi ψ certifies levels near α ⋆ \alpha^\star α ⋆ only if ψ \psi ψ is close to that indicator. The trimming enters this estimate twice. The cut points of the tested level carry most of the finite-sample gain over a ramp of the untrimmed witness in our simulations (§ 7.1 ), while refitting the witness at that level makes the bound consistent where a ramp of the untrimmed witness need not be (Proposition 4.4 , Section S3.6), gives the rates below and returns the trimming. Any such ψ \psi ψ fitted on earlier data, a classifier for instance, can replace the ramp, and tuned classifiers certify more where a half-space or a tree is close to that set. A threshold valid under every pair in the null also turns the empirical distance D ^ α \widehat{D}_{\alpha} D α into an analytic estimator, which needs no split but many more observations, our baseline.
The geometry also governs the rates. No valid lower bound has a rate uniform over all pairs (§ 2.4 ), and the rate of ours depends on how fast D α D_{\alpha} D α grows as α \alpha α decreases below α ⋆ \alpha^\star α ⋆ . A margin D α ⋆ − ϵ ( P , Q ) ≥ c 0 ϵ γ D_{\alpha^\star-\epsilon}(P,Q) \ge c_0\epsilon^\gamma D α ⋆ − ϵ ( P , Q ) ≥ c 0 ϵ γ guarantees an error of order ( n ∧ m ) − 1 / ( 2 γ ) (n \wedge m)^{-1/(2\gamma)} ( n ∧ m ) − 1/ ( 2 γ ) up to the mesh. The margin is linear, γ = 1 \gamma= 1 γ = 1 , when a function of the RKHS separates the two contaminations, the parts of P P P and Q Q Q beyond their common component, and the bound computed on a grid of mesh ( n ∧ m ) − 1 / 2 (n \wedge m)^{-1/2} ( n ∧ m ) − 1/2 is then within order ( n ∧ m ) − 1 / 2 (n \wedge m)^{-1/2} ( n ∧ m ) − 1/2 of α ⋆ \alpha^\star α ⋆ , which is minimax over such pairs. When the contaminations touch, as for continuous densities that coincide on no open set, the path α ↦ D α \alpha\mapsto D_{\alpha} α ↦ D α leaves zero tangentially for every continuous kernel, and the margin guarantees only ( n ∧ m ) − 2 / ( 2 s + 3 ) (n \wedge m)^{-2/(2s+3)} ( n ∧ m ) − 2/ ( 2 s + 3 ) for a Sobolev kernel of order s s s on the line and a logarithmic rate for the Gaussian kernel, with no lower bound proved to match.
The margin is pessimistic: it bounds the excess of the population ramp, the ramp of the population witness between its population cuts, through the gap between these cuts, which it replaces by its largest value. When D α D_{\alpha} D α is of exact order ( α ⋆ − α ) γ (\alpha^\star- \alpha)^\gamma ( α ⋆ − α ) γ , the population ramp keeps an excess of at least a fixed fraction of α ⋆ − α \alpha^\star- \alpha α ⋆ − α whatever γ \gamma γ (Proposition 5.10 ), where the margin sees an excess of order ( α ⋆ − α ) γ (\alpha^\star- \alpha)^\gamma ( α ⋆ − α ) γ only. For the Laplace kernel on the line we show that the fitted ramp keeps it too: for densities that cross once, under a condition (5.1) on the likelihood ratio that excludes contaminations local to a common core, the error on a grid of mesh ( n ∧ m ) − 1 / 2 (n \wedge m)^{-1/2} ( n ∧ m ) − 1/2 is of order ( n ∧ m ) − 1 / 2 (n \wedge m)^{-1/2} ( n ∧ m ) − 1/2 up to logarithmic factors. A one-sided Kolmogorov–Smirnov bound attains this rate there, and a bound that does not sort the data, and also returns the set, matches it. The Laplace witness hurts the trimming: it stays between its cut points, so the observations at the cut tie, while our rate for the trimming at a fixed level assumes a witness with a density at the cut, as with the Gaussian kernel. So the two kernels divide the work, the Laplace kernel for the bound and the Gaussian kernel where the trimming needs a rate. In R d \mathbb{R}^d R d we keep the Laplace kernel as the default, because its witness still sees differences of high frequency that the Gaussian witness at the same bandwidth misses, as on our one-dimensional oscillating densities, although it trails the Gaussian kernel slightly in our multivariate designs; § 8 conjectures the rate attainable in R d \mathbb{R}^d R d .
On the Right Heart Catheterization study of Connors et al. [19 ] , comparing 45 baseline covariates of the patients who received a catheter and of those who did not, our bound shows that d T V ( P , Q ) > 0.35 d_{\mathrm{TV}}(P,Q) > 0.35 d TV ( P , Q ) > 0.35 . Before the covariate distributions can coincide, one arm, or each if both lose the same fraction, must lose more than that fraction. This is not what the rules that discard patients by their estimated propensity score control ([21 , 53 , 23 ] ): they aim at positivity for a weighted comparison, and a total variation of this size is compatible with propensity scores bounded well away from 0 and 1. On accelerometer curves from the National Health and Nutrition Examination Survey the bound measures how far apart age and body-mass groups are.
Our bound is an instance of the lower bounds on d T V d_{\mathrm{TV}} d TV of Michel et al. [66 ] , which evaluate a function fitted on other data, calibrated by the betting test of Shekhar and Ramdas [87 ] with a trimmed null. Such bounds and the classifier tests ([62 , 49 ] ) apply on any sample space. What the geometry adds is a canonical function to bet on, fitted at the level tested, for which the bound is consistent and has rates, and the trimmed samples that come with it. As the Bayes risk of telling P P P from Q Q Q with equal priors is { 1 − d T V ( P , Q ) } / 2 \{1-d_{\mathrm{TV}}(P,Q)\}/2 { 1 − d TV ( P , Q )} /2 , the bound is also an upper confidence bound on a Bayes error, usually estimated [11 , 73 , 93 ] . Hore and Barber [38 ] bound a blurred relaxation of d T V d_{\mathrm{TV}} d TV . Mixture proportion estimation [12 , 85 , 79 ] targets a one-sided relative, 1 − d T V ( P , Q ) 1-d_{\mathrm{TV}}(P,Q) 1 − d TV ( P , Q ) being the largest weight of a component common to P P P and Q Q Q , with the same dichotomy of rates (§ 5.3 ), and finite-sample lower bounds on a mixing proportion go back to the proportion of true null hypotheses in multiple testing [31 , 65 , 75 ] . None of them trims both samples, and Nafshi and Makar [70 ] , when a known fraction of one sample has been assigned to the other, trim the receiving sample alone. In one sample, the mixture index of fit of Rudas et al. [82 ] (see also Liu and Lindsay [59 ] ) is the smallest fraction of the data that must be trimmed for the rest to follow a model, and del Barrio et al. [9 ] bound it on the line with the Kolmogorov–Smirnov distance. Other related work is cited where it is used.
Sections 2 to 6 treat the regions, the test and the analytic baseline, the split-sample bound, its rates and the trimming, Section 7 the simulations and the data, and the supplement gives the proofs and the experimental details. All computations use trimmedmmd, a Python package released at https://github.com/HristoInouzhe/trimmed-mmd .
Trimmed regions and the witness
The lower bound and the trimming come from one object, the distance between the sets of kernel mean embeddings that the trimmings of two laws produce. This section defines it and shows that the two sets first meet at the contamination level, that in every direction each set reaches exactly as far as a trimmed mean, and that the direction of the difference of their closest points selects the trimming. The last two facts, and the empirical regions as polytopes, are RKHS forms of known properties of zonoid trimmed regions and reduced convex hulls, and the equivalence (7) follows at once from (2) for a characteristic kernel. New are the uniform concentration (9) and the analysis of the path in § 5 .
Trimmings and total variation
We observe X 1 , … , X n X_1,\ldots,X_n X 1 , … , X n i.i.d. P P P and Y 1 , … , Y m Y_1,\ldots,Y_m Y 1 , … , Y m i.i.d. Q Q Q , two independent samples on a measurable space X \mathcal{X} X , with empirical measures P n P_n P n and Q m Q_m Q m ; we write u + = max ( u , 0 ) u_+ = \max(u,0) u + = max ( u , 0 ) , a ∨ b = max ( a , b ) a \vee b = \max(a,b) a ∨ b = max ( a , b ) and a ∧ b = min ( a , b ) a \wedge b = \min(a,b) a ∧ b = min ( a , b ) . For 0 ≤ α < 1 0 \le\alpha< 1 0 ≤ α < 1 let β = ( 1 − α ) − 1 \beta= (1-\alpha)^{-1} β = ( 1 − α ) − 1 . Formally, the α \alpha α -trimmings of P P P are the laws
R α ( P ) : = { P ′ ≪ P : d P ′ d P ≤ β P -almost surely } . (1) R_\alpha(P) := \left\{P' \ll P : \frac{dP'}{dP} \le\beta\quad P\text{-almost surely}\right\}. \tag*{(1)} R α ( P ) := { P ′ ≪ P : d P d P ′ ≤ β P -almost surely } . (1)
This trimming is impartial, in that the data decide what is removed, with no region such as the tails prescribed [32 , 22 ] . The fact of Álvarez-Esteban et al. [4 ] recalled in the introduction reads
d T V ( P , Q ) ≤ α ⟺ R α ( P ) ∩ R α ( Q ) ≠ ∅ , (2) d_{\mathrm{TV}}(P,Q) \le\alpha\Longleftrightarrow R_\alpha(P) \cap R_\alpha(Q) \ne\varnothing, \tag*{(2)} d TV ( P , Q ) ≤ α ⟺ R α ( P ) ∩ R α ( Q ) = ∅ , (2)
or, equivalently, there are probability measures R R R , P 0 P_0 P 0 and Q 0 Q_0 Q 0 with
P = ( 1 − α ) R + α P 0 , Q = ( 1 − α ) R + α Q 0 , (3) P=(1-\alpha)R+\alpha P_0,\qquad Q=(1-\alpha)R+\alpha Q_0, \tag*{(3)} P = ( 1 − α ) R + α P 0 , Q = ( 1 − α ) R + α Q 0 , (3)
and from now on α ⋆ : = d T V ( P , Q ) \alpha^\star:= d_{\mathrm{TV}}(P,Q) α ⋆ := d TV ( P , Q ) always denotes the contamination level of the pair at hand. At α ⋆ \alpha^\star α ⋆ the common component is the common core R ⋆ = ( P ∧ Q ) / ( 1 − α ⋆ ) R^\star=(P\wedge Q)/(1-\alpha^\star) R ⋆ = ( P ∧ Q ) / ( 1 − α ⋆ ) , where P ∧ Q P\wedge Q P ∧ Q has density min ( p , q ) \min(p,q) min ( p , q ) for densities p p p and q q q of P P P and Q Q Q with respect to any common dominating measure. Its complement $1-\alpha^\star$ is the overlapping coefficient of P P P and $Q [44 ] . For instance, if P P P puts mass 1 2 \frac{1}{2} 2 1 on each of two points x 1 , x 2 x_1,x_2 x 1 , x 2 and Q Q Q on each of x 2 , x 3 x_2,x_3 x 2 , x 3 , then α ⋆ = 1 2 \alpha^\star=\frac{1}{2} α ⋆ = 2 1 , and removing x 1 x_1 x 1 from P P P and x 3 x_3 x 3 from Q Q Q leaves the point mass at x 2 x_2 x 2 in both. The level is shared because both laws lose the same fraction. If they lose fractions α 1 \alpha_1 α 1 and α 2 \alpha_2 α 2 and what remains coincides, then α 1 ∨ α 2 ≥ α ⋆ \alpha_1\vee\alpha_2\ge\alpha^\star α 1 ∨ α 2 ≥ α ⋆ (Section S1 of the supplement).
The kernel k k k on X \mathcal{X} X has reproducing kernel Hilbert space (RKHS) H \mathcal{H} H and feature map ϕ ( x ) = k ( x , ⋅ ) \phi(x)=k(x,\cdot) ϕ ( x ) = k ( x , ⋅ ) , so that f ( x ) = ⟨ f , ϕ ( x ) ⟩ H f(x)=\langle f,\phi(x)\rangle_{\mathcal{H}} f ( x ) = ⟨ f , ϕ ( x ) ⟩ H for f ∈ H f\in\mathcal{H} f ∈ H , and as in the introduction μ P = E P [ ϕ ( X ) ] \mu_P=\mathbb{E}_P[\phi(X)] μ P = E P [ ϕ ( X )] and MMD ( P , Q ) = ∥ μ P − μ Q ∥ H \operatorname{MMD}(P,Q)=\lVert\mu_P-\mu_Q\rVert_{\mathcal{H}} MMD ( P , Q ) = ∥ μ P − μ Q ∥ H ([34 , 67 ] ).
Two constants of the kernel enter our bounds, κ = sup x k ( x , x ) 1 / 2 \kappa=\sup_x k(x,x)^{1/2} κ = sup x k ( x , x ) 1/2 , which bounds the norm of every feature vector, and the diameter Δ ϕ = sup x , x ′ ∥ ϕ ( x ) − ϕ ( x ′ ) ∥ H ≤ 2 κ \Delta_\phi=\sup_{x,x'}\lVert\phi(x)-\phi(x')\rVert_{\mathcal{H}}\le2\kappa Δ ϕ = sup x , x ′ ∥ ϕ ( x ) − ϕ ( x ′ ) ∥ H ≤ 2 κ of the feature vectors. The Laplace kernel k ( x , y ) = exp ( − ∥ x − y ∥ / σ ) k(x,y)=\exp(-\lVert x-y\rVert/\sigma) k ( x , y ) = exp ( − ∥ x − y ∥ / σ ) and the Gaussian kernel k ( x , y ) = exp ( − ∥ x − y ∥ 2 / ( 2 σ 2 ) ) k(x,y)=\exp(-\lVert x-y\rVert^2/(2\sigma^2)) k ( x , y ) = exp ( − ∥ x − y ∥ 2 / ( 2 σ 2 )) on R d \mathbb{R}^d R d , of bandwidth σ \sigma σ , both have κ = 1 \kappa=1 κ = 1 and Δ ϕ = 2 \Delta_\phi=\sqrt{2} Δ ϕ = 2 , and § 7 says where each is used.
Assumption 2.1. X \mathcal{X} X is a measurable space, with no further structure. Moreover:
(A1) x ↦ k ( x , x ′ ) x\mapsto k(x,x') x ↦ k ( x , x ′ ) is measurable for every x ′ x' x ′ , and k ( x , x ) ≤ κ 2 k(x,x)\le\kappa^2 k ( x , x ) ≤ κ 2 for all x x x ;
(A2) H \mathcal{H} H is separable;
(A3) k k k is characteristic, that is, MMD ( P ′ , Q ′ ) = 0 \operatorname{MMD}(P',Q')=0 MMD ( P ′ , Q ′ ) = 0 only if P ′ = Q ′ P'=Q' P ′ = Q ′ , for probability measures P ′ , Q ′ P',Q' P ′ , Q ′ on X \mathcal{X} X ([89 ] ).
Assumption 2.1 holds for the Gaussian, Laplace and inverse multiquadric kernels on R d \mathbb{R}^d R d , and for any bounded continuous characteristic kernel on a separable metric space, so curves, or graphs with a characteristic kernel, are covered on the same terms as vectors. Theorem 3.1 uses only (A1) and (A2), Theorem 4.2 needs only that the function bet on be measurable with values in [ 0 , 1 ] [0,1] [ 0 , 1 ] , and (A3) makes the split-sample bound consistent (Proposition 4.4 ).
Trimmed regions
The trimmed maximum mean discrepancy is
D α ( P , Q ) : = inf { MMD ( P ′ , Q ′ ) : P ′ ∈ R α ( P ) , Q ′ ∈ R α ( Q ) } (4) D_\alpha(P,Q):=\inf\left\{\operatorname{MMD}(P',Q'):P'\in\mathcal{R}_\alpha(P),\ Q'\in\mathcal{R}_\alpha(Q)\right\} \tag*{(4)} D α ( P , Q ) := inf { MMD ( P ′ , Q ′ ) : P ′ ∈ R α ( P ) , Q ′ ∈ R α ( Q ) } (4)
an analogue of optimal partial transport ([15 , 30 ] ) with the MMD between the kept parts in place of a transport cost, and with the Wasserstein distance the outlier-robust distance of Nietert et al. [72 ] . Mukherjee et al. [68 ] penalize the change made to one law, kernel mean matching ([39 , 33 ] ) reweights one sample toward the other, and robust MMD estimators ([55 , 17 ] ) protect against a contamination, where we measure it. The trimmed region of P P P is
C α ( P ) : = { E P [ g ( X ) ϕ ( X ) ] : 0 ≤ g ≤ β , E P [ g ( X ) ] = 1 } ⊂ H , (5) \mathcal{C}_\alpha(P):=\left\{\mathbb{E}_P[g(X)\phi(X)]:0\le g\le\beta,\ \mathbb{E}_P[g(X)]=1\right\}\subset\mathcal{H}, \tag*{(5)} C α ( P ) := { E P [ g ( X ) ϕ ( X )] : 0 ≤ g ≤ β , E P [ g ( X )] = 1 } ⊂ H , (5)
the set of kernel mean embeddings of all α \alpha α -trimmings of P P P , since g g g ranges over their densities. The regions grow with α \alpha α from the single point μ P \mu_P μ P , and Figure 1 draws them for two laws on three points. For sets A , B ⊂ H A,B\subset\mathcal{H} A , B ⊂ H we write dist ( A , B ) = inf { ∥ a − b ∥ H : a ∈ A , b ∈ B } \operatorname{dist}(A,B)=\inf\{\lVert a-b\rVert_{\mathcal{H}}:a\in A,\ b\in B\} dist ( A , B ) = inf {∥ a − b ∥ H : a ∈ A , b ∈ B } , and dist ( a , B ) = dist ( { a } , B ) \operatorname{dist}(a,B)=\operatorname{dist}(\{a\},B) dist ( a , B ) = dist ({ a } , B ) .
Proposition 2.2 (Geometric representation). Under Assumption 2.1, for every α ∈ [ 0 , 1 ] \alpha\in[0,1] α ∈ [ 0 , 1 ] ,
D α ( P , Q ) = dist ( C α ( P ) , C α ( Q ) ) , (6) D_\alpha(P,Q)=\operatorname{dist}\left(\mathcal{C}_\alpha(P),\mathcal{C}_\alpha(Q)\right), \tag*{(6)} D α ( P , Q ) = dist ( C α ( P ) , C α ( Q ) ) , (6) and C α ( P n ) = { ∑ i w i ϕ ( X i ) : 0 ≤ w i ≤ β / n , ∑ i w i = 1 } \mathcal{C}_\alpha(P_n)=\left\{\sum_i w_i\phi(X_i):0\le w_i\le\beta/n,\ \sum_i w_i=1\right\} C α ( P n ) = { ∑ i w i ϕ ( X i ) : 0 ≤ w i ≤ β / n , ∑ i w i = 1 } is a polytope.
Lemma 2.3 (Compactness and attainment). Under Assumption 2.1, C α ( P ) \mathcal{C}_\alpha(P) C α ( P ) is convex, norm-bounded by κ \kappa κ and norm-compact. Hence the infimum in (4) is attained at trimmings P ⋆ ∈ R α ( P ) P^\star\in\mathcal{R}_\alpha(P) P ⋆ ∈ R α ( P ) and Q ⋆ ∈ R α ( Q ) Q^\star\in\mathcal{R}_\alpha(Q) Q ⋆ ∈ R α ( Q ) , and if D α ( P , Q ) = 0 D_\alpha(P,Q)=0 D α ( P , Q ) = 0 , then C α ( P ) ∩ C α ( Q ) \mathcal{C}_\alpha(P)\cap\mathcal{C}_\alpha(Q) C α ( P ) ∩ C α ( Q ) is nonempty and each of its elements is the embedding of a common trimming R ∈ R α ( P ) ∩ R α ( Q ) R\in\mathcal{R}_\alpha(P)\cap\mathcal{R}_\alpha(Q) R ∈ R α ( P ) ∩ R α ( Q ) .
With (2.2) and (A3), these two results give
D α ( P , Q ) = 0 ⟺ d T V ( P , Q ) ≤ α . (7) D_\alpha(P,Q)=0 \Longleftrightarrow d_{\mathrm{TV}}(P,Q)\le\alpha. \tag*{(7)} D α ( P , Q ) = 0 ⟺ d TV ( P , Q ) ≤ α . (7)
We call α ↦ D α ( P , Q ) \alpha\mapsto D_\alpha(P,Q) α ↦ D α ( P , Q ) the population path of the trimmed distance, and its empirical counterpart α ↦ D ^ α \alpha\mapsto\widehat{D}_\alpha α ↦ D α of § 2.3 the empirical path . The population path is positive below α ⋆ \alpha^\star α ⋆ and zero from α ⋆ \alpha^\star α ⋆ on, as in the right panel of Figure 1 . It is nonincreasing, because the regions are nested, and Lipschitz with constant 4 κ / ( 1 − α ˉ ) 2 4\kappa/(1-\bar{\alpha})^2 4 κ / ( 1 − α ˉ ) 2 on [ 0 , α ˉ ] [0,\bar{\alpha}] [ 0 , α ˉ ] for every α ˉ < 1 \bar{\alpha}<1 α ˉ < 1 (Lemma S1.2 of the supplement).
A closed convex set A ⊂ H A\subset\mathcal{H} A ⊂ H is determined by its support function h A ( f ) = sup a ∈ A ⟨ a , f ⟩ H h_A(f)=\sup_{a\in A}\langle a,f\rangle_{\mathcal{H}} h A ( f ) = sup a ∈ A ⟨ a , f ⟩ H , how far it reaches in the direction f f f . For the trimmed regions this function is a familiar risk measure, the conditional value-at-risk of finance (Rockafellar and Uryasev [80 ] ).
Lemma 2.4 (Support function). Under Assumption 2.1, for every f ∈ H f\in\mathcal{H} f ∈ H ,
h C α ( P ) ( f ) = sup 0 ≤ g ≤ β , E P g = 1 E P [ g ( X ) f ( X ) ] = inf t ∈ R { t + β E P [ ( f ( X ) − t ) + ] } , (8) h_{C_\alpha(P)}(f)=\sup_{\substack{0\le g\le\beta,\\ \mathbb{E}_P g=1}}\mathbb{E}_P[g(X)f(X)]=\inf_{t\in\mathbb{R}}\left\{t+\beta\mathbb{E}_P[(f(X)-t)_+]\right\}, \tag*{(8)} h C α ( P ) ( f ) = 0 ≤ g ≤ β , E P g = 1 sup E P [ g ( X ) f ( X )] = t ∈ R inf { t + β E P [( f ( X ) − t ) + ] } , (8) the supremum is attained, and the second equality holds for every bounded measurable f f f .
The first equality is the reproducing property, and the right-hand side is the representation by Rockafellar and Uryasev [80 ] of the mean of f ( X ) f(X) f ( X ) over the upper ( 1 − α ) (1-\alpha) ( 1 − α ) -fraction of its distribution, an atom at the cut being split. The lemma is the RKHS instance of the defining property of zonoid trimmed regions ([50 , 27 ] ).
Maximizing E P [ g f ] \mathbb{E}_P[gf] E P [ g f ] over trimming densities is a bathtub problem, whose solution g g g fills its cap β \beta β on the largest values of f f f until the mass runs out and is zero below. In a fixed direction the optimal trimming therefore keeps the part of the law on one side of a cut, the level set { f ≥ t } \{f\ge t\} { f ≥ t } with t t t the α \alpha α -quantile of f ( X ) f(X) f ( X ) , and the minimizing t t t in (2.8) is that cut.
For each fixed t t t , moreover, the expression inside the infimum is an ordinary mean, of the bounded function t + β ( f − t ) + t+\beta(f-t)_+ t + β ( f − t ) + . A region is thus a family of trimmed means, one per direction, and a trimmed mean is an infimum of ordinary means. Means of bounded functions, and of bounded vectors of H \mathcal{H} H , concentrate at the rate n − 1 / 2 n^{-1/2} n − 1/2 with constants that depend only on the bound κ \kappa κ , and this rate cannot be improved for the mean embedding or the MMD [94 , 95 ] . Every finite-sample validity statement below reduces to such means, and the empirical regions are uniformly close to the population ones,
sup 0 ≤ α < 1 ( 1 − α ) d H ( C α ( P n ) , C α ( P ) ) ≤ κ [ 4 n + 2 log ( 2 / δ ) n ] (9) \sup_{0 \le\alpha< 1}(1-\alpha)d_H\left(C_\alpha(P_n),C_\alpha(P)\right) \le\kappa\left[\frac{4}{\sqrt{n}}+\sqrt{\frac{2\log(2/\delta)}{n}}\right] \tag*{(9)} 0 ≤ α < 1 sup ( 1 − α ) d H ( C α ( P n ) , C α ( P ) ) ≤ κ [ n 4 + n 2 log ( 2/ δ ) ] (9)
with probability at least 1 − δ 1-\delta 1 − δ , for every P P P , where d H d_H d H is the Hausdorff distance in H \mathcal{H} H (Corollary S5.7 of the supplement). No complexity of the sample space enters (9) , because the regions live in H \mathcal{H} H and the kernel bound κ \kappa κ is their only constant.
The statistic, its witness and the trimming it selects
The statistic is D ^ α : = D α ( P n , Q m ) \widehat{D}_\alpha:= D_\alpha(P_n,Q_m) D α := D α ( P n , Q m ) , and α ↦ D ^ α \alpha\mapsto\widehat{D}_\alpha α ↦ D α is the empirical path. By Proposition 2.2 it is the distance between two polytopes, the square root of
D ^ α 2 = min w , v { w ⊤ K X X w + v ⊤ K Y Y v − 2 w ⊤ K X Y v } (10) \widehat{D}_\alpha^2=\min_{w,v}\left\{w^\top K_{XX}w+v^\top K_{YY}v-2w^\top K_{XY}v\right\} \tag*{(10)} D α 2 = w , v min { w ⊤ K X X w + v ⊤ K Y Y v − 2 w ⊤ K X Y v } (10)
over the capped simplices 0 ≤ w i ≤ β / n 0 \le w_i \le\beta/n 0 ≤ w i ≤ β / n , ∑ i w i = 1 \sum_i w_i=1 ∑ i w i = 1 and 0 ≤ v j ≤ β / m 0 \le v_j \le\beta/m 0 ≤ v j ≤ β / m , ∑ j v j = 1 \sum_j v_j=1 ∑ j v j = 1 , where K X X K_{XX} K X X , K Y Y K_{YY} K Y Y and K X Y K_{XY} K X Y are the Gram matrices. The objective is ∥ ∑ i w i ϕ ( X i ) − ∑ j v j ϕ ( Y j ) ∥ H 2 \left\|\sum_i w_i\phi(X_i)-\sum_j v_j\phi(Y_j)\right\|_{\mathcal{H}}^2 ∑ i w i ϕ ( X i ) − ∑ j v j ϕ ( Y j ) H 2 , so (10) is a convex quadratic program, the problem of the nearest points of two reduced convex hulls, which is the dual of the ν \nu ν -support vector machine ([10 , 20 , 92 ] ). The witness below is the normal of its hyperplane, and Proposition 2.5 is the structure of its support vectors read as a trimming. We solve it by accelerated projected gradient (Section S6.6 of the supplement). For a minimizer ( w , v ) (w,v) ( w , v ) , the witness , the name that Gretton et al. [34 ] use at α = 0 \alpha=0 α = 0 , is the difference of the two closest points,
d ^ = ∑ i w i ϕ ( X i ) − ∑ j v j ϕ ( Y j ) , d ^ ( x ) = ∑ i w i k ( X i , x ) − ∑ j v j k ( Y j , x ) . (11) \widehat{d}=\sum_i w_i\phi(X_i)-\sum_j v_j\phi(Y_j),\qquad\widehat{d}(x)=\sum_i w_i k(X_i,x)-\sum_j v_j k(Y_j,x). \tag*{(11)} d = i ∑ w i ϕ ( X i ) − j ∑ v j ϕ ( Y j ) , d ( x ) = i ∑ w i k ( X i , x ) − j ∑ v j k ( Y j , x ) . (11)
It is a function on X \mathcal{X} X , large where the trimmed first sample has more mass than the trimmed second, and it can be evaluated at points not used to compute it. Its direction f ^ = d ^ / D ^ α \widehat{f}=\widehat{d}/\widehat{D}_\alpha f = d / D α , with f ^ = 0 \widehat{f}=0 f = 0 when D ^ α = 0 \widehat{D}_\alpha=0 D α = 0 , separates the two empirical regions. The population witness d ⋆ d^\star d ⋆ is the element of minimal norm of C α ( P ) − C α ( Q ) C_\alpha(P)-C_\alpha(Q) C α ( P ) − C α ( Q ) , with direction f ⋆ = d ⋆ / D α ( P , Q ) f^\star=d^\star/D_\alpha(P,Q) f ⋆ = d ⋆ / D α ( P , Q ) .
Let T α \mathcal{T}_\alpha T α be the set of minimizers ( w , v ) (w,v) ( w , v ) of (10) . Each of them is a pair of trimmed samples, since the weighted empirical measures P n w = ∑ i w i δ X i P_n^w=\sum_i w_i\delta_{X_i} P n w = ∑ i w i δ X i and Q m v = ∑ j v j δ Y j Q_m^v=\sum_j v_j\delta_{Y_j} Q m v = ∑ j v j δ Y j are α \alpha α -trimmings of P n P_n P n and Q m Q_m Q m whose embeddings are at distance D ^ α \widehat{D}_\alpha D α . The witness determines them.
Proposition 2.5 (Structure of the empirical trimming). The set T α \mathcal{T}_\alpha T α is nonempty, convex and compact. Moreover:
(i) the difference d ^ = ∑ i w i ϕ ( X i ) − ∑ j v j ϕ ( Y j ) \widehat{d}=\sum_i w_i\phi(X_i)-\sum_j v_j\phi(Y_j) d = ∑ i w i ϕ ( X i ) − ∑ j v j ϕ ( Y j ) takes the same value at every ( w , v ) ∈ T α (w,v)\in\mathcal{T}_\alpha ( w , v ) ∈ T α , namely the element of minimal norm of C α ( P n ) − C α ( Q m ) C_\alpha(P_n)-C_\alpha(Q_m) C α ( P n ) − C α ( Q m ) , and ∥ d ^ ∥ H = D ^ α \|\widehat{d}\|_{\mathcal{H}}=\widehat{D}_\alpha ∥ d ∥ H = D α ;
(ii) if D ^ α > 0 \widehat{D}_\alpha>0 D α > 0 , let n 1 − α = ⌊ n ( 1 − α ) ⌋ n_{1-\alpha}=\lfloor n(1-\alpha)\rfloor n 1 − α = ⌊ n ( 1 − α )⌋ and let t ^ n \widehat{t}_n t n be the ( n 1 − α + 1 ) (n_{1-\alpha}+1) ( n 1 − α + 1 ) -th smallest of the values d ^ ( X 1 ) , … , d ^ ( X n ) \widehat{d}(X_1),\ldots,\widehat{d}(X_n) d ( X 1 ) , … , d ( X n ) , with t ^ n = + ∞ \widehat{t}_n=+\infty t n = + ∞ if n 1 − α = n n_{1-\alpha}=n n 1 − α = n . Then every ( w , v ) ∈ T α (w,v)\in\mathcal{T}_\alpha ( w , v ) ∈ T α has w i = β / n w_i=\beta/n w i = β / n when d ^ ( X i ) < t ^ n \widehat{d}(X_i)<\widehat{t}_n d ( X i ) < t n and w i = 0 w_i=0 w i = 0 when d ^ ( X i ) > t ^ n \widehat{d}(X_i)>\widehat{t}_n d ( X i ) > t n , the observations with d ^ ( X i ) = t ^ n \widehat{d}(X_i)=\widehat{t}_n d ( X i ) = t n sharing the remaining mass. Symmetrically, with m 1 − α = ⌊ m ( 1 − α ) ⌋ m_{1-\alpha}=\lfloor m(1-\alpha)\rfloor m 1 − α = ⌊ m ( 1 − α )⌋ , v j = β / m v_j=\beta/m v j = β / m when d ^ ( Y j ) \widehat{d}(Y_j) d ( Y j ) is above the ( m 1 − α + 1 ) (m_{1-\alpha}+1) ( m 1 − α + 1 ) -th largest of the values d ^ ( Y 1 ) , … , d ^ ( Y m ) \widehat{d}(Y_1),\ldots,\widehat{d}(Y_m) d ( Y 1 ) , … , d ( Y m ) , v j = 0 v_j=0 v j = 0 when it is below, and the ties share the remainder;
(iii) if D ^ α = 0 \widehat{D}_\alpha=0 D α = 0 , then T α \mathcal{T}_\alpha T α is the set of all feasible ( w , v ) (w,v) ( w , v ) with ∑ i w i ϕ ( X i ) = ∑ j v j ϕ ( Y j ) \sum_i w_i\phi(X_i)=\sum_j v_j\phi(Y_j) ∑ i w i ϕ ( X i ) = ∑ j v j ϕ ( Y j ) .
Part (ii) is the bathtub of Lemma 2.4 in the direction of the witness. Once d ^ \widehat d d is fixed the problem is linear: the weights on the X X X ’s minimize ∑ i w i d ^ ( X i ) \sum_i w_i\widehat d(X_i) ∑ i w i d ( X i ) over the capped simplex, and those on the Y Y Y ’s maximize ∑ j v j d ^ ( Y j ) \sum_j v_j\widehat d(Y_j) ∑ j v j d ( Y j ) . So every optimal trimming of the first sample keeps at full weight the observations on which the witness is smallest, the most Q Q Q -like ones, discards those above the cut and splits weight only among ties at the cut, and the trimming of the second sample is the level set above a cut of the same function. The cuts reappear in the betting test of § 4 . Part (iii) does not arise for α < 1 \alpha< 1 α < 1 with a strictly positive definite kernel and pairwise distinct pooled observations X 1 , … , X n , Y 1 , … , Y m X_1,\ldots,X_n,Y_1,\ldots,Y_m X 1 , … , X n , Y 1 , … , Y m , since the feature vectors are then linearly independent and the minimizer is unique. Many observations may still share the cut, as support vectors share the margin of a ν \nu ν -support vector machine, and with the Laplace kernel on the line all the X X X ’s whose witness values have rank ⌈ n ( 1 − α ) ⌉ \lceil n(1-\alpha)\rceil ⌈ n ( 1 − α )⌉ or higher share it (Lemma S4.21 of the supplement). For kernels whose empirical regions can meet we return the minimizer closest to uniform weights (Section S6.6 of the supplement).
No informative upper bound
By (2.7), d T V ( P , Q ) > α d_{\mathrm{TV}}(P,Q) > \alpha d TV ( P , Q ) > α exactly when the regions are apart, and § 3 and § 4 certify this by lower confidence bounds valid on any sample space. We certify only from below because no upper confidence bound on d T V ( P , Q ) d_{\mathrm{TV}}(P,Q) d TV ( P , Q ) can be valid for all pairs of laws and still informative, as Hore and Barber [38 ] prove for d T V d_{\mathrm{TV}} d TV and Blanchard et al. [12 ] for mixture proportions, in a line that goes back to Bahadur and Savage [6 ] and Donoho [26 ] . The version below holds even for laws on [ 0 , 1 ] [0,1] [ 0 , 1 ] with densities bounded by 2, and its conclusion is at P = Q P=Q P = Q .
Theorem 2.6 (No informative upper bound, even for bounded densities). Fix n , m ≥ 1 n,m \ge1 n , m ≥ 1 and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , and let P 2 \mathcal{P}_2 P 2 be the set of pairs of probability measures on [ 0 , 1 ] [0,1] [ 0 , 1 ] whose densities with respect to Lebesgue measure are bounded by 2. Suppose that U ^ = U ^ ( X 1 : n , Y 1 : m ) \widehat U=\widehat U(X_{1:n},Y_{1:m}) U = U ( X 1 : n , Y 1 : m ) , measurable and possibly randomized, satisfies P P , Q ( d T V ( P , Q ) ≤ U ^ ) ≥ 1 − δ \mathbb{P}_{P,Q}(d_{\mathrm{TV}}(P,Q)\le\widehat U)\ge1-\delta P P , Q ( d TV ( P , Q ) ≤ U ) ≥ 1 − δ for every ( P , Q ) ∈ P 2 (P,Q)\in\mathcal{P}_2 ( P , Q ) ∈ P 2 . Then, with P u P_{\mathrm{u}} P u the uniform law on [ 0 , 1 ] [0,1] [ 0 , 1 ] , P P u , P u ( U ^ ≥ 1 ) ≥ 1 − δ \mathbb{P}_{P_{\mathrm{u}},P_{\mathrm{u}}}(\widehat U\ge1)\ge1-\delta P P u , P u ( U ≥ 1 ) ≥ 1 − δ .
A fixed kernel is blind in the same way: densities that oscillate ever faster stay at total variation 1 2 \frac{1}{2} 2 1 from the uniform law while their MMD to it tends to zero (§ 9.1.3 of the supplement). An upper end needs an assumption, such as a margin with known constants, since D α ( P , Q ) ≥ c 0 ( α ⋆ − α ) γ D_\alpha(P,Q)\ge c_0(\alpha^\star-\alpha)^\gamma D α ( P , Q ) ≥ c 0 ( α ⋆ − α ) γ gives α ⋆ ≤ α + ( D ~ α / c 0 ) 1 / γ \alpha^\star\le\alpha+(\widetilde D_\alpha/c_0)^{1/\gamma} α ⋆ ≤ α + ( D α / c 0 ) 1/ γ for any D ~ α ≥ D α ( P , Q ) \widetilde D_\alpha\ge D_\alpha(P,Q) D α ≥ D α ( P , Q ) , or a blurred version of d T V d_{\mathrm{TV}} d TV , and the data do not identify c 0 c_0 c 0 and γ \gamma γ . Lower bounds escape the argument, because rejecting d T V ( P , Q ) ≤ α d_{\mathrm{TV}}(P,Q)\le\alpha d TV ( P , Q ) ≤ α needs only one set on which the samples differ, but their rates do not: a valid lower bound with a rate uniform over P 2 \mathcal{P}_2 P 2 would give an informative upper bound, so some restriction such as the margin is needed for any rate.
Testing a trimmed null, and an analytic baseline
For each level α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) we test
H 0 , α : d T V ( P , Q ) ≤ α against H 1 , α : d T V ( P , Q ) > α (12) H_{0,\alpha}: d_{\mathrm{TV}}(P,Q)\le\alpha\qquad\text{against}\qquad H_{1,\alpha}: d_{\mathrm{TV}}(P,Q)>\alpha \tag*{(12)} H 0 , α : d TV ( P , Q ) ≤ α against H 1 , α : d TV ( P , Q ) > α (12)
and by (2.7) the null holds exactly when D α ( P , Q ) = 0 D_\alpha(P,Q)=0 D α ( P , Q ) = 0 . The null is a total-variation neighborhood of P = Q P=Q P = Q , a relevant hypothesis in the sense of Dette et al. [24 ] , as in the trimming-based tests of Álvarez-Esteban et al. [4 ] and del Barrio et al. [9 ] and in robust tests between neighborhoods of laws ([41 , 42 , 84 , 60 ] ), which fix its size in advance, whereas here it is the quantity to be estimated. Kernel tests of composite nulls (Key et al., [48 ] ) calibrate over a parametric family, and equivalence tests (Wellek, [101 ] ) put such a neighborhood in the alternative (Section S2 of the supplement). This section gives a threshold τ ( α ) \tau(\alpha) τ ( α ) , computed before the data, that D ^ α \widehat D_\alpha D α exceeds with probability at most δ \delta δ under every pair in the null. Inverted over α \alpha α , it gives a baseline that needs no split but far more observations than our method.
A threshold for the whole null
Limit laws are of little help in calibrating D ^ α \widehat{D}_{\alpha} D α , because at the boundary of the null the two regions touch, and a minimum over trimmings is then only directionally differentiable in the laws, with a limit law that depends on the unknown geometry of the contact [29 ] , and permutation is exact only under P = Q P=Q P = Q . We bound D ^ α \widehat{D}_{\alpha} D α instead by a difference of sample means. Under H 0 , α H_{0,\alpha} H 0 , α the laws share an α \alpha α -trimming R R R by (2) , with densities g P = d R / d P g_P=\mathrm{d}R/\mathrm{d}P g P = d R / d P and g Q = d R / d Q g_Q=\mathrm{d}R/\mathrm{d}Q g Q = d R / d Q bounded by β \beta β , so the weights w i = g P ( X i ) / n w_i=g_P(X_i)/n w i = g P ( X i ) / n and v j = g Q ( Y j ) / m v_j=g_Q(Y_j)/m v j = g Q ( Y j ) / m respect the caps of (10) , and the embeddings they give are averages of independent vectors with the same mean μ R \mu_R μ R . Their totals fluctuate around one, and rescaling the weights, or adding mass under the caps, gives a feasible pair at the price of a term proportional to the shortfalls (Lemma S2.2 of the supplement). So D ^ α \widehat{D}_{\alpha} D α is at most the norm of a centered difference of two averages of vectors bounded by β κ \beta\kappa β κ , plus two shortfalls, and bounded-difference and Bernstein inequalities give a threshold in closed form. Let n ⋆ = n m / ( n + m ) n_\star=nm/(n+m) n ⋆ = nm / ( n + m ) , so that 1 / n ⋆ = 1 / n + 1 / m 1/n_\star=1/n+1/m 1/ n ⋆ = 1/ n + 1/ m , c = max ( 1 / n , 1 / m ) c=\max(1/n,1/m) c = max ( 1/ n , 1/ m ) , L = log ( 6 / δ ) L=\log(6/\delta) L = log ( 6/ δ ) and κ ˉ 2 = min ( κ 2 , Δ ϕ 2 / 2 ) \bar{\kappa}^{2}=\min(\kappa^{2},\Delta_{\phi}^{2}/2) κ ˉ 2 = min ( κ 2 , Δ ϕ 2 /2 ) .
Theorem 3.1 (Plug-in threshold). Let ( A 1 ) (A1) ( A 1 ) and ( A 2 ) (A2) ( A 2 ) of Assumption 2.1 hold, and let
τ P ( 0 ) = κ ˉ n ⋆ + Δ ϕ log ( 1 / δ ) 2 n ⋆ , \tau^{P}(0)=\frac{\bar{\kappa}}{\sqrt{n_\star}}+\Delta_{\phi}\sqrt{\frac{\log(1/\delta)}{2n_\star}}, τ P ( 0 ) = n ⋆ κ ˉ + Δ ϕ 2 n ⋆ log ( 1/ δ ) , τ P ( α ) = β κ ˉ 2 n ⋆ + β Δ ϕ L 2 n ⋆ + Δ ϕ 2 ( β − 1 ) L n ⋆ + c L 3 \tau^{P}(\alpha)=\sqrt{\frac{\beta\bar{\kappa}^{2}}{n_\star}}+\beta\Delta_{\phi}\sqrt{\frac{L}{2n_\star}}+\Delta_{\phi}\sqrt{\frac{2(\beta-1)L}{n_\star}+\frac{cL}{3}} τ P ( α ) = n ⋆ β κ ˉ 2 + β Δ ϕ 2 n ⋆ L + Δ ϕ n ⋆ 2 ( β − 1 ) L + 3 c L ( 0 < α < 1 ) (0<\alpha<1) ( 0 < α < 1 ) .
Then for every α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) , n , m ≥ 1 n,m\geq1 n , m ≥ 1 , δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) and every pair with d T V ( P , Q ) ≤ α d_{\mathrm{TV}}(P,Q)\leq\alpha d TV ( P , Q ) ≤ α , P ( D ^ α > τ P ( α ) ) ≤ δ \mathbb{P}(\widehat{D}_{\alpha}>\tau^{P}(\alpha))\leq\delta P ( D α > τ P ( α )) ≤ δ . Moreover, α ↦ τ P ( α ) \alpha\mapsto\tau^{P}(\alpha) α ↦ τ P ( α ) is nondecreasing on [ 0 , 1 ) [0,1) [ 0 , 1 ) .
The threshold depends on κ \kappa κ , Δ ϕ \Delta_{\phi} Δ ϕ , α \alpha α , n n n , m m m and δ \delta δ alone and is, up to a term of order Δ ϕ log ( 1 / δ ) / ( n ∧ m ) \Delta_{\phi}\log(1/\delta)/(n\wedge m) Δ ϕ log ( 1/ δ ) / ( n ∧ m ) , of order β Δ ϕ { ( 1 + log ( 1 / δ ) ) / ( n ∧ m ) } 1 / 2 \beta\Delta_{\phi}\{(1+\log(1/\delta))/(n\wedge m)\}^{1/2} β Δ ϕ {( 1 + log ( 1/ δ )) / ( n ∧ m ) } 1/2 . It jumps up at 0 + 0+ 0 + , where L > log ( 1 / δ ) L>\log(1/\delta) L > log ( 1/ δ ) replaces log ( 1 / δ ) \log(1/\delta) log ( 1/ δ ) . The pair enters only through the existence of R R R . At α = 0 \alpha=0 α = 0 the common trimming is R = P = Q R=P=Q R = P = Q , and Theorem 3.1 is a finite-sample bound on the MMD of the kind given by Gretton et al. [34 ] . For the Gaussian kernel and n = m n=m n = m it reads τ P ( 0 ) = [ 1 + log ( 1 / δ ) ] 2 / n \tau^{P}(0)=[1+\sqrt{\log(1/\delta)}]\sqrt{2/n} τ P ( 0 ) = [ 1 + log ( 1/ δ ) ] 2/ n .
We write τ = τ P \tau=\tau^{P} τ = τ P for the threshold of the test. A second valid threshold τ S ( α , δ ) \tau^{S}(\alpha,\delta) τ S ( α , δ ) comes from the two-sided bound of Theorem S2.1 of the supplement, by the same reduction to means as (9) , but it is larger than τ P \tau^{P} τ P at the sample sizes we use. Since τ \tau τ is nondecreasing and the empirical path is nonincreasing, one event serves every level.
Lemma 3.2 (One event for all levels). Let τ : [ 0 , 1 ) → [ 0 , ∞ ) \tau:[0,1)\to[0,\infty) τ : [ 0 , 1 ) → [ 0 , ∞ ) be nondecreasing, and suppose that P ( D ^ α > τ ( α ) ) ≤ δ \mathbb{P}(\widehat{D}_{\alpha}>\tau(\alpha))\leq\delta P ( D α > τ ( α )) ≤ δ for every α \alpha α and every pair with d T V ( P , Q ) ≤ α d_{\mathrm{TV}}(P,Q)\leq\alpha d TV ( P , Q ) ≤ α . Then for every pair with α ⋆ < 1 \alpha^\star<1 α ⋆ < 1 , the event { D ^ α ⋆ ≤ τ ( α ⋆ ) } \{\widehat{D}_{\alpha^\star}\leq\tau(\alpha^\star)\} { D α ⋆ ≤ τ ( α ⋆ )} has probability at least 1 − δ 1-\delta 1 − δ , and on it D ^ α ≤ τ ( α ) \widehat{D}_{\alpha}\leq\tau(\alpha) D α ≤ τ ( α ) for every α ∈ [ α ⋆ , 1 ) \alpha\in[\alpha^\star,1) α ∈ [ α ⋆ , 1 ) .
The analytic test rejects H 0 , α H_{0,\alpha} H 0 , α when
D ^ α > τ ( α ) . (13) \widehat{D}_{\alpha}>\tau(\alpha). \tag*{(13)} D α > τ ( α ) . (13)
It has level δ \delta δ for all n , m ≥ 1 n,m\geq1 n , m ≥ 1 , uniformly over the null, by Lemma 3.2 one event carries the guarantee for all levels at once, and its level does not use (A3). Its validity at every sample size, uniformly over the null, answers the question of Álvarez-Esteban et al. [4 ] recalled in the introduction, as does, more simply, the betting test of Section § 4 . The kernel must be fixed before the data are seen, for instance on a held-out pilot sample (§ 7.2 ). One threshold for every pair in the null is a worst case: at the boundary of a two-dimensional design, at n = m = 300 n=m=300 n = m = 300 and α = α ⋆ \alpha=\alpha^\star α = α ⋆ , τ ( α ) \tau(\alpha) τ ( α ) is 6.5 times the empirical 1 − δ 1-\delta 1 − δ quantile of D ^ α \widehat{D}_{\alpha} D α (Section S6 of the supplement).
The estimator
Inverting the test over α \alpha α , we define the analytic estimator, with a subscript that sets it apart from the split-sample bound α ^ \widehat{\alpha} α of § 4.3 ,
α ^ a n : = inf { α ∈ [ 0 , 1 ) : D ^ α ≤ τ ( α ) } , (14) \widehat{\alpha}_{\rm an}:=\inf\left\{\alpha\in[0,1):\widehat{D}_{\alpha}\leq\tau(\alpha)\right\}, \tag*{(14)} α an := inf { α ∈ [ 0 , 1 ) : D α ≤ τ ( α ) } , (14)
the first level at which the empirical path falls below the threshold. Since α ↦ D ^ α \alpha\mapsto\widehat{D}_{\alpha} α ↦ D α is non-increasing and τ \tau τ nondecreasing, every level above α ^ a n \widehat{\alpha}_{\rm an} α an is accepted and every level below it rejected, so bisection brackets α ^ a n \widehat{\alpha}_{\rm an} α an . It is well defined, because D ^ α ≤ Δ ϕ \widehat{D}_{\alpha}\leq\Delta_{\phi} D α ≤ Δ ϕ while τ ( α ) → ∞ \tau(\alpha)\to\infty τ ( α ) → ∞ as α → 1 \alpha\to1 α → 1 when Δ ϕ > 0 \Delta_{\phi}>0 Δ ϕ > 0 . On the event of Lemma 3.2, of probability at least 1 − δ 1-\delta 1 − δ whenever α ⋆ < 1 \alpha^{\star}<1 α ⋆ < 1 , every level from α ⋆ \alpha^{\star} α ⋆ on is accepted, so α ^ a n ≤ α ⋆ \widehat{\alpha}_{\rm an}\leq\alpha^{\star} α an ≤ α ⋆ and every rejected level lies below α ⋆ \alpha^{\star} α ⋆ , at every sample size, for every pair and however the levels tested were chosen. A grid of levels read upward, as in § 7.2 , therefore gives a lower confidence bound too. It is consistent from below, P ( α ^ a n < α ) → 0 \mathbb{P}(\widehat{\alpha}_{\rm an}<\alpha)\to0 P ( α an < α ) → 0 for α < α ⋆ \alpha<\alpha^{\star} α < α ⋆ , as D ^ α ≥ D α − τ S ( α , δ ′ ) \widehat{D}_{\alpha}\geq D_{\alpha}-\tau^{\rm S}(\alpha,\delta') D α ≥ D α − τ S ( α , δ ′ ) with probability 1 − δ ′ 1-\delta' 1 − δ ′ (Theorem S2.1 of the supplement) and both thresholds tend to zero.
How many observations
Because τ \tau τ does not depend on the data, the sample size at which the test fires can be computed before any data are collected, given a guess at the effect. For the Gaussian kernel and n = m n=m n = m , Theorem 3.1 gives τ ( 0 ) ≤ C 0 2 / n \tau(0)\leq C_0\sqrt{2/n} τ ( 0 ) ≤ C 0 2/ n , so the test rejects H 0 , 0 H_{0,0} H 0 , 0 as soon as
n > 2 ( C 0 D ^ 0 ) 2 , C 0 = κ ˉ + Δ ϕ log ( 1 / δ ) / 2 = 1 + log ( 1 / δ ) ≈ 2.73 at δ = 0.05. (15) n>2\left(\frac{C_0}{\widehat{D}_0}\right)^2,\qquad C_0=\bar{\kappa}+\Delta_{\phi}\sqrt{\log(1/\delta)/2}=1+\sqrt{\log(1/\delta)}\approx2.73\text{ at }\delta=0.05. \tag*{(15)} n > 2 ( D 0 C 0 ) 2 , C 0 = κ ˉ + Δ ϕ log ( 1/ δ ) /2 = 1 + log ( 1/ δ ) ≈ 2.73 at δ = 0.05. (15)
With a guess at D 0 = MMD ( P , Q ) D_0=\operatorname{MMD}(P,Q) D 0 = MMD ( P , Q ) in place of D ^ 0 \widehat{D}_0 D 0 , (15) is a design rule, which scales like D 0 − 2 D_0^{-2} D 0 − 2 .
The split-sample lower bound
The threshold of § 3 is a worst case over the whole null. Our method avoids it: we fit the witness and its two cuts on part of the data and test a fixed function on the rest, refitting on each batch. The batches and the number of bets are fixed in advance, so the test is valid at every sample size but not anytime-valid. Validity rests on one inequality, E P ψ − E Q ψ ≤ d T V ( P , Q ) \mathbb{E}_{P}\psi-\mathbb{E}_{Q}\psi\leq d_{\rm TV}(P,Q) E P ψ − E Q ψ ≤ d TV ( P , Q ) for every ψ \psi ψ with values in [ 0 , 1 ] [0,1] [ 0 , 1 ] , as in the framework of Michel et al. [66 ] , with the clipped witness in the role of their classifier.
A ramp of the witness
Any unit vector f ∈ H f\in\mathcal{H} f ∈ H gives a lower bound on the distance between two sets A , B ⊂ H A,B\subset\mathcal{H} A , B ⊂ H ,
dist ( A , B ) ≥ sep ( f ; A , B ) : = inf a ∈ A ⟨ f , a ⟩ H − sup b ∈ B ⟨ f , b ⟩ H , \operatorname{dist}(A,B)\geq\operatorname{sep}(f;A,B):=\inf_{a\in A}\langle f,a\rangle_{\mathcal{H}}-\sup_{b\in B}\langle f,b\rangle_{\mathcal{H}}, dist ( A , B ) ≥ sep ( f ; A , B ) := a ∈ A inf ⟨ f , a ⟩ H − b ∈ B sup ⟨ f , b ⟩ H ,
with equality when A , B A,B A , B are convex and weakly compact, dist ( A , B ) > 0 \operatorname{dist}(A,B)>0 dist ( A , B ) > 0 , and f f f is the direction of the minimal-norm difference (Lemma S3.1 of the supplement). A direction chosen from data is therefore harmless once it is independent of the data on which it is evaluated. For the trimmed regions both terms of sep \operatorname{sep} sep are trimmed means by Lemma 2.4, of f ( X ) f(X) f ( X ) over the lower and of f ( Y ) f(Y) f ( Y ) over the upper ( 1 − α ) (1-\alpha) ( 1 − α ) -fraction of its distribution. A trimmed mean is cut at a quantile, which depends on the data and makes it hard to calibrate. With the cut fixed in advance it becomes an ordinary mean, as in the second reading of Lemma 2.4. For a bounded measurable f f f and reals t , u t,u t , u put
θ ( f ; t , u ) : = E P [ t − β ( t − f ( X ) ) + ] − E Q [ u + β ( f ( Y ) − u ) + ] . \theta(f;t,u):=\mathbb{E}_{P}\left[t-\beta(t-f(X))_{+}\right]-\mathbb{E}_{Q}\left[u+\beta(f(Y)-u)_{+}\right]. θ ( f ; t , u ) := E P [ t − β ( t − f ( X ) ) + ] − E Q [ u + β ( f ( Y ) − u ) + ] .
Lemma 4.1 (Cut points turn the separation into a ramp). Let f f f be bounded and measurable and α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) . Then:
(i) θ ( f ; t , u ) ≤ inf P ′ ∈ R α ( P ) E P ′ f − sup Q ′ ∈ R α ( Q ) E Q ′ f \theta(f;t,u) \le\inf_{P' \in\mathcal{R}_{\alpha}(P)} \mathbb{E}_{P'}f - \sup_{Q' \in\mathcal{R}_{\alpha}(Q)} \mathbb{E}_{Q'}f θ ( f ; t , u ) ≤ inf P ′ ∈ R α ( P ) E P ′ f − sup Q ′ ∈ R α ( Q ) E Q ′ f for all reals t , u t,u t , u ; the supremum of the left side over ( t , u ) (t,u) ( t , u ) equals the right side and is attained at a ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile of f ( X ) f(X) f ( X ) and an α \alpha α -quantile of f ( Y ) f(Y) f ( Y ) ; and for f f f in the unit ball of H \mathcal{H} H the right side is sep ( f ; C α ( P ) , C α ( Q ) ) \operatorname{sep}(f;\mathcal{C}_{\alpha}(P),\mathcal{C}_{\alpha}(Q)) sep ( f ; C α ( P ) , C α ( Q )) ;
(ii) if t > u t>u t > u , then with the clipped witness f ~ = ( f ∨ u ) ∧ t \widetilde{f}=(f\vee u)\wedge t f = ( f ∨ u ) ∧ t and the ramp ψ = ( f ~ − u ) / ( t − u ) \psi=(\widetilde{f}-u)/(t-u) ψ = ( f − u ) / ( t − u ) , which takes values in [ 0 , 1 ] [0,1] [ 0 , 1 ] , θ ( f ~ ; t , u ) = β ( t − u ) ( E P ψ − E Q ψ − α ) ≥ θ ( f ; t , u ) \theta(\widetilde{f};t,u)=\beta(t-u)(\mathbb{E}_{P}\psi-\mathbb{E}_{Q}\psi-\alpha)\ge\theta(f;t,u) θ ( f ; t , u ) = β ( t − u ) ( E P ψ − E Q ψ − α ) ≥ θ ( f ; t , u ) ;
(iii) every measurable ψ \psi ψ with values in [ 0 , 1 ] [0,1] [ 0 , 1 ] , the ramp in particular, has E P ψ − E Q ψ ≤ d T V ( P , Q ) \mathbb{E}_{P}\psi-\mathbb{E}_{Q}\psi\le d_{\mathrm{TV}}(P,Q) E P ψ − E Q ψ ≤ d TV ( P , Q ) .
In practice f f f is the witness direction f ^ \widehat{f} f . The clipped witness f ~ \widetilde{f} f is f f f with its values below u u u raised to u u u and above t t t lowered to t t t , and the ramp ψ \psi ψ rescales it to [ 0 , 1 ] [0,1] [ 0 , 1 ] , a soft classifier, as the witness is large where P P P has more mass. By part (i), the trimmed separation in direction f f f is the largest value of θ ( f ; t , u ) \theta(f;t,u) θ ( f ; t , u ) over the cut points, attained at the cuts of Proposition 2.5 , and once these are fixed θ \theta θ is a difference of two ordinary means. By part (ii), clipping never lowers θ \theta θ and turns it into a positive multiple of E P ψ − E Q ψ − α \mathbb{E}_{P}\psi-\mathbb{E}_{Q}\psi-\alpha E P ψ − E Q ψ − α , which by part (iii) never exceeds d T V ( P , Q ) − α d_{\mathrm{TV}}(P,Q)-\alpha d TV ( P , Q ) − α . So, with the cut points fixed, a test that rejects E P ψ − E Q ψ ≤ α \mathbb{E}_{P}\psi-\mathbb{E}_{Q}\psi\le\alpha E P ψ − E Q ψ ≤ α shows that d T V ( P , Q ) > α d_{\mathrm{TV}}(P,Q)>\alpha d TV ( P , Q ) > α , with no further assumption on the laws.
A betting test
The test of E P ψ − E Q ψ ≤ α \mathbb{E}_{P}\psi-\mathbb{E}_{Q}\psi\le\alpha E P ψ − E Q ψ ≤ α must use data that played no part in choosing ψ \psi ψ , and it should keep its level at every sample size. We obtain both by splitting the samples. Before the data are examined, each sample is put in a random order and cut into three batches, the first quarter (batch 0), the second quarter (batch 1) and the second half (batch 2). Batch 0 is used only for fitting, and batches 1 and 2 are bet on, each with a function fitted on the batches before it. Any number of batches at fractions fixed in advance would do (Section S3.3 of the supplement).
Before betting on batch b ∈ { 1 , 2 } b\in\{1,2\} b ∈ { 1 , 2 } , we solve (10) at level α \alpha α on the batches before it and take the witness direction f ^ b \widehat{f}_b f b . Its cut points are those at which a trimming at level α \alpha α would cut: the smallest ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile t ^ b \widehat{t}_b t b of its values at the X X X ’s of those batches, their ⌈ n < b ( 1 − α ) ⌉ \lceil n_{<b}(1-\alpha)\rceil ⌈ n < b ( 1 − α )⌉ -th order statistic, and the largest α \alpha α -quantile u ^ b \widehat{u}_b u b of its values at their Y Y Y ’s, the ( ⌊ m < b α ⌋ + 1 ) (\lfloor m_{<b}\alpha\rfloor+1) (⌊ m < b α ⌋ + 1 ) -th, where n < b , m < b n_{<b},m_{<b} n < b , m < b are the sizes of the batches before b b b . Each value is computed without the point’s own term in (11) , which pulls the value at a fitting point toward its own sample, and removing it is a cheap leave-one-out correction of the in-sample bias of these quantiles. If t ^ b ≥ u ^ b \widehat{t}_b\ge\widehat{u}_b t b ≥ u b , let ψ b \psi_b ψ b be the ramp of f ^ b \widehat{f}_b f b between u ^ b \widehat{u}_b u b and t ^ b \widehat{t}_b t b ; otherwise batch b b b is skipped.
Within batch b b b each X X X is paired with a block of Y Y Y ’s (or the reverse when the Y Y Y ’s are fewer), and each pair gives Z = ψ b ( X ) − ψ b ( Y ) Z=\psi_b(X)-\psi_b(Y) Z = ψ b ( X ) − ψ b ( Y ) , with the bar being the mean over the block. Given the earlier batches, Z Z Z takes values in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] and has mean E P ψ b − E Q ψ b \mathbb{E}_{P}\psi_b-\mathbb{E}_{Q}\psi_b E P ψ b − E Q ψ b , at most α \alpha α under H 0 , α H_{0,\alpha} H 0 , α by Lemma 4.1(iii). The pairs of both batches, numbered k = 1 , … , N k=1,\ldots,N k = 1 , … , N , number about 3 4 min ( n , m ) \frac{3}{4}\min(n,m) 4 3 min ( n , m ) , fixed before any data are seen. A gambler starts with wealth K 0 = 1 K_0=1 K 0 = 1 and at pair k k k stakes a fraction λ k \lambda_k λ k of the current wealth on Z k Z_k Z k exceeding α \alpha α ,
K k = K k − 1 { 1 + λ k ( Z k − α ) } = ∏ l ≤ k { 1 + λ l ( Z l − α ) } . K_k=K_{k-1}\{1+\lambda_k(Z_k-\alpha)\}=\prod_{l\le k}\{1+\lambda_l(Z_l-\alpha)\}. K k = K k − 1 { 1 + λ k ( Z k − α )} = l ≤ k ∏ { 1 + λ l ( Z l − α )} .
When the fitted ramp has E P ψ b − E Q ψ b > α \mathbb{E}_{P}\psi_b-\mathbb{E}_{Q}\psi_b>\alpha E P ψ b − E Q ψ b > α , as it does below α ∗ \alpha^* α ∗ for large samples (Proposition 4.4 ), the logarithm of the wealth grows linearly in k k k with well-chosen fractions. The test rejects H 0 , α H_{0,\alpha} H 0 , α as soon as the wealth reaches 1 / δ 1/\delta 1/ δ . Each fraction λ k ∈ [ 0 , λ max / ( 1 + α ) ] \lambda_k\in[0,\lambda_{\max}/(1+\alpha)] λ k ∈ [ 0 , λ m a x / ( 1 + α )] , λ max ∈ ( 0 , 1 ] \lambda_{\max}\in(0,1] λ m a x ∈ ( 0 , 1 ] , may depend on earlier batches and pairs only, and the bound keeps the wealth nonnegative. Such fitting rules and fractions are called predictable (Section S3.3 of the supplement). Ours stake more when the earlier pairs vary little, through a running estimate of their variance started from the variance of the ramp on the fitting batches (Equation (22) of the supplement). Algorithm S1 lists the method with every default.
Theorem 4.2 (Validity of the betting test). Let X 1 , … , X n X_1,\ldots,X_n X 1 , … , X n be i.i.d. P P P and Y 1 , … , Y m Y_1,\ldots,Y_m Y 1 , … , Y m i.i.d. Q Q Q , the two samples independent, cut into batches as above. Fix α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) . For every predictable fitting rule and fractions, all sample sizes and every pair with d T V ( P , Q ) ≤ α d_{\mathrm{TV}}(P,Q) \le\alpha d TV ( P , Q ) ≤ α ,
P ( max k ≤ N K k ≥ 1 / δ ∣ batch 0 ) ≤ δ . \mathbb{P}\left(\max_{k\le N} K_k \ge1/\delta\mathrel{\big|} \text{batch 0}\right) \le\delta. P ( k ≤ N max K k ≥ 1/ δ batch 0 ) ≤ δ . Hence rejecting H 0 , α H_{0,\alpha} H 0 , α when max k ≤ N K k ≥ 1 / δ \max_{k\le N} K_k \ge1/\delta max k ≤ N K k ≥ 1/ δ has level at most δ \delta δ for every sample size, uniformly over H 0 , α H_{0,\alpha} H 0 , α , with no assumption on the laws, the kernel or the witness, and a rejection shows that d T V ( P , Q ) > α d_{\mathrm{TV}}(P,Q) > \alpha d TV ( P , Q ) > α .
Given the earlier batches and pairs, E Z k ≤ α \mathbb{E}Z_k \le\alpha E Z k ≤ α by Lemma 4.1(iii), so K k K_k K k is a nonnegative supermartingale started at one, and the maximal inequality of Ville [98 ] bounds the probability that it ever reaches 1 / δ 1/\delta 1/ δ . The test is the two-sample test by betting of Shekhar and Ramdas [87 ] , with the ramp as the predictable function and the null E P ψ − E Q ψ ≤ α \mathbb{E}_P\psi-\mathbb{E}_Q\psi\le\alpha E P ψ − E Q ψ ≤ α in place of P = Q P=Q P = Q . Any function with values in [ 0 , 1 ] [0,1] [ 0 , 1 ] fitted on earlier batches may replace the ramp, such as the predicted labels or probabilities of a classifier; Podkopaev and Ramdas [77 ] bet on classifiers in this way in their predictive tests, and § 7.1 compares such classifiers with the ramp. Betting tests of a tolerance on a difference of means audit fairness ([18 ] ), and Pandeva et al. [74 ] bet with learned functions on nulls defined by operators. Unlike these and Shekhar and Ramdas [87 ] , our test fixes N N N and the batches in advance, and λ k \lambda_k λ k depends on N N N . Our fractions, adapted from Waudby-Smith and Ramdas [100 ] with λ max = 1 2 \lambda_{\max}=\frac{1}{2} λ m a x = 2 1 , are explicit and enter the rates of § 5 . Against a small effect, at δ = 0.05 \delta=0.05 δ = 0.05 and power 0.8, the betting test needs, heuristically, about 1.75 times as many bet-on pairs as a test calibrated by the central limit theorem, and the quarter of each sample used only for fitting comes on top (Section S3.3 of the supplement). Online Newton steps or mixtures over fractions may recover part of this loss.
The lower confidence bound
Running the test of Theorem 4.2 on a grid of levels gives our lower confidence bound on α ∗ \alpha^* α ∗ , the split-sample bound α ^ \widehat{\alpha} α .
Corollary 4.3 (Lower confidence bound for the contamination level). Fix a grid α 1 < ⋯ < α J \alpha_1<\cdots<\alpha_J α 1 < ⋯ < α J in advance, test each H 0 , α j H_{0,\alpha_j} H 0 , α j by Theorem 4.2 on the same batches, with any fitting rule at each level, and read the grid upward, stopping at the first failure:
α ^ : = max { α j : H 0 , α i is rejected for every i ≤ j } , (16) \widehat{\alpha}:=\max\{\alpha_j:H_{0,\alpha_i}\text{ is rejected for every }i\le j\}, \tag*{(16)} α := max { α j : H 0 , α i is rejected for every i ≤ j } , (16) with α ^ = 0 \widehat{\alpha}=0 α = 0 if H 0 , α 1 H_{0,\alpha_1} H 0 , α 1 is not rejected. Then P ( α ^ > d T V ( P , Q ) ) ≤ δ \mathbb{P}(\widehat{\alpha}>d_{\mathrm{TV}}(P,Q))\le\delta P ( α > d TV ( P , Q )) ≤ δ for all sample sizes and every pair ( P , Q ) (P,Q) ( P , Q ) , with no multiplicity correction. Moreover, the probability that H 0 , α H_{0,\alpha} H 0 , α is rejected and d T V ( P , Q ) ≤ α ^ d_{\mathrm{TV}}(P,Q)\le\widehat{\alpha} d TV ( P , Q ) ≤ α is at most δ \delta δ , so a rejected α ^ \widehat{\alpha} α shows d T V ( P , Q ) > α ^ d_{\mathrm{TV}}(P,Q)>\widehat{\alpha} d TV ( P , Q ) > α .
When the grid starts at α 1 = 0 \alpha_1=0 α 1 = 0 , the value α ^ = 0 \widehat{\alpha}=0 α = 0 means either that H 0 , 0 H_{0,0} H 0 , 0 was rejected, which shows d T V ( P , Q ) > 0 d_{\mathrm{TV}}(P,Q)>0 d TV ( P , Q ) > 0 , or that nothing was rejected, and we report which. Only the first true null on the grid can make α ^ \widehat{\alpha} α too large, which is why no correction is needed, whereas bisection could test several true nulls, as the refitted ramp may accept a level and reject a larger one. The grid may be chosen from batch 0 (Remark S3.3 of the supplement). The bound is of the kind of lower bound of Blanchard et al. [12 ] on a mixture proportion, with one function fitted on earlier batches in place of their uniform bound over a class, so no complexity term enters. With a witness fitted at each level it is also consistent, up to the grid.
Proposition 4.4 (Consistency of the lower bound). Let Assumption 2.1 hold, and compute α ^ \widehat{\alpha} α with a kernel fixed before the data are seen, an exact minimizer of (10) at each level, cut points within one rank of the quantiles of § 4.2 (Equation (23) of the supplement), and the fractions of § 4.2 with their running variance estimate floored at a constant v min 2 ∈ ( 0 , 4 ] v_{\min}^2 \in(0,4] v m i n 2 ∈ ( 0 , 4 ] that does not depend on n , m n,m n , m . Let α j ⋆ = max { α j : α j < α ⋆ } \alpha_{j^\star}=\max\{\alpha_j:\alpha_j<\alpha^\star\} α j ⋆ = max { α j : α j < α ⋆ } , or 0 if no level is below α ⋆ \alpha^\star α ⋆ . Then P ( α ^ > α j ⋆ ) ≤ δ \mathbb{P}(\widehat{\alpha}>\alpha_{j^\star})\leq\delta P ( α > α j ⋆ ) ≤ δ for all n , m n,m n , m , and P ( α ^ < α j ⋆ ) → 0 \mathbb{P}(\widehat{\alpha}<\alpha_{j^\star})\to0 P ( α < α j ⋆ ) → 0 as n , m → ∞ n,m\to\infty n , m → ∞ ; if α ⋆ \alpha^\star α ⋆ is not a grid level, also P ( α ^ > α j ⋆ ) → 0 \mathbb{P}(\widehat{\alpha}>\alpha_{j^\star})\to0 P ( α > α j ⋆ ) → 0 . On grids fixed in advance whose mesh tends to zero, with log J = o ( n ∧ m ) \log J=o(n\wedge m) log J = o ( n ∧ m ) , α ^ → α ⋆ \widehat{\alpha}\to\alpha^\star α → α ⋆ in probability.
Below α ⋆ \alpha^\star α ⋆ the excess of the population ramp over α \alpha α is at least D α / ( β Δ ϕ ) D_\alpha/(\beta\Delta_\phi) D α / ( β Δ ϕ ) (Lemma S3.4 of the supplement), once the fitting batches are large the fitted ramp keeps half of this excess, with no density condition, and betting has power tending to one against a fixed excess. Fitting the witness at the level tested matters here. A single witness fitted at α = 0 \alpha=0 α = 0 , the one a test of P = Q P=Q P = Q would use, is valid and cheaper but need not be consistent: Section S3.6 of the supplement gives laws with d T V ( P , Q ) = 0.6 d_{\mathrm{TV}}(P,Q)=0.6 d TV ( P , Q ) = 0.6 on which every ramp of its limit has E P ψ − E Q ψ ≤ 0.4 \mathbb{E}_P\psi-\mathbb{E}_Q\psi\leq0.4 E P ψ − E Q ψ ≤ 0.4 .
The proposition, like the rates of § 5 , assumes a kernel fixed in advance and exact minimizers, and its constants grow like 1 / v min 2 1/v_{\min}^2 1/ v m i n 2 through the bound
λ k ≤ { 2 log ( 1 / δ ) N v min 2 } 1 / 2 \lambda_k \leq\left\{ \frac{2\log(1/\delta)}{Nv_{\min}^2} \right\}^{1/2} λ k ≤ { N v m i n 2 2 log ( 1/ δ ) } 1/2
an artifact of the proof, as the fractions keep the quadratic term of the wealth of order log ( 1 / δ ) \log(1/\delta) log ( 1/ δ ) once the running variance tracks the second moment. Our runs use the floor 10 − 8 10^{-8} 1 0 − 8 , a median-distance bandwidth computed on the fitting batches, and accelerated projected gradient stopped at a relative tolerance (Algorithm S1 of the supplement). Validity is unaffected, but for these runs Proposition 4.4 and Theorems 5.7 and 5.11 describe the trend only.
Rates and optimality
The error α ⋆ − α ^ \alpha^\star-\widehat{\alpha} α ⋆ − α is parametric on a grid of matching mesh when a function of the RKHS separates the two contaminations, and no valid lower bound does better over such pairs (§ 5.3 ). When they touch, a margin argument guarantees slower rates that depend on the kernel, polynomial for Sobolev kernels and logarithmic for the Gaussian kernel (§ 5.2 and § 5.4 ). The excess of the bound’s own ramp recovers the parametric rate up to logarithmic factors on the line with the Laplace kernel, for densities that cross once and under a condition on their likelihood ratio (Theorem 5.11 ).
A margin condition
A rate needs a condition on the pair, and we use one, on how fast the regions separate below α ⋆ \alpha^\star α ⋆ .
Assumption 5.1 (Polynomial margin). There are constants c 0 > 0 c_0>0 c 0 > 0 and γ ≥ 1 \gamma\geq1 γ ≥ 1 such that D α ⋆ − ϵ ( P , Q ) ≥ c 0 ϵ γ D_{\alpha^\star-\epsilon}(P,Q)\geq c_0\epsilon^\gamma D α ⋆ − ϵ ( P , Q ) ≥ c 0 ϵ γ for all ϵ ∈ [ 0 , α ⋆ ] \epsilon\in[0,\alpha^\star] ϵ ∈ [ 0 , α ⋆ ] .
Validity and consistency hold for every pair, but by § 2.4 no rate holds uniformly over all pairs, and Assumption 5.1 restricts the pair only through its path. It suffices for ϵ ≤ ϵ 0 \epsilon\leq\epsilon_0 ϵ ≤ ϵ 0 , as the path is nonincreasing, with c 0 ( ϵ 0 / α ⋆ ) γ c_0(\epsilon_0/\alpha^\star)^\gamma c 0 ( ϵ 0 / α ⋆ ) γ in place of c 0 c_0 c 0 . A margin of some form always exists when 0 < α ⋆ < 1 0<\alpha^\star<1 0 < α ⋆ < 1 (Lemma S4.1 of the supplement), Proposition S4.8 of the supplement gives the rate under any margin, and the assumption adds the polynomial speed. Exponents below 1 are excluded, because the rescaled path ( 1 − α ) D α ( P , Q ) (1-\alpha)D_\alpha(P,Q) ( 1 − α ) D α ( P , Q ) is convex (Lemma S4.2 of the supplement), so the path leaves zero at most linearly, with a kink (γ = 1 \gamma=1 γ = 1 ) or tangentially (γ > 1 \gamma>1 γ > 1 ). The linear case holds when a function of the RKHS separates the two contaminations (§ 5.2 ) and, for laws with continuous densities and a continuous kernel, only if they are apart. In the following example the separating function takes three values.
Example 5.2 (Separated contamination). Let (A1) and (A2) of Assumption 2.1 hold. Let R R R , P 0 P_0 P 0 and Q 0 Q_0 Q 0 be probability measures concentrated on pairwise disjoint measurable sets S R S_R S R , S P S_P S P and S Q S_Q S Q , let α ⋆ ∈ ( 0 , 1 ) \alpha^\star\in(0,1) α ⋆ ∈ ( 0 , 1 ) , and put P = ( 1 − α ⋆ ) R + α ⋆ P 0 P=(1-\alpha^\star)R+\alpha^\star P_0 P = ( 1 − α ⋆ ) R + α ⋆ P 0 and Q = ( 1 − α ⋆ ) R + α ⋆ Q 0 Q=(1-\alpha^\star)R+\alpha^\star Q_0 Q = ( 1 − α ⋆ ) R + α ⋆ Q 0 . Then d T V ( P , Q ) = α ⋆ d_{\mathrm{TV}}(P,Q)=\alpha^\star d TV ( P , Q ) = α ⋆ . If moreover some f ∈ H f\in\mathcal{H} f ∈ H takes the value 0 on S R S_R S R , 1 on S P S_P S P and − 1 -1 − 1 on S Q S_Q S Q , then for every α ∈ [ 0 , α ⋆ ] \alpha\in[0,\alpha^\star] α ∈ [ 0 , α ⋆ ] ,
D α ( P , Q ) ≥ 2 ( α ⋆ − α ) ( 1 − α ) ∥ f ∥ H ≥ 2 ( α ⋆ − α ) ∥ f ∥ H , D_\alpha(P,Q)\ge\frac{2(\alpha^\star-\alpha)}{(1-\alpha)\lVert f\rVert_{\mathcal{H}}}\ge\frac{2(\alpha^\star-\alpha)}{\lVert f\rVert_{\mathcal{H}}}, D α ( P , Q ) ≥ ( 1 − α ) ∥ f ∥ H 2 ( α ⋆ − α ) ≥ ∥ f ∥ H 2 ( α ⋆ − α ) , so Assumption 5.1 holds with γ = 1 \gamma=1 γ = 1 and c 0 = 2 / ∥ f ∥ H c_0=2/\lVert f\rVert_{\mathcal{H}} c 0 = 2/ ∥ f ∥ H .
Such an f f f exists for finite sets and a strictly positive definite kernel, as in § 2 , and for Matérn kernels when the sets are bounded and apart (Section S4.1 of the supplement).
Linear and slower margins
Whether the margin is linear depends on whether the contaminations touch. Write P = P ∧ Q + α ⋆ P 0 P=P\wedge Q+\alpha^\star P_0 P = P ∧ Q + α ⋆ P 0 and Q = P ∧ Q + α ⋆ Q 0 Q=P\wedge Q+\alpha^\star Q_0 Q = P ∧ Q + α ⋆ Q 0 , where the contaminations P 0 P_0 P 0 and Q 0 Q_0 Q 0 are the probability measures with densities ( p − q ) + / α ⋆ (p-q)_+/\alpha^\star ( p − q ) + / α ⋆ and ( q − p ) + / α ⋆ (q-p)_+/\alpha^\star ( q − p ) + / α ⋆ .
Proposition 5.3 (Touching contaminations). Let (A1) and (A2) of Assumption 2.1 hold and let 0 < α ⋆ < 1 0<\alpha^\star<1 0 < α ⋆ < 1 , let X \mathcal{X} X be a topological space with its Borel sets, and let ϕ \phi ϕ be continuous, as it is for a continuous kernel. Then
lim ϵ ↓ 0 ( 1 − α ⋆ + ϵ ) D α ⋆ − ϵ ( P , Q ) ϵ ≤ inf { ∥ ϕ ( x ) − ϕ ( y ) ∥ H : x ∈ supp P 0 , y ∈ supp Q 0 } . \lim_{\epsilon\downarrow0}\frac{(1-\alpha^\star+\epsilon)D_{\alpha^\star-\epsilon}(P,Q)}{\epsilon}\le\inf\left\{\lVert\phi(x)-\phi(y)\rVert_{\mathcal{H}}:x\in\operatorname{supp}P_0,\ y\in\operatorname{supp}Q_0\right\}. ϵ ↓ 0 lim ϵ ( 1 − α ⋆ + ϵ ) D α ⋆ − ϵ ( P , Q ) ≤ inf { ∥ ϕ ( x ) − ϕ ( y ) ∥ H : x ∈ supp P 0 , y ∈ supp Q 0 } . If the supports of P 0 P_0 P 0 and Q 0 Q_0 Q 0 meet, the limit is 0 and Assumption 5.1 fails with γ = 1 \gamma=1 γ = 1 . They meet when X \mathcal{X} X is a connected open subset of R d \mathbb{R}^d R d and P ≠ Q P\ne Q P = Q have continuous Lebesgue densities p , q p,q p , q such that { p = q } \{p=q\} { p = q } has empty interior, as for any two distinct finite mixtures of nondegenerate Gaussian laws.
The limit exists by Lemma S4.2(ii) of the supplement. At the level α ⋆ − ϵ \alpha^\star-\epsilon α ⋆ − ϵ one may keep P ∧ Q P\wedge Q P ∧ Q and add mass ϵ \epsilon ϵ of P 0 P_0 P 0 near a point x x x to the first law and of Q 0 Q_0 Q 0 near y y y to the second, whose embeddings then differ by about ϵ { ϕ ( x ) − ϕ ( y ) } \epsilon\{\phi(x)-\phi(y)\} ϵ { ϕ ( x ) − ϕ ( y )} . With continuous densities and kernel, a linear margin thus needs an open set on which p = q p=q p = q that separates { p > q } \{p>q\} { p > q } from { q > p } \{q>p\} { q > p } , and for a Matérn kernel and P 0 P_0 P 0 with compact support disjoint supports of P 0 P_0 P 0 and Q 0 Q_0 Q 0 also suffice (Proposition S4.5 of the supplement). Overlapping smooth laws, such as the overlap and shift designs of § 7 , fall outside the linear case.
When the contaminations touch, the path leaves zero tangentially, at a speed set by how well the RKHS approximates the indicator of A = { p > q } A=\{p>q\} A = { p > q } , with p , q p,q p , q densities with respect to P + Q P+Q P + Q . For measurable f f f with 0 ≤ f ≤ 1 0\le f\le1 0 ≤ f ≤ 1 let err ( f ) = ∫ ∣ 1 A − f ∣ d ∣ P − Q ∣ \operatorname{err}(f)=\int\lvert1_A-f\rvert\,d\lvert P-Q\rvert err ( f ) = ∫ ∣ 1 A − f ∣ d ∣ P − Q ∣ , where ∣ P − Q ∣ \lvert P-Q\rvert ∣ P − Q ∣ is the total variation measure of P − Q P-Q P − Q , so that err ( f ) = α ⋆ − ( E P f − E Q f ) \operatorname{err}(f)=\alpha^\star-(\mathbb{E}_P f-\mathbb{E}_Q f) err ( f ) = α ⋆ − ( E P f − E Q f ) , and err ( f ) / 2 \operatorname{err}(f)/2 err ( f ) /2 is the excess risk of the randomized classifier that assigns x x x to P P P with probability f ( x ) f(x) f ( x ) , in the balanced problem whose Bayes classifier is 1 A 1_A 1 A .
Proposition 5.4 (Margin from an approximate witness). Let (A1) and (A2) hold and let 0 < α ⋆ < 1 0<\alpha^\star<1 0 < α ⋆ < 1 . For every f ∈ H f\in\mathcal{H} f ∈ H with 0 ≤ f ≤ 1 0\le f\le1 0 ≤ f ≤ 1 and f ≠ 0 f\ne0 f = 0 , and every ϵ ∈ [ 0 , α ⋆ ] \epsilon\in[0,\alpha^\star] ϵ ∈ [ 0 , α ⋆ ] ,
D α ⋆ − ϵ ( P , Q ) ≥ ϵ − err ( f ) ( 1 − α ⋆ + ϵ ) ∥ f ∥ H . D_{\alpha^\star-\epsilon}(P,Q)\ge\frac{\epsilon-\operatorname{err}(f)}{(1-\alpha^\star+\epsilon)\lVert f\rVert_{\mathcal{H}}}. D α ⋆ − ϵ ( P , Q ) ≥ ( 1 − α ⋆ + ϵ ) ∥ f ∥ H ϵ − err ( f ) . Hence D α ⋆ − ϵ ( P , Q ) ≥ ϵ / { 2 W ( ϵ / 2 ) } D_{\alpha^\star-\epsilon}(P,Q)\ge\epsilon/\{2\mathcal{W}(\epsilon/2)\} D α ⋆ − ϵ ( P , Q ) ≥ ϵ / { 2 W ( ϵ /2 )} , where W ( t ) = inf { ∥ f ∥ H : f ∈ H , 0 ≤ f ≤ 1 , err ( f ) ≤ t } \mathcal{W}(t)=\inf\{\lVert f\rVert_{\mathcal{H}}:f\in\mathcal{H},\ 0\le f\le1,\ \operatorname{err}(f)\le t\} W ( t ) = inf {∥ f ∥ H : f ∈ H , 0 ≤ f ≤ 1 , err ( f ) ≤ t } .
In particular, if some f ∈ H f \in\mathcal{H} f ∈ H with 0 ≤ f ≤ 1 0 \le f \le1 0 ≤ f ≤ 1 equals 1 1 1 P 0 P_0 P 0 -almost surely and 0 0 0 Q 0 Q_0 Q 0 -almost surely, then err ( f ) = 0 \operatorname{err}(f)=0 err ( f ) = 0 , and Assumption 5.1 holds with γ = 1 \gamma=1 γ = 1 and c 0 = 1 / ∥ f ∥ H c_0=1/\lVert f\rVert_{\mathcal{H}} c 0 = 1/ ∥ f ∥ H , since 1 − α ⋆ + ϵ ≤ 1 1-\alpha^\star+\epsilon\le1 1 − α ⋆ + ϵ ≤ 1 . This is what we mean by a function of the RKHS separating the two contaminations; Example 5.2 gives the constant 2 / ∥ f ∥ H 2/\lVert f\rVert_{\mathcal{H}} 2/ ∥ f ∥ H for an f ∈ H f\in\mathcal{H} f ∈ H equal to 0 on the common component, 1 on one contamination and − 1 -1 − 1 on the other.
A trimming at level α \alpha α , before it is renormalized, is a part P ′ ≤ P P'\le P P ′ ≤ P of mass 1 − α 1-\alpha 1 − α , so it lowers the integral of a [ 0 , 1 ] [0,1] [ 0 , 1 ] -valued function under P P P by at most α \alpha α and does not raise it under Q Q Q , and the reproducing property turns the remaining gap into a lower bound on ( 1 − α ) D α (1-\alpha)D_\alpha ( 1 − α ) D α .
The function W W W is the approximation error behind the rates of kernel classifiers (Smale and Zhou, [88 ] ; Steinwart and Christmann, [91 ] ): the closer α \alpha α is to α ⋆ \alpha^\star α ⋆ , the sharper f f f must be across { p = q } \{p=q\} { p = q } , and the smoother the kernel, the more this costs in H \mathcal{H} H . For a single transversal crossing on the line, Sobolev and Gaussian kernels make this quantitative.
Proposition 5.5 (Sobolev kernels). Let X = R \mathcal{X}=\mathbb{R} X = R and k ( x , y ) = k 0 ( x − y ) k(x,y)=k_0(x-y) k ( x , y ) = k 0 ( x − y ) , with k 0 k_0 k 0 continuous and integrable and c ( 1 + ξ 2 ) − s ≤ k ^ 0 ( ξ ) ≤ C ( 1 + ξ 2 ) − s c(1+\xi^2)^{-s}\le\widehat{k}_0(\xi)\le C(1+\xi^2)^{-s} c ( 1 + ξ 2 ) − s ≤ k 0 ( ξ ) ≤ C ( 1 + ξ 2 ) − s for some s > 1 / 2 s>1/2 s > 1/2 , as for the Laplace kernel, with s = 1 s=1 s = 1 , and the Matérn kernel of smoothness s − 1 / 2 s-1/2 s − 1/2 . Let P , Q P,Q P , Q have densities p , q p,q p , q that are continuous near a point x 0 x_0 x 0 , with p ≥ q p\ge q p ≥ q almost everywhere on ( x 0 , ∞ ) (x_0,\infty) ( x 0 , ∞ ) and p ≤ q p\le q p ≤ q almost everywhere on ( − ∞ , x 0 ) (-\infty,x_0) ( − ∞ , x 0 ) , p − q p-q p − q differentiable at x 0 x_0 x 0 with ( p − q ) ′ ( x 0 ) > 0 (p-q)'(x_0)>0 ( p − q ) ′ ( x 0 ) > 0 , p ( x 0 ) > 0 p(x_0)>0 p ( x 0 ) > 0 , and ∣ P − Q ∣ ( { x : ∣ x − x 0 ∣ > t } ) ≤ C ′ e − t / C ′ \lvert P-Q\rvert(\{x:\lvert x-x_0\rvert>t\})\le C'e^{-t/C'} ∣ P − Q ∣ ({ x : ∣ x − x 0 ∣ > t }) ≤ C ′ e − t / C ′ for some C ′ C' C ′ and all t > 0 t>0 t > 0 . Then there are 0 < c 1 ≤ c 2 0<c_1\le c_2 0 < c 1 ≤ c 2 such that for all small ϵ > 0 \epsilon>0 ϵ > 0 ,
c 1 ϵ ( 2 s + 3 ) / 4 ≤ D α ⋆ − ϵ ( P , Q ) ≤ c 2 ϵ ( 2 s + 3 ) / 4 . c_1\epsilon^{(2s+3)/4}\le D_{\alpha^\star-\epsilon}(P,Q)\le c_2\epsilon^{(2s+3)/4}. c 1 ϵ ( 2 s + 3 ) /4 ≤ D α ⋆ − ϵ ( P , Q ) ≤ c 2 ϵ ( 2 s + 3 ) /4 . Assumption 5.1 therefore holds with γ = ( 2 s + 3 ) / 4 \gamma=(2s+3)/4 γ = ( 2 s + 3 ) /4 and with no smaller exponent, γ = 5 / 4 \gamma=5/4 γ = 5/4 for the Laplace kernel. For the lower bound, an indicator smoothed at width w w w has err ( f ) \operatorname{err}(f) err ( f ) of order w 2 w^2 w 2 , as ∣ p − q ∣ \lvert p-q\rvert ∣ p − q ∣ vanishes linearly at x 0 x_0 x 0 , and ∥ f ∥ H \lVert f\rVert_{\mathcal{H}} ∥ f ∥ H of order w 1 / 2 − s w^{1/2-s} w 1/2 − s , and w ≍ ϵ 1 / 2 w\asymp\epsilon^{1/2} w ≍ ϵ 1/2 balances the two, while the upper bound comes from explicit trimmings whose difference has vanishing moments near x 0 x_0 x 0 . For s > d / 2 s>d/2 s > d /2 the lower bound extends to R d \mathbb{R}^d R d when ∣ P − Q ∣ \lvert P-Q\rvert ∣ P − Q ∣ has compact support and { p > q } \{p>q\} { p > q } has a smooth compact boundary, with the exponent 1 + ( 2 s − 1 ) / { 2 ( r + 1 ) } 1+(2s-1)/\{2(r+1)\} 1 + ( 2 s − 1 ) / { 2 ( r + 1 )} when p − q p-q p − q vanishes at least to order r r r there (Theorem S4.10 and Corollary S4.11 of the supplement), which is sharp on the line, at least for s < 3 / 2 s<3/2 s < 3/2 , when it vanishes exactly to order r r r (Proposition S4.14 of the supplement).
Proposition 5.6 (Gaussian kernel). Let P , Q P,Q P , Q satisfy the hypotheses of Proposition 5.5 on the laws, put ℓ 0 = ( p − q ) ′ ( x 0 ) \ell_0=(p-q)'(x_0) ℓ 0 = ( p − q ) ′ ( x 0 ) , the slope of p − q p-q p − q at x 0 x_0 x 0 , and let k ( x , y ) = exp { − ( x − y ) 2 / ( 2 σ 2 ) } k(x,y)=\exp\{-(x-y)^2/(2\sigma^2)\} k ( x , y ) = exp { − ( x − y ) 2 / ( 2 σ 2 )} on R \mathbb{R} R . For every c > π 2 σ 2 ℓ 0 / 8 c>\pi^2\sigma^2\ell_0/8 c > π 2 σ 2 ℓ 0 /8 and every j ≥ 1 j\ge1 j ≥ 1 there are ϵ 0 > 0 \epsilon_0>0 ϵ 0 > 0 and C j < ∞ C_j<\infty C j < ∞ such that, for 0 < ϵ ≤ ϵ 0 0<\epsilon\le\epsilon_0 0 < ϵ ≤ ϵ 0 ,
exp ( − c / ϵ ) ≤ D α ⋆ − ϵ ( P , Q ) ≤ C j ϵ j . \exp(-c/\epsilon)\le D_{\alpha^\star-\epsilon}(P,Q)\le C_j\epsilon^j. exp ( − c / ϵ ) ≤ D α ⋆ − ϵ ( P , Q ) ≤ C j ϵ j .
With the Gaussian kernel the path is thus flatter at α ⋆ \alpha^\star α ⋆ than every power, yet a margin of exponential type holds. The approximation is an indicator smoothed by a band-limited density, which lies in the Gaussian RKHS (Steinwart et al., [90 ] ) with a norm that grows like exp ( c / ϵ ) \exp(c/\epsilon) exp ( c / ϵ ) .
The rate, and when it is optimal
Under the margin the error of the bound is at most of order ( n ∧ m ) − 1 / ( 2 γ ) (n\wedge m)^{-1/(2\gamma)} ( n ∧ m ) − 1/ ( 2 γ ) , up to the mesh of its grid.
Theorem 5.7 (Rate of the split-sample lower bound). Let Assumptions 2.1 and 5.1 hold, let α ⋆ < 1 \alpha^\star<1 α ⋆ < 1 , and compute α ^ \widehat{\alpha} α at level δ \delta δ as in Proposition 4.4 , with the batches of § 4.2 , λ max = 1 2 \lambda_{\max}=\frac{1}{2} λ m a x = 2 1 and the fractions (S3.3) of the supplement with initial variance v 0 2 ≤ 4 v_0^2\le4 v 0 2 ≤ 4 , on a grid
of J J J levels fixed in advance whose mesh below α ⋆ \alpha^\star α ⋆ is Δ G \Delta_{\mathcal G} Δ G . If n ∧ m ≥ 10 n \wedge m \ge10 n ∧ m ≥ 10 , then for every η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) , with probability at least 1 − δ − η 1-\delta-\eta 1 − δ − η ,
α ⋆ − Δ G − O ( ( κ c 0 ( 1 − α ⋆ ) v min 2 1 + log ( 1 / δ ) + log ( J / η ) n ∧ m ) 1 / γ ) ≤ α ^ ≤ α ⋆ , \alpha^\star-\Delta_{\mathcal G}-O\left(\left(\frac{\kappa}{c_0(1-\alpha^\star)v_{\min}^2}\sqrt{\frac{1+\log(1/\delta)+\log(J/\eta)}{n\wedge m}}\right)^{1/\gamma}\right)\le\widehat{\alpha}\le\alpha^\star, α ⋆ − Δ G − O ( c 0 ( 1 − α ⋆ ) v m i n 2 κ n ∧ m 1 + log ( 1/ δ ) + log ( J / η ) ) 1/ γ ≤ α ≤ α ⋆ ,
with an absolute constant in the O O O .
This is parts (ii) and (iii) of Theorem S4.3 of the supplement, which gives the constants. Below α ⋆ \alpha^\star α ⋆ , on an event of high probability, the excess E P ψ − E Q ψ − α \mathbb{E}_P\psi-\mathbb{E}_Q\psi-\alpha E P ψ − E Q ψ − α of the fitted ramps stays above a multiple of c 0 ( α ⋆ − α ) γ c_0(\alpha^\star-\alpha)^\gamma c 0 ( α ⋆ − α ) γ as soon as this exceeds a multiple of ( n ∧ m ) − 1 / 2 (n\wedge m)^{-1/2} ( n ∧ m ) − 1/2 , and betting then rejects. Equating the two gives the rate, and the split adds the mesh and the factor 1 / v min 2 1/v_{\min}^2 1/ v m i n 2 . Part (i) of that theorem removes log J \log J log J when consecutive levels are far apart compared with the rate, as on the grid of Corollary 5.9 below. The constants are far from sharp.
When the regions separate linearly, no lower confidence bound improves the rate ( n ∧ m ) − 1 / 2 (n\wedge m)^{-1/2} ( n ∧ m ) − 1/2 , by the two-point method of Le Cam [51 ] : pairs whose total variations differ by h h h of order n − 1 / 2 n^{-1/2} n − 1/2 cannot be told apart, and a bound valid at the pair with the smaller value must often fall short at the other.
Proposition 5.8 (Two-point lower bound). Let R R R , P 0 P_0 P 0 and Q 0 Q_0 Q 0 be probability measures on X \mathcal{X} X concentrated on pairwise disjoint measurable sets. For a ∈ ( 0 , 1 ) a\in(0,1) a ∈ ( 0 , 1 ) and h ∈ [ 0 , 1 − a ) h\in[0,1-a) h ∈ [ 0 , 1 − a ) put P a = ( 1 − a ) R + a P 0 P_a=(1-a)R+aP_0 P a = ( 1 − a ) R + a P 0 , Q a = ( 1 − a ) R + a Q 0 Q_a=(1-a)R+aQ_0 Q a = ( 1 − a ) R + a Q 0 and
P a , h = ( 1 − a − h ) R + ( a + h ) P 0 , Q a , h = ( 1 − a − h ) R + ( a + h ) Q 0 . P_{a,h}=(1-a-h)R+(a+h)P_0,\qquad Q_{a,h}=(1-a-h)R+(a+h)Q_0. P a , h = ( 1 − a − h ) R + ( a + h ) P 0 , Q a , h = ( 1 − a − h ) R + ( a + h ) Q 0 . Then d T V ( P a , Q a ) = a d_{\mathrm{TV}}(P_a,Q_a)=a d TV ( P a , Q a ) = a and d T V ( P a , h , Q a ) = d T V ( P a , Q a , h ) = a + h d_{\mathrm{TV}}(P_{a,h},Q_a)=d_{\mathrm{TV}}(P_a,Q_{a,h})=a+h d TV ( P a , h , Q a ) = d TV ( P a , Q a , h ) = a + h . Let α ~ \widetilde{\alpha} α be any measurable function of the two samples and of an independent randomization such that P P a , Q a ( α ~ > a ) ≤ δ \mathbb{P}_{P_a,Q_a}(\widetilde{\alpha}>a)\le\delta P P a , Q a ( α > a ) ≤ δ . Then for every h ∈ ( 0 , 1 − a ) h\in(0,1-a) h ∈ ( 0 , 1 − a ) ,
P P a , h , Q a ( d T V ( P a , h , Q a ) − α ~ ≥ h ) ≥ 1 − δ − h n 2 a ( 1 − a ) , \mathbb{P}_{P_{a,h},Q_a}\left(d_{\mathrm{TV}}(P_{a,h},Q_a)-\widetilde{\alpha}\ge h\right)\ge1-\delta-h\sqrt{\frac{n}{2a(1-a)}}, P P a , h , Q a ( d TV ( P a , h , Q a ) − α ≥ h ) ≥ 1 − δ − h 2 a ( 1 − a ) n , P P a , Q a , h ( d T V ( P a , Q a , h ) − α ~ ≥ h ) ≥ 1 − δ − h m 2 a ( 1 − a ) . \mathbb{P}_{P_a,Q_{a,h}}\left(d_{\mathrm{TV}}(P_a,Q_{a,h})-\widetilde{\alpha}\ge h\right)\ge1-\delta-h\sqrt{\frac{m}{2a(1-a)}}. P P a , Q a , h ( d TV ( P a , Q a , h ) − α ≥ h ) ≥ 1 − δ − h 2 a ( 1 − a ) m . With h = 1 2 ( 1 − δ ) { 2 a ( 1 − a ) / ( n ∧ m ) } 1 / 2 h=\frac{1}{2}(1-\delta)\{2a(1-a)/(n\wedge m)\}^{1/2} h = 2 1 ( 1 − δ ) { 2 a ( 1 − a ) / ( n ∧ m ) } 1/2 , when this h h h is below 1 − a 1-a 1 − a , a lower confidence bound valid at ( P a , Q a ) (P_a,Q_a) ( P a , Q a ) falls short by at least h h h , with probability at least ( 1 − δ ) / 2 (1-\delta)/2 ( 1 − δ ) /2 , at the pair that perturbs the law of the smaller sample, and the proof bounds a χ 2 \chi^2 χ 2 -divergence (Section S4.13 of the supplement). The perturbed pairs satisfy Assumption 5.1 with γ = 1 \gamma=1 γ = 1 and c 0 = 1 / ∥ f ∥ H c_0=1/\|f\|_{\mathcal H} c 0 = 1/∥ f ∥ H , for f f f as in Example 5.2 (Lemma S4.29 of the supplement), the class on which Theorem 5.7 gives the parametric rate.
Corollary 5.9 (Minimax rate). Let Assumption 2.1 hold, suppose that X \mathcal{X} X contains three points x 1 , x 2 , x 3 x_1,x_2,x_3 x 1 , x 2 , x 3 and that some f ∈ H f\in\mathcal{H} f ∈ H has f ( x 1 ) = 1 f(x_1)=1 f ( x 1 ) = 1 , f ( x 2 ) = 0 f(x_2)=0 f ( x 2 ) = 0 and f ( x 3 ) = − 1 f(x_3)=-1 f ( x 3 ) = − 1 , as for a strictly positive definite kernel. Let 0 < a 0 < a 1 < 1 0<a_0<a_1<1 0 < a 0 < a 1 < 1 and 0 < c 0 ≤ 1 / ∥ f ∥ H 0<c_0\le1/\|f\|_{\mathcal H} 0 < c 0 ≤ 1/∥ f ∥ H , let M \mathcal{M} M be the set of pairs ( P , Q ) (P,Q) ( P , Q ) with a 0 ≤ d T V ( P , Q ) ≤ a 1 a_0\le d_{\mathrm{TV}}(P,Q)\le a_1 a 0 ≤ d TV ( P , Q ) ≤ a 1 that satisfy Assumption 5.1 with γ = 1 \gamma=1 γ = 1 and this c 0 c_0 c 0 , and fix δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) .
(i) Let c l o = 1 2 ( 1 − δ ) { 2 a 0 ( 1 − a 0 ) } 1 / 2 c_{\mathrm{lo}}=\frac{1}{2}(1-\delta)\{2a_0(1-a_0)\}^{1/2} c lo = 2 1 ( 1 − δ ) { 2 a 0 ( 1 − a 0 ) } 1/2 . If n ∧ m ≥ c l o 2 / ( a 1 − a 0 ) 2 n\wedge m\ge c_{\mathrm{lo}}^2/(a_1-a_0)^2 n ∧ m ≥ c lo 2 / ( a 1 − a 0 ) 2 , every α ~ \widetilde{\alpha} α with sup M P P , Q ( α ~ > d T V ( P , Q ) ) ≤ δ \sup_{\mathcal{M}}\mathbb{P}_{P,Q}(\widetilde{\alpha}>d_{\mathrm{TV}}(P,Q))\le\delta sup M P P , Q ( α > d TV ( P , Q )) ≤ δ has
sup ( P , Q ) ∈ M P P , Q ( d T V ( P , Q ) − α ~ ≥ c l o ( n ∧ m ) − 1 / 2 ) ≥ 1 − δ 2 . \sup_{(P,Q)\in\mathcal{M}}\mathbb{P}_{P,Q}\left(d_{\mathrm{TV}}(P,Q)-\widetilde{\alpha}\ge c_{\mathrm{lo}}(n\wedge m)^{-1/2}\right)\ge\frac{1-\delta}{2}. ( P , Q ) ∈ M sup P P , Q ( d TV ( P , Q ) − α ≥ c lo ( n ∧ m ) − 1/2 ) ≥ 2 1 − δ .
(ii) For every η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) there are C C C and n 1 n_1 n 1 , depending only on κ \kappa κ , Δ ϕ \Delta_\phi Δ ϕ , c 0 c_0 c 0 , a 1 a_1 a 1 , v min 2 v_{\min}^2 v m i n 2 , δ \delta δ and $\eta, such that for n ∧ m ≥ max ( n 1 , 10 ) n \wedge m \geq\max(n_1,10) n ∧ m ≥ max ( n 1 , 10 ) the split-sample bound of Theorem 5.7 at level δ \delta δ , on the grid { j ( n ∧ m ) − 1 / 2 : j = 1 , 2 , … } ∩ ( 0 , 1 ) \{j(n \wedge m)^{-1/2}:j=1,2,\ldots\}\cap(0,1) { j ( n ∧ m ) − 1/2 : j = 1 , 2 , … } ∩ ( 0 , 1 ) , satisfies sup M P P , Q ( α ^ > d T V ( P , Q ) ) ≤ δ \sup_{\mathcal{M}}\mathbb{P}_{P,Q}(\widehat{\alpha} > d_{\mathrm{TV}}(P,Q)) \leq\delta sup M P P , Q ( α > d TV ( P , Q )) ≤ δ and sup M P P , Q ( d T V ( P , Q ) − α ^ > C ( n ∧ m ) − 1 / 2 ) ≤ η \sup_{\mathcal{M}}\mathbb{P}_{P,Q}(d_{\mathrm{TV}}(P,Q)-\widehat{\alpha} > C(n \wedge m)^{-1/2}) \leq\eta sup M P P , Q ( d TV ( P , Q ) − α > C ( n ∧ m ) − 1/2 ) ≤ η .
Over M \mathcal{M} M , on this grid, ( n ∧ m ) − 1 / 2 (n \wedge m)^{-1/2} ( n ∧ m ) − 1/2 is thus the minimax rate for lower confidence bounds valid at level δ \delta δ , and the split-sample bound attains it, and with η < ( 1 − δ ) / 2 \eta< (1-\delta)/2 η < ( 1 − δ ) /2 the two parts concern the same quantile of the error. The class contains every pair with α ⋆ ∈ [ a 0 , a 1 ] \alpha^\star\in[a_0,a_1] α ⋆ ∈ [ a 0 , a 1 ] whose rescaled path leaves zero with slope at least c 0 c_0 c 0 (Lemma S4.2(ii) of the supplement), and for a continuous kernel its contaminations are apart (Proposition 5.3 ). Part (i) asks validity only on M \mathcal{M} M , so it also covers procedures that use the margin. Nothing is said about γ > 1 \gamma> 1 γ > 1 , and minimax rates over a margin class are open. Minimax rates for the L 1 L_1 L 1 distance between discrete laws ([97 , 45 ] ) and for kernel two-sample tests ([58 , 83 ] ) concern other problems.
Mixture proportion estimation shows the same dichotomy. Its rate can be arbitrarily slow without a condition on the laws ([12 ] ), and is n − 1 / 2 n^{-1/2} n − 1/2 when the support of the component is not contained in that of the rest ([85 ] ), a condition slightly stronger than the irreducibility that identifies the components ([13 ] ). Ramaswamy et al. [79 ] estimated the proportion as the point where an RKHS distance between a reweighted embedding and a convex hull of embeddings, a convex function, leaves zero, linearly under a separability condition. The linear margin is the two-sample counterpart of separability, and touching contaminations that of a proportion with no anchor set.
Touching contaminations, and why the margin is pessimistic
Under the hypotheses of Proposition 5.5 , Theorem 5.7 guarantees at least the rate ( n ∧ m ) − 2 / ( 2 s + 3 ) (n \wedge m)^{-2/(2s+3)} ( n ∧ m ) − 2/ ( 2 s + 3 ) , ( n ∧ m ) − 2 / 5 (n \wedge m)^{-2/5} ( n ∧ m ) − 2/5 for the Laplace kernel, which Theorem 5.11 improves to ( n ∧ m ) − 1 / 2 (n \wedge m)^{-1/2} ( n ∧ m ) − 1/2 , up to powers of log ( n ∨ m ) \log(n \vee m) log ( n ∨ m ) , under one more condition, for samples of comparable size. Under those of Proposition 5.6 the margin guarantees at least the logarithmic rate c / log ( n ∧ m ) c/\log(n \wedge m) c / log ( n ∧ m ) for every c > π 2 σ 2 ℓ 0 / 4 c > \pi^2\sigma^2\ell_0/4 c > π 2 σ 2 ℓ 0 /4 , on grids with at most ( n ∧ m ) b (n \wedge m)^b ( n ∧ m ) b levels for a fixed b b b (Proposition S4.8 of the supplement), in both cases up to the mesh. For the split-sample bound we prove no converse.
For the analytic baseline run with the larger threshold τ S \tau^{\mathrm{S}} τ S the margin rate cannot be improved for Sobolev kernels, and with the Gaussian kernel its error is not O ( ( n ∧ m ) − a ) O((n \wedge m)^{-a}) O (( n ∧ m ) − a ) for any a > 0 a > 0 a > 0 (Proposition S4.16 of the supplement); for τ P \tau^{\mathrm{P}} τ P no converse is known.
The margin is pessimistic. Theorem 5.7 bounds the excess E P ψ − E Q ψ − α \mathbb{E}_{P}\psi-\mathbb{E}_{Q}\psi-\alpha E P ψ − E Q ψ − α of the population ramp from below by D α / ( β Δ ϕ ) D_{\alpha}/(\beta\Delta_{\phi}) D α / ( β Δ ϕ ) (Lemma S3.4 of the supplement), replacing the gap t ⋆ − u ⋆ t^{\star}-u^{\star} t ⋆ − u ⋆ between its cut points by its largest value Δ ϕ \Delta_{\phi} Δ ϕ . The gap is a slope of the rescaled path ( 1 − α ) D α (1-\alpha)D_{\alpha} ( 1 − α ) D α , the distance between the parts of mass 1 − α 1-\alpha 1 − α that the trimmings keep, which is convex in α \alpha α (Lemma S4.2 of the supplement). The line through the point of the rescaled path at α \alpha α with slope − ( t ⋆ − u ⋆ ) -(t^{\star}-u^{\star}) − ( t ⋆ − u ⋆ ) supports it, and the excess of the ramp is at least the distance from α \alpha α to the zero of this line (Proposition 5.10 , Figure 2 ). When the path lies between two multiples of one power of α ⋆ − α \alpha^{\star}-\alpha α ⋆ − α , this distance is a fixed fraction of α ⋆ − α \alpha^{\star}-\alpha α ⋆ − α .
Figure 2. The rescaled path ( 1 − α ) D α (1-\alpha)D_\alpha ( 1 − α ) D α for P = N ( 1 , 1 ) P = N(1,1) P = N ( 1 , 1 ) and Q = N ( − 1 , 1 ) Q = N(-1,1) Q = N ( − 1 , 1 ) , whose total variation is α ⋆ = 2 Φ ( 1 ) − 1 ≈ 0.683 \alpha^\star= 2\Phi(1)-1 \approx0.683 α ⋆ = 2Φ ( 1 ) − 1 ≈ 0.683 , with the Laplace kernel (a) and the Gaussian kernel (b), both with σ = 1 \sigma= 1 σ = 1 (dots: computed levels; line: monotone interpolation). At α = 0.58 \alpha= 0.58 α = 0.58 in (a) and α = 0.65 \alpha= 0.65 α = 0.65 in (b) the dashed line of slope − ( t ⋆ − u ⋆ ) -(t^\star-u^\star) − ( t ⋆ − u ⋆ ) supports the path; the excess of the population ramp over α \alpha α is at least the distance (arrow) from α \alpha α to the zero of the line (tick), by Proposition 5.10, and the inset of (b) enlarges the region near α ⋆ \alpha^\star α ⋆ . That distance is a fraction 0.88 of α ⋆ − α \alpha^\star-\alpha α ⋆ − α for the Laplace kernel and 0.27 for the Gaussian kernel at this level, closer to α ⋆ \alpha^\star α ⋆ . The Gaussian fraction, 0.64 at α = 0.58 \alpha=0.58 α = 0.58 , falls toward zero as α ↑ α ⋆ \alpha\uparrow\alpha^\star α ↑ α ⋆ , where its path is flatter than every power.
Proposition 5.10 (Excess of the population ramp). Let Assumption 2.1 hold, let 0 < α ⋆ < 1 0 < \alpha^{\star} < 1 0 < α ⋆ < 1 , let α < α ⋆ \alpha< \alpha^{\star} α < α ⋆ , let f ⋆ f^{\star} f ⋆ be the direction of the population witness, t ⋆ t^{\star} t ⋆ the smallest ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile of f ⋆ ( X ) f^{\star}(X) f ⋆ ( X ) and u ⋆ u^{\star} u ⋆ the largest α \alpha α -quantile of f ⋆ ( Y ) f^{\star}(Y) f ⋆ ( Y ) , so that t ⋆ − u ⋆ ≥ D α > 0 t^{\star}-u^{\star} \ge D_{\alpha} > 0 t ⋆ − u ⋆ ≥ D α > 0 (Lemma S3.4 of the supplement), and let ψ ⋆ \psi^{\star} ψ ⋆ be the ramp of f ⋆ f^{\star} f ⋆ between u ⋆ u^{\star} u ⋆ and t ⋆ t^{\star} t ⋆ . Then:
(i) E P ψ ⋆ − E Q ψ ⋆ − α ≥ ( 1 − α ) D α / ( t ⋆ − u ⋆ ) \mathbb{E}_{P}\psi^{\star}-\mathbb{E}_{Q}\psi^{\star}-\alpha\ge(1-\alpha)D_{\alpha}/(t^{\star}-u^{\star}) E P ψ ⋆ − E Q ψ ⋆ − α ≥ ( 1 − α ) D α / ( t ⋆ − u ⋆ ) , and ( 1 − α ′ ) D α ′ ≥ ( 1 − α ) D α − ( t ⋆ − u ⋆ ) ( α ′ − α ) (1-\alpha')D_{\alpha'} \ge(1-\alpha)D_{\alpha}-(t^{\star}-u^{\star})(\alpha'-\alpha) ( 1 − α ′ ) D α ′ ≥ ( 1 − α ) D α − ( t ⋆ − u ⋆ ) ( α ′ − α ) for every α ′ ∈ [ 0 , 1 ) \alpha' \in[0,1) α ′ ∈ [ 0 , 1 ) ;
(ii) if c 1 ϵ γ ≤ D α ⋆ − ϵ ≤ c 2 ϵ γ c_{1}\epsilon^{\gamma} \le D_{\alpha^{\star}-\epsilon} \le c_{2}\epsilon^{\gamma} c 1 ϵ γ ≤ D α ⋆ − ϵ ≤ c 2 ϵ γ for 0 < ϵ ≤ ϵ 0 ≤ α ⋆ 0 < \epsilon\le\epsilon_{0} \le\alpha^{\star} 0 < ϵ ≤ ϵ 0 ≤ α ⋆ , then at α = α ⋆ − ϵ \alpha=\alpha^{\star}-\epsilon α = α ⋆ − ϵ with ϵ ≤ ϵ 0 / 2 \epsilon\le\epsilon_{0}/2 ϵ ≤ ϵ 0 /2 the excess in (i) is at least ( 1 − α ⋆ ) c 1 ϵ / ( 2 γ c 2 ) (1-\alpha^{\star})c_{1}\epsilon/(2^{\gamma}c_{2}) ( 1 − α ⋆ ) c 1 ϵ / ( 2 γ c 2 ) , and this holds under the hypotheses of Proposition 5.5 ;
(iii) for the Laplace kernel e − ∣ x − y ∣ / σ e^{-|x-y|/\sigma} e − ∣ x − y ∣/ σ on R \mathbb{R} R , u ⋆ ≤ f ⋆ ≤ t ⋆ u^{\star} \le f^{\star} \le t^{\star} u ⋆ ≤ f ⋆ ≤ t ⋆ on R \mathbb{R} R and the first inequality of (i) is an equality.
On the line, by part (iii), the Laplace witness is already clipped at its cut points, and so is the witness fitted on the data, whose ramp maximizes the ratio of empirical excess to RKHS norm over functions of oscillation at most one (Lemma S4.21 of the supplement). Comparing this ratio with the population path at two levels shows that the fitted ramp keeps a fixed fraction of the excess of the population ramp (Proposition S4.27).
Theorem 5.11 (Near-parametric rate with the Laplace kernel). Let P , Q P,Q P , Q satisfy the hypotheses of Proposition 5.5 on the laws, let n ∧ m ≥ 10 n \wedge m \ge10 n ∧ m ≥ 10 , and compute α ^ \widehat{\alpha} α as in Theorem 5.7 , on a grid of J J J levels in ( 0 , 1 ) (0,1) ( 0 , 1 ) with mesh Δ G \Delta_{G} Δ G below α ⋆ \alpha^{\star} α ⋆ , with the kernel e − ∣ x − y ∣ / σ e^{-|x-y|/\sigma} e − ∣ x − y ∣/ σ , σ > 0 \sigma>0 σ > 0 fixed in advance, an exact minimizer of ((10) ) at each level, and, in place of the one-rank tolerance ((S3.4)), cut points that are genuine empirical quantiles of the witness values, computed with or without each point's own term in ((11) ). Let η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) , L δ = log ( 1 / δ ) L_{\delta}=\log(1/\delta) L δ = log ( 1/ δ ) , L n , m = log { ( n ∨ m ) / η } L_{n,m}=\log\{(n \vee m)/\eta\} L n , m = log {( n ∨ m ) / η } and B n , m = v min − 2 { L δ 1 / 2 + ( log ( 2 J / η ) ) 1 / 2 } ( n ∧ m ) − 1 / 2 B_{n,m}=v_{\min}^{-2}\{L_{\delta}^{1/2}+(\log(2J/\eta))^{1/2}\}(n \wedge m)^{-1/2} B n , m = v m i n − 2 { L δ 1/2 + ( log ( 2 J / η ) ) 1/2 } ( n ∧ m ) − 1/2 .
(i) If for some r ⋆ ∈ ( 0 , 1 ] r_{\star} \in(0,1] r ⋆ ∈ ( 0 , 1 ] and c ⋆ > 0 c_{\star}>0 c ⋆ > 0
∣ p ( x ) − q ( x ) ∣ ≥ c ⋆ min ( r ⋆ , ∣ x − x 0 ∣ ) { p ( x ) + q ( x ) } for almost every x , (17) |p(x)-q(x)| \ge c_{\star}\min(r_{\star},|x-x_{0}|)\{p(x)+q(x)\}\qquad\text{for almost every }x, \tag*{(17)} ∣ p ( x ) − q ( x ) ∣ ≥ c ⋆ min ( r ⋆ , ∣ x − x 0 ∣ ) { p ( x ) + q ( x )} for almost every x , (17) *then with probability at least 1 − δ − η 1-\delta-\eta 1 − δ − η ,
α ⋆ − Δ G − O ( L n , m 3 / 4 ( n ∧ m ) − 1 / 2 + B n , m ) ≤ α ^ ≤ α ⋆ . \alpha^{\star}-\Delta_{G}-O\left(L_{n,m}^{3/4}(n\wedge m)^{-1/2}+B_{n,m}\right)\le\widehat{\alpha}\le\alpha^{\star}. α ⋆ − Δ G − O ( L n , m 3/4 ( n ∧ m ) − 1/2 + B n , m ) ≤ α ≤ α ⋆ . (ii) If instead ( P + Q ) ( { x : ∣ x − x 0 ∣ > t } ) ≤ C ′ e − t / C ′ (P+Q)(\{x:|x-x_{0}|>t\})\le C'e^{-t/C'} ( P + Q ) ({ x : ∣ x − x 0 ∣ > t }) ≤ C ′ e − t / C ′ for all t > 0 t>0 t > 0 , the same holds with L n , m 2 / 3 ( n ∧ m ) − 4 / 9 L_{n,m}^{2/3}(n\wedge m)^{-4/9} L n , m 2/3 ( n ∧ m ) − 4/9 in place of L n , m 3 / 4 ( n ∧ m ) − 1 / 2 L_{n,m}^{3/4}(n\wedge m)^{-1/2} L n , m 3/4 ( n ∧ m ) − 1/2 .
The constant in the O O O depends only on σ \sigma σ and on the pair, as stated in Theorem S4.19 of the supplement.
Under these hypotheses d T V ( P , Q ) = F Q ( x 0 ) − F P ( x 0 ) d_{\mathrm{TV}}(P,Q)=F_Q(x_0)-F_P(x_0) d TV ( P , Q ) = F Q ( x 0 ) − F P ( x 0 ) is a one-sided Kolmogorov distance, which the one-sided Kolmogorov–Smirnov statistic bounds from below at the rate ( n ∧ m ) − 1 / 2 (n\wedge m)^{-1/2} ( n ∧ m ) − 1/2 , with no condition on the likelihood ratio and no logarithmic factor. The interest of the theorem is that a kernel bound that does not sort the data, and returns the set, attains this rate up to logarithmic factors, which the margin does not see; it is no reason to prefer the method on the line. Condition (5.1) asks that p / q p/q p / q stay away from one off every neighborhood of x 0 x_0 x 0 , so it excludes contaminations local to a common core, with p = q > 0 p=q>0 p = q > 0 on an interval, where only part (ii) applies. No multivariate theorem singles out the Laplace kernel in R d \mathbb{R}^d R d , where its choice rests on this one-dimensional theory and on its power against differences of high frequency, seen on a one-dimensional oscillating density (§ 7.1 ). § 9.4.12 of the supplement discusses the exact minimizers the theorem needs, its constants, whose uniformity over a class is open, and a simulation.
The trimming
Once we know that at least a fraction α ^ \hat{\alpha} α ^ of each population has no counterpart in the other, the next question is which observations these are. By Proposition 2.5 the minimizer of (2.10) answers it with a pair of trimmed samples, which keep at full weight the observations on one side of a cut of the witness and split weight among those at the cut. They converge, at a fixed level to the best trimming at that level and at the estimated level to the common core. The rate we prove at a fixed level assumes a witness with a density at the cut, condition (Q) below, as for the Gaussian kernel (Remark S5.5 of the supplement). With the Laplace kernel on the line the population witness equals its cut on a set of P P P -mass at least α \alpha α (Section S4.11 of the supplement), so (Q) fails at every level, Theorem 6.1 does not apply, and the trimming is decided among tied observations; § 6.2 , in MMD and without a rate, covers every kernel of Assumption 2.1.
A parametric rate at a fixed level
Fix α \alpha α with D = D α ( P , Q ) > 0 D=D_\alpha(P,Q)>0 D = D α ( P , Q ) > 0 , which under (A3) means α < α ⋆ \alpha<\alpha^\star α < α ⋆ , let d ⋆ d^\star d ⋆ be the population witness of § 2.3 , with direction f ⋆ = d ⋆ / D f^\star=d^\star/D f ⋆ = d ⋆ / D , and let t α t_\alpha t α be a ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile of d ⋆ ( X ) d^\star(X) d ⋆ ( X ) under P P P . The population version of Proposition 2.5 holds: every optimal trimming density of P P P has the threshold form (Lemma S5.1 of the supplement)
g ⋆ = β 1 { d ⋆ < t α } + ϑ 1 { d ⋆ = t α } , 0 ≤ ϑ ≤ β a function with E P [ g ⋆ ] = 1. (18) g^\star=\beta\,1\{d^\star<t_\alpha\}+\vartheta1\{d^\star=t_\alpha\},\qquad0\leq\vartheta\leq\beta\ \text{a function with }\mathbb{E}_P[g^\star]=1. \tag*{(18)} g ⋆ = β 1 { d ⋆ < t α } + ϑ 1 { d ⋆ = t α } , 0 ≤ ϑ ≤ β a function with E P [ g ⋆ ] = 1. (18)
The observations that an optimal trimming keeps at full weight form the kept sets
A ⋆ = { x : d ⋆ ( x ) < t α } and A ^ n = { x : d ^ ( x ) < t ^ n } , A^\star=\{x:d^\star(x)<t_\alpha\}
\qquad\text{and}\qquad
\widehat{A}_n=\{x:\widehat{d}(x)<\widehat{t}_n\}, A ⋆ = { x : d ⋆ ( x ) < t α } and A n = { x : d ( x ) < t n } ,
population and empirical, whose symmetric difference A ^ n △ A ⋆ \widehat{A}_n\triangle A^\star A n △ A ⋆ measures the error, and we let g ^ n \widehat{g}_n g n be the density (6.1) with ( d ^ , t ^ n ) (\widehat{d},\widehat{t}_n) ( d , t n ) in place of ( d ⋆ , t α ) (d^\star,t_\alpha) ( d ⋆ , t α ) and any tie function 0 ≤ ϑ ^ ≤ β 0\leq\widehat{\vartheta}\leq\beta 0 ≤ ϑ ≤ β , a rule that need not integrate to one under P P P . Level sets are stable where the witness has a density at the cut, which we ask at both cuts:
(Q) the law of d ⋆ ( X ) d^\star(X) d ⋆ ( X ) under P P P has, on [ t α − r Q , t α + r Q ] [t_\alpha-r_Q,t_\alpha+r_Q] [ t α − r Q , t α + r Q ] for some r Q > 0 r_Q>0 r Q > 0 , a density with values in [ c f , C f ] [c_f,C_f] [ c f , C f ] , where 0 < c f ≤ C f < ∞ 0<c_f\leq C_f<\infty 0 < c f ≤ C f < ∞ ;
(Q′) the law of d ⋆ ( Y ) d^\star(Y) d ⋆ ( Y ) under Q Q Q has, on [ u α − r Q , u α + r Q ] [u_\alpha-r_Q,u_\alpha+r_Q] [ u α − r Q , u α + r Q ] , a density at least c f ′ > 0 c'_f>0 c f ′ > 0 , where u α u_\alpha u α is an α \alpha α -quantile of d ⋆ ( Y ) d^\star(Y) d ⋆ ( Y ) .
Condition (Q) is the classical quantile-density condition for the cut of the X X X sample, and (Q′) its lower half for the cut of the Y Y Y sample. Laws with finite support, such as those of Example 5.2 with finitely supported R R R , P 0 P_0 P 0 , Q 0 Q_0 Q 0 , violate (Q), so the margin does not imply the density conditions. The rate comes from a localization argument of the kind behind rates for M-estimators [96 Theorem 3.2.5] : the separation of § 4.1 falls quadratically away from its maximizer f ⋆ f^\star f ⋆ , while its fluctuation grows linearly in the distance to f ⋆ f^\star f ⋆ , times ( n ∧ m ) − 1 / 2 (n\wedge m)^{-1/2} ( n ∧ m ) − 1/2 .
Theorem 6.1 (A parametric rate for the witness and the kept set). Let (A1) and (A2) of Assumption 2.1 hold, fix α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) with D = D α ( P , Q ) > 0 D=D_{\alpha}(P,Q)>0 D = D α ( P , Q ) > 0 , and suppose (Q) and (Q′). Put V α = κ β + [ β / min ( c f , c f ′ ) ] 1 / 2 V_{\alpha}=\kappa\beta+[\beta/\min(c_f,c'_f)]^{1/2} V α = κ β + [ β / min ( c f , c f ′ ) ] 1/2 and W α = C f ( κ V α + c f − 1 ) W_{\alpha}=C_f(\kappa V_{\alpha}+c_f^{-1}) W α = C f ( κ V α + c f − 1 ) . Then, with ( P , Q , k , α ) (P,Q,k,\alpha) ( P , Q , k , α ) fixed and n ∧ m → ∞ n\wedge m\to\infty n ∧ m → ∞ ,
∥ f ^ − f ⋆ ∥ H = O P ( V α D α n ∧ m ) , ∥ d ^ − d ⋆ ∥ H = O P ( V α n ∧ m ) , \left\|\widehat{f}-f^{\star}\right\|_{\mathcal{H}}=O_{\mathbb{P}}\left(\frac{V_{\alpha}}{D_{\alpha}\sqrt{n\wedge m}}\right),\qquad\left\|\widehat{d}-d^{\star}\right\|_{\mathcal{H}}=O_{\mathbb{P}}\left(\frac{V_{\alpha}}{\sqrt{n\wedge m}}\right), f − f ⋆ H = O P ( D α n ∧ m V α ) , d − d ⋆ H = O P ( n ∧ m V α ) , P ( A ^ n △ A ⋆ ) = O P ( W α n ∧ m ) , 1 β ∫ ∣ g ^ n − g ⋆ ∣ d P = O P ( W α n ∧ m ) . P(\widehat{A}_n\mathbin{\triangle}A^{\star})=O_{\mathbb{P}}\left(\frac{W_{\alpha}}{\sqrt{n\wedge m}}\right),\qquad\frac{1}{\beta}\int\left|\widehat{g}_n-g^{\star}\right|\,\mathrm{d}P=O_{\mathbb{P}}\left(\frac{W_{\alpha}}{\sqrt{n\wedge m}}\right). P ( A n △ A ⋆ ) = O P ( n ∧ m W α ) , β 1 ∫ ∣ g n − g ⋆ ∣ d P = O P ( n ∧ m W α ) . with constants in the O P O_{\mathbb{P}} O P that depend only on the probability level.
The rate is that of a sample quantile, free of the dimension of X \mathcal{X} X , because the witness converges in H \mathcal{H} H , as a mean of feature vectors, and the kept set inherits its rate through the density at the cut. As α ↑ α ⋆ \alpha\uparrow\alpha^{\star} α ↑ α ⋆ the bound on the direction grows like 1 / D 1/D 1/ D , and the sample size from which the bounds hold, not explicit (Section S5 of the supplement states what it depends on), grows as D D D vanishes. The kept set then has in general no limit, because the common core keeps only a fraction of P P P on the set { 0 < q < p } \{0<q<p\} { 0 < q < p } , and an indicator of a set cannot converge to such a fractional weight. With the Wasserstein distance, optimal trimmings are consistent and computable ([3 ] (Agulló Antolín 2018)), and rates are known only toward a known target ([8 ] ).
The trimming at the estimated level
In practice the trimming is read at a data-driven level, the lower bound α ^ \widehat{\alpha} α , where Theorem 6.1 does not apply: its level is fixed in advance, and its bounds degrade as D α ( P , Q ) D_{\alpha}(P,Q) D α ( P , Q ) vanishes near α ⋆ \alpha^{\star} α ⋆ . There the trimmed sample still converges as a measure. The common core R ⋆ R^{\star} R ⋆ is the unique common trimming at α ⋆ \alpha^{\star} α ⋆ , and
Ω ( ϵ ) = sup { ∥ a − μ R ⋆ ∥ H : a ∈ C α ⋆ ( P ) , dist ( a , C α ⋆ ( Q ) ) ≤ ϵ } \Omega(\epsilon)=\sup\{\|a-\mu_{R^{\star}}\|_{\mathcal{H}}:a\in\mathcal{C}_{\alpha^{\star}}(P),\ \operatorname{dist}(a,\mathcal{C}_{\alpha^{\star}}(Q))\leq\epsilon\} Ω ( ϵ ) = sup { ∥ a − μ R ⋆ ∥ H : a ∈ C α ⋆ ( P ) , dist ( a , C α ⋆ ( Q )) ≤ ϵ }
is a modulus of the contact of the two regions at α ⋆ \alpha^{\star} α ⋆ .
Proposition 6.2 (The trimmed sample at the data-driven level). Let Assumption 2.1 hold and let 0 < α ⋆ < 1 0<\alpha^{\star}<1 0 < α ⋆ < 1 . Then Ω ( ϵ ) → 0 \Omega(\epsilon)\to0 Ω ( ϵ ) → 0 as ϵ ↓ 0 \epsilon\downarrow0 ϵ ↓ 0 . Fix δ ′ ∈ ( 0 , 1 ) \delta^{\prime}\in(0,1) δ ′ ∈ ( 0 , 1 ) and put r n = κ ( 1 − α ⋆ ) − 1 [ 4 n − 1 / 2 + ( 2 log ( 2 / δ ′ ) / n ) 1 / 2 ] r_n=\kappa(1-\alpha^{\star})^{-1}[4n^{-1/2}+(2\log(2/\delta^{\prime})/n)^{1/2}] r n = κ ( 1 − α ⋆ ) − 1 [ 4 n − 1/2 + ( 2 log ( 2/ δ ′ ) / n ) 1/2 ] , and r m r_m r m likewise. There is an event E E E of probability at least 1 − 2 δ ′ 1-2\delta^{\prime} 1 − 2 δ ′ , not depending on the level, on which for every level α ~ ≤ α ⋆ \widetilde{\alpha}\leq\alpha^{\star} α ≤ α ⋆ , possibly chosen from the data, and every ( w , v ) ∈ T α ~ (w,v)\in\mathcal{T}_{\widetilde{\alpha}} ( w , v ) ∈ T α ,
MMD ( P n w , R ⋆ ) ≤ r n + Ω ( D ^ α ~ + r n + r m ) . \operatorname{MMD}(P_n^w,R^{\star})\leq r_n+\Omega(\widehat{D}_{\widetilde{\alpha}}+r_n+r_m). MMD ( P n w , R ⋆ ) ≤ r n + Ω ( D α + r n + r m ) . The same holds for the second sample, with P P P and Q Q Q exchanged.
On E E E each empirical region is within r n r_n r n , respectively r m r_m r m , of its population counterpart, at all levels up to α ⋆ \alpha^{\star} α ⋆ at once, by (9) . The bound covers the trimming read at α ^ \widehat{\alpha} α or at any other valid lower bound. It carries no rate unless Ω \Omega Ω is known, and it places the reweighted sample near the common core without saying which observations are kept.
Corollary 6.3 (The trimmed sample at the lower bound). Let Assumption 2.1 hold, let 0 < α ⋆ < 1 0<\alpha^{\star}<1 0 < α ⋆ < 1 , and compute α ^ \widehat{\alpha} α at level δ \delta δ as in Proposition 4.4 , on grids fixed in advance whose mesh tends to zero, with log J = O ( n ∧ m ) \log J=O(n\wedge m) log J = O ( n ∧ m ) . Then for every ϵ > 0 \epsilon>0 ϵ > 0 and δ ′ ∈ ( 0 , 1 ) \delta^{\prime}\in(0,1) δ ′ ∈ ( 0 , 1 ) , for all n , m n,m n , m large enough, with probability at least 1 − δ − δ ′ 1-\delta-\delta^{\prime} 1 − δ − δ ′ every ( w , v ) ∈ T α ^ (w,v)\in\mathcal{T}_{\widehat{\alpha}} ( w , v ) ∈ T α has MMD ( P n w , R ⋆ ) ≤ ϵ \operatorname{MMD}(P_n^w,R^{\star})\leq\epsilon MMD ( P n w , R ⋆ ) ≤ ϵ and MMD ( Q m v , R ⋆ ) ≤ ϵ \operatorname{MMD}(Q_m^v,R^{\star})\leq\epsilon MMD ( Q m v , R ⋆ ) ≤ ϵ .
By Lemma S4.2(ii) of the supplement the path falls to zero at most linearly, so a consistent α ^ \widehat{\alpha} α has a small trimmed distance whatever the laws and no margin is needed. The proof uses α ^ \widehat{\alpha} α only through its validity and its consistency, so the level may come from a bound computed with another kernel than the one that trims, as in § 7.3 .
Numerical results
The theory says that the split-sample bound is valid at every sample size, but not how large the sample must be for it to be useful. We measure this on simulated data whose total variation is known, and on two public data sets, where the trimming at the certified level also gives a cohort.
Simulations
Every design follows the contamination model (3) , with a common component of weight 1 − a 1-a 1 − a shared by P P P and Q Q Q and two design components P 0 P_0 P 0 and Q 0 Q_0 Q 0 of weight a a a , so that d T V ( P , Q ) = a d T V ( P 0 , Q 0 ) d_{\mathrm{TV}}(P,Q)=a d_{\mathrm{TV}}(P_0,Q_0) d TV ( P , Q ) = a d TV ( P 0 , Q 0 ) is known in closed form; α ⋆ = 0.2 \alpha^\star=0.2 α ⋆ = 0.2 unless a design says otherwise. The 19 designs, listed in Table 1 and described in Table S1 of the supplement, vary one feature at a time: where the contamination sits, the dimension, how the signal is spread, its size, the type of data, and how smooth the difference of the densities is. In the overlap and shift designs P 0 P_0 P 0 and Q 0 Q_0 Q 0 are N ( ± μ , I ) N(\pm\mu,I) N ( ± μ , I ) on a N ( 0 , I ) N(0,I) N ( 0 , I ) core, with μ \mu μ along one coordinate, along two or spread over all of them, so that { p > q } \{p>q\} { p > q } is a half-space; the correlation flip changes the sign of one correlation, the t 3 t_3 t 3 design the scale of one coordinate of a t 3 t_3 t 3 law, and the curves add or subtract a bump to Brownian paths. The oscillating densities are those of § 2.4 , which a fixed kernel sees less and less as their frequency ν \nu ν grows. One design is shaped on the RHC data of § 7.2 : it keeps the 33 covariates stored as numbers, takes a smoothed resample of the patients as the common component, and places P 0 P_0 P 0 and Q 0 Q_0 Q 0 in boxes at ± 3 \pm3 ± 3 pooled standard deviations in four coordinates.
Table 1. Sample size n = m n = m n = m (mixed types: n n n , with m = 5 n m = 5n m = 5 n ) at which each method reaches power 0.8 against H 0 , 0 H_{0,0} H 0 , 0 at δ = 0.05 \delta= 0.05 δ = 0.05 , from 200 replicates per size, interpolated between the two sizes that bracket 0.8 and rounded to two significant digits; ≤ 100 \le100 ≤ 100 , > 12 , 800 >12,800 > 12 , 800 : reached at the smallest size, not reached at the largest. Bold: the smallest among the four tests that certify a level of d T V \mathrm{dTV} dTV ; italic: the smaller of the last two, which test P = Q P = Q P = Q only. α ^ \widehat{\alpha} α : the betting test of Theorem 4.2 on the Laplace ramp; α ^ a n \widehat{\alpha}_{\mathrm{an}} α an : the analytic test (13) with the Gaussian kernel; GBM, logistic: the betting test on the labels of gradient boosting and logistic regression trained once on half of the data, a handicap removed in Figure 3 ; perm. MMD: permutation test with the Gaussian kernel at the pilot bandwidth of the analytic test and 999 relabelings; MMDAgg: the test of Schrab et al. [83 ] ; the last two were run up to n = 800 n = 800 n = 800 (1,600 on the narrow bump), so > 800 >800 > 800 means not reached there. The analytic and permutation tests take their bandwidth from a separate pilot draw, not counted in n n n (§ 7.1 ).
Table S1. The synthetic designs of § 7.1 : P 0 P_0 P 0 against Q 0 Q_0 Q 0 (P P P against Q Q Q for the oscillating designs); sizes n = m n=m n = m at which every method that certifies a level was run, doubling (m = 5 n m=5n m = 5 n for mixed types); α ⋆ \alpha^\star α ⋆ , exact (small contamination: 0.05 ( 2 Φ ( 5 ) − 1 ) 0.05\,(2\Phi(5)-1) 0.05 ( 2Φ ( 5 ) − 1 ) ); population MMD at the analytic test’s bandwidth, by Monte Carlo (≈ 0 \approx0 ≈ 0 : estimate of MMD 2 \operatorname{MMD}^2 MMD 2 not positive).
Four methods certify a level of d T V d_{\mathrm{TV}} d TV . The split-sample bound α ^ \widehat{\alpha} α is Algorithm S1 of the supplement with the Laplace kernel, whose bandwidth is the median distance among the points each witness is fitted on. The analytic baseline α ^ a n \widehat{\alpha}_{\mathrm{an}} α an uses the threshold of Theorem 3.1 and a Gaussian kernel with its bandwidth fixed on a separate pilot draw of 1,000 points from each law (400 and 2,000 for mixed types), not counted in n n n or m m m . The other two run the same betting test on the labels of a classifier, gradient boosting (GBM) or logistic regression (Pedregosa et al., [76 ] ), trained on the first half of each sample as in Michel et al. [66 ] . For reference we add two tests of P = Q P=Q P = Q , the permutation test of the MMD, with the Gaussian kernel at the pilot bandwidth, and MMDAgg (Schrab et al., [83 ] ); they detect a difference but certify nothing about its size. All methods see the same replicates, 200 per design and size, with n = m n=m n = m doubling from 100 to 800 (mixed types: n n n up to 400, with m = 5 n m=5n m = 5 n ). The four that certify are also run at 1,600 in the two designs of Table S1 that list it and, in every design, at sizes doubling from 1,600 to 12,800 until their power against H 0 , 0 H_{0,0} H 0 , 0 reaches 0.8. The two tests of P = Q P=Q P = Q are also run at 1,600 on the narrow bump. The four that certify test H 0 , α H_{0,\alpha} H 0 , α at the levels α = j α ⋆ / 8 \alpha=j\alpha^\star/8 α = j α ⋆ /8 , j = 0 , … , 10 j=0,\ldots,10 j = 0 , … , 10 , with δ = 0.05 \delta=0.05 δ = 0.05 .
We first check validity: a test may reject a true null, and the bound exceed α ⋆ \alpha^\star α ⋆ , with probability at most δ \delta δ . At the level α = α ⋆ \alpha=\alpha^\star α = α ⋆ the null H 0 , α ⋆ H_{0,\alpha^\star} H 0 , α ⋆ holds, as d T V ( P , Q ) d_{\mathrm{TV}}(P,Q) d TV ( P , Q ) is exactly α ⋆ \alpha^\star α ⋆ : there, at n = m = 800 n=m=800 n = m = 800 (mixed types: n = 400 n=400 n = 400 , m = 5 n m=5n m = 5 n ), the betting test on the Laplace ramp rejected 17 times in 3800 replicates in all, and at most 8/200 in any one design. When P = Q P=Q P = Q , a rejection of H 0 , 0 H_{0,0} H 0 , 0 falsely claims a difference: on four designs in which both samples come from the same law, over 30 combinations of design and sample size, the same test rejected in 3.0% of the replicates, and at most 11/200 in one combination. The analytic test never rejected in either case. For no method and no combination does a binomial test at level 0.01 find more rejections than δ \delta δ allows, and in every design the split-sample bound exceeded α ⋆ \alpha^\star α ⋆ in at most a fraction 0.010 of the replicates, well within the δ \delta δ that Corollary 4.3 allows (Section S6 of the supplement).
The next question is how many observations each method needs to detect the contamination, that is, to reject H 0 , 0 H_{0,0} H 0 , 0 with power 0.8 (Table 1 ). Against classifiers trained once on half of the data, the split-sample bound needs the fewest observations among the methods that certify a level of d T V d_{\mathrm{TV}} d TV in 14 of the 19 designs, alone in 13. Gradient boosting needs fewer where the kernel at its bandwidth barely sees the difference, on the correlation flip, whose population MMD is about zero, and on the oscillating densities with ν ≥ 4 \nu\ge4 ν ≥ 4 , and both classifiers need fewer on the narrow bump. Refitted on the batches of the ramp, the best of the classifiers, default or tuned, has more power at n = m = 800 n = m = 800 n = m = 800 than the split-sample bound in 4 designs and less in 3 (§ 9.6.3 of the supplement). The analytic baseline needs 3.9 to 29 times as many observations as the split-sample bound (median 9, over the designs where both sizes are interpolated), the price of a threshold that holds for every pair in the null. It fires close to where the design rule (15) predicts, at 0.8 to 1.5 times the size at which τ ( 0 ) \tau(0) τ ( 0 ) meets the population MMD.
Detecting a difference without certifying its size takes fewer observations. The permutation test of the MMD is the fastest of all methods, or tied for fastest, in 13 designs, and where both sizes are interpolated the split-sample bound needs 0.40 to 1.97 times as many observations (median 1.75). The split-sample bound spends a quarter of each sample on fitting alone and pays for betting, while the permutation test also takes its bandwidth from the pilot draw; the ratio falls below one only on the oscillating density with ν = 4 \nu= 4 ν = 4 .
Detection certifies only the first level of the grid, and the bound is meant to certify as much of α ⋆ \alpha^\star α ⋆ as it can. We measure this by the recovery, the mean over replicates of the largest certified level divided by α ⋆ \alpha^\star α ⋆ . The grid j α ⋆ / 8 j\alpha^\star/8 j α ⋆ /8 uses the known α ⋆ \alpha^\star α ⋆ only to express the levels as fractions of it, and its largest level below α ⋆ \alpha^\star α ⋆ is 7 α ⋆ / 8 7\alpha^\star/8 7 α ⋆ /8 , so a valid bound recovers at most about 0.875. At n = m = 800 n = m = 800 n = m = 800 the split-sample bound recovers a median 0.38 and a mean 0.36 over the designs, at most 0.81, and 0.77 on the RHC-shaped design (Figure 3 ), while the analytic baseline recovers a visible fraction only on the oscillating density with ν = 1 \nu= 1 ν = 1 , 0.35.
Figure 3. How much of α ⋆ \alpha^\star α ⋆ each lower bound recovers at n = m = 800 n=m=800 n = m = 800 (mixed types: n = 400 n=400 n = 400 , m = 5 n m=5n m = 5 n ): the mean over 200 replicates of the largest level j α ⋆ / 8 j\alpha^\star/8 j α ⋆ /8 it certifies divided by α ⋆ \alpha^\star α ⋆ , with 0 when it certifies none, on a grid that uses the known α ⋆ \alpha^\star α ⋆ ; α ⋆ = 0.2 \alpha^\star=0.2 α ⋆ = 0.2 unless shown, δ = 0.05 \delta=0.05 δ = 0.05 ; classifiers: labels bet on the batches of the ramp.
No bound recovers all of α ⋆ \alpha^\star α ⋆ at this size. Near α ⋆ \alpha^\star α ⋆ the excess of every function over α \alpha α is small, and a bet needs many pairs to detect a small excess: even the oracle that runs the same test on the better of 1 { p > q } 1\{p>q\} 1 { p > q } and a level set of p / q p/q p / q recovers a median 0.65. Relative to this oracle, with 75 replicates per size below 800, the recovery of the split-sample bound has median 0.08, 0.30, 0.53 and 0.62 at n = m = 100 n=m=100 n = m = 100 , 200, 400 and 800, and the ratio is larger at 800 than at 100 in 17 of the 19 designs; in the other two the bound certifies almost nothing at any size (Figure S1 of the supplement shows the curves).
Figure S1. Mean certified level over α ⋆ \alpha^\star α ⋆ against n = m n=m n = m (mixed types: m = 5 n m=5n m = 5 n ): Laplace ramp, oracle reference, betting on 1 { p > q } 1\{p>q\} 1 { p > q } , and Gaussian ramp at the main size; 75 replicates per size below n = 800 n=800 n = 800 (mixed types: 400), 200 at it; dotted: largest grid level below α ⋆ \alpha^\star α ⋆ .
Tuned classifiers can recover more than the split-sample bound where their model fits { p > q } \{p>q\} { p > q } . Refitted on the batches of the ramp, unlike in Table 1 , so that all methods bet on the same observations, tuned logistic regression recovers more than the bound in 9 designs and less in 6, differences within two paired standard errors counting as ties, mostly more where { p > q } \{p>q\} { p > q } is a half-space, and tuned gradient boosting recovers more, at two decimals, on several designs, among them the t 3 t_3 t 3 tails and the oscillating densities with ν ≤ 16 \nu\le16 ν ≤ 16 ; with default settings, the bound’s mean recovery is higher than that of the better of the two classifiers in 9 of the 19 designs and lower in the others (§ 9.6.3 of the supplement). We keep the ramp as the default because it needs no tuning beyond the median-distance bandwidth, the rates of § 5 are proved for it, and the program that fits it also returns the trimming of § 6 .
Validity does not depend on this choice: an analyst who trusts a classifier on their data can bet on its labels instead (§ 4.2 ).
In these designs the gain over an untrimmed witness comes mostly from where the witness is cut. The Gaussian witness fitted once at α = 0 \alpha= 0 α = 0 , with no quadratic program, recovers a median 0.22 when cut at α = 0 \alpha= 0 α = 0 and 0.35 when cut at the quantiles of the tested level, and the witness refitted at each level 0.31. At two paired standard errors refitting recovers more than the witness fitted at α = 0 \alpha= 0 α = 0 and cut at the tested level in 5 designs, as much in 8 and less in 6, and, at two decimals, that witness recovers more than the Laplace split-sample bound in 9 designs and less in 7. Refitting gains on the t 3 t_3 t 3 tails, on both bumps and on the oscillating density with ν = 1 \nu= 1 ν = 1 , and it is what consistency requires in general: a witness fitted at α = 0 \alpha= 0 α = 0 can stop short of α ⋆ \alpha^\star α ⋆ (§ 4.3 and S3.6).
The theory that favors the Laplace kernel holds on the line. Over the 19 designs the Laplace kernel recovers more than the Gaussian kernel in 4, 3 of them oscillating densities on the line, as much in 9, and less in 6, where it is behind by at most 0.025. In the 15 multivariate designs, where our theory says nothing about the kernel, it is slightly behind the Gaussian kernel: it needs fewer observations to detect in 4 of them and more in 7, and recovers less in 6 and more in 1. Its higher median recovery, 0.38 against 0.31, comes from one design: on the oscillating density with ν = 4 \nu= 4 ν = 4 the recovery rises from 0.02 to 0.69, which alone lifts the median. Without it the medians are 0.35 and 0.34, and the means over all designs 0.36 and 0.33. We keep the Laplace kernel as the default because its witness still sees differences of high frequency that the Gaussian witness at the same bandwidth misses, as on this one-dimensional density.
Real data
We apply the split-sample bound and the analytic baseline to two public data sets, which give four contrasts. The Right Heart Catheterization (RHC) study (Connors et al., [19 ] ) is an observational study of critically ill adults in which the treatment is a catheter placed in the right side of the heart; of its 5,735 patients, 2,184 received a catheter. We use its 45 numeric and binary baseline covariates, the binary ones coded 0/1, standardized (Section S6.5 of the supplement lists them). The National Health and Nutrition Examination Survey (NHANES) (National Center for Health Statistics, [71 ] ; John et al., [46 ] ), cycles 2011–2014 pooled, provides wrist accelerometry, from which we take curves: for each participant, the mean over the valid days of log ( 1 + M I M S ) \log(1 + \mathrm{MIMS}) log ( 1 + MIMS ) in each hour of the day, with MIMS the monitor-independent movement summary, a curve on 24 points. As an illustration on functional data, we compare children aged 6–11 with older adults aged 60–79, younger adults aged 20–39 with the same older adults, and body mass index below 25 with 30 or above within ages 20–59, which holds age roughly fixed; we call these the child, the adult age and the body-mass contrasts. NHANES is a multistage survey, and we ignore its weights and design, so these bounds concern the laws of the sampling process rather than the population of the United States. The independence the betting test needs then holds only approximately, since participants share households and sampling units; assigning whole sampling units to the batches gives the same or higher minima, though pairs within a batch can still share a unit (Section S6.5).
Every reported split-sample bound uses the Laplace kernel, with the median distance on batch 0 as bandwidth for both witnesses, a rule that, as in the simulations, uses only fitting data. The analytic baseline uses a Gaussian kernel with its bandwidth fixed on a 30% pilot sample of each group, and is computed on the other 70% only. Each contrast is reported at δ = 0.05 \delta= 0.05 δ = 0.05 , with no correction for the three NHANES contrasts.
One split of the observations into the batches of § 4.2 makes the bound depend on the split, so we compute it on eight random splits and summarize them in two ways. Their minimum is a δ \delta δ -level bound, as it exceeds α ⋆ \alpha^\star α ⋆ only if every split does. The average rests on e-values, nonnegative statistics whose mean under the null is at most one, as is the wealth of a betting test at any fixed time: at each level the wealths of the eight tests at their horizon are e-values for H 0 , α H_{0,\alpha} H 0 , α , so by Markov’s inequality their average reaches 1 / δ 1/\delta 1/ δ with probability at most δ \delta δ , whatever the dependence between the splits ([99 ] ). Either summary is valid if fixed in advance, while reporting the larger of the two is guaranteed only at level 2 δ 2\delta 2 δ . We report the minimum. The average, shown in Table 2 for comparison, certifies as much, and more on the two age contrasts.
Table 2. The two bounds on the four contrasts (the last three from NHANES), δ = 0.05 \delta= 0.05 δ = 0.05 , grid mesh 0.05; n , m n,m n , m : group sizes, of which the analytic baseline uses 70% after a 30% pilot. Analytic baseline: D ^ 0 \widehat{D}_0 D 0 and τ ( 0 ) \tau(0) τ ( 0 ) , its statistic and threshold at α = 0 \alpha= 0 α = 0 ; n f i r e n_{\mathrm{fire}} n fire , the balanced size of (3.4); α l a s t \alpha_{\mathrm{last}} α last , the largest rejected grid level, and bisection, the largest level rejected when bisecting to width 0.0125 (§ 3.2 ), both at most the infimum (3.3); ‘–’: none. Split-sample bound, Laplace kernel: the smallest bound over eight random splits and the level certified by the average of their final wealths, each δ \delta δ -level for this kernel. The three NHANES statements hold jointly with probability at least 1 − 3 δ 1 - 3\delta 1 − 3 δ .
The minima say that more than 0.75 of the distribution of daily profiles of children, and likewise of older adults, has no counterpart in the other group, more than 0.35 for younger against older adults, and more than 0.05 for the body-mass groups (Table 2 ). On RHC every split certifies 0.35, so more than 0.35 of the covariate distribution of each arm has no counterpart in the other. On RHC and on the child and adult age contrasts, 8, 8 and 5 of the eight splits stop at a level where the fitted cut points satisfy t ~ b ≤ u ^ b \tilde{t}_b \le\hat{u}_b t ~ b ≤ u ^ b in both batches, so that there is no ramp to bet on and the bound is limited by the fitted witness rather than by the number of pairs; the others stop at a failed bet. The minima depend on the kernel on two of the contrasts: with the Gaussian kernel they are the same on the age contrasts, but 0.30 on RHC, with the same 45 covariates, and 0.00 on body mass (§ 9.6.2 ). The analytic baseline rejects a positive grid level only on the age contrasts, α ⋆ > 0.30 \alpha^\star> 0.30 α ⋆ > 0.30 and α ⋆ > 0.05 \alpha^\star> 0.05 α ⋆ > 0.05 ; on body mass D ^ 0 = 0.075 \widehat{D}_0 = 0.075 D 0 = 0.075 lies below τ ( 0 ) = 0.109 \tau(0) = 0.109 τ ( 0 ) = 0.109 , and the design rule asks for 2,633 observations per group. Bet on the batches of the ramp, the labels of the classifiers of § 7.1 certify 0.35 on RHC, as the ramp does, except tuned logistic regression, 0.30, and their predicted probabilities certify between 0.15 and 0.25 (minima over the eight splits; Section S6.5).
From the contamination level to a cohort
At the level α ⋆ \alpha^\star α ⋆ itself, trimming both arms would give the common core R ⋆ R^\star R ⋆ , with density proportional to min ( p , q ) \min(p,q) min ( p , q ) for the covariate densities p , q p,q p , q of the two arms. With e e e the propensity score, the probability e ( x ) e(x) e ( x ) that a patient with covariates x x x receives the catheter ([81 ] ), π \pi π the fraction of catheterized patients and ρ \rho ρ the pooled density, min ( p , q ) = ρ min { e / π , ( 1 − e ) / ( 1 − π ) } \min(p,q) = \rho\min\{e/\pi,(1-e)/(1-\pi)\} min ( p , q ) = ρ min { e / π , ( 1 − e ) / ( 1 − π )} , an overlap population in the sense of Li et al. (2018), and for arms of equal size that of the matching weights of Li and Greene [56 ] . As p / q p/q p / q increases with e e e , α ⋆ \alpha^\star α ⋆ is also the total variation between the laws of e ( X ) e(X) e ( X ) in the two arms. Replacing e e e by a logistic fit and ρ \rho ρ by the pooled sample in α ⋆ = 1 − ∫ min ( p , q ) \alpha^\star= 1 - \int\min(p,q) α ⋆ = 1 − ∫ min ( p , q ) gives 0.42 (bootstrap interval (0.41, 0.45)), an estimate that rests on the propensity model and certifies nothing (Section S6.5). Trimming near α ⋆ \alpha^\star α ⋆ targets the patients for whom both treatments are plausible, as propensity trimming does with a model ([103 ] ), while the rules of § 1 aim at positivity.
At the level α = 0.35 \alpha= 0.35 α = 0.35 of the lower bound on RHC we trim both arms with the Gaussian kernel at the pooled median distance, which Corollary 6.3 allows for any valid and consistent level, here one from the Laplace bound. The program (10) has a unique minimizer, as the Gram matrix of the patients is positive definite. It gives positive weight to 1,497 of the 2,184 catheterized patients and 2,359 of the 3,551 others, and fractional weight only to the 154 and 100 on which the witness equals its cut Proposition 2.5 (ii), which carry fractions 0.054 and 0.021 of the trimmed samples Section S6.5. With the Laplace kernel, whose witness on the line is flat on the set it trims Proposition 5.10 (iii), the program at the same level leaves 607 and 469 patients with fractional weight.
The cohort is a 0.35-trimming of each arm. Proposition 6.2 and Corollary 6.3 describe such trimmings for a kernel fixed in advance, while here the bandwidth is the pooled median. The cohort leaves the largest standardized difference of the 45 covariates at 0.032, below the usual threshold 0.1. A trimming balances only what it sees. In a separate run on the 33 covariates stored as numbers, the Laplace trimming at the level 0.30 of the bound on them leaves 7 of the other 12 above 0.1, against 8 before trimming. Matching and overlap weights balance more tightly but need a propensity model, whose covariates the overlap weights balance exactly by construction Table S2 . The 30-day mortality difference, 0.074 in the raw arms, is 0.040 under the trimming, with interval (0.011, 0.072), and up to 0.056 under the other weightings, with overlapping intervals. These are illustrations, not causal estimates: they would estimate effects only under no unmeasured confounding, and the intervals ignore the estimation of the weights. As 0.35 is a lower bound on α ⋆ \alpha^\star α ⋆ , the trimming approaches the common core only as the level approaches α ⋆ \alpha^\star α ⋆ Corollary 6.3, and the level should be reported with any effect estimated on the cohort.
Table S2. The RHC arms under six weightings: trimming with the Gaussian kernel at the level of the Laplace lower bound; matching ([56 ] ) and overlap weights (Li et al., 2018) from a logistic propensity model; energy ([43 ] ) and kernel balancing ([36 , 47 ] ) of each arm to the pooled sample. Effective fraction: Kish effective sample size over arm size; absolute standardized mean differences (SMD) over the 45 covariates; overlap: overlapping coefficient of the propensity distributions; risk difference: 30-day mortality, catheterized minus others, 95% percentile interval from 2,000 bootstrap resamples within each arm, weights fixed.
Final comments
We have bounded α ⋆ = d T V ( P , Q ) \alpha^\star= d_{\mathrm{TV}}(P,Q) α ⋆ = d TV ( P , Q ) from below by following the embeddings of all trimmings of the two laws rather than one optimal trimming. They form convex regions that meet exactly at α ⋆ \alpha^\star α ⋆ and fluctuate like sample means, which gives guarantees at every sample size on any sample space with a kernel as in Assumption 2.1, and the witness of their closest points chooses both the trimming and the function bet on.
The common fraction is a choice. If the two laws may lose different fractions, the larger of the two is still at least α ⋆ \alpha^\star α ⋆ § 2 , so equal fractions minimize the loss of the arm that loses more. Fractions α 1 \alpha_1 α 1 of P P P and α 2 \alpha_2 α 2 of Q Q Q leave a common remainder exactly when ∫ min { p / ( 1 − α 1 ) , q / ( 1 − α 2 ) } ≥ 1 \int\min\{p/(1-\alpha_1),q/(1-\alpha_2)\}\ge1 ∫ min { p / ( 1 − α 1 ) , q / ( 1 − α 2 )} ≥ 1 , that is, when E ζ ( P ∥ Q ) = sup A { P ( A ) − ζ Q ( A ) } ≤ α 1 E_\zeta(P\mathbin\Vert Q)=\sup_A\{P(A)-\zeta Q(A)\}\le\alpha_1 E ζ ( P ∥ Q ) = sup A { P ( A ) − ζ Q ( A )} ≤ α 1 with ζ = ( 1 − α 1 ) / ( 1 − α 2 ) \zeta=(1-\alpha_1)/(1-\alpha_2) ζ = ( 1 − α 1 ) / ( 1 − α 2 ) , the hockey-stick divergence of information theory and differential privacy [78 ] , whose values over ζ \zeta ζ trace the trade-off curve of testing P P P against Q Q Q [25 ] . The regions, their witness and the betting test carry over, with the weights and cuts of each law at its own fraction and bets on ψ ( X ) − ζ ψ ( Y ) \psi(X)-\zeta\psi(Y) ψ ( X ) − ζ ψ ( Y ) , whose best choice is the indicator of { p > ζ q } \{p>\zeta q\} { p > ζ q } . A bound for each ζ \zeta ζ would say how much of one arm must go to keep more of the other. The rates of § 5 are proved for equal fractions, and we expect them to carry over along each ray of fixed ζ \zeta ζ , where the rescaled distance is still convex and the paired statistics bounded.
The dimension can enter the rate ( n ∧ m ) − 1 / ( 2 γ ) (n\wedge m)^{-1/(2\gamma)} ( n ∧ m ) − 1/ ( 2 γ ) of Theorem 5.7 only through the margin exponent γ \gamma γ . Contaminations separated by a function of the RKHS give γ = 1 \gamma=1 γ = 1 in every dimension. When they touch, the margin proved for Sobolev kernels in § 5.2 has γ = 1 + ( 2 s − 1 ) / { 2 ( r + 1 ) } \gamma=1+(2s-1)/\{2(r+1)\} γ = 1 + ( 2 s − 1 ) / { 2 ( r + 1 )} when p − q p-q p − q vanishes to order r r r where the contaminations meet, and a Sobolev kernel on R d \mathbb{R}^d R d is bounded only for s > d / 2 s>d/2 s > d /2 , so the guaranteed rate is slower than ( n ∧ m ) − ( r + 1 ) / ( 2 r + 1 + d ) (n\wedge m)^{-(r+1)/(2r+1+d)} ( n ∧ m ) − ( r + 1 ) / ( 2 r + 1 + d ) : for a transversal crossing, ( n ∧ m ) − 2 / ( d + 3 ) (n\wedge m)^{-2/(d+3)} ( n ∧ m ) − 2/ ( d + 3 ) at best, and ( n ∧ m ) − 2 / ( d + 4 ) (n\wedge m)^{-2/(d+4)} ( n ∧ m ) − 2/ ( d + 4 ) with the Laplace kernel. Only a contact that is flat compared with d d d keeps the dimension out of this guarantee. Whether the dimension enters the rate itself is open; on the line, for the Laplace kernel, densities that cross once and samples of comparable size, the margin is pessimistic Theorem 5.11 .
What rate is possible in R d \mathbb{R}^d R d ? We expect that of classification. Betting on a function f ^ \hat{f} f ^ fitted on half of the data certifies at most E P f ^ − E Q f ^ = α ⋆ − err ( f ^ ) \mathbb{E}_P\hat{f}-\mathbb{E}_Q\hat{f}=\alpha^\star-\operatorname{err}(\hat{f}) E P f ^ − E Q f ^ = α ⋆ − err ( f ^ ) , except with probability δ \delta δ , so a plug-in classifier falls short of α ⋆ \alpha^\star α ⋆ by at least err ( f ^ ) \operatorname{err}(\hat{f}) err ( f ^ ) , unless the bound is zero, and, up to logarithmic factors, by at most err ( f ^ ) \operatorname{err}(\hat{f}) err ( f ^ ) plus the mesh of the grid and a betting error of order ( n ∧ m ) − 1 / 2 (n\wedge m)^{-1/2} ( n ∧ m ) − 1/2 . On the class of Audibert and Tsybakov [5 ] , with p / ( p + q ) p/(p+q) p / ( p + q ) Hölder of order β H \beta_{\mathrm{H}} β H , margin exponent κ M \kappa_{\mathrm{M}} κ M , ( P + Q ) / 2 (P+Q)/2 ( P + Q ) /2 under their strong density assumption and κ M β H ≤ d \kappa_{\mathrm{M}}\beta_{\mathrm{H}}\le d κ M β H ≤ d , their bounds make this shortfall of order max { ( n ∧ m ) − 1 / 2 , ( n ∧ m ) − β H ( 1 + κ M ) / ( 2 β H + d ) } \max\{(n\wedge m)^{-1/2},(n\wedge m)^{-\beta_{\mathrm{H}}(1+\kappa_{\mathrm{M}})/(2\beta_{\mathrm{H}}+d)}\} max {( n ∧ m ) − 1/2 , ( n ∧ m ) − β H ( 1 + κ M ) / ( 2 β H + d ) } , in which the regularity β H \beta_{\mathrm{H}} β H again offsets the dimension. We conjecture that every lower bound valid at level δ \delta δ uniformly over this class, even one that reports only a value, has a worst-case error at least of this order up to a logarithmic factor, so that locating the difference costs nothing in rate. The natural route to this lower bound is that of nonsmooth functionals, fuzzy hypotheses with matched moments, where polynomial approximation gains exactly a logarithmic factor over plug-in ([54 , 16 , 35 ] ).
Whether our kernel bounds attain this rate, whether the near-parametric rate of Theorem 5.11 (i) holds without condition (17) , for other kernels and in R d \mathbb{R}^d R d , and how to choose the kernel from the data with a guarantee, are open, and so is whether averaging the e-values of fits with the batches’ roles exchanged, which lets every observation be bet on without losing validity ([99 ] ), gains power over a single split.
Supplement
Sections S1 to S5 prove the results of § 2 to § 6 of the main text in their order, with three exceptions: Proposition 2.5 and the uniform bound (9) are proved with the trimming in Section S5; the lemma on extreme trimmed means, Lemma S3.2, which Sections S1, S2 and S5 also use, is proved with the betting test in § 9.3 ; and Section S4 proves the rate of Theorem 5.7 first, Proposition 5.5 after Proposition 5.6 , and Proposition 5.8 and Corollary 5.9 last. Section S1 establishes the geometry of the trimmed regions and the concentration inequality, Lemma S1.3, behind most deviation bounds, and ends with the proof of Theorem 2.6 on upper bounds. Section S2 turns the inequality into a two-sided bound on the statistic before proving Theorem 3.1 . § 9.3 gives the betting test in full, with Algorithm S1, its validity and consistency, and an example in which a witness fitted at α = 0 \alpha= 0 α = 0 is not consistent; validity rests on Lemma 4.1 and Theorem 4.2 alone. Section S4, the longest, proves the rates and their limits, with the constants of Theorem 5.7 in Theorem S4.3 and the proof of Theorem 5.11 in § 9.4.12 , and Section S6 describes the experiments.
A few ideas carry most of the proofs. The trimmed regions are convex, weakly compact sets of kernel mean embeddings, so the trimmed distance is the largest gap between them along a unit direction, attained in the direction of the difference of their closest points, the witness; each closest point minimizes, or maximizes, the integral of the witness over the trimmings of its law. Optimizing the integral of a fixed function over trimmings is a bathtub problem, solved by putting the largest weight allowed on the largest values until the mass runs out, that is, by a cut at a quantile. This turns choices among trimmings into level sets of the witness and writes the extreme trimmed means as t + β E ( f − t ) + t + \beta\mathbb{E}(f-t)_{+} t + β E ( f − t ) + and t − β E ( t − f ) + t-\beta\mathbb{E}(t-f)_{+} t − β E ( t − f ) + at the cut t t t , means of hinge functions. In the deviation bounds, sample fluctuations therefore enter through means of bounded functions, which concentrate at the rate ( n ∧ m ) − 1 / 2 (n \wedge m)^{-1/2} ( n ∧ m ) − 1/2 by symmetrization and McDiarmid’s inequality, with constants that depend on the kernel through κ \kappa κ and Δ ϕ \Delta_{\phi} Δ ϕ and on the level only through β \beta β , so that one event serves all levels. The bets are valid because under the null each has conditional mean at most α \alpha α given the past, whatever the fitted ramp, so the wealth is a nonnegative supermartingale, which by Ville’s inequality reaches 1 / δ 1/\delta 1/ δ with probability at most δ \delta δ . The rate of the trimming at a fixed level, Theorem 6.1 , rests on a quadratic margin of the separation on the unit sphere around the direction of the witness (Lemma S5.2), which a peeling over shells around that direction turns into a rate.
The rates of the bound rest on the path. A mixture of the parts of mass 1 − α 0 1-\alpha_{0} 1 − α 0 and 1 − α 1 1-\alpha_{1} 1 − α 1 kept by two trimmings is a part kept at the level in between, so the rescaled path D ˉ α = ( 1 − α ) D α ( P , Q ) \bar{D}_{\alpha}=(1-\alpha)D_{\alpha}(P,Q) D ˉ α = ( 1 − α ) D α ( P , Q ) is convex; as it vanishes at α ∗ \alpha^{*} α ∗ , it leaves zero at most linearly, and the gap between the cut points of the population witness is the slope of a line supporting it from below. Margins come from approximating the indicator of { p > q } \{p>q\} { p > q } by functions of the RKHS, whose norms Fourier analysis bounds for Sobolev and Gaussian kernels. On the line the Laplace kernel is the Green function of 1 − σ 2 ∂ x 2 1-\sigma^{2}\partial_{x}^{2} 1 − σ 2 ∂ x 2 , so its witness cannot overshoot its cut points. The fitted ramp then maximizes a ratio of excess to norm, and comparing this ratio with the population path at two levels shows that the fitted ramp keeps a fixed fraction of the excess of the population ramp, which gives Theorem 5.11 ; its empirical-process steps use their own bounds on intervals of the line (Lemmas S4.23 to S4.25). The acknowledgments of the main text say where the Lean 4 formalization of the results is.
Proofs for Section 2
S1. Proofs for Section 2. The notation is that of the main text, and symbols are recalled where they reappear far from their definition. We write B H B_{\mathcal{H}} B H for the closed unit ball of H \mathcal{H} H and G α ( P ) = { g : 0 ≤ g ≤ β , E P [ g ] = 1 } \mathcal{G}_{\alpha}(P)=\{g:0\leq g\leq\beta,\ \mathbb{E}_{P}[g]=1\} G α ( P ) = { g : 0 ≤ g ≤ β , E P [ g ] = 1 } for the set of densities of the α \alpha α -trimmings of P P P with respect to P P P , so that C α ( P ) = { E P [ g φ ] : g ∈ G α ( P ) } \mathcal{C}_{\alpha}(P)=\{\mathbb{E}_{P}[g\varphi]:g\in\mathcal{G}_{\alpha}(P)\} C α ( P ) = { E P [ g φ ] : g ∈ G α ( P )} , and for independent Rademacher signs ϵ i \epsilon_i ϵ i we put e k = E ∣ ϵ 1 + ⋯ + ϵ k ∣ / k ≤ k − 1 / 2 e_k=\mathbb{E}|\epsilon_1+\cdots+\epsilon_k|/k\leq k^{-1/2} e k = E ∣ ϵ 1 + ⋯ + ϵ k ∣/ k ≤ k − 1/2 . Several proofs use the separation sep ( f ; A , B ) = inf a ∈ A ⟨ f , a ⟩ H − sup b ∈ B ⟨ f , b ⟩ H \operatorname{sep}(f;A,B)=\inf_{a\in A}\langle f,a\rangle_{\mathcal{H}}-\sup_{b\in B}\langle f,b\rangle_{\mathcal{H}} sep ( f ; A , B ) = inf a ∈ A ⟨ f , a ⟩ H − sup b ∈ B ⟨ f , b ⟩ H of § 4.1 through the elementary fact, proved in Lemma S3.1, that dist ( A , B ) = max f ∈ B H sep ( f ; A , B ) \operatorname{dist}(A,B)=\max_{f\in B_{\mathcal{H}}}\operatorname{sep}(f;A,B) dist ( A , B ) = max f ∈ B H sep ( f ; A , B ) for convex weakly compact A A A and B B B , which is (S3.2). Proposition 2.5 and the uniform bound (9) of Section 2 are proved later, in Section S5, next to the tools they need.
Two technical points are settled once and for all. By (A1) and (A2) of Assumption 2.1, ϕ \phi ϕ is weakly measurable with ∥ ϕ ∥ H ≤ κ \|\phi\|_{\mathcal{H}}\leq\kappa ∥ ϕ ∥ H ≤ κ , hence Bochner integrable by Pettis’ theorem, so E P [ g ϕ ] \mathbb{E}_{P}[g\phi] E P [ g ϕ ] is well defined for bounded measurable g g g . And the suprema over directions and cuts that appear below are measurable. Indeed, ∣ f ( x ) − f ′ ( x ) ∣ ≤ κ ∥ f − f ′ ∥ H |f(x)-f'(x)|\leq\kappa\|f-f'\|_{\mathcal{H}} ∣ f ( x ) − f ′ ( x ) ∣ ≤ κ ∥ f − f ′ ∥ H and ∣ ( u − t ) + − ( u − t ′ ) + ∣ ≤ ∣ t − t ′ ∣ |(u-t)_{+}-(u-t')_{+}|\leq|t-t'| ∣ ( u − t ) + − ( u − t ′ ) + ∣ ≤ ∣ t − t ′ ∣ make ( f , t ) ↦ ( f ( x ) − t ) + (f,t)\mapsto(f(x)-t)_{+} ( f , t ) ↦ ( f ( x ) − t ) + jointly continuous, and dominated convergence makes f ↦ E P [ ( f − t ) + ] f\mapsto\mathbb{E}_{P}[(f-t)_{+}] f ↦ E P [( f − t ) + ] continuous, so every such supremum may be taken over a countable dense subset without changing its value.
The results of Section 2
S1.1. The results of Section 2. We first prove (2) . A law R R R is a common α \alpha α -trimming exactly when ( 1 − α ) R (1-\alpha)R ( 1 − α ) R lies below both P P P and Q Q Q , so the question is one of mass. Let P ∧ Q P\wedge Q P ∧ Q be the largest measure below both P P P and Q Q Q ; it has density min ( p , q ) \min(p,q) min ( p , q ) with respect to any measure dominating both, and mass 1 − d T V ( P , Q ) 1-d_{\mathrm{TV}}(P,Q) 1 − d TV ( P , Q ) . If d T V ( P , Q ) ≤ α < 1 d_{\mathrm{TV}}(P,Q)\leq\alpha<1 d TV ( P , Q ) ≤ α < 1 , the law R = ( P ∧ Q ) / ( 1 − d T V ( P , Q ) ) R=(P\wedge Q)/(1-d_{\mathrm{TV}}(P,Q)) R = ( P ∧ Q ) / ( 1 − d TV ( P , Q )) has densities at most 1 / ( 1 − d T V ( P , Q ) ) ≤ β 1/(1-d_{\mathrm{TV}}(P,Q))\leq\beta 1/ ( 1 − d TV ( P , Q )) ≤ β with respect to P P P and to Q Q Q , so it lies in R α ( P ) ∩ R α ( Q ) \mathcal{R}_{\alpha}(P)\cap\mathcal{R}_{\alpha}(Q) R α ( P ) ∩ R α ( Q ) . Conversely, if R R R lies in both sets, then ( 1 − α ) R ≤ P (1-\alpha)R\leq P ( 1 − α ) R ≤ P and ( 1 − α ) R ≤ Q (1-\alpha)R\leq Q ( 1 − α ) R ≤ Q , hence ( 1 − α ) R ≤ P ∧ Q (1-\alpha)R\leq P\wedge Q ( 1 − α ) R ≤ P ∧ Q by maximality of P ∧ Q P\wedge Q P ∧ Q , and comparing the masses of the two sides gives 1 − α ≤ 1 − d T V ( P , Q ) 1-\alpha\leq1-d_{\mathrm{TV}}(P,Q) 1 − α ≤ 1 − d TV ( P , Q ) .
The same comparison of masses shows that laws which lose different fractions α 1 \alpha_1 α 1 and α 2 \alpha_2 α 2 and agree on what remains must have α 1 ∨ α 2 ≥ α ⋆ \alpha_1\vee\alpha_2\geq\alpha^\star α 1 ∨ α 2 ≥ α ⋆ . Their common remainder is a probability measure with density at most min { p / ( 1 − α 1 ) , q / ( 1 − α 2 ) } ≤ min ( p , q ) / ( 1 − α 1 ∨ α 2 ) \min\{p/(1-\alpha_1),q/(1-\alpha_2)\}\leq\min(p,q)/(1-\alpha_1\vee\alpha_2) min { p / ( 1 − α 1 ) , q / ( 1 − α 2 )} ≤ min ( p , q ) / ( 1 − α 1 ∨ α 2 ) , whose integral is ( 1 − α ⋆ ) / ( 1 − α 1 ∨ α 2 ) (1-\alpha^\star)/(1-\alpha_1\vee\alpha_2) ( 1 − α ⋆ ) / ( 1 − α 1 ∨ α 2 ) ; as it must be at least one, α 1 ∨ α 2 ≥ α ⋆ \alpha_1\vee\alpha_2\geq\alpha^\star α 1 ∨ α 2 ≥ α ⋆ .
Proof of Proposition 2.2. The map g ↦ g ⋅ P g\mapsto g\cdot P g ↦ g ⋅ P is a bijection from G α ( P ) \mathcal{G}_{\alpha}(P) G α ( P ) onto R α ( P ) \mathcal{R}_{\alpha}(P) R α ( P ) , and Bochner integrability gives μ g ⋅ P = E P [ g ϕ ] \mu_{g\cdot P}=\mathbb{E}_{P}[g\phi] μ g ⋅ P = E P [ g ϕ ] , so P ′ ↦ μ P ′ P'\mapsto\mu_{P'} P ′ ↦ μ P ′ maps R α ( P ) \mathcal{R}_{\alpha}(P) R α ( P ) onto C α ( P ) \mathcal{C}_{\alpha}(P) C α ( P ) . The infimum in (4) is therefore the infimum of ∥ u − v ∥ H \|u-v\|_{\mathcal{H}} ∥ u − v ∥ H over u ∈ C α ( P ) u\in\mathcal{C}_{\alpha}(P) u ∈ C α ( P ) and v ∈ C α ( Q ) v\in\mathcal{C}_{\alpha}(Q) v ∈ C α ( Q ) , which is (6) .
For P = P n P=P_n P = P n the only care needed is with sample points that no measurable set separates, so we group the sample points into such classes. A density with respect to P n P_n P n is measurable, hence constant on each class, and so defines a capped weight vector w i = g ( X i ) / n w_i=g(X_i)/n w i = g ( X i ) / n with the same embedding. Conversely, averaging a capped weight vector within each class preserves the cap, the normalization and ∑ i w i ϕ ( X i ) \sum_i w_i\phi(X_i) ∑ i w i ϕ ( X i ) , because k ( ⋅ , x ′ ) k(\cdot,x') k ( ⋅ , x ′ ) is measurable for every x ′ x' x ′ by (A1), so that ϕ \phi ϕ is constant on a class; the averaged vector is a density. The set is a polytope, as the image of the capped simplex, itself a polytope, under the linear map w ↦ ∑ i w i ϕ ( X i ) w\mapsto\sum_i w_i\phi(X_i) w ↦ ∑ i w i ϕ ( X i ) .
Proof of Lemma 2.3. Everything except norm-compactness follows from the weak compactness of the regions.
Convexity and the bound are immediate: G α ( P ) \mathcal{G}_{\alpha}(P) G α ( P ) is convex and g ↦ E P [ g ϕ ] g\mapsto\mathbb{E}_{P}[g\phi] g ↦ E P [ g ϕ ] is linear, and ∥ E P [ g ϕ ] ∥ H ≤ E P [ g ∥ ϕ ∥ H ] ≤ κ \|\mathbb{E}_{P}[g\phi]\|_{\mathcal{H}}\leq\mathbb{E}_{P}[g\|\phi\|_{\mathcal{H}}]\leq\kappa ∥ E P [ g ϕ ] ∥ H ≤ E P [ g ∥ ϕ ∥ H ] ≤ κ . For compactness, regard G α ( P ) \mathcal{G}_{\alpha}(P) G α ( P ) as a subset of L ∞ ( P ) = ( L 1 ( P ) ) ∗ L^{\infty}(P)=(L^{1}(P))^{*} L ∞ ( P ) = ( L 1 ( P ) ) ∗ . It is convex and it is weak∗ ^{*} ∗ -closed, since each constraint has the form ∫ g h d P { ≥ , ≤ } c \int gh\,dP\{\geq,\leq\}c ∫ g h d P { ≥ , ≤ } c for a fixed h ∈ L 1 ( P ) h\in L^{1}(P) h ∈ L 1 ( P ) , with h = 1 A h=\mathbf{1}_{A} h = 1 A for the pointwise bounds and h ≡ 1 h\equiv1 h ≡ 1 for the normalization; so it is weak∗ ^{*} ∗ -compact by the Banach–Alaoglu theorem. The map T : g ↦ E P [ g ϕ ] T:g\mapsto\mathbb{E}_{P}[g\phi] T : g ↦ E P [ g ϕ ] is weak∗ ^{*} ∗ -to-weak continuous, because ⟨ T g , e ⟩ H = ∫ g e d P \langle Tg,e\rangle_{\mathcal{H}}=\int ge\,dP ⟨ T g , e ⟩ H = ∫ g e d P for e ∈ H e\in\mathcal{H} e ∈ H , and e e e is a bounded function, ∣ e ( x ) ∣ ≤ κ ∥ e ∥ H |e(x)|\leq\kappa\|e\|_{\mathcal{H}} ∣ e ( x ) ∣ ≤ κ ∥ e ∥ H . So C α ( P ) \mathcal{C}_{\alpha}(P) C α ( P ) is weakly compact, hence weakly closed and norm-closed. It is even norm-compact, because the embedding is a Hilbert–Schmidt operator. The adjoint operator of T : L 2 ( P ) → H T:L^{2}(P)\to\mathcal{H} T : L 2 ( P ) → H , T q = E P [ q ϕ ] Tq=\mathbb{E}_{P}[q\phi] T q = E P [ q ϕ ] , sends e ∈ H e\in\mathcal{H} e ∈ H to the function h h h in L 2 ( P ) L^{2}(P) L 2 ( P ) . For an orthonormal basis ( h j ) (h_j) ( h j ) of H \mathcal{H} H , Parseval’s identity gives
∑ j ∥ T ∗ h j ∥ L 2 ( P ) 2 = E P ∑ j h j ( X ) 2 = E P ∥ ϕ ( X ) ∥ H 2 ≤ κ 2 , \sum_j \lVert T^*h_j\rVert_{L^2(P)}^2=\mathbb{E}_P\sum_j h_j(X)^2=\mathbb{E}_P\lVert\phi(X)\rVert_H^2\le\kappa^2, j ∑ ∥ T ∗ h j ∥ L 2 ( P ) 2 = E P j ∑ h j ( X ) 2 = E P ∥ ϕ ( X ) ∥ H 2 ≤ κ 2 ,
so T ∗ T^* T ∗ , and hence T T T , is Hilbert–Schmidt and therefore compact. The set G α ( P ) \mathcal{G}_\alpha(P) G α ( P ) is bounded in L 2 ( P ) L^2(P) L 2 ( P ) , so C α ( P ) = T ( G α ( P ) ) \mathcal{C}_\alpha(P)=T(\mathcal{G}_\alpha(P)) C α ( P ) = T ( G α ( P )) is relatively compact, and it is norm-closed.
The norm is weakly lower semicontinuous on the weakly compact product of the two regions, so the distance is attained, at points μ P ∗ , μ Q ∗ \mu_{P^*},\mu_{Q^*} μ P ∗ , μ Q ∗ for trimmings P ∗ , Q ∗ P^*,Q^* P ∗ , Q ∗ by Proposition 2.2 . If D α ( P , Q ) = 0 D_\alpha(P,Q)=0 D α ( P , Q ) = 0 , the two points coincide, so the intersection is nonempty, and every element of it is μ P ∗ = μ Q ∗ \mu_{P^*}=\mu_{Q^*} μ P ∗ = μ Q ∗ for some trimmings P ∗ , Q ∗ P^*,Q^* P ∗ , Q ∗ , which are equal by (A3).
The equivalence (7) follows. If d T V ( P , Q ) ≤ α d_{\mathrm{TV}}(P,Q)\le\alpha d TV ( P , Q ) ≤ α , (2) gives a common trimming, whose embedding lies in both regions, so D α ( P , Q ) = 0 D_\alpha(P,Q)=0 D α ( P , Q ) = 0 ; this direction uses neither attainment nor (A3). Conversely, if D α ( P , Q ) = 0 D_\alpha(P,Q)=0 D α ( P , Q ) = 0 , Lemma 2.3 gives a common trimming, and (2) gives d T V ( P , Q ) ≤ α d_{\mathrm{TV}}(P,Q)\le\alpha d TV ( P , Q ) ≤ α .
Proof of Lemma 2.4. The first equality holds because ⟨ E P [ g ϕ ] , f ⟩ H = E P [ g f ] \langle\mathbb{E}_P[g\phi],f\rangle_H=\mathbb{E}_P[gf] ⟨ E P [ g ϕ ] , f ⟩ H = E P [ g f ] . The second is a bathtub problem, in which every cut gives an upper bound and the bound at one cut is attained. For any t t t and g ∈ G α ( P ) g\in\mathcal{G}_\alpha(P) g ∈ G α ( P ) , since 0 ≤ g ≤ β 0\le g\le\beta 0 ≤ g ≤ β and E P g = 1 \mathbb{E}_P g=1 E P g = 1 ,
E P [ g f ] = t + E P [ g ( f − t ) ] ≤ t + β E P [ ( f − t ) + ] . \mathbb{E}_P[gf]=t+\mathbb{E}_P[g(f-t)]\le t+\beta\mathbb{E}_P[(f-t)_+]. E P [ g f ] = t + E P [ g ( f − t )] ≤ t + β E P [( f − t ) + ] .
so the supremum is at most the infimum. For the converse we fill the values of f f f above a quantile with the largest weight allowed. Let t ∗ t^* t ∗ be an α \alpha α -quantile of f ( X ) f(X) f ( X ) , so that P P ( f > t ∗ ) ≤ 1 − α ≤ P P ( f ≥ t ∗ ) \mathbb{P}_P(f>t^*)\le1-\alpha\le\mathbb{P}_P(f\ge t^*) P P ( f > t ∗ ) ≤ 1 − α ≤ P P ( f ≥ t ∗ ) , and put g ∗ = β 1 { f > t ∗ } + c 1 { f = t ∗ } g^*=\beta\mathbf{1}_{\{f>t^*\}}+c\mathbf{1}_{\{f=t^*\}} g ∗ = β 1 { f > t ∗ } + c 1 { f = t ∗ } with c = ( 1 − β P P ( f > t ∗ ) ) / P P ( f = t ∗ ) c=(1-\beta\mathbb{P}_P(f>t^*))/\mathbb{P}_P(f=t^*) c = ( 1 − β P P ( f > t ∗ )) / P P ( f = t ∗ ) when P P ( f = t ∗ ) > 0 \mathbb{P}_P(f=t^*)>0 P P ( f = t ∗ ) > 0 , and c = 0 c=0 c = 0 otherwise. Multiplied by β \beta β , the quantile inequalities read β P P ( f > t ∗ ) ≤ 1 ≤ β P P ( f ≥ t ∗ ) \beta\mathbb{P}_P(f>t^*)\le1\le\beta\mathbb{P}_P(f\ge t^*) β P P ( f > t ∗ ) ≤ 1 ≤ β P P ( f ≥ t ∗ ) , hence c ∈ [ 0 , β ] c\in[0,\beta] c ∈ [ 0 , β ] and E P [ g ∗ ] = 1 \mathbb{E}_P[g^*]=1 E P [ g ∗ ] = 1 (when P P ( f = t ∗ ) = 0 \mathbb{P}_P(f=t^*)=0 P P ( f = t ∗ ) = 0 they force β P P ( f > t ∗ ) = 1 \beta\mathbb{P}_P(f>t^*)=1 β P P ( f > t ∗ ) = 1 ). Since ( f − t ∗ ) + = ( f − t ∗ ) 1 { f > t ∗ } (f-t^*)_+=(f-t^*)\mathbf{1}_{\{f>t^*\}} ( f − t ∗ ) + = ( f − t ∗ ) 1 { f > t ∗ } , we get E P [ g ∗ f ] = t ∗ + β E P [ ( f − t ∗ ) + ] \mathbb{E}_P[g^*f]=t^*+\beta\mathbb{E}_P[(f-t^*)_+] E P [ g ∗ f ] = t ∗ + β E P [( f − t ∗ ) + ] , so g ∗ g^* g ∗ attains the supremum and t ∗ t^* t ∗ the infimum. Only boundedness and measurability of f f f were used.
The cut, continuity in the level and a hinge class
The cut t t t in (8) , the threshold of the next lemma, can be confined to [ − κ , κ ] [-\kappa,\kappa] [ − κ , κ ] .
Lemma S1.1 (Compact range of the threshold). Let Assumption 2.1 hold, α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) , and R R R any probability measure. For every f ∈ B H f\in B_H f ∈ B H the infimum in (8) , with R R R in place of P P P , is attained at some t ∗ ∈ [ − κ , κ ] t^*\in[-\kappa,\kappa] t ∗ ∈ [ − κ , κ ] .
Proof. The function A ( t ) = t + β E R [ ( f ( X ) − t ) + ] A(t)=t+\beta\mathbb{E}_R[(f(X)-t)_+] A ( t ) = t + β E R [( f ( X ) − t ) + ] is convex, with right derivative 1 − β P R ( f ( X ) > t ) 1-\beta\mathbb{P}_R(f(X)>t) 1 − β P R ( f ( X ) > t ) by dominated convergence. Since ∣ f ∣ ≤ κ |f|\le\kappa ∣ f ∣ ≤ κ , A ( t ) = t A(t)=t A ( t ) = t for t > κ t>\kappa t > κ , while for t < − κ t<-\kappa t < − κ the right derivative is 1 − β = − α β ≤ 0 1-\beta=-\alpha\beta\le0 1 − β = − α β ≤ 0 . A continuous convex function that is nonincreasing on ( − ∞ , − κ ] (-\infty,-\kappa] ( − ∞ , − κ ] and increasing on [ κ , ∞ ) [\kappa,\infty) [ κ , ∞ ) attains its infimum in [ − κ , κ ] [-\kappa,\kappa] [ − κ , κ ] .
Lemma S1.2 (Local Lipschitz continuity in α \alpha α ). Under Assumption 2.1, for every α ˉ ∈ [ 0 , 1 ) \bar{\alpha}\in[0,1) α ˉ ∈ [ 0 , 1 ) and α , α ′ ∈ [ 0 , α ˉ ] \alpha,\alpha'\in[0,\bar{\alpha}] α , α ′ ∈ [ 0 , α ˉ ] ,
∣ D α ( P , Q ) − D α ′ ( P , Q ) ∣ ≤ 4 κ ( 1 − α ˉ ) 2 ∣ α − α ′ ∣ . \left|D_\alpha(P,Q)-D_{\alpha'}(P,Q)\right|\le\frac{4\kappa}{(1-\bar{\alpha})^2}|\alpha-\alpha'|. ∣ D α ( P , Q ) − D α ′ ( P , Q ) ∣ ≤ ( 1 − α ˉ ) 2 4 κ ∣ α − α ′ ∣. In particular α ↦ D α ( P , Q ) \alpha\mapsto D_\alpha(P,Q) α ↦ D α ( P , Q ) is continuous on [ 0 , 1 ) [0,1) [ 0 , 1 ) .
Proof. The level enters the support functions only through β \beta β , as an infimum of functions affine in β \beta β , so it suffices to bound their slopes. Write β ′ = ( 1 − α ′ ) − 1 \beta'=(1-\alpha')^{-1} β ′ = ( 1 − α ′ ) − 1 . For f ∈ B H f\in B_H f ∈ B H , Lemma 2.4 and Lemma S1.1 give
h C α ( P ) ( f ) = inf t ∈ [ − κ , κ ] { t + β E P [ ( f − t ) + ] } , h_{\mathcal{C}_\alpha(P)}(f)=\inf_{t\in[-\kappa,\kappa]}\left\{t+\beta\mathbb{E}_P[(f-t)_+]\right\}, h C α ( P ) ( f ) = t ∈ [ − κ , κ ] inf { t + β E P [( f − t ) + ] } ,
an infimum of affine functions of β \beta β with slopes E P [ ( f − t ) + ] ∈ [ 0 , 2 κ ] \mathbb{E}_{P}[(f-t)_{+}] \in[0,2\kappa] E P [( f − t ) + ] ∈ [ 0 , 2 κ ] . An infimum of functions that are 2 κ 2\kappa 2 κ -Lipschitz is 2 κ 2\kappa 2 κ -Lipschitz, so ∣ h C α ( P ) ( f ) − h C α ′ ( P ) ( f ) ∣ ≤ 2 κ ∣ β − β ′ ∣ \lvert h_{C_{\alpha}(P)}(f)-h_{C_{\alpha'}(P)}(f)\rvert\le2\kappa\lvert\beta-\beta'\rvert ∣ h C α ( P ) ( f ) − h C α ′ ( P ) ( f )∣ ≤ 2 κ ∣ β − β ′ ∣ uniformly in f f f , and likewise for Q Q Q . By (S3.2) in § 9.3 ,
D α ( P , Q ) = max f ∈ B H { − h C α ( P ) ( − f ) − h C α ( Q ) ( f ) } , D_{\alpha}(P,Q)=\max_{f\in B_{\mathcal{H}}}\{-h_{C_{\alpha}(P)}(-f)-h_{C_{\alpha}(Q)}(f)\}, D α ( P , Q ) = f ∈ B H max { − h C α ( P ) ( − f ) − h C α ( Q ) ( f )} ,
and a difference of two maxima is at most the largest difference of the maximized functions, so ∣ D α ( P , Q ) − D α ′ ( P , Q ) ∣ ≤ 4 κ ∣ β − β ′ ∣ \lvert D_{\alpha}(P,Q)-D_{\alpha'}(P,Q)\rvert\le4\kappa\lvert\beta-\beta'\rvert ∣ D α ( P , Q ) − D α ′ ( P , Q )∣ ≤ 4 κ ∣ β − β ′ ∣ . Finally d d α ( 1 − α ) − 1 ≤ ( 1 − α ˉ ) − 2 \frac{d}{d\alpha}(1-\alpha)^{-1}\le(1-\bar{\alpha})^{-2} d α d ( 1 − α ) − 1 ≤ ( 1 − α ˉ ) − 2 on [ 0 , α ˉ ] [0,\bar{\alpha}] [ 0 , α ˉ ] , which gives the claim. Only (A1) and (A2) were used, for arbitrary probability measures, so the lemma applies to P n P_n P n and Q m Q_m Q m .
The deviation bounds of Theorem S2.1, Corollary S5.7 and Lemma S5.4 are instances of one lemma, in which n ⋆ = n m / ( n + m ) n_{\star}=nm/(n+m) n ⋆ = nm / ( n + m ) , as in § 3 .
Lemma S1.3 (A two-sample hinge class). Let (A1) and (A2) of Assumption 2.1 hold, let X 1 , … , X n X_1,\ldots,X_n X 1 , … , X n be i.i.d. P P P and Y 1 , … , Y m Y_1,\ldots,Y_m Y 1 , … , Y m i.i.d. Q Q Q , the two samples independent, and let r , ρ 1 , ρ 2 ≥ 0 r,\rho_1,\rho_2\ge0 r , ρ 1 , ρ 2 ≥ 0 . For each x ∈ X x\in\mathcal{X} x ∈ X let φ x 1 , φ x 2 : R → R \varphi_x^1,\varphi_x^2:\mathbb{R}\to\mathbb{R} φ x 1 , φ x 2 : R → R be 1-Lipschitz, with ( x , z ) ↦ φ x i ( z ) (x,z)\mapsto\varphi_x^i(z) ( x , z ) ↦ φ x i ( z ) measurable and sup x ∣ φ x i ( 0 ) ∣ < ∞ \sup_x\lvert\varphi_x^i(0)\rvert<\infty sup x ∣ φ x i ( 0 )∣ < ∞ . For ( v , a , b ) (v,a,b) ( v , a , b ) in S = { ( v , a , b ) ∈ H × R 2 : ∥ v ∥ H ≤ r , ∣ a ∣ ≤ ρ 1 , ∣ b ∣ ≤ ρ 2 } S=\{(v,a,b)\in\mathcal{H}\times\mathbb{R}^2:\lVert v\rVert_{\mathcal{H}}\le r,\lvert a\rvert\le\rho_1,\lvert b\rvert\le\rho_2\} S = {( v , a , b ) ∈ H × R 2 : ∥ v ∥ H ≤ r , ∣ a ∣ ≤ ρ 1 , ∣ b ∣ ≤ ρ 2 } put h v , a 1 ( x ) = φ x 1 ( a − v ( x ) ) h_{v,a}^1(x)=\varphi_x^1(a-v(x)) h v , a 1 ( x ) = φ x 1 ( a − v ( x )) and h v , b 2 ( y ) = φ y 2 ( v ( y ) − b ) h_{v,b}^2(y)=\varphi_y^2(v(y)-b) h v , b 2 ( y ) = φ y 2 ( v ( y ) − b ) , and let
Γ = sup S [ ( P − P n ) h v , a 1 + ( Q − Q m ) h v , b 2 ] , Γ − = sup S [ ( P n − P ) h v , a 1 + ( Q m − Q ) h v , b 2 ] . \Gamma=\sup_{S}\left[(P-P_n)h_{v,a}^1+(Q-Q_m)h_{v,b}^2\right],\qquad
\Gamma^-=\sup_{S}\left[(P_n-P)h_{v,a}^1+(Q_m-Q)h_{v,b}^2\right]. Γ = S sup [ ( P − P n ) h v , a 1 + ( Q − Q m ) h v , b 2 ] , Γ − = S sup [ ( P n − P ) h v , a 1 + ( Q m − Q ) h v , b 2 ] . Then Γ \Gamma Γ and Γ − \Gamma^- Γ − are measurable and their means are at most 2 [ r κ / n ⋆ + ρ 1 ϵ n + ρ 2 ϵ m ] 2[r\kappa/\sqrt{n_{\star}}+\rho_1\epsilon_n+\rho_2\epsilon_m] 2 [ r κ / n ⋆ + ρ 1 ϵ n + ρ 2 ϵ m ] . If moreover ∣ h v , a 1 ( x ) − h v , a 1 ( x ′ ) ∣ ≤ Δ 1 \lvert h_{v,a}^1(x)-h_{v,a}^1(x')\rvert\le\Delta_1 ∣ h v , a 1 ( x ) − h v , a 1 ( x ′ )∣ ≤ Δ 1 and ∣ h v , b 2 ( y ) − h v , b 2 ( y ′ ) ∣ ≤ Δ 2 \lvert h_{v,b}^2(y)-h_{v,b}^2(y')\rvert\le\Delta_2 ∣ h v , b 2 ( y ) − h v , b 2 ( y ′ )∣ ≤ Δ 2 for all points and all ( v , a , b ) ∈ S (v,a,b)\in S ( v , a , b ) ∈ S , then for every χ > 0 \chi>0 χ > 0 each of Γ \Gamma Γ and Γ − \Gamma^- Γ − exceeds its mean by more than χ ( Δ 1 2 / n + Δ 2 2 / m ) / 2 \sqrt{\chi(\Delta_1^2/n+\Delta_2^2/m)/2} χ ( Δ 1 2 / n + Δ 2 2 / m ) /2 with probability at most e − χ e^{-\chi} e − χ . For one sample the same holds with the terms of the second sample removed: n ⋆ = n n_{\star}=n n ⋆ = n , and no ρ 2 ϵ m \rho_2\epsilon_m ρ 2 ϵ m and no Δ 2 2 / m \Delta_2^2/m Δ 2 2 / m .
Proof. The mean is bounded by symmetrization, contraction and a bound on the norm of a Rademacher sum in H \mathcal{H} H , and the deviation by McDiarmid’s inequality. Measurability is settled first: for fixed samples the bracket is continuous in ( v , a , b ) (v,a,b) ( v , a , b ) , and the population terms are continuous by dominated convergence with the envelope sup x ∣ φ x i ( 0 ) ∣ + ρ i + κ r \sup_x\lvert\varphi_x^i(0)\rvert+\rho_i+\kappa r sup x ∣ φ x i ( 0 )∣ + ρ i + κ r ; as H × R 2 \mathcal{H}\times\mathbb{R}^2 H × R 2 is separable, Γ \Gamma Γ and Γ − \Gamma^- Γ − are measurable.
For the mean, Γ \Gamma Γ is a supremum of sums of n + m n+m n + m independent centered terms, and symmetrization holds in the signed form, with no absolute value inside the supremum. We introduce an independent copy of the samples, apply Jensen’s inequality, multiply the differences by independent signs ϵ i , ϵ j ′ \epsilon_i,\epsilon'_j ϵ i , ϵ j ′ , and split the supremum, to get
E Γ ≤ 2 E sup S [ 1 n ∑ i ϵ i φ X i 1 ( a − v ( X i ) ) + 1 m ∑ j ϵ j ′ φ Y j 2 ( v ( Y j ) − b ) ] . \mathbb{E}\Gamma\le2\mathbb{E}\sup_S\left[\frac{1}{n}\sum_i\epsilon_i\varphi_{X_i}^1(a-v(X_i))+\frac{1}{m}\sum_j\epsilon'_j\varphi_{Y_j}^2(v(Y_j)-b)\right]. E Γ ≤ 2 E S sup [ n 1 i ∑ ϵ i φ X i 1 ( a − v ( X i )) + m 1 j ∑ ϵ j ′ φ Y j 2 ( v ( Y j ) − b ) ] .
Conditionally on the samples, we remove the maps φ i \varphi^i φ i by the contraction principle for signed Rademacher averages with a different 1-Lipschitz map in each coordinate (Shalev-Shwartz and Ben-David, [86 ] , Lemma 26.9), applied to the coordinates ( a − v ( X i ) ) / n (a-v(X_i))/n ( a − v ( X i )) / n and ( v ( Y j ) − b ) / m (v(Y_j)-b)/m ( v ( Y j ) − b ) / m and the maps z ↦ φ X i 1 ( n z ) / n z\mapsto\varphi_{X_i}^1(nz)/n z ↦ φ X i 1 ( n z ) / n and z ↦ φ Y j 2 ( m z ) / m z\mapsto\varphi_{Y_j}^2(mz)/m z ↦ φ Y j 2 ( m z ) / m . Its constant is 1, not the 2 of the version with absolute values (Ledoux and Talagrand, [52 ] , Theorem 4.12), and it needs no normalization φ ( 0 ) = 0 \varphi(0)=0 φ ( 0 ) = 0 . It replaces the bracket by the linear expression
⟨ v , S ϵ ⟩ H + a n ∑ i ϵ i − b m ∑ j ϵ j ′ , S ϵ = 1 m ∑ j ϵ j ′ φ Y j ′ − 1 n ∑ i ϵ i φ X i , \left\langle v,S_{\epsilon}\right\rangle_{\mathcal{H}}+\frac{a}{n}\sum_i\epsilon_i-\frac{b}{m}\sum_j\epsilon'_j,\qquad S_{\epsilon}=\frac{1}{m}\sum_j\epsilon'_j\varphi_{Y_j}'-\frac{1}{n}\sum_i\epsilon_i\varphi_{X_i}, ⟨ v , S ϵ ⟩ H + n a i ∑ ϵ i − m b j ∑ ϵ j ′ , S ϵ = m 1 j ∑ ϵ j ′ φ Y j ′ − n 1 i ∑ ϵ i φ X i ,
whose supremum over S S S is r ∥ S ε ∥ H + ρ 1 ∣ n − 1 ∑ i ε i ∣ + ρ 2 ∣ m − 1 ∑ j ε j ′ ∣ r\lVert S_{\varepsilon}\rVert_{\mathcal{H}}+\rho_1\lvert n^{-1}\sum_i\varepsilon_i\rvert+\rho_2\lvert m^{-1}\sum_j\varepsilon'_j\rvert r ∥ S ε ∥ H + ρ 1 ∣ n − 1 ∑ i ε i ∣ + ρ 2 ∣ m − 1 ∑ j ε j ′ ∣ . The means of the two sign averages are e n e_n e n and e m e_m e m by definition, and
E ∥ S ε ∥ H ≤ ( E ∥ S ε ∥ H 2 ) 1 / 2 ≤ κ n ⋆ \mathbb{E}\lVert S_{\varepsilon}\rVert_{\mathcal{H}}\leq\left(\mathbb{E}\lVert S_{\varepsilon}\rVert_{\mathcal{H}}^2\right)^{1/2}\leq\frac{\kappa}{\sqrt{n_\star}} E ∥ S ε ∥ H ≤ ( E ∥ S ε ∥ H 2 ) 1/2 ≤ n ⋆ κ
by Jensen’s inequality, then independence of the signs and k ( x , x ) ≤ κ 2 k(x,x)\leq\kappa^2 k ( x , x ) ≤ κ 2 , since 1 / n + 1 / m = 1 / n ⋆ 1/n+1/m=1/n_\star 1/ n + 1/ m = 1/ n ⋆ . This gives the bound on the mean. The argument for Γ − \Gamma^- Γ − is the same, with the sample and its copy exchanged.
For the deviation, replacing one X i X_i X i moves Γ \Gamma Γ and Γ − \Gamma^- Γ − by at most Δ 1 / n \Delta_1/n Δ 1 / n , and one Y j Y_j Y j by at most Δ 2 / m \Delta_2/m Δ 2 / m , so McDiarmid’s inequality [64 ] gives the tail bound (if Δ 1 = Δ 2 = 0 \Delta_1=\Delta_2=0 Δ 1 = Δ 2 = 0 every h h h is constant and Γ = Γ − = 0 \Gamma=\Gamma^-=0 Γ = Γ − = 0 ).
No informative upper bound
The triviality of distribution-free upper bounds on d T V d_{\mathrm{TV}} d TV persists on the much smaller class of pairs whose densities are bounded by 2 2 2 , which contains every 1 2 \frac{1}{2} 2 1 -trimming of the uniform law and in which no atom can be planted: a procedure valid over the whole class must return the trivial bound, with probability at least 1 − δ 1-\delta 1 − δ , even when the two laws are identical.
Proof of Theorem 2.6 . We hide a pair of laws at total variation one in a fine random partition. Fix an even integer M ≥ 2 ( n + m ) M\geq2(n+m) M ≥ 2 ( n + m ) , cut [ 0 , 1 ] [0,1] [ 0 , 1 ] into M M M cells of equal length, and let S S S be a uniformly random set of M / 2 M/2 M /2 cells. Let P S P_S P S and Q S Q_S Q S be the uniform laws on the union of the cells in S S S and in its complement, with densities 2 ⋅ 1 S 2\cdot1_S 2 ⋅ 1 S and 2 ⋅ 1 S c 2\cdot1_{S^c} 2 ⋅ 1 S c . Then ( P S , Q S ) ∈ P 2 (P_S,Q_S)\in\mathcal{P}_2 ( P S , Q S ) ∈ P 2 and d T V ( P S , Q S ) = 1 d_{\mathrm{TV}}(P_S,Q_S)=1 d TV ( P S , Q S ) = 1 , so the coverage requirement gives P P S , Q S ( U ^ ≥ 1 ) ≥ 1 − δ \mathbb{P}_{P_S,Q_S}(\widehat{U}\geq1)\geq1-\delta P P S , Q S ( U ≥ 1 ) ≥ 1 − δ for each S S S , and hence under the mixture μ M \mu_M μ M of the laws of the data over the random S S S .
Data drawn from μ M \mu_M μ M are nearly indistinguishable from two uniform samples, because they rarely put two observations in one cell. Let E E E be the event that the n + m n+m n + m observations fall in n + m n+m n + m distinct cells. Given E E E , μ M \mu_M μ M and the product P u ⊗ ( n + m ) P_{\mathrm{u}}^{\otimes(n+m)} P u ⊗ ( n + m ) of uniform laws coincide. Under μ M \mu_M μ M , an ordered tuple of distinct cells receives X 1 , … , X n , Y 1 , … , Y m X_1,\ldots,X_n,Y_1,\ldots,Y_m X 1 , … , X n , Y 1 , … , Y m with probability ( 2 / M ) n + m (2/M)^{n+m} ( 2/ M ) n + m times the probability that its first n n n cells lie in S S S and its last m m m in S c S^c S c , which depends only on n n n and m m m , so under both laws the tuple is uniform given E E E , with independent uniform positions within the cells. Laws that agree given an event differ in total variation by at most the sum of the masses of its complement. Under μ M \mu_M μ M an X X X and a Y Y Y never share a cell, and two X X X ’s, or two Y Y Y ’s, do so with probability at most 2 / M 2/M 2/ M ; under the product law two observations do so with probability 1 / M 1/M 1/ M . Hence d T V ( μ M , P u ⊗ ( n + m ) ) ≤ { n ( n − 1 ) + m ( m − 1 ) } / M + ( n + m ) ( n + m − 1 ) / ( 2 M ) ≤ 2 ( n + m ) 2 / M d_{\mathrm{TV}}(\mu_M,P_{\mathrm{u}}^{\otimes(n+m)})\leq\{n(n-1)+m(m-1)\}/M+(n+m)(n+m-1)/(2M)\leq2(n+m)^2/M d TV ( μ M , P u ⊗ ( n + m ) ) ≤ { n ( n − 1 ) + m ( m − 1 )} / M + ( n + m ) ( n + m − 1 ) / ( 2 M ) ≤ 2 ( n + m ) 2 / M , also with an independent randomizer. Finally, P P u , P u ( U ^ ≥ 1 ) ≥ 1 − δ − 2 ( n + m ) 2 / M \mathbb{P}_{P_{\mathrm{u}},P_{\mathrm{u}}}(\widehat{U}\geq1)\geq1-\delta-2(n+m)^2/M P P u , P u ( U ≥ 1 ) ≥ 1 − δ − 2 ( n + m ) 2 / M for every even M ≥ 2 ( n + m ) M\geq2(n+m) M ≥ 2 ( n + m ) , and letting M → ∞ M\to\infty M → ∞ gives the claim.
Lower bounds escape Theorem 2.6 , but their rates do not. If α ~ \widetilde{\alpha} α were a lower confidence bound valid at level δ \delta δ for every pair in P 2 \mathcal{P}_2 P 2 and also had P P , Q ( d T V ( P , Q ) − α ~ > r ) ≤ δ ′ \mathbb{P}_{P,Q}(d_{\mathrm{TV}}(P,Q)-\widetilde{\alpha}>r)\leq\delta' P P , Q ( d TV ( P , Q ) − α > r ) ≤ δ ′ for every pair in P 2 \mathcal{P}_2 P 2 , with r < 1 r<1 r < 1 and δ + δ ′ < 1 \delta+\delta'<1 δ + δ ′ < 1 , then α ~ + r \widetilde{\alpha}+r α + r would be an upper bound valid at level δ ′ \delta' δ ′ , so by Theorem 2.6 it would reach 1 1 1 at the uniform pair with probability at least 1 − δ ′ 1-\delta' 1 − δ ′ , and there α ~ ≥ 1 − r > 0 = d T V \widetilde{\alpha}\geq1-r>0=d_{\mathrm{TV}} α ≥ 1 − r > 0 = d TV with probability larger than δ \delta δ , against its validity.
For a kernel the obstruction holds even without sampling. For any kernel satisfying (A1) and (A2), let Q ν Q_\nu Q ν have density 1 + ς ( ν ⋅ ) 1+\varsigma(\nu\cdot) 1 + ς ( ν ⋅ ) on [ 0 , 1 ] [0,1] [ 0 , 1 ] , for a measurable 1 1 1 -periodic mean-zero ς \varsigma ς with ∣ ς ∣ = 1 \lvert\varsigma\rvert=1 ∣ ς ∣ = 1 and an integer ν ≥ 1 \nu\geq1 ν ≥ 1 . Then d T V ( P , Q ν ) = 1 2 d_{\mathrm{TV}}(P,Q_\nu)=\frac{1}{2} d TV ( P , Q ν ) = 2 1 for every ν \nu ν , while μ Q ν − μ P = ∫ 0 1 ϕ ( x ) ς ( ν x ) d x → 0 \mu_{Q_\nu}-\mu_P=\int_0^1\phi(x)\varsigma(\nu x)\,dx\to0 μ Q ν − μ P = ∫ 0 1 ϕ ( x ) ς ( ν x ) d x → 0 in H \mathcal{H} H by the Riemann–Lebesgue lemma for Bochner integrals, since the bounded, strongly measurable ϕ \phi ϕ lies in L 1 ( [ 0 , 1 ] ; H ) L^1([0,1];\mathcal{H}) L 1 ([ 0 , 1 ] ; H ) , where step functions are dense, and ∫ a b ς ( ν x ) d x → 0 \int_a^b\varsigma(\nu x)\,dx\to0 ∫ a b ς ( ν x ) d x → 0 . As μ P ∈ C α ( P ) \mu_P\in\mathcal{C}_\alpha(P) μ P ∈ C α ( P ) and μ Q ∈ C α ( Q ) \mu_Q\in\mathcal{C}_\alpha(Q) μ Q ∈ C α ( Q ) , D α ( P , Q ) ≤ MMD ( P , Q ) D_\alpha(P,Q)\leq\operatorname{MMD}(P,Q) D α ( P , Q ) ≤ MMD ( P , Q ) for every α \alpha α , so the trimmed path is uniformly small while the total variation stays at 1 2 \frac{1}{2} 2 1 .
Proofs for Section 3
The proofs of this section use the constants β \beta β , κ \kappa κ , Δ ϕ \Delta_{\phi} Δ ϕ , κ ˉ 2 \bar{\kappa}^{2} κ ˉ 2 , n ⋆ n_{\star} n ⋆ , c c c and L L L of Section 3 and the separation sep \operatorname{sep} sep of (S3.1). We first prove a two-sided bound on the statistic, the tool behind the proofs of Sections S3 to S5 and behind the threshold τ S \tau^{\mathrm{S}} τ S , which is valid but larger than τ P \tau^{\mathrm{P}} τ P at our sample sizes, and then the results of Section 3. We write D α = D α ( P , Q ) D_{\alpha}=D_{\alpha}(P,Q) D α = D α ( P , Q ) and add the subscript n , m n,m n , m and the argument δ \delta δ to the thresholds of Section 3 where they vary, as in τ n , m ( α , δ ) \tau_{n,m}(\alpha,\delta) τ n , m ( α , δ ) and τ ˉ n , m ( α , δ ) \bar{\tau}_{n,m}(\alpha,\delta) τ ˉ n , m ( α , δ ) .
The null hypotheses of Section 3 are total-variation neighborhoods of P = Q P=Q P = Q . Equivalence tests (Wellek [101 ] ) put a neighborhood of fixed size in the alternative instead, with a trimmed Mallows distance in Munk and Czado [69 ] and the MMD in Liu and Gandy [61 ] , so that a rejection shows that two laws are close. In (12) a rejection shows that they are far apart, and α \alpha α is varied to locate α ⋆ \alpha^{\star} α ⋆ .
A two-sided bound on the statistic
Theorem S2.1 (Concentration of the trimmed discrepancy). Under (A1) and (A2) of Assumption 2.1, for every pair ( P , Q ) (P,Q) ( P , Q ) , all n , m ≥ 1 n,m\geq1 n , m ≥ 1 and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) there are events E + E^{+} E + and E − E^{-} E − , not depending on α \alpha α , each of probability at least 1 − δ 1-\delta 1 − δ , such that for every α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) ,
D ^ α ≤ D α + τ n , m S ( α , δ ) on E + , D ^ α ≥ D α − τ n , m S ( α , δ ) on E − , \widehat{D}_{\alpha}\leq D_{\alpha}+\tau^{\mathrm{S}}_{n,m}(\alpha,\delta)\ \text{on }E^{+}, \qquad\widehat{D}_{\alpha}\geq D_{\alpha}-\tau^{\mathrm{S}}_{n,m}(\alpha,\delta)\ \text{on }E^{-}, D α ≤ D α + τ n , m S ( α , δ ) on E + , D α ≥ D α − τ n , m S ( α , δ ) on E − , where
τ n , m S ( α , δ ) = β [ 2 κ n ⋆ + 2 κ ( e n + e m ) + Δ ϕ log ( 1 / δ ) 2 n ⋆ ] (19) \tau^{\mathrm{S}}_{n,m}(\alpha,\delta)=\beta\left[\frac{2\kappa}{\sqrt{n_{\star}}}+2\kappa(e_n+e_m)+\Delta_{\phi}\sqrt{\frac{\log(1/\delta)}{2n_{\star}}}\right] \tag*{(19)} τ n , m S ( α , δ ) = β n ⋆ 2 κ + 2 κ ( e n + e m ) + Δ ϕ 2 n ⋆ log ( 1/ δ ) (19) and e k = E ∣ ε 1 + ⋯ + ε k ∣ / k ≤ k − 1 / 2 e_k=\mathbb{E}|\varepsilon_1+\cdots+\varepsilon_k|/k\leq k^{-1/2} e k = E ∣ ε 1 + ⋯ + ε k ∣/ k ≤ k − 1/2 for independent Rademacher signs ε i \varepsilon_i ε i .
The statistic is the largest separation over directions, a difference of two extreme trimmed means, each the best of a family of ordinary means of hinge functions. So one supremum of centered means over the two samples controls it at every level, a change of one observation moves that supremum by at most Δ ϕ / n \Delta_{\phi}/n Δ ϕ / n , and the level enters only through β \beta β , the largest weight a trimming can put on one observation. The suprema Γ \Gamma Γ and Γ − \Gamma^{-} Γ − of the proof do not involve α \alpha α ; computed on the fitting batches, they control the fitted ramps in the proofs of Proposition 4.4 and Theorem S4.3.
Proof. We first bound the difference of the two paths, at every level at once, by β \beta β times a supremum that does not involve α \alpha α , and then bound that supremum by Lemma S1.3. Fix α \alpha α and write A = C α ( P ) \mathcal{A}=C_{\alpha}(P) A = C α ( P ) , B = C α ( Q ) \mathcal{B}=C_{\alpha}(Q) B = C α ( Q ) , A n = C α ( P n ) \mathcal{A}_n=C_{\alpha}(P_n) A n = C α ( P n ) and B m = C α ( Q m ) \mathcal{B}_m=C_{\alpha}(Q_m) B m = C α ( Q m ) . Recall from (S3.1) that the separation of two sets in the direction f f f is inf a ⟨ f , a ⟩ H − sup b ⟨ f , b ⟩ H \inf_{a}\langle f,a\rangle_{\mathcal{H}}-\sup_{b}\langle f,b\rangle_{\mathcal{H}} inf a ⟨ f , a ⟩ H − sup b ⟨ f , b ⟩ H , so that in terms of support functions sep ( f ) = sep ( f ; A , B ) = − h A ( − f ) − h B ( f ) \operatorname{sep}(f)=\operatorname{sep}(f;\mathcal{A},\mathcal{B})=-h_{\mathcal{A}}(-f)-h_{\mathcal{B}}(f) sep ( f ) = sep ( f ; A , B ) = − h A ( − f ) − h B ( f ) and sep n ( f ) = sep ( f ; A n , B m ) = − h A n ( − f ) − h B m ( f ) \operatorname{sep}_n(f)=\operatorname{sep}(f;\mathcal{A}_n,\mathcal{B}_m)=-h_{\mathcal{A}_n}(-f)-h_{\mathcal{B}_m}(f) sep n ( f ) = sep ( f ; A n , B m ) = − h A n ( − f ) − h B m ( f ) . By (S3.2), D ^ α = max f ∈ B H sep n ( f ) \widehat{D}_{\alpha}=\max_{f\in B_{\mathcal{H}}}\operatorname{sep}_n(f) D α = max f ∈ B H sep n ( f ) , and sep ( f ) ≤ D α \operatorname{sep}(f)\leq D_{\alpha} sep ( f ) ≤ D α for every f ∈ B H f\in B_{\mathcal{H}} f ∈ B H by (S3.1). It is therefore enough to bound sep n ( f ) − sep ( f ) \operatorname{sep}_n(f)-\operatorname{sep}(f) sep n ( f ) − sep ( f ) uniformly in f f f .
Fix f ∈ B H f\in B_{\mathcal{H}} f ∈ B H . Each support function is an infimum over cuts (Lemma 2.4), and evaluating the population infimum at the cut that is optimal for the sample compares the two. By Lemmas 2.4 and S1.1, applied to P n P_n P n and the direction − f -f − f , there is t n ∈ [ − κ , κ ] t_n\in[-\kappa,\kappa] t n ∈ [ − κ , κ ] with
h A n ( − f ) = t n + β P n ( − f − t n ) + , while h A ( − f ) ≤ t n + β P ( − f − t n ) + . h_{\mathcal{A}_n}(-f)=t_n+\beta P_n(-f-t_n)_{+}, \qquad\text{while}\qquad h_{\mathcal{A}}(-f)\leq t_n+\beta P(-f-t_n)_{+}. h A n ( − f ) = t n + β P n ( − f − t n ) + , while h A ( − f ) ≤ t n + β P ( − f − t n ) + .
Hence h A ( − f ) − h A n ( − f ) ≤ β ( P − P n ) ( − f − t n ) + h_{\mathcal{A}}(-f)-h_{\mathcal{A}_n}(-f)\leq\beta(P-P_n)(-f-t_n)_{+} h A ( − f ) − h A n ( − f ) ≤ β ( P − P n ) ( − f − t n ) + , and in the same way h B ( f ) − h B m ( f ) ≤ β ( Q − Q m ) ( f − t m ′ ) + h_{\mathcal{B}}(f)-h_{\mathcal{B}_m}(f)\leq\beta(Q-Q_m)(f-t'_m)_{+} h B ( f ) − h B m ( f ) ≤ β ( Q − Q m ) ( f − t m ′ ) + for the cut t m ′ ∈ [ − κ , κ ] t'_m\in[-\kappa,\kappa] t m ′ ∈ [ − κ , κ ] optimal for Q m Q_m Q m and f f f . Adding the two bounds and using sep ( f ) ≤ D α \operatorname{sep}(f)\leq D_{\alpha} sep ( f ) ≤ D α ,
sep n ( f ) − D α ≤ β Γ , Γ = sup f ∈ B H , t , t ′ ∈ [ − κ , κ ] [ ( P − P n ) ( − f − t ) + + ( Q − Q m ) ( f − t ′ ) + ] , \operatorname{sep}_n(f)-D_{\alpha}\leq\beta\Gamma,\qquad\Gamma=\sup_{\substack{f\in B_{\mathcal{H}},\,t,t'\in[-\kappa,\kappa]}}\left[(P-P_n)(-f-t)_{+}+(Q-Q_m)(f-t')_{+}\right], sep n ( f ) − D α ≤ β Γ , Γ = f ∈ B H , t , t ′ ∈ [ − κ , κ ] sup [ ( P − P n ) ( − f − t ) + + ( Q − Q m ) ( f − t ′ ) + ] ,
for every f ∈ B H f \in B_{\mathcal{H}} f ∈ B H . Taking the maximum over f f f gives D ^ α − D α ≤ β Γ \widehat{D}_{\alpha}-D_{\alpha}\leq\beta\Gamma D α − D α ≤ β Γ for every α \alpha α , and Γ \Gamma Γ does not involve α \alpha α . The reverse inequality D α − D ^ α ≤ β Γ − D_{\alpha}-\widehat{D}_{\alpha}\leq\beta\Gamma^{-} D α − D α ≤ β Γ − , with Γ − = sup [ ( P n − P ) ( − f − t ) + + ( Q m − Q ) ( f − t ′ ) + ] \Gamma^{-}=\sup[(P_n-P)(-f-t)_{+}+(Q_m-Q)(f-t')_{+}] Γ − = sup [( P n − P ) ( − f − t ) + + ( Q m − Q ) ( f − t ′ ) + ] over the same set, follows in the same way, with the roles of the population and the sample exchanged: one evaluates at a maximizer of sep \operatorname{sep} sep , which exists by (S3.2) and Lemma 2.3, and at the population minimizers of Lemma S1.1.
We now bound Γ \Gamma Γ and Γ − \Gamma^{-} Γ − . The supremum Γ \Gamma Γ is that of Lemma S1.3 with φ x 1 = φ y 2 = ( ⋅ ) + \varphi_x^1=\varphi_y^2=(\cdot)_{+} φ x 1 = φ y 2 = ( ⋅ ) + , v = f v=f v = f , a = − t a=-t a = − t , b = t ′ b=t' b = t ′ , r = 1 r=1 r = 1 and ρ 1 = ρ 2 = κ \rho_1=\rho_2=\kappa ρ 1 = ρ 2 = κ , and Γ − \Gamma^{-} Γ − is its counterpart. Replacing X i X_i X i by X i ′ X_i' X i ′ changes ( − f ( X i ) − t ) + (-f(X_i)-t)_{+} ( − f ( X i ) − t ) + by at most ∣ f ( X i ) − f ( X i ′ ) ∣ ≤ ∥ ϕ ( X i ) − ϕ ( X i ′ ) ∥ H ≤ Δ ϕ \lvert f(X_i)-f(X_i')\rvert\leq\lVert\phi(X_i)-\phi(X_i')\rVert_{\mathcal{H}}\leq\Delta_{\phi} ∣ f ( X i ) − f ( X i ′ )∣ ≤ ∥ ϕ ( X i ) − ϕ ( X i ′ ) ∥ H ≤ Δ ϕ , and likewise for the Y Y Y 's, so Δ 1 = Δ 2 = Δ ϕ \Delta_1=\Delta_2=\Delta_{\phi} Δ 1 = Δ 2 = Δ ϕ . The lemma gives E Γ , E Γ − ≤ 2 κ / n ⋆ + 2 κ ( ϵ n + ϵ m ) \mathbb{E}\Gamma,\mathbb{E}\Gamma^{-}\leq2\kappa/\sqrt{n_{\star}}+2\kappa(\epsilon_n+\epsilon_m) E Γ , E Γ − ≤ 2 κ / n ⋆ + 2 κ ( ϵ n + ϵ m ) and, at e − χ = δ e^{-\chi}=\delta e − χ = δ , as Δ ϕ 2 ( 1 / n + 1 / m ) / 2 = Δ ϕ 2 / ( 2 n ⋆ ) \Delta_{\phi}^{2}(1/n+1/m)/2=\Delta_{\phi}^{2}/(2n_{\star}) Δ ϕ 2 ( 1/ n + 1/ m ) /2 = Δ ϕ 2 / ( 2 n ⋆ ) , it gives P ( Γ > E Γ + Δ ϕ log ( 1 / δ ) / ( 2 n ⋆ ) ) ≤ δ \mathbb{P}(\Gamma>\mathbb{E}\Gamma+\Delta_{\phi}\sqrt{\log(1/\delta)/(2n_{\star})})\leq\delta P ( Γ > E Γ + Δ ϕ log ( 1/ δ ) / ( 2 n ⋆ ) ) ≤ δ , and the same for Γ − \Gamma^{-} Γ − . The bracket in (S2.1) is the sum of these two bounds, so the events E + = { β Γ ≤ τ n , m S ( α , δ ) } E^{+}=\{\beta\Gamma\leq\tau^{S}_{n,m}(\alpha,\delta)\} E + = { β Γ ≤ τ n , m S ( α , δ )} and E − = { β Γ − ≤ τ n , m S ( α , δ ) } E^{-}=\{\beta\Gamma^{-}\leq\tau^{S}_{n,m}(\alpha,\delta)\} E − = { β Γ − ≤ τ n , m S ( α , δ )} have probability at least 1 − δ 1-\delta 1 − δ . They do not depend on α \alpha α , because both sides of each inequality carry the factor β \beta β .
A feasible point near the common embedding
The reduction behind Theorem 3.1, explained in § 3 , is the following lemma.
Lemma S2.2 (A feasible point near the common embedding). Let α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) , and let R R R be a probability measure with R ≪ P R\ll P R ≪ P and R ≪ Q R\ll Q R ≪ Q whose densities have versions g P = d R / d P g_P=dR/dP g P = d R / d P and g Q = d R / d Q g_Q=dR/dQ g Q = d R / d Q with values in [ 0 , ( 1 − α ) − 1 ] [0,(1-\alpha)^{-1}] [ 0 , ( 1 − α ) − 1 ] . Put μ R = E R [ ϕ ( X ) ] \mu_R=\mathbb{E}_R[\phi(X)] μ R = E R [ ϕ ( X )] , ρ R = sup x ∥ ϕ ( x ) − μ R ∥ H \rho_R=\sup_x\lVert\phi(x)-\mu_R\rVert_{\mathcal{H}} ρ R = sup x ∥ ϕ ( x ) − μ R ∥ H ,
U X = 1 n ∑ i = 1 n g P ( X i ) ( ϕ ( X i ) − μ R ) , U Y = 1 m ∑ j = 1 m g Q ( Y j ) ( ϕ ( Y j ) − μ R ) , U_X=\frac{1}{n}\sum_{i=1}^{n}g_P(X_i)\bigl(\phi(X_i)-\mu_R\bigr),\qquad U_Y=\frac{1}{m}\sum_{j=1}^{m}g_Q(Y_j)\bigl(\phi(Y_j)-\mu_R\bigr), U X = n 1 i = 1 ∑ n g P ( X i ) ( ϕ ( X i ) − μ R ) , U Y = m 1 j = 1 ∑ m g Q ( Y j ) ( ϕ ( Y j ) − μ R ) , S X = 1 n ∑ i = 1 n g P ( X i ) , S Y = 1 m ∑ j = 1 m g Q ( Y j ) . S_X=\frac{1}{n}\sum_{i=1}^{n}g_P(X_i),\qquad S_Y=\frac{1}{m}\sum_{j=1}^{m}g_Q(Y_j). S X = n 1 i = 1 ∑ n g P ( X i ) , S Y = m 1 j = 1 ∑ m g Q ( Y j ) . Then, for every realization of the samples, D ^ α ≤ max { ∥ U X − U Y ∥ H , ∥ U X ∥ H , ∥ U Y ∥ H } + ρ R [ ( 1 − S X ) + + ( 1 − S Y ) + ] \widehat{D}_{\alpha}\leq\max\{\lVert U_X-U_Y\rVert_{\mathcal{H}},\lVert U_X\rVert_{\mathcal{H}},\lVert U_Y\rVert_{\mathcal{H}}\}+\rho_R[(1-S_X)_{+}+(1-S_Y)_{+}] D α ≤ max {∥ U X − U Y ∥ H , ∥ U X ∥ H , ∥ U Y ∥ H } + ρ R [( 1 − S X ) + + ( 1 − S Y ) + ] .
Proof. Any feasible pair of weights bounds the statistic from above. The weights g P ( X i ) / n g_P(X_i)/n g P ( X i ) / n and g Q ( Y j ) / m g_Q(Y_j)/m g Q ( Y j ) / m respect the caps but their totals need not be one, so we repair the totals and pay in proportion to the shortfall. By Proposition 2.2 the capped simplex { 0 ≤ w i ≤ β / n , ∑ i w i = 1 } \{0\leq w_i\leq\beta/n,\ \sum_iw_i=1\} { 0 ≤ w i ≤ β / n , ∑ i w i = 1 } parametrizes C α ( P n ) C_{\alpha}(P_n) C α ( P n ) . Let w i 0 = g P ( X i ) / n ∈ [ 0 , β / n ] w_i^0=g_P(X_i)/n\in[0,\beta/n] w i 0 = g P ( X i ) / n ∈ [ 0 , β / n ] , so that ∑ i w i 0 ϕ ( X i ) = U X + S X μ R \sum_iw_i^0\phi(X_i)=U_X+S_X\mu_R ∑ i w i 0 ϕ ( X i ) = U X + S X μ R .
If S X ≥ 1 S_X\geq1 S X ≥ 1 , put w = w 0 / S X w=w^0/S_X w = w 0 / S X , which respects the caps, and then ∑ i w i ϕ ( X i ) − μ R = U X / S X \sum_iw_i\phi(X_i)-\mu_R=U_X/S_X ∑ i w i ϕ ( X i ) − μ R = U X / S X . If S X < 1 S_X<1 S X < 1 , the room under the caps is ∑ i ( β / n − w i 0 ) = β − S X ≥ 1 − S X \sum_i(\beta/n-w_i^0)=\beta-S_X\geq1-S_X ∑ i ( β / n − w i 0 ) = β − S X ≥ 1 − S X , so there is u u u with 0 ≤ u i ≤ β / n − w i 0 0\leq u_i\leq\beta/n-w_i^0 0 ≤ u i ≤ β / n − w i 0 and ∑ i u i = 1 − S X \sum_i u_i=1-S_X ∑ i u i = 1 − S X ; put w = w 0 + u w=w^0+u w = w 0 + u , and then ∑ i w i ϕ ( X i ) − μ R = U X + ∑ i u i ( ϕ ( X i ) − μ R ) \sum_iw_i\phi(X_i)-\mu_R=U_X+\sum_i u_i(\phi(X_i)-\mu_R) ∑ i w i ϕ ( X i ) − μ R = U X + ∑ i u i ( ϕ ( X i ) − μ R ) . In both cases ∑ i w i ϕ ( X i ) − μ R = λ X U X + r X \sum_iw_i\phi(X_i)-\mu_R=\lambda_XU_X+r_X ∑ i w i ϕ ( X i ) − μ R = λ X U X + r X with λ X ∈ ( 0 , 1 ] \lambda_X\in(0,1] λ X ∈ ( 0 , 1 ] and ∥ r X ∥ H ≤ ρ R ( 1 − S X ) + \lVert r_X\rVert_{\mathcal{H}}\leq\rho_R(1-S_X)_{+} ∥ r X ∥ H ≤ ρ R ( 1 − S X ) + , the bound on r X r_X r X because u u u has total mass 1 − S X 1-S_X 1 − S X and each ϕ ( X i ) − μ R \phi(X_i)-\mu_R ϕ ( X i ) − μ R has norm at most ρ R \rho_R ρ R .
Doing the same on the Y Y Y side gives a feasible pair ( w , v ) (w,v) ( w , v ) , so
D ^ α ≤ ∥ ∑ i w i ϕ ( X i ) − ∑ j v j ϕ ( Y j ) ∥ H ≤ ∥ λ X U X − λ Y U Y ∥ H + ∥ r X ∥ H + ∥ r Y ∥ H . \widehat{D}_{\alpha}\leq\left\lVert\sum_iw_i\phi(X_i)-\sum_jv_j\phi(Y_j)\right\rVert_{\mathcal{H}}\leq\lVert\lambda_XU_X-\lambda_YU_Y\rVert_{\mathcal{H}}+\lVert r_X\rVert_{\mathcal{H}}+\lVert r_Y\rVert_{\mathcal{H}}. D α ≤ i ∑ w i ϕ ( X i ) − j ∑ v j ϕ ( Y j ) H ≤ ∥ λ X U X − λ Y U Y ∥ H + ∥ r X ∥ H + ∥ r Y ∥ H .
The unknown factors λ X \lambda_X λ X and λ Y \lambda_Y λ Y are removed as follows. The map ( λ , λ ′ ) ↦ ∥ λ U X − λ ′ U Y ∥ H (\lambda,\lambda')\mapsto\lVert\lambda U_X-\lambda'U_Y\rVert_{\mathcal{H}} ( λ , λ ′ ) ↦ ∥ λ U X − λ ′ U Y ∥ H is convex on [ 0 , 1 ] 2 [0,1]^2 [ 0 , 1 ] 2 , so it is at most its largest value at a vertex, max { 0 , ∥ U X ∥ H , ∥ U Y ∥ H , ∥ U X − U Y ∥ H } \max\{0,\lVert U_X\rVert_{\mathcal{H}},\lVert U_Y\rVert_{\mathcal{H}},\lVert U_X-U_Y\rVert_{\mathcal{H}}\} max { 0 , ∥ U X ∥ H , ∥ U Y ∥ H , ∥ U X − U Y ∥ H } .
Proof of Theorem 3.1
The proof bounds the three norms and the two shortfalls of Lemma S2.2 separately, and uses four facts about the summands. Write ξ = g P ( X ) ( ϕ ( X ) − μ R ) \xi= g_P(X)(\phi(X)-\mu_R) ξ = g P ( X ) ( ϕ ( X ) − μ R ) and W = 1 − g P ( X ) W=1-g_P(X) W = 1 − g P ( X ) , so that U X U_X U X and 1 − S X 1-S_X 1 − S X are averages of n n n independent copies of ξ \xi ξ and W W W , and recall that κ ˉ 2 = min ( κ 2 , Δ ϕ 2 / 2 ) \bar{\kappa}^{2}=\min(\kappa^{2},\Delta_{\phi}^{2}/2) κ ˉ 2 = min ( κ 2 , Δ ϕ 2 /2 ) . Then
(i) E ξ = 0 , E ∥ ξ ∥ H 2 ≤ β κ ˉ 2 , \mathbb{E}\xi=0,\qquad\mathbb{E}\lVert\xi\rVert_H^2\le\beta\bar{\kappa}^{2}, E ξ = 0 , E ∥ ξ ∥ H 2 ≤ β κ ˉ 2 ,
(ii) ∥ ξ ( x ) ∥ H ≤ β ρ R , ∥ ξ ( x ) − ξ ( x ′ ) ∥ H ≤ β Δ ϕ , \lVert\xi(x)\rVert_H\le\beta\rho_R,\qquad\lVert\xi(x)-\xi(x')\rVert_H\le\beta\Delta_{\phi}, ∥ ξ ( x ) ∥ H ≤ β ρ R , ∥ ξ ( x ) − ξ ( x ′ ) ∥ H ≤ β Δ ϕ ,
(iii) E W = 0 , 1 − β ≤ W ≤ 1 , Var W ≤ β − 1 , \mathbb{E}W=0,\qquad1-\beta\le W\le1,\qquad\operatorname{Var}W\le\beta-1, E W = 0 , 1 − β ≤ W ≤ 1 , Var W ≤ β − 1 ,
(iv) ρ R ≤ Δ ϕ \rho_R\le\Delta_{\phi} ρ R ≤ Δ ϕ .
For (i), E ∥ ξ ∥ H 2 = E P [ g P 2 ∥ ϕ − μ R ∥ H 2 ] ≤ β E R ∥ ϕ − μ R ∥ H 2 \mathbb{E}\lVert\xi\rVert_H^2=\mathbb{E}_P[g_P^2\lVert\phi-\mu_R\rVert_H^2]\le\beta\mathbb{E}_R\lVert\phi-\mu_R\rVert_H^2 E ∥ ξ ∥ H 2 = E P [ g P 2 ∥ ϕ − μ R ∥ H 2 ] ≤ β E R ∥ ϕ − μ R ∥ H 2 since g P ≤ β g_P\le\beta g P ≤ β , and the last variance is at most κ 2 \kappa^2 κ 2 , as E R ∥ ϕ − μ R ∥ H 2 = E R k ( X , X ) − ∥ μ R ∥ H 2 \mathbb{E}_R\lVert\phi-\mu_R\rVert_H^2=\mathbb{E}_R k(X,X)-\lVert\mu_R\rVert_H^2 E R ∥ ϕ − μ R ∥ H 2 = E R k ( X , X ) − ∥ μ R ∥ H 2 , and at most Δ ϕ 2 / 2 \Delta_{\phi}^2/2 Δ ϕ 2 /2 , as it equals 1 2 E R ⊗ R ∥ ϕ ( X ) − ϕ ( X ′ ) ∥ H 2 \frac{1}{2}\mathbb{E}_{R\otimes R}\lVert\phi(X)-\phi(X')\rVert_H^2 2 1 E R ⊗ R ∥ ϕ ( X ) − ϕ ( X ′ ) ∥ H 2 . For (ii), the map ( p , q ) ↦ ∥ p ( ϕ ( x ) − μ R ) − q ( ϕ ( x ′ ) − μ R ) ∥ H (p,q)\mapsto\lVert p(\phi(x)-\mu_R)-q(\phi(x')-\mu_R)\rVert_H ( p , q ) ↦ ∥ p ( ϕ ( x ) − μ R ) − q ( ϕ ( x ′ ) − μ R ) ∥ H is convex on [ 0 , β ] 2 [0,\beta]^2 [ 0 , β ] 2 , and its values at the vertices are at most these bounds, using ρ R ≤ Δ ϕ \rho_R\le\Delta_{\phi} ρ R ≤ Δ ϕ . In (iii), Var W = E P g P 2 − 1 ≤ β − 1 \operatorname{Var}W=\mathbb{E}_P g_P^2-1\le\beta-1 Var W = E P g P 2 − 1 ≤ β − 1 as g P 2 ≤ β g P g_P^2\le\beta g_P g P 2 ≤ β g P . For (iv), μ R \mu_R μ R lies in the closed convex hull of ϕ ( X ) \phi(\mathcal{X}) ϕ ( X ) . The same holds for g Q g_Q g Q , Q Q Q and the Y Y Y side.
Proof. Under the null, (2) gives a common trimming R R R , so Lemma S2.2 applies, and it bounds the statistic by three norms and two shortfalls. We bound six tails in closed form, each by δ / 6 \delta/6 δ /6 , which explains L = log ( 6 / δ ) L=\log(6/\delta) L = log ( 6/ δ ) in the threshold.
The level α = 0 \alpha=0 α = 0 is simpler and is treated first. There 0 ≤ g P ≤ 1 0\le g_P\le1 0 ≤ g P ≤ 1 and E P g P = 1 \mathbb{E}_P g_P=1 E P g P = 1 force g P = 1 g_P=1 g P = 1 P P P -almost surely, so S X = S Y = 1 S_X=S_Y=1 S X = S Y = 1 and D ^ 0 ≤ ∥ U X − U Y ∥ H \widehat{D}_0\le\lVert U_X-U_Y\rVert_H D 0 ≤ ∥ U X − U Y ∥ H almost surely. As U X − U Y U_X-U_Y U X − U Y is a sum of n + m n+m n + m independent centered vectors, (i) gives E ∥ U X − U Y ∥ H ≤ ( E ∥ U X − U Y ∥ H 2 ) 1 / 2 ≤ κ ˉ / n ⋆ \mathbb{E}\lVert U_X-U_Y\rVert_H\le(\mathbb{E}\lVert U_X-U_Y\rVert_H^2)^{1/2}\le\bar{\kappa}/\sqrt{n_\star} E ∥ U X − U Y ∥ H ≤ ( E ∥ U X − U Y ∥ H 2 ) 1/2 ≤ κ ˉ / n ⋆ . Changing one X i X_i X i changes ∥ U X − U Y ∥ H \lVert U_X-U_Y\rVert_H ∥ U X − U Y ∥ H by at most Δ ϕ / n \Delta_{\phi}/n Δ ϕ / n by (ii), and one Y j Y_j Y j by at most Δ ϕ / m \Delta_{\phi}/m Δ ϕ / m , so McDiarmid’s inequality gives P ( ∥ U X − U Y ∥ H > κ ˉ / n ⋆ + Δ ϕ log ( 1 / δ ) / ( 2 n ⋆ ) ) ≤ δ \mathbb{P}(\lVert U_X-U_Y\rVert_H>\bar{\kappa}/\sqrt{n_\star}+\Delta_{\phi}\sqrt{\log(1/\delta)/(2n_\star)})\le\delta P (∥ U X − U Y ∥ H > κ ˉ / n ⋆ + Δ ϕ log ( 1/ δ ) / ( 2 n ⋆ ) ) ≤ δ , which is the bound at α = 0 \alpha=0 α = 0 .
Now let α > 0 \alpha>0 α > 0 , and split the threshold as τ P ( α ) = T 1 + Δ ϕ T 2 \tau^P(\alpha)=T_1+\Delta_{\phi}T_2 τ P ( α ) = T 1 + Δ ϕ T 2 , with
T 1 = β κ ˉ 2 n ⋆ + β Δ ϕ L 2 n ⋆ , T 2 = 2 ( β − 1 ) L n ⋆ + c L 3 . T_1=\sqrt{\frac{\beta\bar{\kappa}^{2}}{n_\star}}+\beta\Delta_{\phi}\sqrt{\frac{L}{2n_\star}},\qquad T_2=\sqrt{\frac{2(\beta-1)L}{n_\star}}+\frac{cL}{3}. T 1 = n ⋆ β κ ˉ 2 + β Δ ϕ 2 n ⋆ L , T 2 = n ⋆ 2 ( β − 1 ) L + 3 c L .
By Lemma S2.2 and (iv), the event { D ^ α > T 1 + Δ ϕ T 2 } \{\widehat{D}_\alpha>T_1+\Delta_{\phi}T_2\} { D α > T 1 + Δ ϕ T 2 } is contained in { max ( ∥ U X − U Y ∥ H , ∥ U X ∥ H , ∥ U Y ∥ H ) > T 1 } ∪ { ( 1 − S X ) + + ( 1 − S Y ) + > T 2 } \{\max(\lVert U_X-U_Y\rVert_H,\lVert U_X\rVert_H,\lVert U_Y\rVert_H)>T_1\}\cup\{(1-S_X)_++(1-S_Y)_+>T_2\} { max (∥ U X − U Y ∥ H , ∥ U X ∥ H , ∥ U Y ∥ H ) > T 1 } ∪ {( 1 − S X ) + + ( 1 − S Y ) + > T 2 } . The term T 1 T_1 T 1 handles the norms. For each of ∥ U X − U Y ∥ H \lVert U_X-U_Y\rVert_H ∥ U X − U Y ∥ H , ∥ U X ∥ H \lVert U_X\rVert_H ∥ U X ∥ H and ∥ U Y ∥ H \lVert U_Y\rVert_H ∥ U Y ∥ H the mean is at most β κ ˉ 2 / n ⋆ \sqrt{\beta\bar{\kappa}^{2}/n_\star} β κ ˉ 2 / n ⋆ by (i), the sum of squared bounded differences is at most β 2 Δ ϕ 2 / n ⋆ \beta^2\Delta_{\phi}^2/n_\star β 2 Δ ϕ 2 / n ⋆ by (ii), and McDiarmid’s inequality bounds the probability of exceeding T 1 T_1 T 1 by e − L = δ / 6 e^{-L}=\delta/6 e − L = δ /6 . The term T 2 T_2 T 2 handles the shortfalls. The event { ( 1 − S X ) + + ( 1 − S Y ) + > T 2 } \{(1-S_X)_++(1-S_Y)_+>T_2\} {( 1 − S X ) + + ( 1 − S Y ) + > T 2 } is contained in { 1 − S X > T 2 } ∪ { 1 − S Y > T 2 } ∪ { ( 1 − S X ) + ( 1 − S Y ) > T 2 } \{1-S_X>T_2\}\cup\{1-S_Y>T_2\}\cup\{(1-S_X)+(1-S_Y)>T_2\} { 1 − S X > T 2 } ∪ { 1 − S Y > T 2 } ∪ {( 1 − S X ) + ( 1 − S Y ) > T 2 } , and each of these is the upper tail of a sum of independent centered terms bounded above by c c c , with variance sum at most V = ( β − 1 ) / n ⋆ V=(\beta-1)/n_\star V = ( β − 1 ) / n ⋆ by (iii). Bernstein’s inequality in sub-gamma form, P ( S ≥ 2 V L + c L / 3 ) ≤ e − L \mathbb{P}(S\ge\sqrt{2VL}+cL/3)\le e^{-L} P ( S ≥ 2 V L + c L /3 ) ≤ e − L , which needs only the upper bound c c c on the summands [14 Section 2.4 and Theorem 2.10] , bounds each by e − L = δ / 6 e^{-L}=\delta/6 e − L = δ /6 . The six tails add up to at most δ \delta δ .
The threshold is monotone: on ( 0 , 1 ) (0,1) ( 0 , 1 ) , T 1 T_1 T 1 and T 2 T_2 T 2 increase with β \beta β , hence with α \alpha α , and as α ↓ 0 \alpha\downarrow0 α ↓ 0 the threshold τ P ( α ) = T 1 + Δ ϕ T 2 \tau^P(\alpha)=T_1+\Delta_{\phi}T_2 τ P ( α ) = T 1 + Δ ϕ T 2 decreases to κ ˉ / n ⋆ + Δ ϕ L / ( 2 n ⋆ ) + Δ ϕ c L / 3 \bar{\kappa}/\sqrt{n_\star}+\Delta_{\phi}\sqrt{L/(2n_\star)}+\Delta_{\phi}cL/3 κ ˉ / n ⋆ + Δ ϕ L / ( 2 n ⋆ ) + Δ ϕ c L /3 , which is at least τ n , m P ( 0 , δ ) \tau^P_{n,m}(0,\delta) τ n , m P ( 0 , δ ) because L > log ( 1 / δ ) L>\log(1/\delta) L > log ( 1/ δ ) .
Proof of Lemma 3.2
Proof. Above α ⋆ \alpha^\star α ⋆ the empirical path can only fall and the threshold can only rise, so the single level α ⋆ \alpha^\star α ⋆ carries the guarantee. The probability bound is the hypothesis at α = α ⋆ \alpha=\alpha^\star α = α ⋆ , which is a true null. The regions are nested in α \alpha α , so α ↦ D ^ α \alpha\mapsto\widehat{D}_{\alpha} α ↦ D α is nonincreasing, and for α ≥ α ⋆ \alpha\ge\alpha^{\star} α ≥ α ⋆ on the event,
D ^ α ≤ D ^ α ⋆ ≤ τ ( α ⋆ ) ≤ τ ( α ) , \widehat{D}_{\alpha} \le\widehat{D}_{\alpha^{\star}} \le\tau(\alpha^{\star}) \le\tau(\alpha), D α ≤ D α ⋆ ≤ τ ( α ⋆ ) ≤ τ ( α ) ,
by monotonicity of the path, by the event, and since τ \tau τ is nondecreasing. □ \square □
Proofs for Section 4
As in Section S1, B H B_{\mathcal{H}} B H is the unit ball of H \mathcal{H} H and G α ( P ) G_{\alpha}(P) G α ( P ) the set of trimming densities; the betting notation is that of § 4.2 . We begin with two facts about separation in a fixed direction, which the other sections also use.
Separation in a fixed direction
The distance between two convex sets is the largest gap between them along a unit direction.
Lemma S3.1 (Directional separation). Let A , B ⊂ H A, B \subset\mathcal{H} A , B ⊂ H be nonempty. For every f ∈ B H f \in B_{\mathcal{H}} f ∈ B H ,
dist ( A , B ) ≥ inf a ∈ A ⟨ f , a ⟩ H − sup b ∈ B ⟨ f , b ⟩ H = : sep ( f ; A , B ) . (20) \operatorname{dist}(A,B) \ge\inf_{a\in A}\langle f,a\rangle_{\mathcal{H}}-\sup_{b\in B}\langle f,b\rangle_{\mathcal{H}}=:\operatorname{sep}(f;A,B). \tag*{(20)} dist ( A , B ) ≥ a ∈ A inf ⟨ f , a ⟩ H − b ∈ B sup ⟨ f , b ⟩ H =: sep ( f ; A , B ) . (20) If A , B A, B A , B are also convex and weakly compact and dist ( A , B ) > 0 \operatorname{dist}(A,B)>0 dist ( A , B ) > 0 , the bound is attained: taking f ⋆ = ( a ⋆ − b ⋆ ) / ∥ a ⋆ − b ⋆ ∥ H f^{\star}=(a^{\star}-b^{\star})/\lVert a^{\star}-b^{\star}\rVert_{\mathcal{H}} f ⋆ = ( a ⋆ − b ⋆ ) / ∥ a ⋆ − b ⋆ ∥ H for nearest points a ⋆ ∈ A a^{\star}\in A a ⋆ ∈ A , b ⋆ ∈ B b^{\star}\in B b ⋆ ∈ B gives sep ( f ⋆ ; A , B ) = dist ( A , B ) \operatorname{sep}(f^{\star};A,B)=\operatorname{dist}(A,B) sep ( f ⋆ ; A , B ) = dist ( A , B ) .
Proof. For a ∈ A a\in A a ∈ A and b ∈ B b\in B b ∈ B , the Cauchy–Schwarz inequality gives sep ( f ; A , B ) ≤ ⟨ f , a − b ⟩ H ≤ ∥ a − b ∥ H \operatorname{sep}(f;A,B)\le\langle f,a-b\rangle_{\mathcal{H}}\le\lVert a-b\rVert_{\mathcal{H}} sep ( f ; A , B ) ≤ ⟨ f , a − b ⟩ H ≤ ∥ a − b ∥ H , and the infimum over a , b a,b a , b yields (S3.1). For the equality, nearest points exist, as the norm is weakly lower semicontinuous on the weakly compact A × B A\times B A × B , and we check that f ⋆ f^{\star} f ⋆ separates the sets exactly at them. First-order optimality of a ⋆ a^{\star} a ⋆ for min a ∈ A ∥ a − b ⋆ ∥ H 2 \min_{a\in A}\lVert a-b^{\star}\rVert_{\mathcal{H}}^{2} min a ∈ A ∥ a − b ⋆ ∥ H 2 gives ⟨ a − a ⋆ , a ⋆ − b ⋆ ⟩ H ≥ 0 \langle a-a^{\star},a^{\star}-b^{\star}\rangle_{\mathcal{H}}\ge0 ⟨ a − a ⋆ , a ⋆ − b ⋆ ⟩ H ≥ 0 for all a ∈ A a\in A a ∈ A , that is, inf a ∈ A ⟨ f ⋆ , a ⟩ H = ⟨ f ⋆ , a ⋆ ⟩ H \inf_{a\in A}\langle f^{\star},a\rangle_{\mathcal{H}}=\langle f^{\star},a^{\star}\rangle_{\mathcal{H}} inf a ∈ A ⟨ f ⋆ , a ⟩ H = ⟨ f ⋆ , a ⋆ ⟩ H ; symmetrically sup b ∈ B ⟨ f ⋆ , b ⟩ H = ⟨ f ⋆ , b ⋆ ⟩ H \sup_{b\in B}\langle f^{\star},b\rangle_{\mathcal{H}}=\langle f^{\star},b^{\star}\rangle_{\mathcal{H}} sup b ∈ B ⟨ f ⋆ , b ⟩ H = ⟨ f ⋆ , b ⋆ ⟩ H . Subtracting, sep ( f ⋆ ; A , B ) = ⟨ f ⋆ , a ⋆ − b ⋆ ⟩ H = ∥ a ⋆ − b ⋆ ∥ H = dist ( A , B ) \operatorname{sep}(f^{\star};A,B)=\langle f^{\star},a^{\star}-b^{\star}\rangle_{\mathcal{H}}=\lVert a^{\star}-b^{\star}\rVert_{\mathcal{H}}=\operatorname{dist}(A,B) sep ( f ⋆ ; A , B ) = ⟨ f ⋆ , a ⋆ − b ⋆ ⟩ H = ∥ a ⋆ − b ⋆ ∥ H = dist ( A , B ) . □ \square □
Since sep ( 0 ; A , B ) = 0 \operatorname{sep}(0;A,B)=0 sep ( 0 ; A , B ) = 0 , for convex weakly compact A , B A,B A , B the lemma gives
dist ( A , B ) = max f ∈ B H sep ( f ; A , B ) , (21) \operatorname{dist}(A,B)=\max_{f\in B_{\mathcal{H}}}\operatorname{sep}(f;A,B), \tag*{(21)} dist ( A , B ) = f ∈ B H max sep ( f ; A , B ) , (21)
the maximum being attained at f ⋆ f^{\star} f ⋆ when dist ( A , B ) > 0 \operatorname{dist}(A,B)>0 dist ( A , B ) > 0 and at f = 0 f=0 f = 0 otherwise. By Lemma 2.3 and Proposition 2.2 this applies to the population and to the empirical regions, and by Lemma 2.4 , sep ( f ; C α ( P ) , C α ( Q ) ) = − h C α ( P ) ( − f ) − h C α ( Q ) ( f ) \operatorname{sep}(f;C_{\alpha}(P),C_{\alpha}(Q))=-h_{C_{\alpha}(P)}(-f)-h_{C_{\alpha}(Q)}(f) sep ( f ; C α ( P ) , C α ( Q )) = − h C α ( P ) ( − f ) − h C α ( Q ) ( f ) . For empirical regions both terms are trimmed means of the values of f f f , which gives the structure of the empirical trimming (Proposition 2.5 , proved in Section S5).
Lemma S3.2 (Support functions are extreme trimmed means). Let v 1 , … , v n v_1,\ldots,v_n v 1 , … , v n be reals with order statistics v ( 1 ) ≤ ⋯ ≤ v ( n ) v_{(1)}\le\cdots\le v_{(n)} v ( 1 ) ≤ ⋯ ≤ v ( n ) , let α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) and c α = [ n ( 1 − α ) ] − 1 = β / n c_{\alpha}=[n(1-\alpha)]^{-1}=\beta/n c α = [ n ( 1 − α ) ] − 1 = β / n . Then
max 0 ≤ w i ≤ c α ∑ i w i = 1 ∑ i w i v i = ∑ i > n 1 − α c α v ( i ) + ( 1 − n 1 − α c α ) v ( n − n 1 − α ) , \max_{\substack{0\le w_i\le c_{\alpha}\\ \sum_i w_i=1}}\sum_i w_i v_i
=
\sum_{i>n_{1-\alpha}}c_{\alpha}v_{(i)}+\left(1-n_{1-\alpha}c_{\alpha}\right)v_{(n-n_{1-\alpha})}, 0 ≤ w i ≤ c α ∑ i w i = 1 max i ∑ w i v i = i > n 1 − α ∑ c α v ( i ) + ( 1 − n 1 − α c α ) v ( n − n 1 − α ) , n 1 − α = ⌊ 1 / c α ⌋ = ⌊ n ( 1 − α ) ⌋ , n_{1-\alpha}=\lfloor1/c_{\alpha}\rfloor=\lfloor n(1-\alpha)\rfloor, n 1 − α = ⌊ 1/ c α ⌋ = ⌊ n ( 1 − α )⌋ , where the final term is 0 when n 1 − α = n n_{1-\alpha}=n n 1 − α = n (at α = 0 \alpha=0 α = 0 ); the minimum is the same expression applied to the smallest values. Moreover, every maximizer satisfies w i = c α w_i=c_{\alpha} w i = c α when v i > v ( n − n 1 − α ) v_i>v_{(n-n_{1-\alpha})} v i > v ( n − n 1 − α ) and w i = 0 w_i=0 w i = 0 when v i < v ( n − n 1 − α ) v_i<v_{(n-n_{1-\alpha})} v i < v ( n − n 1 − α ) , the values equal to v ( n − n 1 − α ) v_{(n-n_{1-\alpha})} v ( n − n 1 − α ) sharing the remaining mass 1 − c α # { i : v i > v ( n − n 1 − α ) } 1-c_{\alpha}\#\{i:v_i>v_{(n-n_{1-\alpha})}\} 1 − c α # { i : v i > v ( n − n 1 − α ) } in any way. So the maximizer is unique for distinct values.
Proof. Moving weight from a smaller value to a larger one below its cap does not decrease the objective, so an optimum loads the cap c α c_\alpha c α onto the largest values until the mass runs out, which gives the value. For the structure of the maximizers, let n 1 − α < n n_{1-\alpha}<n n 1 − α < n (otherwise the feasible set is a point) and suppose that a maximizer w w w has w i < c α w_i<c_\alpha w i < c α for some v i > v ( n − n 1 − α ) v_i>v_{(n-n_{1-\alpha})} v i > v ( n − n 1 − α ) . At most n 1 − α n_{1-\alpha} n 1 − α values are at least v i v_i v i , and they carry less than n 1 − α c α ≤ 1 n_{1-\alpha}c_\alpha\le1 n 1 − α c α ≤ 1 , so some j j j with v j < v i v_j<v_i v j < v i has w j > 0 w_j>0 w j > 0 ; moving weight from j j j to i i i increases the objective, a contradiction. The case v i < v ( n − n 1 − α ) v_i<v_{(n-n_{1-\alpha})} v i < v ( n − n 1 − α ) with w i > 0 w_i>0 w i > 0 is symmetric. The objective depends on the mass at the value v ( n − n 1 − α ) v_{(n-n_{1-\alpha})} v ( n − n 1 − α ) only through its total, and the minimum follows by applying all this to − v 1 , … , − v n -v_1,\ldots,-v_n − v 1 , … , − v n .
Proof of Lemma 4.1
Proof. Part (i) is the variational form of trimmed means of Lemma 2.4 , part (ii) an exact computation, and part (iii) the layer-cake formula. For the inequality in (i), let P ′ ∈ R α ( P ) P'\in R_\alpha(P) P ′ ∈ R α ( P ) and g = d P ′ / d P ∈ [ 0 , β ] g=dP'/dP\in[0,\beta] g = d P ′ / d P ∈ [ 0 , β ] , so that E P g = 1 \mathbb{E}_P g=1 E P g = 1 . Then E P ′ f = t + E P [ g ( f − t ) ] ≥ t − E P [ g ( t − f ) + ] ≥ t − β E P ( t − f ) + \mathbb{E}_{P'}f=t+\mathbb{E}_P[g(f-t)]\ge t-\mathbb{E}_P[g(t-f)_+]\ge t-\beta\mathbb{E}_P(t-f)_+ E P ′ f = t + E P [ g ( f − t )] ≥ t − E P [ g ( t − f ) + ] ≥ t − β E P ( t − f ) + , and symmetrically E Q ′ f ≤ u + β E Q ( f − u ) + \mathbb{E}_{Q'}f\le u+\beta\mathbb{E}_Q(f-u)_+ E Q ′ f ≤ u + β E Q ( f − u ) + for Q ′ ∈ R α ( Q ) Q'\in R_\alpha(Q) Q ′ ∈ R α ( Q ) ; subtracting and optimizing over P ′ P' P ′ and Q ′ Q' Q ′ gives the inequality. For the equality, Lemma 2.4 applied to the bounded function − f -f − f , with its variable written − t -t − t , gives inf P ′ ∈ R α ( P ) E P ′ f = − sup g ∈ G α ( P ) E P [ − g f ] = sup t ∈ R { t − β E P ( t − f ) + } \inf_{P'\in R_\alpha(P)}\mathbb{E}_{P'}f=-\sup_{g\in G_\alpha(P)}\mathbb{E}_P[-gf]=\sup_{t\in\mathbb{R}}\{t-\beta\mathbb{E}_P(t-f)_+\} inf P ′ ∈ R α ( P ) E P ′ f = − sup g ∈ G α ( P ) E P [ − g f ] = sup t ∈ R { t − β E P ( t − f ) + } , attained at t = − t ′ t=-t' t = − t ′ for an α \alpha α -quantile t ′ t' t ′ of − f ( X ) -f(X) − f ( X ) , that is, at a ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile of f ( X ) f(X) f ( X ) . Applied to f f f under Q Q Q , the lemma gives sup Q ′ ∈ R α ( Q ) E Q ′ f = inf u ∈ R { u + β E Q ( f − u ) + } \sup_{Q'\in R_\alpha(Q)}\mathbb{E}_{Q'}f=\inf_{u\in\mathbb{R}}\{u+\beta\mathbb{E}_Q(f-u)_+\} sup Q ′ ∈ R α ( Q ) E Q ′ f = inf u ∈ R { u + β E Q ( f − u ) + } , attained at an α \alpha α -quantile of f ( Y ) f(Y) f ( Y ) . For f ∈ B H f\in\mathcal{B}_H f ∈ B H , the reproducing property and Proposition 2.2 turn the two extreme trimmed means into inf a ∈ C α ( P ) ⟨ f , a ⟩ H \inf_{a\in C_\alpha(P)}\langle f,a\rangle_H inf a ∈ C α ( P ) ⟨ f , a ⟩ H and sup b ∈ C α ( Q ) ⟨ f , b ⟩ H \sup_{b\in C_\alpha(Q)}\langle f,b\rangle_H sup b ∈ C α ( Q ) ⟨ f , b ⟩ H , whose difference is the separation (S3.1).
For (ii), clipping makes both hinges linear in the ramp: since f ~ ≤ t \widetilde f\le t f ≤ t and f ~ ≥ u \widetilde f\ge u f ≥ u ,
t − β ( t − f ~ ) + = t − β ( t − u ) ( 1 − ψ ) , u + β ( f ~ − u ) + = u + β ( t − u ) ψ , t-\beta(t-\widetilde f)_+=t-\beta(t-u)(1-\psi),\qquad
u+\beta(\widetilde f-u)_+=u+\beta(t-u)\psi, t − β ( t − f ) + = t − β ( t − u ) ( 1 − ψ ) , u + β ( f − u ) + = u + β ( t − u ) ψ ,
and taking expectations and using 1 − β = − α β 1-\beta=-\alpha\beta 1 − β = − α β gives the identity. For the inequality, pointwise ( t − f ~ ) + = ( t − f ) + − ( u − f ) + (t-\widetilde f)_+=(t-f)_+-(u-f)_+ ( t − f ) + = ( t − f ) + − ( u − f ) + and ( f ~ − u ) + = ( f − u ) + − ( f − t ) + (\widetilde f-u)_+=(f-u)_+-(f-t)_+ ( f − u ) + = ( f − u ) + − ( f − t ) + , so θ ~ ( f ; t , u ) − θ ( f ; t , u ) = β E P ( u − f ) + + β E Q ( f − t ) + ≥ 0 \widetilde\theta(f;t,u)-\theta(f;t,u)=\beta\mathbb{E}_P(u-f)_++\beta\mathbb{E}_Q(f-t)_+\ge0 θ ( f ; t , u ) − θ ( f ; t , u ) = β E P ( u − f ) + + β E Q ( f − t ) + ≥ 0 .
For (iii), if ψ \psi ψ takes values in [ 0 , 1 ] [0,1] [ 0 , 1 ] , the layer-cake formula and the definition of total variation give E P ψ − E Q ψ = ∫ 0 1 { P ( ψ > r ) − Q ( ψ > r ) } d r ≤ d T V ( P , Q ) \mathbb{E}_P\psi-\mathbb{E}_Q\psi=\int_0^1\{P(\psi>r)-Q(\psi>r)\}\,dr\le d_{\mathrm{TV}}(P,Q) E P ψ − E Q ψ = ∫ 0 1 { P ( ψ > r ) − Q ( ψ > r )} d r ≤ d TV ( P , Q ) .
The betting test in full
We describe the test of § 4.2 for any batch fractions 0 = π 0 < π 1 < ⋯ < π B + 1 = 1 0=\pi_0<\pi_1<\cdots<\pi_{B+1}=1 0 = π 0 < π 1 < ⋯ < π B + 1 = 1 fixed in advance; § 4.2 uses π = ( 0 , 1 4 , 1 2 , 1 ) \pi=(0,\frac14,\frac12,1) π = ( 0 , 4 1 , 2 1 , 1 ) , and the single split ( 0 , 1 2 , 1 ) (0,\frac12,1) ( 0 , 2 1 , 1 ) is the case B = 1 B=1 B = 1 . Each sample is put in a random order drawn independently of the data and cut into batches 0 , … , B 0,\ldots,B 0 , … , B at these fractions of its size, rounded to the nearest integers. Batch 0 is used only for fitting, and batch b ≥ 1 b\ge1 b ≥ 1 is bet on with a function ψ b \psi_b ψ b with values in [ 0 , 1 ] [0,1] [ 0 , 1 ] fitted on batches 0 , … , b − 1 0,\ldots,b-1 0 , … , b − 1 , or not at all.
Before betting on batch b b b we solve (10) on batches 0 , … , b − 1 0,\ldots,b-1 0 , … , b − 1 and form the direction f ^ b \widehat f_b f b of the witness (11) . Its cut points are t ^ b \widehat t_b t b , a genuine empirical ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile of its values at the X X X 's of those batches, and u ^ b \widehat u_b u b , a genuine empirical α \alpha α -quantile of its values at their Y Y Y 's, each value computed with the point's own term removed from (11) . If t ^ b > u ^ b \widehat t_b>\widehat u_b t b > u b , ψ b \psi_b ψ b is the ramp of f ^ b \widehat f_b f b between u ^ b \widehat u_b u b and t ^ b \widehat t_b t b of Lemma 4.1(ii); otherwise there is no bet on batch b b b .
Pairs are formed within each batch. Let batch b b b hold n [ b ] n_{[b]} n [ b ] observations X X X and m [ b ] m_{[b]} m [ b ] observations Y Y Y . If n [ b ] ≤ m [ b ] n_{[b]}\le m_{[b]} n [ b ] ≤ m [ b ] , its Y Y Y 's are cut, in their fixed order, into n [ b ] n_{[b]} n [ b ] consecutive blocks whose sizes differ by at most one, and the X X X 's are paired one to one with the blocks, an X X X and its block J \mathcal{J} J giving Z = ψ b ( X ) − ∣ J ∣ − 1 ∑ j ∈ J ψ b ( Y j ) Z=\psi_b(X)-|\mathcal{J}|^{-1}\sum_{j\in\mathcal{J}}\psi_b(Y_j) Z = ψ b ( X ) − ∣ J ∣ − 1 ∑ j ∈ J ψ b ( Y j ) . If n [ b ] > m [ b ] n_{[b]}>m_{[b]} n [ b ] > m [ b ] , the roles are exchanged: each Y Y Y is paired with a block J \mathcal{J} J of X X X 's, giving Z = ∣ J ∣ − 1 ∑ i ∈ J ψ b ( X i ) − ψ b ( Y ) Z=|\mathcal{J}|^{-1}\sum_{i\in\mathcal{J}}\psi_b(X_i)-\psi_b(Y) Z = ∣ J ∣ − 1 ∑ i ∈ J ψ b ( X i ) − ψ b ( Y ) . Batch b b b thus gives N b = min ( n [ b ] , m [ b ] ) N_b=\min(n_{[b]},m_{[b]}) N b = min ( n [ b ] , m [ b ] ) pairs, and the pairs of all batches are numbered $k=1,\ldots,N in the order of the batches, with N = ∑ b N b N = \sum_b N_b N = ∑ b N b fixed by the sample sizes. Each Z k Z_k Z k takes values in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] .
The wealth after k k k pairs is K k = ∏ l ≤ k { 1 + λ l ( Z l − α ) } K_k = \prod_{l\leq k}\{1+\lambda_l(Z_l-\alpha)\} K k = ∏ l ≤ k { 1 + λ l ( Z l − α )} , with K 0 = 1 K_0=1 K 0 = 1 , and both the function bet on and the fractions must be predictable. A fitting rule is predictable if each ψ b \psi_b ψ b is a jointly measurable function of batches 0 , … , b − 1 0,\ldots,b-1 0 , … , b − 1 and of the point, with values in [ 0 , 1 ] [0,1] [ 0 , 1 ] ; the ramp above is one, and so are the predicted labels of a classifier trained on batches 0 , … , b − 1 0,\ldots,b-1 0 , … , b − 1 . Fractions are predictable if, for pair k k k in batch b b b , λ k ∈ [ 0 , λ max / ( 1 + α ) ] \lambda_k\in[0,\lambda_{\max}/(1+\alpha)] λ k ∈ [ 0 , λ m a x / ( 1 + α )] for a fixed λ max ∈ ( 0 , 1 ] \lambda_{\max}\in(0,1] λ m a x ∈ ( 0 , 1 ] , λ k \lambda_k λ k is a jointly measurable function of batches 0 , … , b − 1 0,\ldots,b-1 0 , … , b − 1 and of the earlier Z Z Z ’s, and λ k = 0 \lambda_k=0 λ k = 0 on a batch without a ramp. Theorem 4.2 holds, with the same statement, for every choice of batch fractions π \pi π ; we prove it in this generality.
Proof of Theorem 4.2. Under the null every bet has a nonpositive expected gain, so the wealth is a nonnegative supermartingale, and such a process rarely reaches 1 / δ 1/\delta 1/ δ . To set up the filtration, for pair k k k in batch b b b let F k − 1 \mathcal{F}_{k-1} F k − 1 be generated by batches 0 , … , b − 1 0,\ldots,b-1 0 , … , b − 1 and the earlier pairs of batch b b b . These σ \sigma σ -fields increase with k k k , ψ b \psi_b ψ b and λ k \lambda_k λ k are F k − 1 \mathcal{F}_{k-1} F k − 1 -measurable, and the observations of pair k k k are independent of F k − 1 \mathcal{F}_{k-1} F k − 1 . So, given F k − 1 \mathcal{F}_{k-1} F k − 1 , Z k Z_k Z k takes values in [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] and has mean Δ k = E P ψ b − E Q ψ b ≤ d T V ( P , Q ) ≤ α \Delta_k=\mathbb{E}_P\psi_b-\mathbb{E}_Q\psi_b\leq d_{\mathrm{TV}}(P,Q)\leq\alpha Δ k = E P ψ b − E Q ψ b ≤ d TV ( P , Q ) ≤ α , by Lemma 4.1(iii) and the null. Consequently E [ K k ∣ F k − 1 ] = K k − 1 { 1 + λ k ( Δ k − α ) } ≤ K k − 1 \mathbb{E}[K_k\mid\mathcal{F}_{k-1}]=K_{k-1}\{1+\lambda_k(\Delta_k-\alpha)\}\leq K_{k-1} E [ K k ∣ F k − 1 ] = K k − 1 { 1 + λ k ( Δ k − α )} ≤ K k − 1 , while λ k ( Z k − α ) ≥ − λ k ( 1 + α ) ≥ − λ max \lambda_k(Z_k-\alpha)\geq-\lambda_k(1+\alpha)\geq-\lambda_{\max} λ k ( Z k − α ) ≥ − λ k ( 1 + α ) ≥ − λ m a x gives K k ≥ ( 1 − λ max ) K k − 1 ≥ 0 K_k\geq(1-\lambda_{\max})K_{k-1}\geq0 K k ≥ ( 1 − λ m a x ) K k − 1 ≥ 0 . So ( K k ) (K_k) ( K k ) is a nonnegative supermartingale with K 0 = 1 K_0=1 K 0 = 1 .
Optional stopping at T = min { k ≤ N : K k ≥ 1 / δ } ∧ N T=\min\{k\leq N:K_k\geq1/\delta\}\wedge N T = min { k ≤ N : K k ≥ 1/ δ } ∧ N , a bounded time as N N N is fixed in advance, gives E [ K T ∣ batch 0 ] ≤ 1 \mathbb{E}[K_T\mid\text{batch 0}]\leq1 E [ K T ∣ batch 0 ] ≤ 1 . As { max k ≤ N K k ≥ 1 / δ } ⊆ { K T ≥ 1 / δ } \{\max_{k\leq N}K_k\geq1/\delta\}\subseteq\{K_T\geq1/\delta\} { max k ≤ N K k ≥ 1/ δ } ⊆ { K T ≥ 1/ δ } , Markov’s inequality gives the bound, which is Ville’s maximal inequality [98 ] . Integrating over batch 0 ends the proof. □
The fractions we use are
λ k = min { λ max 1 + α , 2 log ( 1 / δ ) N v ^ k − 1 2 } , λ max = 1 2 , (22) \lambda_k=\min\left\{\frac{\lambda_{\max}}{1+\alpha},\sqrt{\frac{2\log(1/\delta)}{N\widehat{v}_{k-1}^{2}}}\right\},\qquad\lambda_{\max}=\frac{1}{2}, \tag*{(22)} λ k = min { 1 + α λ m a x , N v k − 1 2 2 log ( 1/ δ ) } , λ m a x = 2 1 , (22)
adapted from Waudby-Smith and Ramdas [100 ] , where v ^ k − 1 2 = ( w 0 v 0 2 + ∑ i < k ( Z i − α − μ ^ i − 1 ) 2 ) / ( w 0 + k − 1 ) \widehat{v}_{k-1}^{2}=(w_0v_0^2+\sum_{i<k}(Z_i-\alpha-\widehat{\mu}_{i-1})^2)/(w_0+k-1) v k − 1 2 = ( w 0 v 0 2 + ∑ i < k ( Z i − α − μ i − 1 ) 2 ) / ( w 0 + k − 1 ) , μ ^ i − 1 = ∑ l < i ( Z l − α ) / ( w 0 + i − 1 ) \widehat{\mu}_{i-1}=\sum_{l<i}(Z_l-\alpha)/(w_0+i-1) μ i − 1 = ∑ l < i ( Z l − α ) / ( w 0 + i − 1 ) , w 0 = 20 w_0=20 w 0 = 20 , v 0 2 ≤ 4 v_0^2\leq4 v 0 2 ≤ 4 is an estimate of the variance of one Z k Z_k Z k from the batches before that of Z k Z_k Z k (Algorithm S1 gives ours), the sums and the counts k − 1 k-1 k − 1 and i − 1 i-1 i − 1 run over the pairs actually bet on before Z k Z_k Z k , in its batch and in the earlier ones, so that they carry over from batch 1 to batch 2 while v 0 2 v_0^2 v 0 2 is that of the batch of Z k Z_k Z k , and v ^ k − 1 2 \widehat{v}_{k-1}^{2} v k − 1 2 is floored at a constant v min 2 > 0 v_{\min}^{2}>0 v m i n 2 > 0 . Our runs use v min 2 = 10 − 8 v_{\min}^{2}=10^{-8} v m i n 2 = 1 0 − 8 , a guard against division by zero, for which the constants of Proposition 4.4 and Theorems S4.3 and 5.11, of order 1 / v min 2 1/v_{\min}^{2} 1/ v m i n 2 , are not usable and those results describe the trend (§ 4.3 of the main text). Any other predictable choice in [ 0 , λ max / ( 1 + α ) ] [0,\lambda_{\max}/(1+\alpha)] [ 0 , λ m a x / ( 1 + α )] is equally valid, and this one comes close to the best constant fraction for large N N N .
Both bandwidth rules are predictable, each witness using a bandwidth computed from the batches before the one bet on, but the consistency and rate results, which fix the kernel in advance, cover neither of them, nor random features scaled by such a bandwidth. Section S6 gives the grids of our experiments; in practice we recommend a grid of mesh 0.05 fixed in advance, or a short grid around a guess at α ∗ \alpha^* α ∗ from batch 0 (Remark S3.3).
The constant 1.75 of § 4.2 comes from the best constant fraction: log K N = λ S 1 − 1 2 λ 2 S 2 + o ( λ 2 N ) \log K_N=\lambda S_1-\frac{1}{2}\lambda^2S_2+o(\lambda^2N) log K N = λ S 1 − 2 1 λ 2 S 2 + o ( λ 2 N ) , with S 1 = ∑ k ( Z k − α ) S_1=\sum_k(Z_k-\alpha) S 1 = ∑ k ( Z k − α ) and S 2 = ∑ k ( Z k − α ) 2 S_2=\sum_k(Z_k-\alpha)^2 S 2 = ∑ k ( Z k − α ) 2 , as it most about S 1 2 / ( 2 S 2 ) S_1^2/(2S_2) S 1 2 / ( 2 S 2 ) , so the test rejects roughly when S 1 / S 1 1 / 2 ≥ 2 log ( 1 / δ ) S_1/S_1^{1/2}\geq\sqrt{2\log(1/\delta)} S 1 / S 1 1/2 ≥ 2 log ( 1/ δ ) , an approximately N / ( h , 1 ) N/(h,1) N / ( h , 1 ) ratio if E Z k − α = N − 1 / 2 \mathbb{E}Z_k-\alpha=N^{-1/2} E Z k − α = N − 1/2 , with s 2 = Var Z k s^2=\operatorname{Var}Z_k s 2 = Var Z k . Power p p p then needs h ≈ 2 log ( 1 / δ ) + z p h\approx\sqrt{2\log(1/\delta)}+z_p h ≈ 2 log ( 1/ δ ) + z p , against z 1 − δ + z p z_{1-\delta}+z_p z 1 − δ + z p by the central limit theorem, and the squared ratio at δ = 0.05 \delta=0.05 δ = 0.05 , p = 0.8 p=0.8 p = 0.8 is the ratio of sizes.
Algorithm S1 The split-sample lower bound α ^ \widehat{\alpha} α , with the defaults of our runs
Require: samples X 1 : n , Y 1 : m X_{1:n}, Y_{1:m} X 1 : n , Y 1 : m ; level δ \delta δ ; a grid α 1 < ⋯ < α J \alpha_1 < \cdots< \alpha_J α 1 < ⋯ < α J , fixed in advance or chosen from batch 0 (Remark S3.3)
Put each sample in a random order drawn independently of the data and cut it into batch 0 (first quarter), batch 1 (second quarter) and batch 2 (second half)
Pair within each batch b b b : if n [ b ] ≤ m [ b ] n_{[b]} \le m_{[b]} n [ b ] ≤ m [ b ] , cut its Y Y Y ’s in order into n [ b ] n_{[b]} n [ b ] consecutive blocks of sizes differing by at most one and pair the i i i -th X X X with the i i i -th block, and the reverse otherwise; N N N is the total number of pairs
for j = 1 , … , J j = 1,\ldots,J j = 1 , … , J , with α = α j \alpha= \alpha_j α = α j do
for b = 1 , 2 b = 1,2 b = 1 , 2 , fitting on batches 0 , … , b − 1 0,\ldots,b-1 0 , … , b − 1 , of sizes n < b , m < b n_{<b},m_{<b} n < b , m < b do
Kernel e − ∥ x − y ∥ / σ e^{-\lVert x-y\rVert/\sigma} e − ∥ x − y ∥ / σ , with σ \sigma σ the median pairwise distance of the fitting points (simulations) or of batch 0 (real data, both batches; RHC standardized by the moments of batch 0), on at most 2,000 points
Minimizer ( w , v ) (w,v) ( w , v ) of ((10) ) at α \alpha α by accelerated projected gradient with restarts and an exact projection onto the capped simplex, warm-started from the previous level, stopped when the objective changes by at most a relative 10 − 9 10^{-9} 1 0 − 9 over ten iterations or after 1000 iterations (10 − 10 10^{-10} 1 0 − 10 and 2000 on real data)
Witness values at the fitting points without their own term, h ~ i = f ^ ( X i ) − w i k ( X i , X i ) / D ^ α \widetilde{h}_i=\widehat{f}(X_i)-w_i k(X_i,X_i)/\widehat{D}_{\alpha} h i = f ( X i ) − w i k ( X i , X i ) / D α and h ~ j ′ = f ^ ( Y j ) + v j k ( Y j , Y j ) / D ^ α \widetilde{h}'_j=\widehat{f}(Y_j)+v_j k(Y_j,Y_j)/\widehat{D}_{\alpha} h j ′ = f ( Y j ) + v j k ( Y j , Y j ) / D α
Cut points t ^ b = h ~ ( ⌈ n < b ( 1 − α ) ⌉ ) \widehat{t}_b=\widetilde{h}_{(\lceil n_{<b}(1-\alpha)\rceil)} t b = h (⌈ n < b ( 1 − α )⌉) and u ^ b = h ~ ( ⌊ m < b α ⌋ + 1 ) ′ \widehat{u}_b=\widetilde{h}'_{(\lfloor m_{<b}\alpha\rfloor+1)} u b = h (⌊ m < b α ⌋ + 1 ) ′ , order statistics
if t ^ b ≤ u ^ b \widehat{t}_b \le\widehat{u}_b t b ≤ u b then skip batch b b b : λ k = 0 \lambda_k=0 λ k = 0 on its pairs
else ψ b \psi_b ψ b is the ramp of f ^ b \widehat{f}_b f b between u ^ b \widehat{u}_b u b and t ^ b \widehat{t}_b t b , each pair gives Z = ψ b ( X ) − ψ b ( Y ) Z=\psi_b(X)-\psi_b(Y) Z = ψ b ( X ) − ψ b ( Y ) (or the mirror), and v 0 2 = max { s X 2 + s Y 2 n [ b ] / m [ b ] , 10 − 4 } v_0^2=\max\{s_X^2+s_Y^2 n_{[b]}/m_{[b]},10^{-4}\} v 0 2 = max { s X 2 + s Y 2 n [ b ] / m [ b ] , 1 0 − 4 } (mirrored if n [ b ] > m [ b ] n_{[b]}>m_{[b]} n [ b ] > m [ b ] ), with s X 2 , s Y 2 s_X^2,s_Y^2 s X 2 , s Y 2 the variances of ψ b \psi_b ψ b at the fitting X X X ’s and Y Y Y ’s
end if
end for
Bet: K 0 = 1 K_0=1 K 0 = 1 , K k = K k − 1 { 1 + λ k ( Z k − α ) } K_k=K_{k-1}\{1+\lambda_k(Z_k-\alpha)\} K k = K k − 1 { 1 + λ k ( Z k − α )} , with (S3.3), λ max = 1 2 \lambda_{\max}=\frac{1}{2} λ m a x = 2 1 , w 0 = 20 w_0=20 w 0 = 20 and v min 2 = 10 − 8 v_{\min}^2=10^{-8} v m i n 2 = 1 0 − 8
if max k ≤ N K k < 1 / δ \max_{k\le N}K_k<1/\delta max k ≤ N K k < 1/ δ then stop: H 0 , α j H_{0,\alpha_j} H 0 , α j is not rejected
end if
end for
return α ^ \widehat{\alpha} α of ((16) ); whether the reading stopped at a failed bet or with both batches skipped; the trimming at α ^ \widehat{\alpha} α , the minimizer of ((10) ) on all the data closest to uniform weights (Section S6.6)
Proof of Corollary 4.3
Proof. A bound that is too large requires the rejection of one particular true null, the first grid level at or above d T V ( P , Q ) d_{\mathrm{TV}}(P,Q) d TV ( P , Q ) , so no union over the levels is needed. Let E E E be the event that H 0 , α ^ H_{0,\widehat{\alpha}} H 0 , α is rejected and d T V ( P , Q ) ≤ α ^ d_{\mathrm{TV}}(P,Q)\le\widehat{\alpha} d TV ( P , Q ) ≤ α ; it contains { α ^ > d T V ( P , Q ) } \{\widehat{\alpha}>d_{\mathrm{TV}}(P,Q)\} { α > d TV ( P , Q )} , since then α ^ > α 0 \widehat{\alpha}>\alpha_0 α > α 0 is a rejected grid level. On E E E , α ^ = α j \widehat{\alpha}=\alpha_j α = α j with α j ≥ d T V ( P , Q ) \alpha_j\ge d_{\mathrm{TV}}(P,Q) α j ≥ d TV ( P , Q ) and H 0 , α i H_{0,\alpha_i} H 0 , α i rejected for every i ≤ j i\le j i ≤ j . The smallest index i 0 i_0 i 0 with α i 0 ≥ d T V ( P , Q ) \alpha_{i_0}\ge d_{\mathrm{TV}}(P,Q) α i 0 ≥ d TV ( P , Q ) is at most j j j and does not depend on the data, because the grid is fixed in advance, so E E E lies in the event that the true null H 0 , α i 0 H_{0,\alpha_{i_0}} H 0 , α i 0 is rejected, of probability at most δ \delta δ by Theorem 4.2. No multiplicity correction is needed, and if no grid level is at least d T V ( P , Q ) d_{\mathrm{TV}}(P,Q) d TV ( P , Q ) , E E E is empty.
Remark S3.3 (A grid chosen from batch 0). Corollary 4.3 holds, with the same proof, when the grid α 1 < ⋯ < α J \alpha_1<\cdots<\alpha_J α 1 < ⋯ < α J is a measurable function of batch 0 instead of being fixed in advance. Given batch 0 the grid is fixed, so the smallest index i 0 i_0 i 0 with α i 0 ≥ d T V ( P , Q ) \alpha_{i_0}\ge d_{\mathrm{TV}}(P,Q) α i 0 ≥ d TV ( P , Q ) is a function of batch 0, and the conditional bound of Theorem 4.2 gives P ( H 0 , α i 0 rejected ∣ batch 0 ) ≤ δ \mathbb{P}(H_{0,\alpha_{i_0}}\text{ rejected}\mid\text{batch 0})\le\delta P ( H 0 , α i 0 rejected ∣ batch 0 ) ≤ δ ; integrating over batch 0 gives the claim. For instance, a bisection on batch 0 alone, with any statistic, may place a short grid around a guess at α ⋆ \alpha^\star α ⋆ , which the betting batches then read upward.
Proof of Proposition 4.4
We allow any batch fractions fixed in advance. For b ≥ 1 b\ge1 b ≥ 1 let n < b , m < b n_{<b},m_{<b} n < b , m < b be the sizes of batches 0 , … , b − 1 0,\ldots,b-1 0 , … , b − 1 , r b = 1 / n < b + 1 / m < b ≤ r 1 r_b=1/n_{<b}+1/m_{<b}\le r_1 r b = 1/ n < b + 1/ m < b ≤ r 1 , and Γ b , Γ ‾ b \Gamma_b,\overline{\Gamma}_b Γ b , Γ b the suprema Γ , Γ − \Gamma,\Gamma^{-} Γ , Γ − of the proof of Theorem S2.1 on these batches, free of α \alpha α . At a level α \alpha α the witness fitted on them takes values h i , h j ′ h_i,h'_j h i , h j ′ there, and h ~ i = h i − w i k ( X i , X i ) / D ^ \tilde{h}_i=h_i-wik(X_i,X_i)/\widehat{D} h ~ i = h i − w ik ( X i , X i ) / D and h ~ j ′ = h j ′ + v j k ( Y j , Y j ) / D ^ \tilde{h}'_j=h'_j+vjk(Y_j,Y_j)/\widehat{D} h ~ j ′ = h j ′ + v j k ( Y j , Y j ) / D with the own term removed. With ι − ( n , p ) = max ( 1 , ⌈ n p ⌉ − 1 ) \iota^-(n,p)=\max(1,\lceil np\rceil-1) ι − ( n , p ) = max ( 1 , ⌈ n p ⌉ − 1 ) and ι + ( n , p ) = min ( n , ⌊ n p ⌋ + 2 ) \iota^+(n,p)=\min(n,\lfloor np\rfloor+2) ι + ( n , p ) = min ( n , ⌊ n p ⌋ + 2 ) , the cut points satisfy
h ~ ( ι − ( n < b , 1 − α ) ) ≤ t ^ b ≤ h ~ ( ι + ( n < b , 1 − α ) ) , h ~ ( ι − ( m < b , α ) ) ′ ≤ u ^ b ≤ h ~ ( ι + ( m < b , α ) ) ′ (23) \tilde{h}_{(\iota^-(n_{<b},1-\alpha))}\le\hat{t}_b\le\tilde{h}_{(\iota^+(n_{<b},1-\alpha))},\qquad\tilde{h}'_{(\iota^-(m_{<b},\alpha))}\le\hat{u}_b\le\tilde{h}'_{(\iota^+(m_{<b},\alpha))} \tag*{(23)} h ~ ( ι − ( n < b , 1 − α )) ≤ t ^ b ≤ h ~ ( ι + ( n < b , 1 − α )) , h ~ ( ι − ( m < b , α )) ′ ≤ u ^ b ≤ h ~ ( ι + ( m < b , α )) ′ (23)
as do the empirical quantiles in the range of the values and their linear interpolations.
Lemma S3.4 (The population ramp). Under (A1) and (A2), if D α > 0 D_\alpha>0 D α > 0 , the ramp ψ ⋆ \psi^\star ψ ⋆ of the normalized difference f ⋆ f^\star f ⋆ of nearest points of C α ( P ) C_\alpha(P) C α ( P ) and C α ( Q ) C_\alpha(Q) C α ( Q ) , between the largest α \alpha α -quantile u ⋆ u^\star u ⋆ of f ⋆ ( Y ) f^\star(Y) f ⋆ ( Y ) and the smallest ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile t ⋆ t^\star t ⋆ of f ⋆ ( X ) f^\star(X) f ⋆ ( X ) , has D α ≤ t ⋆ − u ⋆ ≤ Δ ϕ D_\alpha\le t^\star-u^\star\le\Delta_\phi D α ≤ t ⋆ − u ⋆ ≤ Δ ϕ and E P ψ ⋆ − E Q ψ ⋆ − α ≥ D α / ( β Δ ϕ ) \mathbb{E}_P\psi^\star-\mathbb{E}_Q\psi^\star-\alpha\ge D_\alpha/(\beta\Delta_\phi) E P ψ ⋆ − E Q ψ ⋆ − α ≥ D α / ( β Δ ϕ ) .
Proof. The right derivatives 1 − β P ( f ⋆ ≤ t ) 1-\beta P(f^\star\le t) 1 − β P ( f ⋆ ≤ t ) and 1 − β Q ( f ⋆ > u ) 1-\beta Q(f^\star>u) 1 − β Q ( f ⋆ > u ) make t ⋆ t^\star t ⋆ maximize t − β E P ( t − f ⋆ ) + t-\beta\mathbb{E}_P(t-f^\star)_+ t − β E P ( t − f ⋆ ) + and u ⋆ u^\star u ⋆ minimize u + β E Q ( f ⋆ − u ) + u+\beta\mathbb{E}_Q(f^\star-u)_+ u + β E Q ( f ⋆ − u ) + . So by Lemmas 4.1(i) and S3.1 the cut points attain the separation, and since θ ( f ; t , u ) ≤ t − u \theta(f;t,u)\le t-u θ ( f ; t , u ) ≤ t − u , Δ ϕ ≥ sup f ⋆ − inf f ⋆ ≥ t ⋆ − u ⋆ ≥ θ ( f ⋆ ; t ⋆ , u ⋆ ) = D α \Delta_\phi\ge\sup f^\star-\inf f^\star\ge t^\star-u^\star\ge\theta(f^\star;t^\star,u^\star)=D_\alpha Δ ϕ ≥ sup f ⋆ − inf f ⋆ ≥ t ⋆ − u ⋆ ≥ θ ( f ⋆ ; t ⋆ , u ⋆ ) = D α , the first inequality because f ⋆ f^\star f ⋆ has unit norm. Lemma 4.1(ii) then gives β ( t ⋆ − u ⋆ ) ( E P ψ ⋆ − E Q ψ ⋆ − α ) ≥ D α \beta(t^\star-u^\star)(\mathbb{E}_P\psi^\star-\mathbb{E}_Q\psi^\star-\alpha)\ge D_\alpha β ( t ⋆ − u ⋆ ) ( E P ψ ⋆ − E Q ψ ⋆ − α ) ≥ D α , and t ⋆ − u ⋆ ≤ Δ ϕ t^\star-u^\star\le\Delta_\phi t ⋆ − u ⋆ ≤ Δ ϕ gives the excess. □
Proof of Proposition 4.4. Below α ⋆ \alpha^\star α ⋆ the population ramp has a fixed positive excess over α \alpha α (Lemma S3.4). We show that the fitted ramp keeps part of this excess on an event that does not depend on the level, that betting turns a fixed excess into a rejection, and then apply both to the grid.
We begin with the fitted ramp at a fixed level α \alpha α and batch b b b , writing n , m n,m n , m for n < b , m < b n_{<b},m_{<b} n < b , m < b , and assume β Γ b − < D α \beta\Gamma_b^-<D_\alpha β Γ b − < D α . By the deterministic reduction in the proof of Theorem S2.1, D ^ ≥ D α − β Γ b − > 0 \widehat{D}\ge D_\alpha-\beta\Gamma_b^->0 D ≥ D α − β Γ b − > 0 . Let θ n \theta_n θ n be the criterion θ \theta θ of Section 4.1 with P n , Q m P_n,Q_m P n , Q m in place of P , Q P,Q P , Q . In the fitted direction f ^ \hat{f} f ^ it separates into a concave function of the first cut and a convex function of the second,
θ n ( f ^ ; t , u ) = T ( t ) − U ( u ) , T ( t ) = t − β n ∑ i ( t − h i ) + , U ( u ) = u + β m ∑ j ( h j ′ − u ) + , \theta_n(\hat{f};t,u)=T(t)-U(u),\qquad T(t)=t-\frac{\beta}{n}\sum_i(t-h_i)_+,\qquad U(u)=u+\frac{\beta}{m}\sum_j(h'_j-u)_+, θ n ( f ^ ; t , u ) = T ( t ) − U ( u ) , T ( t ) = t − n β i ∑ ( t − h i ) + , U ( u ) = u + m β j ∑ ( h j ′ − u ) + ,
and max T − min U = D ^ \max T-\min U=\widehat{D} max T − min U = D by Lemmas S3.1 and 4.1(i) applied to P n , Q m P_n,Q_m P n , Q m . We first show that the cut points lose little against the best cuts. The concave T T T has right derivative 1 − β F n 1-\beta F_n 1 − β F n , with F n ( x ) = # { i : h i ≤ x } / n F_n(x)=\#\{i:h_i\le x\}/n F n ( x ) = # { i : h i ≤ x } / n , so it is β \beta β -Lipschitz and maximal at h ( ⌈ n ( 1 − α ) ⌉ ) h_{(\lceil n(1-\alpha)\rceil)} h (⌈ n ( 1 − α )⌉) . Between h ( ι − ) h_{(\iota^-)} h ( ι − ) and h ( ι + ) h_{(\iota^+)} h ( ι + ) we have ι − / n ≤ F n ≤ ( ι + − 1 ) / n \iota^-/n\le F_n\le(\iota^+-1)/n ι − / n ≤ F n ≤ ( ι + − 1 ) / n , within 1 / n 1/n 1/ n of 1 − α 1-\alpha 1 − α , so the slope of T T T there is at most β / n \beta/n β / n ; as the values span at most Δ ϕ \Delta_\phi Δ ϕ , T ≥ max T − β Δ ϕ / n T\ge\max T-\beta\Delta_\phi/n T ≥ max T − β Δ ϕ / n on that interval. The own terms shift the values only a little: the caps β / n \beta/n β / n and k ( x , x ) ≤ κ 2 k(x,x)\le\kappa^2 k ( x , x ) ≤ κ 2 give 0 ≤ h i − h ~ i ≤ β κ 2 / ( n D ^ ) 0\le h_i-\tilde{h}_i\le\beta\kappa^2/(n\widehat{D}) 0 ≤ h i − h ~ i ≤ β κ 2 / ( n D ) , the order statistics move by at most as much, and concavity, with the β \beta β -Lipschitz bound, gives
T ( t ^ b ) ≥ max T − β Δ ϕ n − β 2 κ 2 n D ^ . T(\hat{t}_b)\ge\max T-\frac{\beta\Delta_\phi}{n}-\frac{\beta^2\kappa^2}{n\widehat{D}}. T ( t ^ b ) ≥ max T − n β Δ ϕ − n D β 2 κ 2 .
The convex U U U , minimal at h ( ⌊ m α ⌋ + 1 ) ′ h'_{(\lfloor m\alpha\rfloor+1)} h (⌊ m α ⌋ + 1 ) ′ , is treated alike, with m m m in place of n n n . Hence
θ n ( f ^ ; t ^ b , u ^ b ) ≥ D ^ − β Δ ϕ r b − β 2 κ 2 r b D ^ . \theta_n(\hat{f};\hat{t}_b,\hat{u}_b)\ge\widehat{D}-\beta\Delta_\phi r_b-\frac{\beta^2\kappa^2r_b}{\widehat{D}}. θ n ( f ^ ; t ^ b , u ^ b ) ≥ D − β Δ ϕ r b − D β 2 κ 2 r b .
Next we pass from the empirical criterion to the population one. For all ( f , t , u ) (f,t,u) ( f , t , u ) , θ − θ n = − β [ ( P − P n ) ( t − f ) + + ( Q − Q m ) ( f − u ) + ] ≥ − β Γ b \theta-\theta_n=-\beta[(P-P_n)(t-f)_+ +(Q-Q_m)(f-u)_+]\ge-\beta\Gamma_b θ − θ n = − β [( P − P n ) ( t − f ) + + ( Q − Q m ) ( f − u ) + ] ≥ − β Γ b , the centered terms being constant in t t t and u u u outside [ − κ , κ ] [-\kappa,\kappa] [ − κ , κ ] . As x ↦ x − c / x x\mapsto x-c/x x ↦ x − c / x increases and D ^ ≥ D α − β Γ b − \widehat{D}\ge D_\alpha-\beta\Gamma_b^- D ≥ D α − β Γ b − , we may replace $\widehat{D} by D α − β Γ b − D_\alpha-\beta\Gamma_b^- D α − β Γ b − . Finally θ ( f ; t , u ) ≤ t − u \theta(f;t,u)\le t-u θ ( f ; t , u ) ≤ t − u , and t ^ b ≤ max i h i \hat t_b\le\max_i h_i t ^ b ≤ max i h i , u ^ b ≥ min j h j ′ \hat u_b\ge\min_j h'_j u ^ b ≥ min j h j ′ , values of a unit vector, are at most Δ ϕ \Delta_\phi Δ ϕ apart. Together,
Δ ϕ ≥ t ^ b − u ^ b ≥ θ ( f ^ ; t ^ b , u ^ b ) ≥ Θ b = D α − β ( Γ b + Γ b − ) − β Δ ϕ r b − β 2 κ 2 r b D α − β Γ b − , (24) \Delta_\phi\ge\hat t_b-\hat u_b\ge\theta(\hat f;\hat t_b,\hat u_b)\ge\Theta_b=D_\alpha-\beta(\Gamma_b+\Gamma_b^-)-\beta\Delta_\phi r_b-\frac{\beta^2\kappa^2r_b}{D_\alpha-\beta\Gamma_b^-}, \tag*{(24)} Δ ϕ ≥ t ^ b − u ^ b ≥ θ ( f ^ ; t ^ b , u ^ b ) ≥ Θ b = D α − β ( Γ b + Γ b − ) − β Δ ϕ r b − D α − β Γ b − β 2 κ 2 r b , (24)
and if Θ b > 0 \Theta_b>0 Θ b > 0 , Lemma 4.1(ii) under P , Q P,Q P , Q , given batches 0 , … , b − 1 0,\ldots,b-1 0 , … , b − 1 , yields a ramp ψ b \psi_b ψ b with E P ψ b − E Q ψ b − α ≥ Θ b / ( β Δ ϕ ) \mathbb{E}_P\psi_b-\mathbb{E}_Q\psi_b-\alpha\ge\Theta_b/(\beta\Delta_\phi) E P ψ b − E Q ψ b − α ≥ Θ b / ( β Δ ϕ ) . The terms of Θ b \Theta_b Θ b after D α D_\alpha D α are the costs of the fluctuation, of the rank tolerance and of the own terms.
The second step concerns the bets: a fixed excess is turned into a rejection, and a strict null is rarely rejected. Recall that Δ k \Delta_k Δ k is the conditional mean of Z k Z_k Z k in the proof of Theorem 4.2 , and put L δ = log ( 1 / δ ) L_\delta=\log(1/\delta) L δ = log ( 1/ δ ) and
ε N ( ϱ ) = exp { − v min 2 4 L δ ( ϱ N L δ / 2 − L δ − 16 L δ v min 2 ) + 2 } . \varepsilon_N(\varrho)=\exp\left\{-\frac{v_{\min}^2}{4L_\delta}\left(\varrho\sqrt{NL_\delta/2}-L_\delta-\frac{16L_\delta}{v_{\min}^2}\right)^2_+\right\}. ε N ( ϱ ) = exp { − 4 L δ v m i n 2 ( ϱ N L δ /2 − L δ − v m i n 2 16 L δ ) + 2 } .
We show that for N ≥ 2 L δ / λ max 2 N\ge2L_\delta/\lambda_{\max}^2 N ≥ 2 L δ / λ m a x 2 ,
P ( E ∩ { max k ≤ N K k < 1 / δ } ) ≤ ε N ( ϱ ) , P ( max k ≤ N K k ≥ 1 / δ ) ≤ e − ζ v min ( 2 N L δ ) 1 / 2 , (25) \mathbb{P}\left(\mathcal{E}\cap\left\{\max_{k\le N}K_k<1/\delta\right\}\right)\le\varepsilon_N(\varrho),\qquad
\mathbb{P}\left(\max_{k\le N}K_k\ge1/\delta\right)\le e^{-\zeta v_{\min}(2NL_\delta)^{1/2}}, \tag*{(25)} P ( E ∩ { k ≤ N max K k < 1/ δ } ) ≤ ε N ( ϱ ) , P ( k ≤ N max K k ≥ 1/ δ ) ≤ e − ζ v m i n ( 2 N L δ ) 1/2 , (25)
the first for any event E \mathcal{E} E on which every batch has a ramp and Δ k ≥ α + ϱ > α \Delta_k\ge\alpha+\varrho>\alpha Δ k ≥ α + ϱ > α for all k k k , the second if d T V ( P , Q ) ≤ α − ζ < α d_{\mathrm{TV}}(P,Q)\le\alpha-\zeta<\alpha d TV ( P , Q ) ≤ α − ζ < α .
Two bounds on the fractions are used. Each square in (S3.3) is at most 4 4 4 , as Z i − α Z_i-\alpha Z i − α and μ ^ i − 1 \hat\mu_{i-1} μ ^ i − 1 lie in [ − 1 − α , 1 − α ] [-1-\alpha,1-\alpha] [ − 1 − α , 1 − α ] , so for v min 2 ≤ 4 v_{\min}^2\le4 v m i n 2 ≤ 4 the running variance lies in [ v min 2 , 4 ] [v_{\min}^2,4] [ v m i n 2 , 4 ] and
( L δ 2 N ) 1 / 2 ≤ λ k ≤ λ ˉ N = min { λ max 1 + α , ( 2 L δ N v min 2 ) 1 / 2 } . \left(\frac{L_\delta}{2N}\right)^{1/2}\le\lambda_k\le\bar\lambda_N=\min\left\{\frac{\lambda_{\max}}{1+\alpha},\left(\frac{2L_\delta}{Nv_{\min}^2}\right)^{1/2}\right\}. ( 2 N L δ ) 1/2 ≤ λ k ≤ λ ˉ N = min { 1 + α λ m a x , ( N v m i n 2 2 L δ ) 1/2 } .
the lower bound holding on batches with a ramp, where it uses N ≥ 2 L δ / λ max 2 N\ge2L_\delta/\lambda_{\max}^2 N ≥ 2 L δ / λ m a x 2 . The centered gains M k = ∑ l ≤ k λ l ( Z l − Δ l ) M_k=\sum_{l\le k}\lambda_l(Z_l-\Delta_l) M k = ∑ l ≤ k λ l ( Z l − Δ l ) have increments in intervals of length 2 λ l 2\lambda_l 2 λ l , so by Hoeffding’s lemma [37 ]
W k ( s ) = exp ( s M k − s 2 2 ∑ l ≤ k λ l 2 ) W_k(s)=\exp\left(sM_k-\frac{s^2}{2}\sum_{l\le k}\lambda_l^2\right) W k ( s ) = exp ( s M k − 2 s 2 l ≤ k ∑ λ l 2 )
is a nonnegative supermartingale for every real s s s .
On E \mathcal{E} E the wealth grows. The inequality log ( 1 + y ) ≥ y − 2 y 2 \log(1+y)\ge y-2y^2 log ( 1 + y ) ≥ y − 2 y 2 for y ≥ − 1 2 y\ge-\frac12 y ≥ − 2 1 , the lower bound on λ k \lambda_k λ k and Δ k − α ≥ ϱ \Delta_k-\alpha\ge\varrho Δ k − α ≥ ϱ give
log K N ≥ ϱ ( N L δ 2 ) 1 / 2 + M N − 4 L δ ( 1 + α ) 2 v min 2 . \log K_N\ge\varrho\left(\frac{NL_\delta}{2}\right)^{1/2}+M_N-\frac{4L_\delta(1+\alpha)^2}{v_{\min}^2}. log K N ≥ ϱ ( 2 N L δ ) 1/2 + M N − v m i n 2 4 L δ ( 1 + α ) 2 .
the last term from 2 ∑ k λ k 2 ( Z k − α ) 2 ≤ 2 N λ ˉ N 2 ( 1 + α ) 2 2\sum_k\lambda_k^2(Z_k-\alpha)^2\le2N\bar\lambda_N^2(1+\alpha)^2 2 ∑ k λ k 2 ( Z k − α ) 2 ≤ 2 N λ ˉ N 2 ( 1 + α ) 2 . As ( 1 + α ) 2 ≤ 4 (1+\alpha)^2\le4 ( 1 + α ) 2 ≤ 4 , failing to reject on E \mathcal{E} E forces M N ≤ − x N M_N\le-x_N M N ≤ − x N , with x N = ( ϱ N L δ / 2 − L δ − 16 L δ / v min 2 ) + x_N=(\varrho\sqrt{NL_\delta/2}-L_\delta-16L_\delta/v_{\min}^2)_+ x N = ( ϱ N L δ /2 − L δ − 16 L δ / v m i n 2 ) + . Put V = 2 L δ / v min 2 ≥ ∑ l λ l 2 V=2L_\delta/v_{\min}^2\ge\sum_l\lambda_l^2 V = 2 L δ / v m i n 2 ≥ ∑ l λ l 2 . Markov’s inequality for W N ( − x N / V ) W_N(-x_N/V) W N ( − x N / V ) , which is at least e x N 2 / ( 2 V ) e^{x_N^2/(2V)} e x N 2 / ( 2 V ) when M N ≤ − x N M_N\le-x_N M N ≤ − x N , bounds the probability by e − x N 2 / ( 2 V ) = ε N ( ϱ ) e^{-x_N^2/(2V)}=\varepsilon_N(\varrho) e − x N 2 / ( 2 V ) = ε N ( ϱ ) , without conditioning on E \mathcal{E} E .
Under the strict null the wealth shrinks. Now log ( 1 + y ) ≤ y \log(1+y)\le y log ( 1 + y ) ≤ y and Δ l ≤ α − ζ \Delta_l\le\alpha-\zeta Δ l ≤ α − ζ give log K k ≤ M k − ζ ∑ l ≤ k λ l \log K_k\le M_k-\zeta\sum_{l\le k}\lambda_l log K k ≤ M k − ζ ∑ l ≤ k λ l . With s = 2 ζ / λ ˉ N s=2\zeta/\bar\lambda_N s = 2 ζ / λ ˉ N and λ l ≤ λ ˉ N \lambda_l\le\bar\lambda_N λ l ≤ λ ˉ N , the quadratic term of W k ( s ) W_k(s) W k ( s ) is at most s 2 2 λ ˉ N ∑ l ≤ k λ l = s ζ ∑ l ≤ k λ l \frac{s^2}{2}\bar\lambda_N\sum_{l\le k}\lambda_l=s\zeta\sum_{l\le k}\lambda_l 2 s 2 λ ˉ N ∑ l ≤ k λ l = s ζ ∑ l ≤ k λ l , so W k ( s ) ≥ K k s ≥ δ − s W_k(s)\ge K_k^s\ge\delta^{-s} W k ( s ) ≥ K k s ≥ δ − s wherever K k ≥ 1 / δ K_k\ge1/\delta K k ≥ 1/ δ . The maximal inequality in the proof of Theorem 4.2 bounds the probability of this by δ 2 ζ / λ ˉ N \delta^{2\zeta/\bar\lambda_N} δ 2 ζ / λ ˉ N , which is at most the second bound of (S3.6) by the bound on λ ˉ N \bar\lambda_N λ ˉ N .
We now apply the two steps to the grid, starting with the upper side. If α ^ > α j ⋆ \hat\alpha>\alpha_{j}^{\star} α ^ > α j ⋆ , then by (16) the true null at the first grid level α i 0 ≥ α ⋆ \alpha_{i_0}\ge\alpha^\star α i 0 ≥ α ⋆ was rejected, with probability at most δ \delta δ by Theorem 4.2 , and tending to zero if α ⋆ \alpha^\star α ⋆ is off the grid, by (S3.6) with ζ = α i 0 − α ⋆ \zeta=\alpha_{i_0}-\alpha^\star ζ = α i 0 − α ⋆ . On the lower side every grid level below α ⋆ \alpha^\star α ⋆ must be rejected. Let α j ⋆ \alpha_{j^\star} α j ⋆ be, as in the statement, the largest grid level below α ⋆ \alpha^\star α ⋆ , D = D α j ⋆ > 0 D = D_{\alpha_{j^\star}} > 0 D = D α j ⋆ > 0 by (7) , β ˉ = ( 1 − α j ⋆ ) − 1 \bar{\beta} = (1-\alpha_{j^\star})^{-1} β ˉ = ( 1 − α j ⋆ ) − 1 and β j = ( 1 − α j ) − 1 \beta_j = (1-\alpha_j)^{-1} β j = ( 1 − α j ) − 1 , so that D α j ≥ D D_{\alpha_j} \ge D D α j ≥ D and β j ≤ β ˉ \beta_j \le\bar{\beta} β j ≤ β ˉ for j ≤ j ⋆ j \le j^\star j ≤ j ⋆ . Let E f i t E_{\mathrm{fit}} E fit be the event that Γ b , Γ b ˉ ≤ D / ( 8 β ˉ ) \Gamma_b,\Gamma_{\bar b} \le D/(8\bar{\beta}) Γ b , Γ b ˉ ≤ D / ( 8 β ˉ ) for all b b b , and let the samples be large enough that β ˉ Δ ϕ r 1 ≤ D / 8 \bar{\beta}\Delta_\phi r_1 \le D/8 β ˉ Δ ϕ r 1 ≤ D /8 and β ˉ 2 κ 2 r 1 ≤ 7 D 2 / 64 \bar{\beta}^2\kappa^2r_1 \le7D^2/64 β ˉ 2 κ 2 r 1 ≤ 7 D 2 /64 . On E f i t E_{\mathrm{fit}} E fit , at every level α j \alpha_j α j with j ≤ j ⋆ j \le j^\star j ≤ j ⋆ , the four terms of Θ b \Theta_b Θ b are at least D D D , − D / 4 -D/4 − D /4 , − D / 8 -D/8 − D /8 and − D / 8 -D/8 − D /8 , the last because the denominator is at least 7 D / 8 7D/8 7 D /8 ; so every batch has a ramp with excess at least ϱ ⋆ = D / ( 2 β ˉ Δ ϕ ) \varrho_\star= D/(2\bar{\beta}\Delta_\phi) ϱ ⋆ = D / ( 2 β ˉ Δ ϕ ) . By Lemma S1.3, as in the proof of Theorem S2.1, E Γ b , E Γ b ˉ ≤ μ 1 = 2 ( 1 + 2 ) κ r 1 \mathbb{E}\Gamma_b,\mathbb{E}\Gamma_{\bar b} \le\mu_1 = 2(1+\sqrt{2})\kappa\sqrt{r_1} E Γ b , E Γ b ˉ ≤ μ 1 = 2 ( 1 + 2 ) κ r 1 , and a deviation y y y above the mean has probability at most e − 2 y 2 / ( Δ ϕ 2 r 1 ) e^{-2y^2/(\Delta_\phi^2r_1)} e − 2 y 2 / ( Δ ϕ 2 r 1 ) . So by (16) and (S3.6),
P ( α ^ < α j ⋆ ) ≤ P ( E f i t c ) + J ε N ( ϱ ⋆ ) ≤ 2 B e − 2 ( D / ( 8 β ˉ ) − μ 1 ) 2 / ( Δ ϕ 2 r 1 ) + J ε N ( ϱ ⋆ ) → 0. \mathbb{P}(\widehat{\alpha}<\alpha_{j^\star}) \le\mathbb{P}(E_{\mathrm{fit}}^c)+J\varepsilon_N(\varrho_\star) \le2Be^{-2(D/(8\bar{\beta})-\mu_1)^2/(\Delta_\phi^2r_1)}+J\varepsilon_N(\varrho_\star)\to0. P ( α < α j ⋆ ) ≤ P ( E fit c ) + J ε N ( ϱ ⋆ ) ≤ 2 B e − 2 ( D / ( 8 β ˉ ) − μ 1 ) 2 / ( Δ ϕ 2 r 1 ) + J ε N ( ϱ ⋆ ) → 0.
Finer grids need one more step. For ϵ ∈ ( 0 , α ⋆ ) \epsilon\in(0,\alpha^\star) ϵ ∈ ( 0 , α ⋆ ) , the lower side with D = D α ⋆ − ϵ / 2 D=D_{\alpha^\star-\epsilon/2} D = D α ⋆ − ϵ /2 and β ˉ = ( 1 − α ⋆ + ϵ / 2 ) − 1 \bar{\beta}=(1-\alpha^\star+\epsilon/2)^{-1} β ˉ = ( 1 − α ⋆ + ϵ /2 ) − 1 rejects all grid levels in [ 0 , α ⋆ − ϵ / 2 ] [0,\alpha^\star-\epsilon/2] [ 0 , α ⋆ − ϵ /2 ] with probability tending to one, as log J = o ( N ) \log J=o(N) log J = o ( N ) . Then α ^ ≥ α ⋆ − ϵ / 2 − 2 h G ≥ α ⋆ − ϵ \widehat{\alpha}\ge\alpha^\star-\epsilon/2-2h_{\mathcal{G}}\ge\alpha^\star-\epsilon α ≥ α ⋆ − ϵ /2 − 2 h G ≥ α ⋆ − ϵ once the mesh h G = sup a ∈ [ 0 , 1 ) dist ( a , G ∪ { 0 } ) h_{\mathcal{G}}=\sup_{a\in[0,1)}\operatorname{dist}(a,\mathcal{G}\cup\{0\}) h G = sup a ∈ [ 0 , 1 ) dist ( a , G ∪ { 0 }) of the grid G \mathcal{G} G , a two-sided mesh over [ 0 , 1 ) [0,1) [ 0 , 1 ) , not the Δ G \Delta_{\mathcal{G}} Δ G of Theorem S4.3, is at most ϵ / 4 \epsilon/4 ϵ /4 , while α ^ > α ⋆ + ϵ \widehat{\alpha}>\alpha^\star+\epsilon α > α ⋆ + ϵ needs the rejection of the first grid level above α ⋆ + ϵ / 2 \alpha^\star+\epsilon/2 α ⋆ + ϵ /2 , of probability at most e − ϵ v min ( N L δ / 2 ) 1 / 2 e^{-\epsilon v_{\min}(NL_\delta/2)^{1/2}} e − ϵ v m i n ( N L δ /2 ) 1/2 by (S3.6).
The constants grow like 1 / v min 2 1/v_{\min}^2 1/ v m i n 2 : with a floor that shrinks with N N N , λ ˉ N \bar{\lambda}_N λ ˉ N tends to λ max / ( 1 + α ) \lambda_{\max}/(1+\alpha) λ m a x / ( 1 + α ) , and the second bound of (S3.6) only to δ 2 ζ ( 1 + α ) / λ max \delta^{2\zeta(1+\alpha)/\lambda_{\max}} δ 2 ζ ( 1 + α ) / λ m a x . The proof also allows an inexact minimizer of (10) : if its objective is d ^ 2 \hat d^2 d ^ 2 and its Frank–Wolfe gap is at most ρ d ^ 2 \rho\hat d^2 ρ d ^ 2 with ρ < 1 \rho<1 ρ < 1 , the gap equals 2 d 2 − 2 d s 2d^2-2ds 2 d 2 − 2 d s for the empirical separation s s s of its witness, so s ≥ ( 1 − ρ / 2 ) d s\ge(1-\rho/2)d s ≥ ( 1 − ρ /2 ) d , and the argument goes through with ( 1 − ρ / 2 ) D (1-\rho/2)D ( 1 − ρ /2 ) D in place of D D D .
A witness fitted at α = 0 \alpha= 0 α = 0
Consistency needs the witness fitted at the level tested. A single witness fitted at α = 0 \alpha=0 α = 0 , with direction f 0 = ( μ P − μ Q ) / MMD ( P , Q ) f_0=(\mu_P-\mu_Q)/\operatorname{MMD}(P,Q) f 0 = ( μ P − μ Q ) / MMD ( P , Q ) as in a test of P = Q P=Q P = Q , can keep α ^ \widehat{\alpha} α away from α ⋆ \alpha^\star α ⋆ . We show that its ramps certify at most a one-sided Kolmogorov distance of the values of f 0 f_0 f 0 , and then give laws for which this distance is smaller than d T V ( P , Q ) d_{\mathrm{TV}}(P,Q) d TV ( P , Q ) . A ramp ψ \psi ψ of f ∈ B H f\in B_{\mathcal H} f ∈ B H with cuts t > u t>u t > u has { ψ > r } = { f > u + r ( t − u ) } \{\psi>r\}=\{f>u+r(t-u)\} { ψ > r } = { f > u + r ( t − u )} for r ∈ [ 0 , 1 ) r\in[0,1) r ∈ [ 0 , 1 ) , so by the layer-cake formula
E P ψ − E Q ψ ≤ K S + ( f ) = sup x { P ( f ( X ) > x ) − Q ( f ( Y ) > x ) } . \mathbb{E}_P\psi-\mathbb{E}_Q\psi\le K\!S^+(f)=\sup_x\{P(f(X)>x)-Q(f(Y)>x)\}. E P ψ − E Q ψ ≤ K S + ( f ) = x sup { P ( f ( X ) > x ) − Q ( f ( Y ) > x )} .
Witnesses f ^ 0 , b \widehat f_{0,b} f 0 , b fitted at α = 0 \alpha=0 α = 0 have uniform weights and tend to f 0 f_0 f 0 uniformly, almost surely. Multiplying the fractions by 1 { K S + ( f ^ 0 , b ) ≤ α } \mathbf{1}\{K\!S^+(\widehat f_{0,b})\le\alpha\} 1 { K S + ( f 0 , b ) ≤ α } , which is predictable, gives a test that has Δ k ≤ α \Delta_k\le\alpha Δ k ≤ α wherever its fraction is positive. By the proof of Theorem 4.2, this test has level δ \delta δ even when H 0 , α H_{0,\alpha} H 0 , α is false, and it has the same wealth as the original test when max b K S + ( f ^ 0 , b ) ≤ α \max_b K\!S^+(\widehat f_{0,b})\le\alpha max b K S + ( f 0 , b ) ≤ α . Hence the original test rejects H 0 , α H_{0,\alpha} H 0 , α with probability at most δ + P ( max b K S + ( f ^ 0 , b ) > α ) \delta+\mathbb{P}(\max_b K\!S^+(\widehat f_{0,b})>\alpha) δ + P ( max b K S + ( f 0 , b ) > α ) .
For the laws, take the Gaussian kernel with σ = 1 \sigma=1 σ = 1 on R \mathbb{R} R , let P P P put mass 0.4 0.4 0.4 at 0 0 0 , 0.4 0.4 0.4 at − 100 -100 − 100 and 0.2 0.2 0.2 on 30 , 40 , … , 220 30,40,\ldots,220 30 , 40 , … , 220 in proportion to 1 , 2 , … , 20 1,2,\ldots,20 1 , 2 , … , 20 , and Q Q Q put 0.3 0.3 0.3 at 0.5 0.5 0.5 , 0.3 0.3 0.3 at 300 300 300 and 0.4 0.4 0.4 at − 100 -100 − 100 , so d T V ( P , Q ) = 0.6 d_{\mathrm{TV}}(P,Q)=0.6 d TV ( P , Q ) = 0.6 . Up to O ( e − 50 ) O(e^{-50}) O ( e − 50 ) , μ P − μ Q \mu_P-\mu_Q μ P − μ Q is 0.4 − 0.3 e − 1 / 8 = 0.135 0.4-0.3e^{-1/8}=0.135 0.4 − 0.3 e − 1/8 = 0.135 at 0 0 0 , 0.4 e − 1 / 8 − 0.3 = 0.053 0.4e^{-1/8}-0.3=0.053 0.4 e − 1/8 − 0.3 = 0.053 at 0.5 0.5 0.5 , increasing and at most 0.019 0.019 0.019 on the spread points, 0 0 0 at − 100 -100 − 100 and − 0.3 -0.3 − 0.3 at 300 300 300 . So the 24 values of f 0 f_0 f 0 are distinct, its up-sets have P − Q P-Q P − Q equal to 0.4 0.4 0.4 , 0.1 0.1 0.1 , at most 0.3 0.3 0.3 , 0.3 0.3 0.3 and 0 0 0 , and K S + ( f ^ 0 , b ) = K S + ( f 0 ) = 0.4 K\!S^+(\widehat f_{0,b})=K\!S^+(f_0)=0.4 K S + ( f 0 , b ) = K S + ( f 0 ) = 0.4 once f ^ 0 , b \widehat f_{0,b} f 0 , b is uniformly within half the smallest gap of these values, so every level α ≥ 0.4 \alpha\ge0.4 α ≥ 0.4 is rejected with probability at most δ + o ( 1 ) \delta+o(1) δ + o ( 1 ) , the false nulls below d T V ( P , Q ) d_{\mathrm{TV}}(P,Q) d TV ( P , Q ) included.
Proofs for Section 5
This section proves the results of § 5 : the margin condition and its examples, the rate of the split-sample bound under a margin, the margins of touching contaminations, the excess of the population ramp, the parametric rate, up to logarithmic factors, with the Laplace kernel, and the two-point lower bound and the minimax corollary. It also states and proves the converse for the analytic baseline.
Proof of Example 5.2
Proof. Every α \alpha α -trimming keeps enough mass where f = ± 1 f=\pm1 f = ± 1 for f f f to separate the trimmed means. Since P − Q = α ⋆ ( P 0 − Q 0 ) P-Q=\alpha^\star(P_0-Q_0) P − Q = α ⋆ ( P 0 − Q 0 ) and P 0 , Q 0 P_0,Q_0 P 0 , Q 0 are concentrated on the disjoint sets S P , S Q S_P,S_Q S P , S Q , d T V ( P , Q ) = α ⋆ d T V ( P 0 , Q 0 ) = α ⋆ d_{\mathrm{TV}}(P,Q)=\alpha^\star d_{\mathrm{TV}}(P_0,Q_0)=\alpha^\star d TV ( P , Q ) = α ⋆ d TV ( P 0 , Q 0 ) = α ⋆ . Fix α ∈ [ 0 , α ⋆ ] \alpha\in[0,\alpha^\star] α ∈ [ 0 , α ⋆ ] and an α \alpha α -trimming P ′ = g P P'=gP P ′ = g P , with 0 ≤ g ≤ β 0\leq g\leq\beta 0 ≤ g ≤ β . The law P P P is concentrated on S R ∪ S P S_R\cup S_P S R ∪ S P and gives S R S_R S R the mass 1 − α ⋆ 1-\alpha^\star 1 − α ⋆ , and f f f is 0 0 0 on S R S_R S R and 1 1 1 on S P S_P S P , so
E P ′ f = ∫ S P g d P = 1 − ∫ S R g d P ≥ 1 − β ( 1 − α ⋆ ) = α ⋆ − α 1 − α . \mathbb{E}_{P'}f=\int_{S_P}g\,\mathrm{d}P=1-\int_{S_R}g\,\mathrm{d}P\geq1-\beta(1-\alpha^\star)=\frac{\alpha^\star-\alpha}{1-\alpha}. E P ′ f = ∫ S P g d P = 1 − ∫ S R g d P ≥ 1 − β ( 1 − α ⋆ ) = 1 − α α ⋆ − α .
In the same way E Q ′ f ≤ − ( α ⋆ − α ) / ( 1 − α ) \mathbb{E}_{Q'}f\leq-(\alpha^\star-\alpha)/(1-\alpha) E Q ′ f ≤ − ( α ⋆ − α ) / ( 1 − α ) for every Q ′ ∈ R α ( Q ) Q'\in R_\alpha(Q) Q ′ ∈ R α ( Q ) . The function f f f is not 0, since it equals 1 on S P S_P S P , and by the reproducing property and the Cauchy–Schwarz inequality
MMD ( P ′ , Q ′ ) = ∥ μ P ′ − μ Q ′ ∥ H ≥ ⟨ μ P ′ − μ Q ′ , f ⟩ H ∥ f ∥ H ≥ E P ′ f − E Q ′ f ∥ f ∥ H ≥ 2 ( α ⋆ − α ) ( 1 − α ) ∥ f ∥ H . \operatorname{MMD}(P',Q')=\lVert\mu_{P'}-\mu_{Q'}\rVert_{\mathcal{H}}\geq\frac{\langle\mu_{P'}-\mu_{Q'},f\rangle_{\mathcal{H}}}{\lVert f\rVert_{\mathcal{H}}}\geq\frac{\mathbb{E}_{P'}f-\mathbb{E}_{Q'}f}{\lVert f\rVert_{\mathcal{H}}}\geq\frac{2(\alpha^\star-\alpha)}{(1-\alpha)\lVert f\rVert_{\mathcal{H}}}. MMD ( P ′ , Q ′ ) = ∥ μ P ′ − μ Q ′ ∥ H ≥ ∥ f ∥ H ⟨ μ P ′ − μ Q ′ , f ⟩ H ≥ ∥ f ∥ H E P ′ f − E Q ′ f ≥ ( 1 − α ) ∥ f ∥ H 2 ( α ⋆ − α ) .
The infimum over the two trimmings gives the first inequality of the example, and 1 − α ≤ 1 1-\alpha\leq1 1 − α ≤ 1 the second. At α = α ⋆ − ϵ \alpha=\alpha^\star-\epsilon α = α ⋆ − ϵ it reads D α ⋆ − ϵ ( P , Q ) ≥ 2 ϵ / ∥ f ∥ H D_{\alpha^\star-\epsilon}(P,Q)\geq2\epsilon/\lVert f\rVert_{\mathcal{H}} D α ⋆ − ϵ ( P , Q ) ≥ 2 ϵ / ∥ f ∥ H , which is Assumption 5.1 with c 0 = 2 / ∥ f ∥ H c_0=2/\lVert f\rVert_{\mathcal{H}} c 0 = 2/ ∥ f ∥ H and γ = 1 \gamma=1 γ = 1 .
For finite sets and a strictly positive definite kernel the Gram matrix of their points is invertible, so a combination ∑ i c i k ( ⋅ , z i ) \sum_i c_i k(\cdot,z_i) ∑ i c i k ( ⋅ , z i ) takes any prescribed values on them. For a Matérn kernel on R d \mathbb{R}^d R d the RKHS is a Sobolev space with an equivalent norm [102 Chapter 10] , which contains a smooth compactly supported function equal to 1 on the ϵ / 3 \epsilon/3 ϵ /3 -neighborhood of S P S_P S P , to − 1 -1 − 1 on that of S Q S_Q S Q and to 0 outside their 2 ϵ / 3 2\epsilon/3 2 ϵ /3 -neighborhoods, when S P S_P S P and S Q S_Q S Q are bounded and ϵ > 0 \epsilon>0 ϵ > 0 is the smallest distance between two of the three sets.
A general margin and the convexity of the path
Assumption 5.1 asks for a polynomial lower bound on the population path below α ⋆ \alpha^\star α ⋆ . A lower bound with no speed always exists, and Proposition S4.8(i), applied to ( 1 − α ⋆ ) ω (1-\alpha^\star)\omega ( 1 − α ⋆ ) ω , gives the split-sample bound a rate for it.
Lemma S4.1 (A margin always exists). Let Assumption 2.1 hold, let 0 < α ⋆ < 1 0<\alpha^\star<1 0 < α ⋆ < 1 , and for ϵ ∈ [ 0 , α ⋆ ] \epsilon\in[0,\alpha^\star] ϵ ∈ [ 0 , α ⋆ ] put
m ( ϵ ) : = min ϵ ′ ∈ [ ϵ , α ⋆ ] D α ⋆ − ϵ ′ ( P , Q ) , ω ( ϵ ) : = ϵ α ⋆ m ( ϵ ) . m(\epsilon):=\min_{\epsilon'\in[\epsilon,\alpha^\star]}D_{\alpha^\star-\epsilon'}(P,Q),\qquad\omega(\epsilon):=\frac{\epsilon}{\alpha^\star}m(\epsilon). m ( ϵ ) := ϵ ′ ∈ [ ϵ , α ⋆ ] min D α ⋆ − ϵ ′ ( P , Q ) , ω ( ϵ ) := α ⋆ ϵ m ( ϵ ) . Then ω \omega ω is continuous and strictly increasing on [ 0 , α ⋆ ] [0,\alpha^\star] [ 0 , α ⋆ ] , ω ( 0 ) = 0 \omega(0)=0 ω ( 0 ) = 0 , and D α ⋆ − ϵ ( P , Q ) ≥ ω ( ϵ ) D_{\alpha^\star-\epsilon}(P,Q)\geq\omega(\epsilon) D α ⋆ − ϵ ( P , Q ) ≥ ω ( ϵ ) for every ϵ ∈ [ 0 , α ⋆ ] \epsilon\in[0,\alpha^\star] ϵ ∈ [ 0 , α ⋆ ] .
Proof. The map ϵ ′ ↦ D α ⋆ − ϵ ′ \epsilon'\mapsto D_{\alpha^\star-\epsilon'} ϵ ′ ↦ D α ⋆ − ϵ ′ is continuous on [ 0 , α ⋆ ] [0,\alpha^\star] [ 0 , α ⋆ ] by Lemma S1.2, zero at $\epsilon'=0 and positive elsewhere by (7) . Its running minimum m m m is therefore attained, continuous and nondecreasing, with m ( 0 ) = 0 m(0)=0 m ( 0 ) = 0 and m ( ϵ ) > 0 m(\epsilon)>0 m ( ϵ ) > 0 for ϵ > 0 \epsilon>0 ϵ > 0 . Hence ω \omega ω is continuous with ω ( 0 ) = 0 \omega(0)=0 ω ( 0 ) = 0 , and for $0<\epsilon_1<\epsilon_2$, ω ( ϵ 2 ) ≥ ( ϵ 2 / α ⋆ ) m ( ϵ 1 ) > ω ( ϵ 1 ) > 0 \omega(\epsilon_2)\geq(\epsilon_2/\alpha^\star)m(\epsilon_1)>\omega(\epsilon_1)>0 ω ( ϵ 2 ) ≥ ( ϵ 2 / α ⋆ ) m ( ϵ 1 ) > ω ( ϵ 1 ) > 0 . Finally ω ( ϵ ) ≤ m ( ϵ ) ≤ D α ⋆ − ϵ \omega(\epsilon)\leq m(\epsilon)\leq D_{\alpha^\star-\epsilon} ω ( ϵ ) ≤ m ( ϵ ) ≤ D α ⋆ − ϵ , as ϵ ≤ α ⋆ \epsilon\leq\alpha^\star ϵ ≤ α ⋆ .
The next lemma, stated in words in § 5.1 , shows which margins are possible at all, through the convexity of the rescaled path. For α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) let
C ˉ α ( P ) : = ( 1 − α ) C α ( P ) = { E P [ h ( X ) ϕ ( X ) ] : 0 ≤ h ≤ 1 , E P [ h ] = 1 − α } , \bar{C}_{\alpha}(P) := (1-\alpha)C_{\alpha}(P) = \left\{\mathbb{E}_{P}[h(X)\phi(X)] : 0 \le h \le1,\ \mathbb{E}_{P}[h] = 1-\alpha\right\}, C ˉ α ( P ) := ( 1 − α ) C α ( P ) = { E P [ h ( X ) ϕ ( X )] : 0 ≤ h ≤ 1 , E P [ h ] = 1 − α } ,
the embeddings of the parts P ′ ≤ P P' \le P P ′ ≤ P of mass 1 − α 1-\alpha 1 − α , that is, of the α \alpha α -trimmings before they are renormalized, with h = ( 1 − α ) g h=(1-\alpha)g h = ( 1 − α ) g for g g g as in (2.5), and likewise C ˉ α ( Q ) \bar{C}_{\alpha}(Q) C ˉ α ( Q ) . By Proposition 2.2, which holds for any probability measures and so for P n P_n P n and Q m Q_m Q m , the rescaled path is D ˉ α = ( 1 − α ) D α ( P , Q ) = dist ( C ˉ α ( P ) , C ˉ α ( Q ) ) \bar{D}_{\alpha}=(1-\alpha)D_{\alpha}(P,Q)=\operatorname{dist}(\bar{C}_{\alpha}(P),\bar{C}_{\alpha}(Q)) D ˉ α = ( 1 − α ) D α ( P , Q ) = dist ( C ˉ α ( P ) , C ˉ α ( Q )) .
Lemma S4.2 (Convexity of the path). Let Assumption 2.1 hold, let P , Q P,Q P , Q be any probability measures on X \mathcal{X} X , empirical measures included, and put D ˉ α : = ( 1 − α ) D α ( P , Q ) \bar{D}_{\alpha}:=(1-\alpha)D_{\alpha}(P,Q) D ˉ α := ( 1 − α ) D α ( P , Q ) for α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) . Then D ˉ \bar{D} D ˉ is convex and nonincreasing. If moreover 0 < α ⋆ < 1 0<\alpha^\star<1 0 < α ⋆ < 1 , then:
(i) D ˉ \bar{D} D ˉ is strictly decreasing on [ 0 , α ⋆ ] [0,\alpha^\star] [ 0 , α ⋆ ] , and for all 0 ≤ α 1 < α 2 < α ⋆ 0\le\alpha_1<\alpha_2<\alpha^\star 0 ≤ α 1 < α 2 < α ⋆ ,
α ⋆ ≥ α 2 + ( α 2 − α 1 ) D ˉ α 2 D ˉ α 1 − D ˉ α 2 ; \alpha^\star\ge\alpha_2+\frac{(\alpha_2-\alpha_1)\bar{D}_{\alpha_2}}{\bar{D}_{\alpha_1}-\bar{D}_{\alpha_2}} ; α ⋆ ≥ α 2 + D ˉ α 1 − D ˉ α 2 ( α 2 − α 1 ) D ˉ α 2 ; (ii) ϵ ↦ D ˉ α ⋆ − ϵ / ϵ \epsilon\mapsto\bar{D}_{\alpha^\star-\epsilon}/\epsilon ϵ ↦ D ˉ α ⋆ − ϵ / ϵ is nondecreasing on ( 0 , α ⋆ ] (0,\alpha^\star] ( 0 , α ⋆ ] , so it has a limit s ≥ 0 s\ge0 s ≥ 0 as ϵ ↓ 0 \epsilon\downarrow0 ϵ ↓ 0 , and D ˉ α ⋆ − ϵ ( P , Q ) ≤ D 0 ( P , Q ) ϵ / { α ⋆ ( 1 − α ⋆ ) } \bar{D}_{\alpha^\star-\epsilon}(P,Q)\le D_0(P,Q)\epsilon/\{\alpha^\star(1-\alpha^\star)\} D ˉ α ⋆ − ϵ ( P , Q ) ≤ D 0 ( P , Q ) ϵ / { α ⋆ ( 1 − α ⋆ )} for all ϵ ∈ [ 0 , α ⋆ ] \epsilon\in[0,\alpha^\star] ϵ ∈ [ 0 , α ⋆ ] . Assumption 5.1 holds with γ = 1 \gamma=1 γ = 1 if and only if s > 0 s>0 s > 0 , and then it holds with c 0 = s c_0=s c 0 = s .
Proof of Lemma S4.2. A mixture of two trimmings at two levels is a trimming at the level in between, and the norm is convex; everything else follows from convexity and the location of the zeros of the path.
We show first that D ˉ \bar{D} D ˉ is convex. Let α 0 , α 1 ∈ [ 0 , 1 ) \alpha_0,\alpha_1\in[0,1) α 0 , α 1 ∈ [ 0 , 1 ) , λ ∈ [ 0 , 1 ] \lambda\in[0,1] λ ∈ [ 0 , 1 ] and α λ = ( 1 − λ ) α 0 + λ α 1 \alpha_\lambda=(1-\lambda)\alpha_0+\lambda\alpha_1 α λ = ( 1 − λ ) α 0 + λ α 1 . If h 0 h_0 h 0 and h 1 h_1 h 1 are admissible weights at the levels α 0 \alpha_0 α 0 and α 1 \alpha_1 α 1 , then ( 1 − λ ) h 0 + λ h 1 (1-\lambda)h_0+\lambda h_1 ( 1 − λ ) h 0 + λ h 1 lies between 0 and 1 and has mean 1 − α λ 1-\alpha_\lambda 1 − α λ under P P P , so ( 1 − λ ) C ˉ α 0 ( P ) + λ C ˉ α 1 ( P ) ⊂ C ˉ α λ ( P ) (1-\lambda)\bar{C}_{\alpha_0}(P)+\lambda\bar{C}_{\alpha_1}(P)\subset\bar{C}_{\alpha_\lambda}(P) ( 1 − λ ) C ˉ α 0 ( P ) + λ C ˉ α 1 ( P ) ⊂ C ˉ α λ ( P ) , and likewise for Q Q Q . For a i ∈ C ˉ α i ( P ) a_i\in\bar{C}_{\alpha_i}(P) a i ∈ C ˉ α i ( P ) and b i ∈ C ˉ α i ( Q ) b_i\in\bar{C}_{\alpha_i}(Q) b i ∈ C ˉ α i ( Q ) , the points ( 1 − λ ) a 0 + λ a 1 (1-\lambda)a_0+\lambda a_1 ( 1 − λ ) a 0 + λ a 1 and ( 1 − λ ) b 0 + λ b 1 (1-\lambda)b_0+\lambda b_1 ( 1 − λ ) b 0 + λ b 1 therefore lie in the sets at level α λ \alpha_\lambda α λ , and the triangle inequality gives
D ˉ α λ ≤ ∥ ( 1 − λ ) ( a 0 − b 0 ) + λ ( a 1 − b 1 ) ∥ H ≤ ( 1 − λ ) ∥ a 0 − b 0 ∥ H + λ ∥ a 1 − b 1 ∥ H . \bar{D}_{\alpha_\lambda}\le\left\|(1-\lambda)(a_0-b_0)+\lambda(a_1-b_1)\right\|_{\mathcal{H}}\le(1-\lambda)\|a_0-b_0\|_{\mathcal{H}}+\lambda\|a_1-b_1\|_{\mathcal{H}}. D ˉ α λ ≤ ∥ ( 1 − λ ) ( a 0 − b 0 ) + λ ( a 1 − b 1 ) ∥ H ≤ ( 1 − λ ) ∥ a 0 − b 0 ∥ H + λ ∥ a 1 − b 1 ∥ H .
Taking the infimum over a 0 , a 1 , b 0 , b 1 a_0,a_1,b_0,b_1 a 0 , a 1 , b 0 , b 1 gives D ˉ α λ ≤ ( 1 − λ ) D ˉ α 0 + λ D ˉ α 1 \bar{D}_{\alpha_\lambda}\le(1-\lambda)\bar{D}_{\alpha_0}+\lambda\bar{D}_{\alpha_1} D ˉ α λ ≤ ( 1 − λ ) D ˉ α 0 + λ D ˉ α 1 . The path D α D_\alpha D α is nonnegative and nonincreasing, and so is 1 − α 1-\alpha 1 − α , so their product D ˉ \bar{D} D ˉ is nonincreasing.
From here on 0 < α ⋆ < 1 0<\alpha^\star<1 0 < α ⋆ < 1 , so that D ˉ α ⋆ = 0 \bar{D}_{\alpha^\star}=0 D ˉ α ⋆ = 0 and D ˉ > 0 \bar{D}>0 D ˉ > 0 on [ 0 , α ⋆ ) [0,\alpha^\star) [ 0 , α ⋆ ) by (2.7). The path is strictly decreasing on [ 0 , α ⋆ ] [0,\alpha^\star] [ 0 , α ⋆ ] : for α 1 < α 2 ≤ α ⋆ \alpha_1<\alpha_2\le\alpha^\star α 1 < α 2 ≤ α ⋆ write α 2 = ( 1 − λ ) α 1 + λ α ⋆ \alpha_2=(1-\lambda)\alpha_1+\lambda\alpha^\star α 2 = ( 1 − λ ) α 1 + λ α ⋆ with λ = ( α 2 − α 1 ) / ( α ⋆ − α 1 ) ∈ ( 0 , 1 ] \lambda=(\alpha_2-\alpha_1)/(\alpha^\star-\alpha_1)\in(0,1] λ = ( α 2 − α 1 ) / ( α ⋆ − α 1 ) ∈ ( 0 , 1 ] ; convexity gives D ˉ α 2 ≤ ( 1 − λ ) D ˉ α 1 < D ˉ α 1 \bar{D}_{\alpha_2}\le(1-\lambda)\bar{D}_{\alpha_1}<\bar{D}_{\alpha_1} D ˉ α 2 ≤ ( 1 − λ ) D ˉ α 1 < D ˉ α 1 , since D ˉ α 1 > 0 \bar{D}_{\alpha_1}>0 D ˉ α 1 > 0 .
For the secant bound of (i), let α 1 < α 2 < α ⋆ \alpha_1<\alpha_2<\alpha^\star α 1 < α 2 < α ⋆ , so that D ˉ α 1 > D ˉ α 2 > 0 \bar{D}_{\alpha_1}>\bar{D}_{\alpha_2}>0 D ˉ α 1 > D ˉ α 2 > 0 , and let α ∈ ( α 2 , 1 ) \alpha\in(\alpha_2,1) α ∈ ( α 2 , 1 ) . Since α 2 \alpha_2 α 2 lies between α 1 \alpha_1 α 1 and α \alpha α , convexity gives ( α − α 1 ) D ˉ α 2 ≤ ( α − α 2 ) D ˉ α 1 + ( α 2 − α 1 ) D ˉ α (\alpha-\alpha_1)\bar{D}_{\alpha_2}\le(\alpha-\alpha_2)\bar{D}_{\alpha_1}+(\alpha_2-\alpha_1)\bar{D}_{\alpha} ( α − α 1 ) D ˉ α 2 ≤ ( α − α 2 ) D ˉ α 1 + ( α 2 − α 1 ) D ˉ α , that is,
D ˉ α ≥ D ˉ α 2 − ( α − α 2 ) D ˉ α 1 − D ˉ α 2 α 2 − α 1 . \bar{D}_{\alpha}\ge\bar{D}_{\alpha_2}-(\alpha-\alpha_2)\frac{\bar{D}_{\alpha_1}-\bar{D}_{\alpha_2}}{\alpha_2-\alpha_1}. D ˉ α ≥ D ˉ α 2 − ( α − α 2 ) α 2 − α 1 D ˉ α 1 − D ˉ α 2 .
The right side, the secant through the two points, is positive for α < α s = α 2 + ( α 2 − α 1 ) D ˉ α 2 / { D ˉ α 1 − D ˉ α 2 } \alpha<\alpha_s=\alpha_2+(\alpha_2-\alpha_1)\bar{D}_{\alpha_2}/\{\bar{D}_{\alpha_1}-\bar{D}_{\alpha_2}\} α < α s = α 2 + ( α 2 − α 1 ) D ˉ α 2 / { D ˉ α 1 − D ˉ α 2 } . So D ˉ > 0 \bar{D}>0 D ˉ > 0 on [ α 2 , α s ) ∩ [ 0 , 1 ) [\alpha_2,\alpha_s)\cap[0,1) [ α 2 , α s ) ∩ [ 0 , 1 ) , and since D ˉ α ⋆ = 0 \bar{D}_{\alpha^\star}=0 D ˉ α ⋆ = 0 with α ⋆ < 1 \alpha^\star<1 α ⋆ < 1 , this forces α ⋆ ≥ α s \alpha^\star\ge\alpha_s α ⋆ ≥ α s .
The slope at α ⋆ \alpha^\star α ⋆ in (ii) comes from the same mixture argument with one endpoint at α ⋆ \alpha^\star α ⋆ . Put r ( ϵ ) = D ˉ α ⋆ − ϵ / ϵ r(\epsilon)=\bar{D}_{\alpha^\star-\epsilon}/\epsilon r ( ϵ ) = D ˉ α ⋆ − ϵ / ϵ for ϵ ∈ ( 0 , α ⋆ ] \epsilon\in(0,\alpha^\star] ϵ ∈ ( 0 , α ⋆ ] . For 0 < ϵ 1 < ϵ 2 ≤ α ⋆ 0<\epsilon_1<\epsilon_2\le\alpha^\star 0 < ϵ 1 < ϵ 2 ≤ α ⋆ the level α ⋆ − ϵ 1 \alpha^\star-\epsilon_1 α ⋆ − ϵ 1 is the mixture of α ⋆ − ϵ 2 \alpha^\star-\epsilon_2 α ⋆ − ϵ 2 and α ⋆ \alpha^\star α ⋆ with weights ϵ 1 / ϵ 2 \epsilon_1/\epsilon_2 ϵ 1 / ϵ 2 and 1 − ϵ 1 / ϵ 2 1-\epsilon_1/\epsilon_2 1 − ϵ 1 / ϵ 2 , so convexity and D ˉ α ⋆ = 0 \bar{D}_{\alpha^\star}=0 D ˉ α ⋆ = 0 give D ˉ α ⋆ − ϵ 1 ≤ ( ϵ 1 / ϵ 2 ) D ˉ α ⋆ − ϵ 2 \bar{D}_{\alpha^\star-\epsilon_1}\le(\epsilon_1/\epsilon_2)\bar{D}_{\alpha^\star-\epsilon_2} D ˉ α ⋆ − ϵ 1 ≤ ( ϵ 1 / ϵ 2 ) D ˉ α ⋆ − ϵ 2 , that is, r ( ϵ 1 ) ≤ r ( ϵ 2 ) r(\epsilon_1)\le r(\epsilon_2) r ( ϵ 1 ) ≤ r ( ϵ 2 ) . Hence r r r is nondecreasing and nonnegative, and its limit s ≥ 0 s\ge0 s ≥ 0 at 0 exists, and s ≤ r ( ϵ ) ≤ r ( α ⋆ ) = D 0 ( P , Q ) / α ⋆ s\le r(\epsilon)\le r(\alpha^\star)=D_0(P,Q)/\alpha^\star s ≤ r ( ϵ ) ≤ r ( α ⋆ ) = D 0 ( P , Q ) / α ⋆ for every ϵ \epsilon ϵ . The upper bound gives D α ⋆ − ϵ = D ˉ α ⋆ − ϵ / ( 1 − α ⋆ + ϵ ) ≤ D 0 ϵ / { α ⋆ ( 1 − α ⋆ ) } D_{\alpha^\star-\epsilon}=\bar{D}_{\alpha^\star-\epsilon}/(1-\alpha^\star+\epsilon)\le D_0\epsilon/\{\alpha^\star(1-\alpha^\star)\} D α ⋆ − ϵ = D ˉ α ⋆ − ϵ / ( 1 − α ⋆ + ϵ ) ≤ D 0 ϵ / { α ⋆ ( 1 − α ⋆ )} for ϵ ∈ ( 0 , α ⋆ ] \epsilon\in(0,\alpha^\star] ϵ ∈ ( 0 , α ⋆ ] , and at ϵ = 0 \epsilon=0 ϵ = 0 both sides vanish.
For the equivalence in (ii), if s > 0 s>0 s > 0 , then D ˉ α ⋆ − ϵ ≥ s ϵ \bar{D}_{\alpha^\star-\epsilon}\ge s\epsilon D ˉ α ⋆ − ϵ ≥ sϵ , and since 1 − α ⋆ + ϵ ≤ 1 1-\alpha^\star+\epsilon\le1 1 − α ⋆ + ϵ ≤ 1 , D α ⋆ − ϵ ≥ D ˉ α ⋆ − ϵ ≥ s ϵ D_{\alpha^\star-\epsilon}\ge\bar{D}_{\alpha^\star-\epsilon}\ge s\epsilon D α ⋆ − ϵ ≥ D ˉ α ⋆ − ϵ ≥ sϵ for ϵ ∈ ( 0 , α ⋆ ] \epsilon\in(0,\alpha^\star] ϵ ∈ ( 0 , α ⋆ ] ; at ϵ = 0 \epsilon=0 ϵ = 0 the bound is 0 ≥ 0 0\ge0 0 ≥ 0 . So Assumption 5.1 holds with γ = 1 \gamma=1 γ = 1 and c 0 = s c_0=s c 0 = s . Conversely, if it holds with γ = 1 \gamma=1 γ = 1 and some c 0 > 0 c_0>0 c 0 > 0 , then r ( ϵ ) = ( 1 − α ⋆ + ϵ ) D α ⋆ − ϵ / ϵ ≥ ( 1 − α ⋆ ) c 0 r(\epsilon)=(1-\alpha^\star+\epsilon)D_{\alpha^\star-\epsilon}/\epsilon\ge(1-\alpha^\star)c_0 r ( ϵ ) = ( 1 − α ⋆ + ϵ ) D α ⋆ − ϵ / ϵ ≥ ( 1 − α ⋆ ) c 0 for every ϵ \epsilon ϵ , so s ≥ ( 1 − α ⋆ ) c 0 > 0 s\ge(1-\alpha^\star)c_0>0 s ≥ ( 1 − α ⋆ ) c 0 > 0 . The bound c 0 ϵ γ ≤ D 0 ϵ / { α ⋆ ( 1 − α ⋆ ) } c_0\epsilon^\gamma\le D_0\epsilon/\{\alpha^\star(1-\alpha^\star)\} c 0 ϵ γ ≤ D 0 ϵ / { α ⋆ ( 1 − α ⋆ )} for all small ϵ > 0 \epsilon>0 ϵ > 0 rules out every exponent γ < 1 \gamma<1 γ < 1 , which is why Assumption 5.1 takes γ ≥ 1 \gamma\ge1 γ ≥ 1 .
The convexity and the monotonicity of D ˉ \bar{D} D ˉ , and D ˉ α ⋆ = 0 \bar{D}_{\alpha^\star}=0 D ˉ α ⋆ = 0 , need only (A1) and (A2), since a common trimming has one embedding; so does part (ii), which uses nothing else, while part (i) also needs D ˉ > 0 \bar{D}>0 D ˉ > 0 below α ⋆ \alpha^\star α ⋆ , that is (A3).
The rate of the lower bound
Theorem S4.3 (Rate of the lower bound under the margin condition). Let Assumptions 2.1 and 5.1 hold, let α ⋆ < 1 \alpha^\star<1 α ⋆ < 1 , and compute α ^ \hat{\alpha} α ^ as in Proposition 4.4: on a grid α 1 < ⋯ < α J \alpha_1<\cdots<\alpha_J α 1 < ⋯ < α J fixed in advance, with a witness fitted at each level by a minimizer of (2.10) on the batches before the one bet on, cut points satisfying (S3.4), and the fractions (S3.3) with λ max = 1 2 \lambda_{\max}=\frac{1}{2} λ m a x = 2 1 , v 0 2 ≤ 4 v_0^2\le4 v 0 2 ≤ 4 and the running variance floored at a constant v min 2 ∈ ( 0 , 4 ] v_{\min}^2\in(0,4] v m i n 2 ∈ ( 0 , 4 ] . Let B B B be the number of batches bet on, N N N the number of pairs and r 1 = 1 / n < 1 + 1 / m < 1 r_1=1/n_{<1}+1/m_{<1} r 1 = 1/ n < 1 + 1/ m < 1 , where n < 1 , m < 1 n_{<1},m_{<1} n < 1 , m < 1 are the sizes of batch 0, and suppose r 1 ≤ 1 r_1\le1 r 1 ≤ 1 . Put β ⋆ = ( 1 − α ⋆ ) − 1 \beta^\star=(1-\alpha^\star)^{-1} β ⋆ = ( 1 − α ⋆ ) − 1 , L δ = log ( 1 / δ ) L_\delta=\log(1/\delta) L δ = log ( 1/ δ ) and, for η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) and J ′ ≥ 1 J'\ge1 J ′ ≥ 1 ,
T f i t ( η ) = 8 [ 2 ( 1 + 2 ) κ + Δ ϕ 1 2 log ( 4 B / η ) ] r 1 , T_{\mathrm{fit}}(\eta)=8\left[2(1+\sqrt{2})\kappa+\Delta_\phi\sqrt{\frac{1}{2}\log(4B/\eta)}\right]\sqrt{r_1}, T fit ( η ) = 8 [ 2 ( 1 + 2 ) κ + Δ ϕ 2 1 log ( 4 B / η ) ] r 1 , T b e t ( η , J ′ ) = 2 Δ ϕ 2 N [ ( 1 + 16 v min 2 ) L δ + 2 v min log ( 2 J ′ / η ) ] . (26) T_{\mathrm{bet}}(\eta,J')=2\Delta_\phi\sqrt{\frac{2}{N}}\left[\left(1+\frac{16}{v_{\min}^2}\right)\sqrt{L_\delta}+\frac{2}{v_{\min}}\sqrt{\log(2J'/\eta)}\right]. \tag*{(26)} T bet ( η , J ′ ) = 2 Δ ϕ N 2 [ ( 1 + v m i n 2 16 ) L δ + v m i n 2 log ( 2 J ′ / η ) ] . (26) For ϵ ∈ ( 0 , α ⋆ ] \epsilon\in(0,\alpha^\star] ϵ ∈ ( 0 , α ⋆ ] let a ϵ = max ( { 0 } ∪ { α j : α j ≤ α ⋆ − ϵ } ) a_\epsilon=\max(\{0\}\cup\{\alpha_j:\alpha_j\le\alpha^\star-\epsilon\}) a ϵ = max ({ 0 } ∪ { α j : α j ≤ α ⋆ − ϵ }) , let Δ min \Delta_{\min} Δ m i n be the smallest gap between consecutive grid levels (Δ min = ∞ \Delta_{\min}=\infty Δ m i n = ∞ if J = 1 J=1 J = 1 ), and let J ϵ = min { J , 2 ( 1 + ϵ / Δ min ) } J_\epsilon=\min\{J,2(1+\epsilon/\Delta_{\min})\} J ϵ = min { J , 2 ( 1 + ϵ / Δ m i n )} .
If c 0 ϵ γ ≥ β ⋆ max { T f i t ( η ) , T b e t ( η , J ϵ ) } c_0\epsilon^\gamma\ge\beta^\star\max\{T_{\mathrm{fit}}(\eta),T_{\mathrm{bet}}(\eta,J_\epsilon)\} c 0 ϵ γ ≥ β ⋆ max { T fit ( η ) , T bet ( η , J ϵ )} , then P ( α < a ϵ ) ≤ η \mathbb{P}(\alpha<a_\epsilon)\le\eta P ( α < a ϵ ) ≤ η .
Let t n , m = β ⋆ max { T f i t ( η ) , T b e t ( η , J ) } t_{n,m}=\beta^\star\max\{T_{\mathrm{fit}}(\eta),T_{\mathrm{bet}}(\eta,J)\} t n , m = β ⋆ max { T fit ( η ) , T bet ( η , J )} and let Δ G = sup a ∈ [ 0 , α ⋆ ] ( a − max { g ∈ { 0 , α 1 , … , α J } : g ≤ a } ) \Delta_{\mathcal{G}}=\sup_{a\in[0,\alpha^\star]}(a-\max\{g\in\{0,\alpha_1,\ldots,\alpha_J\}:g\le a\}) Δ G = sup a ∈ [ 0 , α ⋆ ] ( a − max { g ∈ { 0 , α 1 , … , α J } : g ≤ a }) be the mesh of the grid below α ⋆ \alpha^\star α ⋆ . Then, with probability at least 1 − δ − η 1-\delta-\eta 1 − δ − η ,
α ⋆ − Δ G − ( t n , m c 0 ) 1 / γ ≤ α ^ ≤ α ⋆ . \alpha^\star-\Delta_{\mathcal{G}}-\left(\frac{t_{n,m}}{c_0}\right)^{1/\gamma}\le\hat{\alpha}\le\alpha^\star. α ⋆ − Δ G − ( c 0 t n , m ) 1/ γ ≤ α ^ ≤ α ⋆ . With the batches of § 4.2 , their boundaries rounded to the nearest integers, and n ∧ m ≥ 10 n\wedge m\ge10 n ∧ m ≥ 10 , one has r 1 ≤ min { 1 , 12 / ( n ∧ m ) } r_1\le\min\{1,12/(n\wedge m)\} r 1 ≤ min { 1 , 12/ ( n ∧ m )} and N ≥ ( n ∧ m ) / 2 N\ge(n\wedge m)/2 N ≥ ( n ∧ m ) /2 , so that, with an absolute constant in the O O O ,
( t n , m c 0 ) 1 / γ = O ( ( κ c 0 ( 1 − α ⋆ ) v min 2 1 + log ( 1 / δ ) + log ( J / η ) n ∧ m ) 1 / γ ) . \left(\frac{t_{n,m}}{c_0}\right)^{1/\gamma}
=O\left(\left(\frac{\kappa}{c_0(1-\alpha^\star)v_{\min}^2}\sqrt{\frac{1+\log(1/\delta)+\log(J/\eta)}{n\wedge m}}\right)^{1/\gamma}\right). ( c 0 t n , m ) 1/ γ = O ( c 0 ( 1 − α ⋆ ) v m i n 2 κ n ∧ m 1 + log ( 1/ δ ) + log ( J / η ) ) 1/ γ . The error is of order ( n ∧ m ) − 1 / ( 2 γ ) (n\wedge m)^{-1/(2\gamma)} ( n ∧ m ) − 1/ ( 2 γ ) , plus the mesh, with the factor 1 / v min 2 1/v_{\min}^2 1/ v m i n 2 of the betting constants and a factor log J \log J log J , which part (i) removes when the grid is not finer than the rate: if Δ min ≥ ϵ n , m ′ = ( β ⋆ max { T f i t ( η ) , T b e t ( η , 4 ) } / c 0 ) 1 / γ \Delta_{\min}\ge\epsilon'_{n,m}=(\beta^\star\max\{T_{\mathrm{fit}}(\eta),T_{\mathrm{bet}}(\eta,4)\}/c_0)^{1/\gamma} Δ m i n ≥ ϵ n , m ′ = ( β ⋆ max { T fit ( η ) , T bet ( η , 4 )} / c 0 ) 1/ γ , then J ϵ n , m ′ ≤ 4 J_{\epsilon'_{n,m}}\le4 J ϵ n , m ′ ≤ 4 , and with probability at least 1 − δ − η 1-\delta-\eta 1 − δ − η , α ⋆ − Δ G − ϵ n , m ′ ≤ α ^ ≤ α ⋆ \alpha^\star-\Delta_{\mathcal{G}}-\epsilon'_{n,m}\le\hat{\alpha}\le\alpha^\star α ⋆ − Δ G − ϵ n , m ′ ≤ α ^ ≤ α ⋆ , with no log J \log J log J . The proof needs no density of the witness at the cut points, unlike Theorem 6.1, which uses (Q), and it does not use (A3), whose role the margin takes over.
Proof of Theorem S4.3. We run the lower side of the proof of Proposition 4.4 at the level α ⋆ − ϵ \alpha^\star-\epsilon α ⋆ − ϵ , with the margin in place of a fixed positive distance, and keep the constants. One event, which does not depend on the level, makes every fitted ramp good, and only the bets need a union over the levels.
Fix ϵ \epsilon ϵ as in (i), and put D ∗ = c 0 ϵ γ D_\ast=c_0\epsilon^\gamma D ∗ = c 0 ϵ γ , τ ∗ = D ∗ / ( 8 β ⋆ ) \tau_\ast=D_\ast/(8\beta_\star) τ ∗ = D ∗ / ( 8 β ⋆ ) and ϱ ∗ = D ∗ / ( 2 β ⋆ Δ ϕ ) \varrho_\ast=D_\ast/(2\beta_\star\Delta_\phi) ϱ ∗ = D ∗ / ( 2 β ⋆ Δ ϕ ) : D ∗ D_\ast D ∗ is the margin at distance ϵ \epsilon ϵ from α ⋆ \alpha^\star α ⋆ , τ ∗ \tau_\ast τ ∗ the fluctuation allowed to each fitting batch, and ϱ ∗ \varrho_\ast ϱ ∗ the excess that the bets will see. The two thresholds of (i) are these choices solved for D ∗ D_\ast D ∗ : T f i t T_{\mathrm{fit}} T fit makes the fitting suprema smaller than τ ∗ \tau_\ast τ ∗ , and T b e t T_{\mathrm{bet}} T bet makes an excess ϱ ∗ \varrho_\ast ϱ ∗ win the bets, each with probability η / 2 \eta/2 η /2 to spare. Every grid level α j ≤ α ⋆ − ϵ \alpha_j\leq\alpha^\star-\epsilon α j ≤ α ⋆ − ϵ has β j = ( 1 − α j ) − 1 ≤ β ⋆ \beta_j=(1-\alpha_j)^{-1}\leq\beta_\star β j = ( 1 − α j ) − 1 ≤ β ⋆ , and with x j = ( α ⋆ − α j ) / ϵ ≥ 1 x_j=(\alpha^\star-\alpha_j)/\epsilon\geq1 x j = ( α ⋆ − α j ) / ϵ ≥ 1 , Assumption 5.1 at ϵ x j ∈ [ ϵ , α ⋆ ] \epsilon x_j\in[\epsilon,\alpha^\star] ϵ x j ∈ [ ϵ , α ⋆ ] gives D α j ≥ c 0 ϵ γ x j γ = D ∗ x j γ ≥ D ∗ D_{\alpha_j}\geq c_0\epsilon^\gamma x_j^\gamma=D_\ast x_j^\gamma\geq D_\ast D α j ≥ c 0 ϵ γ x j γ = D ∗ x j γ ≥ D ∗ . Moreover D ∗ ≤ D α ⋆ − ϵ ≤ D 0 = MMD ( P , Q ) = ∥ E [ ϕ ( X ) − ϕ ( Y ) ] ∥ H ≤ Δ ϕ D_\ast\leq D_{\alpha^\star-\epsilon}\leq D_0=\operatorname{MMD}(P,Q)=\lVert\mathbb{E}[\phi(X)-\phi(Y)]\rVert_{\mathcal{H}}\leq\Delta_\phi D ∗ ≤ D α ⋆ − ϵ ≤ D 0 = MMD ( P , Q ) = ∥ E [ ϕ ( X ) − ϕ ( Y )] ∥ H ≤ Δ ϕ , as the path is nonincreasing, so Δ ϕ > 0 \Delta_\phi>0 Δ ϕ > 0 . By (16) , if H 0 , α j H_{0,\alpha_j} H 0 , α j is rejected at every grid level α j ≤ α ⋆ − ϵ \alpha_j\leq\alpha^\star-\epsilon α j ≤ α ⋆ − ϵ , then α ^ ≥ a ϵ \widehat{\alpha}\geq a_\epsilon α ≥ a ϵ , which also holds trivially when no grid level is that small. Hence
{ α ^ < a ϵ } ⊆ ⋃ j : α j ≤ α ⋆ − ϵ { H 0 , α j is not rejected } . \{\widehat{\alpha}<a_\epsilon\}\subseteq\bigcup_{j:\alpha_j\leq\alpha^\star-\epsilon}\{H_{0,\alpha_j}\text{ is not rejected}\}. { α < a ϵ } ⊆ j : α j ≤ α ⋆ − ϵ ⋃ { H 0 , α j is not rejected } .
The fits are controlled by the suprema Γ b , Γ b − \Gamma_b,\Gamma_b^- Γ b , Γ b − of the proof of Proposition 4.4, those of the proof of Theorem S2.1 computed on batches 0 , … , b − 1 0,\ldots,b-1 0 , … , b − 1 , which do not depend on α \alpha α . Let E f i t = ⋂ b = 1 B { Γ b ≤ τ ∗ , Γ b − ≤ τ ∗ } \mathcal{E}_{\mathrm{fit}}=\bigcap_{b=1}^{B}\{\Gamma_b\leq\tau_\ast,\Gamma_b^-\leq\tau_\ast\} E fit = ⋂ b = 1 B { Γ b ≤ τ ∗ , Γ b − ≤ τ ∗ } . We show that on E f i t \mathcal{E}_{\mathrm{fit}} E fit every batch has a ramp at every level α j ≤ α ⋆ − ϵ \alpha_j\leq\alpha^\star-\epsilon α j ≤ α ⋆ − ϵ , with a large excess. Fix such a level α = α j \alpha=\alpha_j α = α j and a batch b b b , and write β = β j \beta=\beta_j β = β j . The hypothesis of (i) gives D ∗ ≥ β ⋆ T f i t ( η ) ≥ 16 ( 1 + 2 ) β ⋆ κ r 1 D_\ast\geq\beta_\star T_{\mathrm{fit}}(\eta)\geq16(1+\sqrt{2})\beta_\star\kappa\sqrt{r_1} D ∗ ≥ β ⋆ T fit ( η ) ≥ 16 ( 1 + 2 ) β ⋆ κ r 1 , and since Δ ϕ ≤ 2 κ \Delta_\phi\leq2\kappa Δ ϕ ≤ 2 κ and r b ≤ r 1 ≤ 1 r_b\leq r_1\leq1 r b ≤ r 1 ≤ 1 ,
β Δ ϕ r b ≤ 2 β ⋆ κ r 1 ≤ D ∗ 8 , β 2 κ 2 r b ≤ β ⋆ 2 κ 2 r 1 ≤ D ∗ 2 256 ( 1 + 2 ) 2 ≤ 7 D ∗ 2 64 ; \beta\Delta_\phi r_b\leq2\beta_\star\kappa\sqrt{r_1}\leq\frac{D_\ast}{8},\qquad
\beta^2\kappa^2r_b\leq\beta_\star^2\kappa^2r_1\leq\frac{D_\ast^2}{256(1+\sqrt{2})^2}\leq\frac{7D_\ast^2}{64}; β Δ ϕ r b ≤ 2 β ⋆ κ r 1 ≤ 8 D ∗ , β 2 κ 2 r b ≤ β ⋆ 2 κ 2 r 1 ≤ 256 ( 1 + 2 ) 2 D ∗ 2 ≤ 64 7 D ∗ 2 ;
on E f i t \mathcal{E}_{\mathrm{fit}} E fit moreover β ( Γ b + Γ b − ) ≤ 2 β ⋆ τ ∗ = D ∗ / 4 \beta(\Gamma_b+\Gamma_b^-)\leq2\beta_\star\tau_\ast=D_\ast/4 β ( Γ b + Γ b − ) ≤ 2 β ⋆ τ ∗ = D ∗ /4 and D α − β Γ b − ≥ D ∗ − D ∗ / 8 = 7 D ∗ / 8 > 0 D_\alpha-\beta\Gamma_b^-\geq D_\ast-D_\ast/8=7D_\ast/8>0 D α − β Γ b − ≥ D ∗ − D ∗ /8 = 7 D ∗ /8 > 0 . The last inequality is the hypothesis β Γ b − < D α \beta\Gamma_b^-<D_\alpha β Γ b − < D α under which the proof of Proposition 4.4 establishes (S3.5), with no condition on the law of the witness near the cut points:
Δ ϕ ≥ t ^ b − u ^ b ≥ θ ( f ^ ; t ^ b , u ^ b ) ≥ Θ b = D α − β ( Γ b + Γ b − ) − β Δ ϕ r b − β 2 κ 2 r b D α − β Γ b − , \Delta_\phi\geq\widehat{t}_b-\widehat{u}_b\geq\theta(\widehat{f};\widehat{t}_b,\widehat{u}_b)\geq\Theta_b=D_\alpha-\beta(\Gamma_b+\Gamma_b^-)-\beta\Delta_\phi r_b-\frac{\beta^2\kappa^2r_b}{D_\alpha-\beta\Gamma_b^-}, Δ ϕ ≥ t b − u b ≥ θ ( f ; t b , u b ) ≥ Θ b = D α − β ( Γ b + Γ b − ) − β Δ ϕ r b − D α − β Γ b − β 2 κ 2 r b ,
and the four bounds above give Θ b ≥ D α − D ∗ 4 − D ∗ 8 − 7 D ∗ 2 / 64 7 D ∗ / 8 = D α − D ∗ 2 ≥ D α 2 > 0 \Theta_b\geq D_\alpha-\frac{D_\ast}{4}-\frac{D_\ast}{8}-\frac{7D_\ast^2/64}{7D_\ast/8}=D_\alpha-\frac{D_\ast}{2}\geq\frac{D_\alpha}{2}>0 Θ b ≥ D α − 4 D ∗ − 8 D ∗ − 7 D ∗ /8 7 D ∗ 2 /64 = D α − 2 D ∗ ≥ 2 D α > 0 . So t ^ b > u ^ b \widehat{t}_b>\widehat{u}_b t b > u b , batch b b b has a ramp ψ b \psi_b ψ b , and Lemma 4.1(ii), applied under P P P and Q Q Q given batches 0 , … , b − 1 0,\ldots,b-1 0 , … , b − 1 to the direction f ^ \widehat{f} f and the cut points t ^ b , u ^ b \widehat{t}_b,\widehat{u}_b t b , u b , gives β ( t ^ b − u ^ b ) ( E P ψ b − E Q ψ b − α ) ≥ θ ( f ^ ; t ^ b , u ^ b ) ≥ Θ b \beta(\widehat{t}_b-\widehat{u}_b)(\mathbb{E}_P\psi_b-\mathbb{E}_Q\psi_b-\alpha)\geq\theta(\widehat{f};\widehat{t}_b,\widehat{u}_b)\geq\Theta_b β ( t b − u b ) ( E P ψ b − E Q ψ b − α ) ≥ θ ( f ; t b , u b ) ≥ Θ b , hence
E P ψ b − E Q ψ b − α j ≥ Θ b β Δ ϕ ≥ D α j 2 β ⋆ Δ ϕ = : ϱ j ≥ ϱ ∗ x j γ . (27) \mathbb{E}_P\psi_b-\mathbb{E}_Q\psi_b-\alpha_j\geq\frac{\Theta_b}{\beta\Delta_\phi}\geq\frac{D_{\alpha_j}}{2\beta_\star\Delta_\phi}=:\varrho_j\geq\varrho_\ast x_j^\gamma. \tag*{(27)} E P ψ b − E Q ψ b − α j ≥ β Δ ϕ Θ b ≥ 2 β ⋆ Δ ϕ D α j =: ϱ j ≥ ϱ ∗ x j γ . (27)
The fitting event is likely. By Lemma S1.3 with ϕ x 1 = ϕ y 2 = ( ⋅ ) + \phi_x^1=\phi_y^2=(\cdot)_+ ϕ x 1 = ϕ y 2 = ( ⋅ ) + , r = 1 r=1 r = 1 and ρ 1 = ρ 2 = κ \rho_1=\rho_2=\kappa ρ 1 = ρ 2 = κ , as in the proof of Theorem S2.1, E Γ b \mathbb{E}\Gamma_b E Γ b and E Γ b − \mathbb{E}\Gamma_b^- E Γ b − are at most 2 κ r b + 2 κ ( e n < b + e m < b ) ≤ 2 ( 1 + 2 ) κ r b ≤ μ 1 = 2 ( 1 + 2 ) κ r 1 2\kappa\sqrt{r_b}+2\kappa(e_{n<b}+e_{m<b})\leq2(1+\sqrt{2})\kappa\sqrt{r_b}\leq\mu_1=2(1+\sqrt{2})\kappa\sqrt{r_1} 2 κ r b + 2 κ ( e n < b + e m < b ) ≤ 2 ( 1 + 2 ) κ r b ≤ μ 1 = 2 ( 1 + 2 ) κ r 1 , by e k ≤ k − 1 / 2 e_k\leq k^{-1/2} e k ≤ k − 1/2 and n − 1 / 2 + m − 1 / 2 ≤ { 2 ( 1 / n + 1 / m ) } 1 / 2 n^{-1/2}+m^{-1/2}\leq\{2(1/n+1/m)\}^{1/2} n − 1/2 + m − 1/2 ≤ { 2 ( 1/ n + 1/ m ) } 1/2 , and, the bounded differences being Δ ϕ \Delta_\phi Δ ϕ , each exceeds its mean by more than y y y with probability at most e − 2 y 2 / ( Δ ϕ 2 r b ) ≤ e − 2 y 2 / ( Δ ϕ 2 r 1 ) e^{-2y^2/(\Delta_\phi^2r_b)}\leq e^{-2y^2/(\Delta_\phi^2r_1)} e − 2 y 2 / ( Δ ϕ 2 r b ) ≤ e − 2 y 2 / ( Δ ϕ 2 r 1 ) . Divided by 8 β ⋆ 8\beta_\star 8 β ⋆ , the hypothesis D ∗ ≥ β ⋆ T f i t ( η ) D_\ast\geq\beta_\star T_{\mathrm{fit}}(\eta) D ∗ ≥ β ⋆ T fit ( η ) reads τ ∗ − μ 1 ≥ Δ ϕ { r 1 log ( 4 B / η ) / 2 } 1 / 2 \tau_\ast-\mu_1\geq\Delta_\phi\{r_1\log(4B/\eta)/2\}^{1/2} τ ∗ − μ 1 ≥ Δ ϕ { r 1 log ( 4 B / η ) /2 } 1/2 , so each of the 2 B 2B 2 B suprema exceeds τ ∗ \tau_\ast τ ∗ with probability at most η / ( 4 B ) \eta/(4B) η / ( 4 B ) , and P ( E f i t ) ≤ η / 2 \mathbb{P}(\mathcal{E}_{\mathrm{fit}})\leq\eta/2 P ( E fit ) ≤ η /2 .
We turn to the bets, where only a union over the levels is needed. Fix a grid level α j ≤ α ⋆ − ϵ \alpha_j\leq\alpha^\star-\epsilon α j ≤ α ⋆ − ϵ . On E f i t \mathcal{E}_{\mathrm{fit}} E fit every batch has a ramp, and by (S4.2) every pair has conditional mean Δ k ≥ α j + ϱ j \Delta_k\geq\alpha_j+\varrho_j Δ k ≥ α j + ϱ j in the notation of the proof of Theorem 4.2. The sample is large enough for (S3.6): as v min 2 ≤ 4 v_{\min}^{2} \le4 v m i n 2 ≤ 4 , Δ ϕ ≥ D ⋆ ≥ β ⋆ T b e t ( η , J ϵ ) ≥ 10 Δ ϕ ( 2 L δ / N ) 1 / 2 \Delta_{\phi} \ge D_{\star} \ge\beta_{\star}T_{\mathrm{bet}}(\eta,J_{\epsilon}) \ge10\Delta_{\phi}(2L_{\delta}/N)^{1/2} Δ ϕ ≥ D ⋆ ≥ β ⋆ T bet ( η , J ϵ ) ≥ 10 Δ ϕ ( 2 L δ / N ) 1/2 , so N ≥ 200 L δ ≥ 2 L δ / λ max 2 N \ge200L_{\delta} \ge2L_{\delta}/\lambda_{\max}^{2} N ≥ 200 L δ ≥ 2 L δ / λ m a x 2 . The first bound of (S3.6), with E = E f i t \mathcal{E}=\mathcal{E}_{\mathrm{fit}} E = E fit and ϱ = ϱ j \varrho=\varrho_j ϱ = ϱ j , gives
P ( E f i t ∩ { H 0 , α j is not rejected } ) ≤ ϵ N ( ϱ j ) = exp { − v min 2 4 L δ ( ϱ j S − C ) + 2 } . \mathbb{P}\left(\mathcal{E}_{\mathrm{fit}}\cap\{H_{0,\alpha_j}\text{ is not rejected}\}\right)\le\epsilon_N(\varrho_j)=\exp\left\{-\frac{v_{\min}^{2}}{4L_{\delta}}(\varrho_jS-C)_{+}^{2}\right\}. P ( E fit ∩ { H 0 , α j is not rejected } ) ≤ ϵ N ( ϱ j ) = exp { − 4 L δ v m i n 2 ( ϱ j S − C ) + 2 } .
with S = ( N L δ / 2 ) 1 / 2 S=(NL_{\delta}/2)^{1/2} S = ( N L δ /2 ) 1/2 and C = L δ ( 1 + 16 / v min 2 ) C=L_{\delta}(1+16/v_{\min}^{2}) C = L δ ( 1 + 16/ v m i n 2 ) . The hypothesis D ⋆ ≥ β ⋆ T b e t ( η , J ϵ ) D_{\star}\ge\beta_{\star}T_{\mathrm{bet}}(\eta,J_{\epsilon}) D ⋆ ≥ β ⋆ T bet ( η , J ϵ ) , divided by 2 β ⋆ Δ ϕ 2\beta_{\star}\Delta_{\phi} 2 β ⋆ Δ ϕ and multiplied by S S S , reads ϱ ⋆ S ≥ C + 2 v min { L δ log ( 2 J ϵ / η ) } 1 / 2 \varrho_{\star}S\ge C+2v_{\min}\{L_{\delta}\log(2J_{\epsilon}/\eta)\}^{1/2} ϱ ⋆ S ≥ C + 2 v m i n { L δ log ( 2 J ϵ / η ) } 1/2 , so a = ϱ ⋆ S − C ≥ 2 v min { L δ log ( 2 J ϵ / η ) } 1 / 2 > 0 a=\varrho_{\star}S-C\ge2v_{\min}\{L_{\delta}\log(2J_{\epsilon}/\eta)\}^{1/2}>0 a = ϱ ⋆ S − C ≥ 2 v m i n { L δ log ( 2 J ϵ / η ) } 1/2 > 0 . Since x j ≥ 1 x_j\ge1 x j ≥ 1 , γ ≥ 1 \gamma\ge1 γ ≥ 1 and ϱ ⋆ S ≥ a \varrho_{\star}S\ge a ϱ ⋆ S ≥ a , (S4.2) gives ϱ j S − C ≥ ϱ ⋆ x j S − C = a + ϱ ⋆ S ( x j − 1 ) ≥ a x j \varrho_jS-C\ge\varrho_{\star}x_jS-C=a+\varrho_{\star}S(x_j-1)\ge ax_j ϱ j S − C ≥ ϱ ⋆ x j S − C = a + ϱ ⋆ S ( x j − 1 ) ≥ a x j , hence ϵ N ( ϱ j ) ≤ e − A x j 2 \epsilon_N(\varrho_j)\le e^{-Ax_j^2} ϵ N ( ϱ j ) ≤ e − A x j 2 with A = v min 2 a 2 / ( 4 L δ ) ≥ log ( 2 J ϵ / η ) > log 2 A=v_{\min}^{2}a^{2}/(4L_{\delta})\ge\log(2J_{\epsilon}/\eta)>\log2 A = v m i n 2 a 2 / ( 4 L δ ) ≥ log ( 2 J ϵ / η ) > log 2 .
It remains to add over the levels, and the polynomial growth of the excess away from α ⋆ \alpha^{\star} α ⋆ keeps the sum within a factor J ϵ J_{\epsilon} J ϵ of e − A e^{-A} e − A . If J ϵ = J J_{\epsilon}=J J ϵ = J , the at most J J J terms e − A x j 2 ≤ e − A e^{-Ax_j^2}\le e^{-A} e − A x j 2 ≤ e − A add up to at most J e − A ≤ η / 2 Je^{-A}\le\eta/2 J e − A ≤ η /2 . Otherwise J ϵ = 2 ( 1 + ϵ / Δ min ) J_{\epsilon}=2(1+\epsilon/\Delta_{\min}) J ϵ = 2 ( 1 + ϵ / Δ m i n ) ; the x j x_j x j are at least Δ min / ϵ \Delta_{\min}/\epsilon Δ m i n / ϵ apart, so at most 1 + ϵ / Δ min 1+\epsilon/\Delta_{\min} 1 + ϵ / Δ m i n of them lie in each interval [ 1 + k , 2 + k ) [1+k,2+k) [ 1 + k , 2 + k ) , k = 0 , 1 , … k=0,1,\ldots k = 0 , 1 , … , and as ( 1 + k ) 2 ≥ 1 + 3 k (1+k)^2\ge1+3k ( 1 + k ) 2 ≥ 1 + 3 k and e − 3 A ≤ 1 2 e^{-3A}\le\frac12 e − 3 A ≤ 2 1 ,
∑ j : α j ≤ α ⋆ − ϵ e − A x j 2 ≤ ( 1 + ϵ Δ min ) ∑ k ≥ 0 e − A ( 1 + 3 k ) ≤ 2 ( 1 + ϵ Δ min ) e − A = J ϵ e − A ≤ η 2 . \sum_{j:\alpha_j\le\alpha^{\star}-\epsilon}e^{-Ax_j^2}\le\left(1+\frac{\epsilon}{\Delta_{\min}}\right)\sum_{k\ge0}e^{-A(1+3k)}\le2\left(1+\frac{\epsilon}{\Delta_{\min}}\right)e^{-A}=J_{\epsilon}e^{-A}\le\frac{\eta}{2}. j : α j ≤ α ⋆ − ϵ ∑ e − A x j 2 ≤ ( 1 + Δ m i n ϵ ) k ≥ 0 ∑ e − A ( 1 + 3 k ) ≤ 2 ( 1 + Δ m i n ϵ ) e − A = J ϵ e − A ≤ 2 η .
With the inclusion above, P ( α ^ < a ϵ ) ≤ P ( E f i t ) + ∑ j P ( E f i t ∩ { H 0 , α j is not rejected } ) ≤ η \mathbb{P}(\widehat{\alpha}<a_{\epsilon})\le\mathbb{P}(\mathcal{E}_{\mathrm{fit}})+\sum_j\mathbb{P}(\mathcal{E}_{\mathrm{fit}}\cap\{H_{0,\alpha_j}\text{ is not rejected}\})\le\eta P ( α < a ϵ ) ≤ P ( E fit ) + ∑ j P ( E fit ∩ { H 0 , α j is not rejected }) ≤ η , which is (i).
For (ii), put ϵ n , m = ( t n , m / c 0 ) 1 / γ \epsilon_{n,m}=(t_{n,m}/c_0)^{1/\gamma} ϵ n , m = ( t n , m / c 0 ) 1/ γ . If ϵ n , m > α ⋆ \epsilon_{n,m}>\alpha^{\star} ϵ n , m > α ⋆ the lower inequality holds because α ^ ≥ 0 \widehat{\alpha}\ge0 α ≥ 0 . Otherwise ϵ = ϵ n , m \epsilon=\epsilon_{n,m} ϵ = ϵ n , m satisfies the hypothesis of (i), because J ϵ ≤ J J_{\epsilon}\le J J ϵ ≤ J and T b e t T_{\mathrm{bet}} T bet increases in J ′ J' J ′ , so with probability at least 1 − η 1-\eta 1 − η , α ^ ≥ a ϵ n , m ≥ α ⋆ − ϵ n , m − Δ G \widehat{\alpha}\ge a\epsilon_{n,m}\ge\alpha^{\star}-\epsilon_{n,m}-\Delta_G α ≥ a ϵ n , m ≥ α ⋆ − ϵ n , m − Δ G , the last step by the definition of Δ G \Delta_G Δ G . Corollary 4.3 gives α ^ ≤ α ⋆ \widehat{\alpha}\le\alpha^{\star} α ≤ α ⋆ with probability at least 1 − δ 1-\delta 1 − δ , and a union bound gives (ii).
For (iii), boundaries at the nearest integers to n / 4 n/4 n /4 and n / 2 n/2 n /2 give batch 0 at least ( n − 2 ) / 4 (n-2)/4 ( n − 2 ) /4 observations X X X , batch 1 at least n / 4 − 1 n/4-1 n /4 − 1 and batch 2 at least n / 2 − 1 2 n/2-\frac12 n /2 − 2 1 , and likewise for Y Y Y . Hence r 1 ≤ 8 / ( n ∧ m − 2 ) r_1\le8/(n\wedge m-2) r 1 ≤ 8/ ( n ∧ m − 2 ) , which is at most 1 for n ∧ m ≥ 10 n\wedge m\ge10 n ∧ m ≥ 10 and at most 12 / ( n ∧ m ) 12/(n\wedge m) 12/ ( n ∧ m ) for n ∧ m ≥ 6 n\wedge m\ge6 n ∧ m ≥ 6 , and N ≥ 3 4 ( n ∧ m ) − 3 2 ≥ ( n ∧ m ) / 2 N\ge\frac34(n\wedge m)-\frac32\ge(n\wedge m)/2 N ≥ 4 3 ( n ∧ m ) − 2 3 ≥ ( n ∧ m ) /2 for n ∧ m ≥ 6 n\wedge m\ge6 n ∧ m ≥ 6 . Inserting these bounds, B = 2 B=2 B = 2 , Δ ϕ ≤ 2 κ \Delta_{\phi}\le2\kappa Δ ϕ ≤ 2 κ , and 1 + 16 / v min 2 ≤ 20 / v min 2 1+16/v_{\min}^{2}\le20/v_{\min}^{2} 1 + 16/ v m i n 2 ≤ 20/ v m i n 2 and 2 / v min ≤ 4 / v min 2 2/v_{\min}\le4/v_{\min}^{2} 2/ v m i n ≤ 4/ v m i n 2 , which hold as v min 2 ≤ 4 v_{\min}^{2}\le4 v m i n 2 ≤ 4 , into (S4.1) bounds t n , m t_{n,m} t n , m by an absolute constant times β ⋆ κ v min − 2 { ( 1 + L δ + log ( J / η ) ) / ( n ∧ m ) } 1 / 2 \beta_{\star}\kappa v_{\min}^{-2}\{(1+L_{\delta}+\log(J/\eta))/(n\wedge m)\}^{1/2} β ⋆ κ v m i n − 2 {( 1 + L δ + log ( J / η )) / ( n ∧ m ) } 1/2 .
Touching contaminations
This subsection and the six that follow prove Propositions 5.3–5.6 of the main text, in a more general form, state and prove the rates under a general margin (Proposition S4.8), and state and prove the converse Proposition S4.16. Throughout, P ∧ Q P\wedge Q P ∧ Q has mass 1 − α ⋆ 1-\alpha^{\star} 1 − α ⋆ , P 0 = ( P − P ∧ Q ) / α ⋆ P_0=(P-P\wedge Q)/\alpha^{\star} P 0 = ( P − P ∧ Q ) / α ⋆ and Q 0 = ( Q − P ∧ Q ) / α ⋆ Q_0=(Q-P\wedge Q)/\alpha^{\star} Q 0 = ( Q − P ∧ Q ) / α ⋆ , so that P = P ∧ Q + α ⋆ P 0 P=P\wedge Q+\alpha^{\star}P_0 P = P ∧ Q + α ⋆ P 0 , Q = P ∧ Q + α ⋆ Q 0 Q=P\wedge Q+\alpha^{\star}Q_0 Q = P ∧ Q + α ⋆ Q 0 , P 0 P_0 P 0 is concentrated on A = { p > q } A=\{p>q\} A = { p > q } , Q 0 Q_0 Q 0 on its complement, and ∣ P − Q ∣ = α ⋆ ( P 0 + Q 0 ) |P-Q|=\alpha^{\star}(P_0+Q_0) ∣ P − Q ∣ = α ⋆ ( P 0 + Q 0 ) . The rescaled path D ˉ \bar D D ˉ and the sets C ˉ α \bar C_{\alpha} C ˉ α are those of Section S4.2, and for α ≤ α ⋆ \alpha\le\alpha^{\star} α ≤ α ⋆ , D ˉ α ≤ D α ( P , Q ) ≤ D ˉ α / ( 1 − α ⋆ ) \bar D_{\alpha}\le D_{\alpha}(P,Q)\le\bar D_{\alpha}/(1-\alpha^{\star}) D ˉ α ≤ D α ( P , Q ) ≤ D ˉ α / ( 1 − α ⋆ ) .
On R d \mathbb{R}^{d} R d we use translation invariant kernels k ( x , y ) = k 0 ( x − y ) k(x,y)=k_0(x-y) k ( x , y ) = k 0 ( x − y ) with k 0 k_0 k 0 continuous, integrable and positive definite, and the Fourier transform g ^ ( ξ ) = ∫ g ( x ) e − i ξ ⋅ x d x \widehat{g}(\xi)=\int g(x)e^{-i\xi\cdot x}\,dx g ( ξ ) = ∫ g ( x ) e − i ξ ⋅ x d x . Then k ^ 0 ≥ 0 \widehat{k}_0\ge0 k 0 ≥ 0 is integrable, k 0 ( z ) = ( 2 π ) − d ∫ k ^ 0 ( ξ ) e i ξ ⋅ z d ξ k_0(z)=(2\pi)^{-d}\int\widehat{k}_0(\xi)e^{i\xi\cdot z}\,d\xi k 0 ( z ) = ( 2 π ) − d ∫ k 0 ( ξ ) e i ξ ⋅ z d ξ , and by Wendland [102 ] , Theorem 10.12 the RKHS consists of the continuous f ∈ L 2 ( R d ) f\in L^2(\mathbb{R}^{d}) f ∈ L 2 ( R d ) with ∫ ∣ f ^ ∣ 2 / k ^ 0 < ∞ \int|\widehat{f}|^2/\widehat{k}_0<\infty ∫ ∣ f ∣ 2 / k 0 < ∞ , with
∥ f ∥ H 2 = ( 2 π ) − d ∫ ∣ f ^ ( ξ ) ∣ 2 k ^ 0 ( ξ ) d ξ . (28) \|f\|_{\mathcal{H}}^2=(2\pi)^{-d}\int\frac{|\widehat{f}(\xi)|^2}{\widehat{k}_0(\xi)}\,d\xi. \tag*{(28)} ∥ f ∥ H 2 = ( 2 π ) − d ∫ k 0 ( ξ ) ∣ f ( ξ ) ∣ 2 d ξ . (28)
For a finite signed measure ν \nu ν with Fourier transform ν ^ ( ξ ) = ∫ e − i ξ ⋅ x d ν ( x ) \widehat{\nu}(\xi)=\int e^{-i\xi\cdot x}\,d\nu(x) ν ( ξ ) = ∫ e − i ξ ⋅ x d ν ( x ) , Fubini’s theorem and the inversion formula give
∥ ∫ ϕ d ν ∥ H 2 = ∬ k 0 ( x − y ) d ν ( x ) d ν ( y ) = ( 2 π ) − d ∫ ∣ ν ^ ( ξ ) ∣ 2 k 0 ^ ( ξ ) d ξ . (29) \left\|\int\phi\,d\nu\right\|_{\mathcal{H}}^2=\iint k_0(x-y)\,d\nu(x)\,d\nu(y)=(2\pi)^{-d}\int|\widehat{\nu}(\xi)|^2\widehat{k_0}(\xi)\,d\xi. \tag*{(29)} ∫ ϕ d ν H 2 = ∬ k 0 ( x − y ) d ν ( x ) d ν ( y ) = ( 2 π ) − d ∫ ∣ ν ( ξ ) ∣ 2 k 0 ( ξ ) d ξ . (29)
The first result needs no topology on X \mathcal{X} X . By (A1), (A2) and Pettis’ theorem, ϕ \phi ϕ is Borel measurable into the separable space H \mathcal{H} H , so its image laws ϕ # P 0 \phi_{\#}P_0 ϕ # P 0 and ϕ # Q 0 \phi_{\#}Q_0 ϕ # Q 0 are Borel probability measures on a separable metric space, whose supports are closed, nonempty and of full mass.
Proposition S4.4 (Slope bound). Let (A1) and (A2) hold and let 0 < α ⋆ < 1 0<\alpha^\star<1 0 < α ⋆ < 1 . Then
lim ϵ ↓ 0 D ‾ α ⋆ − ϵ ϵ ≤ dist ( supp ϕ # P 0 , supp ϕ # Q 0 ) . \lim_{\epsilon\downarrow0}\frac{\overline{D}_{\alpha^\star-\epsilon}}{\epsilon}\leq\operatorname{dist}\bigl(\operatorname{supp}\phi_{\#}P_0,\operatorname{supp}\phi_{\#}Q_0\bigr). ϵ ↓ 0 lim ϵ D α ⋆ − ϵ ≤ dist ( supp ϕ # P 0 , supp ϕ # Q 0 ) .
Proof. We trim at the level α ⋆ − ϵ \alpha^\star-\epsilon α ⋆ − ϵ by adding to the common part a little of each contamination near two chosen feature vectors. Fix z ∈ supp ϕ # P 0 z\in\operatorname{supp}\phi_{\#}P_0 z ∈ supp ϕ # P 0 , z ′ ∈ supp ϕ # Q 0 z'\in\operatorname{supp}\phi_{\#}Q_0 z ′ ∈ supp ϕ # Q 0 and ϱ > 0 \varrho>0 ϱ > 0 , and let U = ϕ − 1 ( B ( z , ϱ ) ) U=\phi^{-1}(B(z,\varrho)) U = ϕ − 1 ( B ( z , ϱ )) and V = ϕ − 1 ( B ( z ′ , ϱ ) ) V=\phi^{-1}(B(z',\varrho)) V = ϕ − 1 ( B ( z ′ , ϱ )) , so that m U = P 0 ( U ) > 0 m_U=P_0(U)>0 m U = P 0 ( U ) > 0 and m V = Q 0 ( V ) > 0 m_V=Q_0(V)>0 m V = Q 0 ( V ) > 0 . Write P 0 U = P 0 ( ⋅ ∩ U ) / m U P_0^U=P_0(\mathord{\cdot}\cap U)/m_U P 0 U = P 0 ( ⋅ ∩ U ) / m U and Q 0 V = Q 0 ( ⋅ ∩ V ) / m V Q_0^V=Q_0(\mathord{\cdot}\cap V)/m_V Q 0 V = Q 0 ( ⋅ ∩ V ) / m V . For 0 < ϵ ≤ α ⋆ min ( m U , m V ) 0<\epsilon\leq\alpha^\star\min(m_U,m_V) 0 < ϵ ≤ α ⋆ min ( m U , m V ) the measure P ϵ = P ∧ Q + ϵ P 0 U P_\epsilon=P\wedge Q+\epsilon P_0^U P ϵ = P ∧ Q + ϵ P 0 U satisfies P ϵ ≤ P ∧ Q + α ⋆ P 0 = P P_\epsilon\leq P\wedge Q+\alpha^\star P_0=P P ϵ ≤ P ∧ Q + α ⋆ P 0 = P , because ϵ / m U ≤ α ⋆ \epsilon/m_U\leq\alpha^\star ϵ / m U ≤ α ⋆ , and has mass 1 − ( α ⋆ − ϵ ) 1-(\alpha^\star-\epsilon) 1 − ( α ⋆ − ϵ ) , so ∫ ϕ d P ϵ ∈ C ‾ α ⋆ − ϵ ( P ) \int\phi\,dP_\epsilon\in\overline{\mathcal{C}}_{\alpha^\star-\epsilon}(P) ∫ ϕ d P ϵ ∈ C α ⋆ − ϵ ( P ) . Likewise, Q ϵ = P ∧ Q + ϵ Q 0 V Q_\epsilon=P\wedge Q+\epsilon Q_0^V Q ϵ = P ∧ Q + ϵ Q 0 V gives a point of C ‾ α ⋆ − ϵ ( Q ) \overline{\mathcal{C}}_{\alpha^\star-\epsilon}(Q) C α ⋆ − ϵ ( Q ) . The common part cancels, and
D ‾ α ⋆ − ϵ ≤ ∥ ∫ ϕ d P ϵ − ∫ ϕ d Q ϵ ∥ H = ϵ ∥ ∬ { ϕ ( x ) − ϕ ( y ) } d P 0 U ( x ) d Q 0 V ( y ) ∥ H ≤ ϵ ( ∥ z − z ′ ∥ H + 2 ϱ ) , \begin{aligned}
\overline{D}_{\alpha^\star-\epsilon}\leq\left\|\int\phi\,dP_\epsilon-\int\phi\,dQ_\epsilon\right\|_{\mathcal{H}}=\epsilon\left\|\iint\{\phi(x)-\phi(y)\}\,dP_0^U(x)\,dQ_0^V(y)\right\|_{\mathcal{H}} \\
&\leq\epsilon\bigl(\|z-z'\|_{\mathcal{H}}+2\varrho\bigr),
\end{aligned} D α ⋆ − ϵ ≤ ∫ ϕ d P ϵ − ∫ ϕ d Q ϵ H = ϵ ∬ { ϕ ( x ) − ϕ ( y )} d P 0 U ( x ) d Q 0 V ( y ) H ≤ ϵ ( ∥ z − z ′ ∥ H + 2 ϱ ) ,
since ∥ ϕ ( x ) − z ∥ H < ϱ \|\phi(x)-z\|_{\mathcal{H}}<\varrho ∥ ϕ ( x ) − z ∥ H < ϱ on U U U and ∥ ϕ ( y ) − z ′ ∥ H < ϱ \|\phi(y)-z'\|_{\mathcal{H}}<\varrho ∥ ϕ ( y ) − z ′ ∥ H < ϱ on V V V . Dividing by ϵ \epsilon ϵ and letting ϵ ↓ 0 \epsilon\downarrow0 ϵ ↓ 0 , and then ϱ ↓ 0 \varrho\downarrow0 ϱ ↓ 0 , bounds the limit, which exists by Lemma S4.2(ii) (that part of its proof uses only the convexity of D ‾ \overline{D} D and D ‾ α ⋆ = 0 \overline{D}_{\alpha^\star}=0 D α ⋆ = 0 , which hold under (A1) and (A2)), by ∥ z − z ′ ∥ H \|z-z'\|_{\mathcal{H}} ∥ z − z ′ ∥ H , and the infimum over z z z and z ′ z' z ′ gives the claim. □
Proof of Proposition 5.3. The quantity bounded in the proposition is lim D ‾ α ⋆ − ϵ / ϵ \lim\overline{D}_{\alpha^\star-\epsilon}/\epsilon lim D α ⋆ − ϵ / ϵ . If ϕ \phi ϕ is continuous and x ∈ supp P 0 x\in\operatorname{supp}P_0 x ∈ supp P 0 , then for every ϱ > 0 \varrho>0 ϱ > 0 the set ϕ − 1 ( B ( ϕ ( x ) , ϱ ) ) \phi^{-1}(B(\phi(x),\varrho)) ϕ − 1 ( B ( ϕ ( x ) , ϱ )) is an open neighborhood of x x x and has positive P 0 P_0 P 0 -mass, so ϕ ( x ) ∈ supp ϕ # P 0 \phi(x)\in\operatorname{supp}\phi_{\#}P_0 ϕ ( x ) ∈ supp ϕ # P 0 . Likewise ϕ ( y ) ∈ supp ϕ # Q 0 \phi(y)\in\operatorname{supp}\phi_{\#}Q_0 ϕ ( y ) ∈ supp ϕ # Q 0 for y ∈ supp Q 0 y\in\operatorname{supp}Q_0 y ∈ supp Q 0 , and Proposition S4.4 gives the bound. If the supports meet, take y = x y=x y = x : the limit is 0, and by Lemma S4.2(ii) Assumption 5.1 does not hold with γ = 1 \gamma=1 γ = 1 .
For the last claim let X \mathcal{X} X be an open connected subset of R d \mathbb{R}^d R d and let p , q p,q p , q be continuous. The density ( p − q ) + / α ⋆ (p-q)_+/\alpha^\star ( p − q ) + / α ⋆ of P 0 P_0 P 0 is continuous, so supp P 0 \operatorname{supp}P_0 supp P 0 is the closure F P F_P F P in X \mathcal{X} X of the open set { p > q } \{p>q\} { p > q } : a neighborhood of a point of F P F_P F P meets { p > q } \{p>q\} { p > q } in a nonempty open set, which has positive Lebesgue measure and on which the density is positive, while a point outside F P F_P F P has a neighborhood of P 0 P_0 P 0 -mass 0. Likewise supp Q 0 \operatorname{supp}Q_0 supp Q 0 is the closure F Q F_Q F Q of { q > p } \{q>p\} { q > p } . Both sets are nonempty, as ∫ ( p − q ) + = ∫ ( q − p ) + = α ⋆ > 0 \int(p-q)_+=\int(q-p)_+=\alpha^\star>0 ∫ ( p − q ) + = ∫ ( q − p ) + = α ⋆ > 0 . If F P ∩ F Q F_P\cap F_Q F P ∩ F Q were empty, the open set X ∖ ( F P ∪ F Q ) \mathcal{X}\setminus(F_P\cup F_Q) X ∖ ( F P ∪ F Q ) would lie in { p = q } \{p=q\} { p = q } , because { p ≠ q } ⊆ F P ∪ F Q \{p\ne q\}\subseteq F_P\cup F_Q { p = q } ⊆ F P ∪ F Q , and so would be empty. Then X \mathcal{X} X would be the union of the disjoint nonempty sets F P F_P F P and F Q F_Q F Q , closed in X \mathcal{X} X , against its connectedness. For two distinct finite Gaussian mixtures, p − q p-q p − q is a real-analytic function on R d \mathbb{R}^d R d and not identically zero, so its zero set has empty interior, and α ⋆ < 1 \alpha^\star<1 α ⋆ < 1 because both densities are positive. □
When supp P 0 \operatorname{supp}P_0 supp P 0 is compact, the bound is an equivalence for continuous kernels whose RKHS contains the smooth functions with compact support.
Proposition S4.5 (Disjoint contaminations give a linear margin). Let X = R d \mathcal{X} = \mathbb{R}^{d} X = R d and k ( x , y ) = k 0 ( x − y ) k(x,y) = k_0(x-y) k ( x , y ) = k 0 ( x − y ) with k ^ 0 ( ξ ) ≥ c ( 1 + ∣ ξ ∣ 2 ) − s \widehat{k}_0(\xi) \ge c(1+|\xi|^2)^{-s} k 0 ( ξ ) ≥ c ( 1 + ∣ ξ ∣ 2 ) − s for some s > d / 2 s>d/2 s > d /2 and c > 0 c>0 c > 0 , as for the Matérn kernels, let 0 < α ⋆ < 1 0<\alpha^\star<1 0 < α ⋆ < 1 and let supp P 0 \operatorname{supp}P_0 supp P 0 be compact. If supp P 0 ∩ supp Q 0 = ∅ \operatorname{supp}P_0\cap\operatorname{supp}Q_0=\varnothing supp P 0 ∩ supp Q 0 = ∅ , there is f ∈ H f\in\mathcal{H} f ∈ H with 0 ≤ f ≤ 1 0\le f\le1 0 ≤ f ≤ 1 , f = 1 f=1 f = 1 on supp P 0 \operatorname{supp}P_0 supp P 0 and f = 0 f=0 f = 0 on supp Q 0 \operatorname{supp}Q_0 supp Q 0 , and every such f f f gives D α ⋆ − ϵ ( P , Q ) ≥ D ‾ α ⋆ − ϵ ≥ ϵ / ∥ f ∥ H D_{\alpha^\star-\epsilon}(P,Q)\ge\overline{D}_{\alpha^\star-\epsilon}\ge\epsilon/\lVert f\rVert_{\mathcal{H}} D α ⋆ − ϵ ( P , Q ) ≥ D α ⋆ − ϵ ≥ ϵ / ∥ f ∥ H for ϵ ∈ [ 0 , α ⋆ ] \epsilon\in[0,\alpha^\star] ϵ ∈ [ 0 , α ⋆ ] , that is, Assumption 5.1 with γ = 1 \gamma=1 γ = 1 and c 0 = 1 / ∥ f ∥ H c_0=1/\lVert f\rVert_{\mathcal{H}} c 0 = 1/ ∥ f ∥ H . Together with Proposition 5.3 , the rescaled path then has a positive slope at α ⋆ \alpha^\star α ⋆ if and only if supp P 0 ∩ supp Q 0 = ∅ \operatorname{supp}P_0\cap\operatorname{supp}Q_0=\varnothing supp P 0 ∩ supp Q 0 = ∅ .
Proof. A compact set and a disjoint closed set are at a positive distance d 0 d_0 d 0 . Let U U U be the open d 0 / 2 d_0/2 d 0 /2 -neighborhood of supp P 0 \operatorname{supp}P_0 supp P 0 , which is bounded, and f = 1 U ∗ b d 0 / 3 f=\mathbf{1}_U*b_{d_0/3} f = 1 U ∗ b d 0 /3 with b ∈ C ∞ b\in C^\infty b ∈ C ∞ a probability density supported in the closed unit ball and b w = w − d b ( ⋅ / w ) b_w=w^{-d}b(\cdot/w) b w = w − d b ( ⋅ / w ) . Then f f f is smooth with compact support and 0 ≤ f ≤ 1 0\le f\le1 0 ≤ f ≤ 1 . Moreover f = 1 f=1 f = 1 on supp P 0 \operatorname{supp}P_0 supp P 0 , since the closed ball of radius d 0 / 3 d_0/3 d 0 /3 about such a point lies in U U U , and f = 0 f=0 f = 0 on supp Q 0 \operatorname{supp}Q_0 supp Q 0 , since the closed ball of radius d 0 / 3 d_0/3 d 0 /3 about such a point stays at distance at least 2 d 0 / 3 2d_0/3 2 d 0 /3 from supp P 0 \operatorname{supp}P_0 supp P 0 and so misses U U U . By (S4.3), ∥ f ∥ H 2 ≤ c − 1 ( 2 π ) − d ∫ ∣ f ^ ∣ 2 ( 1 + ∣ ξ ∣ 2 ) s < ∞ \lVert f\rVert_{\mathcal{H}}^2\le c^{-1}(2\pi)^{-d}\int|\widehat{f}|^2(1+|\xi|^2)^s<\infty ∥ f ∥ H 2 ≤ c − 1 ( 2 π ) − d ∫ ∣ f ∣ 2 ( 1 + ∣ ξ ∣ 2 ) s < ∞ , so f ∈ H f\in\mathcal{H} f ∈ H . For any such f f f , E P f − E Q f = ( E P 0 f − E Q 0 f ) = α ⋆ ( E P 0 f − E Q 0 f ) = α ⋆ \mathbb{E}_P f-\mathbb{E}_Q f=(\mathbb{E}_{P_0}f-\mathbb{E}_{Q_0}f)=\alpha^\star(\mathbb{E}_{P_0}f-\mathbb{E}_{Q_0}f)=\alpha^\star E P f − E Q f = ( E P 0 f − E Q 0 f ) = α ⋆ ( E P 0 f − E Q 0 f ) = α ⋆ , so err ( f ) = 0 \operatorname{err}(f)=0 err ( f ) = 0 , and Proposition S4.7(ii) below gives the bound. The equivalence follows from Lemma S4.2(ii) and Proposition 5.3 , as ϕ \phi ϕ is continuous. □
This sharpens Example 5.2, which also separates the core.
Margins from approximate witnesses
Lemma S4.6 (Trimmed means of a bounded function). Let α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) , let P P P be a probability measure and f f f a bounded measurable function. Every P ′ ∈ R α ( P ) P'\in\mathcal{R}_{\alpha}(P) P ′ ∈ R α ( P ) satisfies
E P f − α sup f 1 − α ≤ E P ′ f ≤ E P f − α inf f 1 − α . \frac{\mathbb{E}_P f-\alpha\sup f}{1-\alpha}\le\mathbb{E}_{P'}f\le\frac{\mathbb{E}_P f-\alpha\inf f}{1-\alpha}. 1 − α E P f − α sup f ≤ E P ′ f ≤ 1 − α E P f − α inf f . Proof. Write P ′ = g P P'=gP P ′ = g P with 0 ≤ g ≤ β 0\le g\le\beta 0 ≤ g ≤ β and E P g = 1 \mathbb{E}_P g=1 E P g = 1 . Then E P ′ f = β E P f − E P [ ( β − g ) f ] \mathbb{E}_{P'}f=\beta\mathbb{E}_P f-\mathbb{E}_P[(\beta-g)f] E P ′ f = β E P f − E P [( β − g ) f ] , where β − g ≥ 0 \beta-g\ge0 β − g ≥ 0 and E P ( β − g ) = β − 1 = α β \mathbb{E}_P(\beta-g)=\beta-1=\alpha\beta E P ( β − g ) = β − 1 = α β , so α β inf f ≤ E P [ ( β − g ) f ] ≤ α β sup f \alpha\beta\inf f\le\mathbb{E}_P[(\beta-g)f]\le\alpha\beta\sup f α β inf f ≤ E P [( β − g ) f ] ≤ α β sup f . □
These are the crude forms of Lemma 2.4 : a trimming can at worst remove the mass α \alpha α at the largest, or the smallest, value of f f f . We write osc ( f ) = sup f − inf f \operatorname{osc}(f)=\sup f-\inf f osc ( f ) = sup f − inf f , F = { f ∈ H : 0 ≤ f ≤ 1 } \mathcal{F}=\{f\in\mathcal{H}:0\le f\le1\} F = { f ∈ H : 0 ≤ f ≤ 1 } , and, for ϵ ∈ [ 0 , α ⋆ ] \epsilon\in[0,\alpha^\star] ϵ ∈ [ 0 , α ⋆ ] ,
ω H ( ϵ ) = sup { ( ϵ − err ( f ) ) + ∥ f ∥ H : f ∈ F , f ≠ 0 } , K ( λ ) = inf f ∈ F { err ( f ) + λ ∥ f ∥ H } , \omega_{\mathcal{H}}(\epsilon)=\sup\left\{\frac{(\epsilon-\operatorname{err}(f))_+}{\lVert f\rVert_{\mathcal{H}}}:f\in\mathcal{F},\ f\ne0\right\},\qquad K(\lambda)=\inf_{f\in\mathcal{F}}\{\operatorname{err}(f)+\lambda\lVert f\rVert_{\mathcal{H}}\}, ω H ( ϵ ) = sup { ∥ f ∥ H ( ϵ − err ( f ) ) + : f ∈ F , f = 0 } , K ( λ ) = f ∈ F inf { err ( f ) + λ ∥ f ∥ H } ,
with sup ∅ = 0 \sup\varnothing=0 sup ∅ = 0 .
Proposition S4.7 (Approximation margin). Let (A1) and (A2) hold.
(i) For every f ∈ H f\in\mathcal{H} f ∈ H , f ≠ 0 f\ne0 f = 0 , and α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) , ( 1 − α ) ∥ f ∥ H D α ( P , Q ) ≥ E P f − E Q f − α osc ( f ) (1-\alpha)\lVert f\rVert_{\mathcal{H}}D_\alpha(P,Q)\ge\mathbb{E}_P f-\mathbb{E}_Q f-\alpha\operatorname{osc}(f) ( 1 − α ) ∥ f ∥ H D α ( P , Q ) ≥ E P f − E Q f − α osc ( f ) .
(ii) Let 0 < α ⋆ < 1 0<\alpha^\star<1 0 < α ⋆ < 1 . For every f ∈ F f\in\mathcal{F} f ∈ F , E P f − E Q f = α ⋆ − err ( f ) \mathbb{E}_P f-\mathbb{E}_Q f=\alpha^\star-\operatorname{err}(f) E P f − E Q f = α ⋆ − err ( f ) , and if f ≠ 0 f\ne0 f = 0 , then D ‾ α ⋆ − ϵ ≥ { ϵ − err ( f ) } / ∥ f ∥ H \overline{D}_{\alpha^\star-\epsilon}\ge\{\epsilon-\operatorname{err}(f)\}/\lVert f\rVert_{\mathcal{H}} D α ⋆ − ϵ ≥ { ϵ − err ( f )} / ∥ f ∥ H for every ϵ ∈ [ 0 , α ⋆ ] \epsilon\in[0,\alpha^\star] ϵ ∈ [ 0 , α ⋆ ] .
(iii) ω H \omega_{\mathcal{H}} ω H is nondecreasing, D α ⋆ − ϵ ( P , Q ) ≥ D ‾ α ⋆ − ϵ ≥ ω H ( ϵ ) ≥ ϵ / { 2 W ( ϵ / 2 ) } D_{\alpha^\star-\epsilon}(P,Q)\ge\overline{D}_{\alpha^\star-\epsilon}\ge\omega_{\mathcal{H}}(\epsilon)\ge\epsilon/\{2\mathcal{W}(\epsilon/2)\} D α ⋆ − ϵ ( P , Q ) ≥ D α ⋆ − ϵ ≥ ω H ( ϵ ) ≥ ϵ / { 2 W ( ϵ /2 )} , read as 0 0 0 when W ( ϵ / 2 ) = ∞ \mathcal{W}(\epsilon/2)=\infty W ( ϵ /2 ) = ∞ , and for λ ≥ 0 \lambda\ge0 λ ≥ 0 and ϵ ∈ ( 0 , α ⋆ ] \epsilon\in(0,\alpha^\star] ϵ ∈ ( 0 , α ⋆ ] , ω H ( ϵ ) > λ \omega_{\mathcal{H}}(\epsilon)>\lambda ω H ( ϵ ) > λ if and only if K ( λ ) < ϵ K(\lambda)<\epsilon K ( λ ) < ϵ .
Proof. Part (i) bounds each trimmed mean by Lemma S4.6, and part (ii) evaluates the bound for [ 0 , 1 ] [0,1] [ 0 , 1 ] -valued f f f . For (i), f f f is bounded, by k ∥ f ∥ H k\lVert f\rVert_{\mathcal{H}} k ∥ f ∥ H . For P ′ ∈ R α ( P ) P'\in\mathcal{R}_{\alpha}(P) P ′ ∈ R α ( P ) and Q ′ ∈ R α ( Q ) Q'\in\mathcal{R}_{\alpha}(Q) Q ′ ∈ R α ( Q ) , Lemma S4.6 gives E P ′ f − E Q ′ f ≥ { E P f − E Q f − α osc ( f ) } / ( 1 − α ) \mathbb{E}_{P'}f-\mathbb{E}_{Q'}f \ge\{\mathbb{E}_{P}f-\mathbb{E}_{Q}f-\alpha\operatorname{osc}(f)\}/(1-\alpha) E P ′ f − E Q ′ f ≥ { E P f − E Q f − α osc ( f )} / ( 1 − α ) , and by the reproducing property and the Cauchy–Schwarz inequality MMD ( P ′ , Q ′ ) ≥ ( E P ′ f − E Q ′ f ) / ∥ f ∥ H \operatorname{MMD}(P',Q') \ge(\mathbb{E}_{P'}f-\mathbb{E}_{Q'}f)/\lVert f\rVert_{\mathcal{H}} MMD ( P ′ , Q ′ ) ≥ ( E P ′ f − E Q ′ f ) / ∥ f ∥ H , and the infimum over P ′ P' P ′ and Q ′ Q' Q ′ gives (i).
For (ii), ∫ 1 A d ( P − Q ) = ∫ ( p − q ) + = α ⋆ \int1_A\,d(P-Q)=\int(p-q)_+=\alpha^\star ∫ 1 A d ( P − Q ) = ∫ ( p − q ) + = α ⋆ , so E P f − E Q f = α ⋆ − ∫ ( 1 A − f ) ( p − q ) d ( P + Q ) \mathbb{E}_{P}f-\mathbb{E}_{Q}f=\alpha^\star-\int(1_A-f)(p-q)\,d(P+Q) E P f − E Q f = α ⋆ − ∫ ( 1 A − f ) ( p − q ) d ( P + Q ) . On A A A both 1 − f 1-f 1 − f and p − q p-q p − q are nonnegative, and off A A A both − f -f − f and p − q p-q p − q are nonpositive, so the integrand is ∣ 1 A − f ∣ ∣ p − q ∣ \lvert1_A-f\rvert\lvert p-q\rvert ∣ 1 A − f ∣ ∣ p − q ∣ and the integral is err ( f ) \operatorname{err}(f) err ( f ) . As osc ( f ) ≤ 1 \operatorname{osc}(f)\le1 osc ( f ) ≤ 1 , part (i) at α = α ⋆ − ϵ \alpha=\alpha^\star-\epsilon α = α ⋆ − ϵ gives ∥ f ∥ H D ‾ α ⋆ − ϵ ≥ α ⋆ − err ( f ) − ( α ⋆ − ϵ ) \lVert f\rVert_{\mathcal{H}}\overline{D}_{\alpha^\star-\epsilon}\ge\alpha^\star-\operatorname{err}(f)-(\alpha^\star-\epsilon) ∥ f ∥ H D α ⋆ − ϵ ≥ α ⋆ − err ( f ) − ( α ⋆ − ϵ ) .
For (iii), each map ϵ ↦ ( ϵ − err ( f ) ) + / ∥ f ∥ H \epsilon\mapsto(\epsilon-\operatorname{err}(f))_+/\lVert f\rVert_{\mathcal{H}} ϵ ↦ ( ϵ − err ( f ) ) + / ∥ f ∥ H is nondecreasing, and so is their supremum, which is at most D ‾ α ⋆ − ϵ \overline{D}_{\alpha^\star-\epsilon} D α ⋆ − ϵ by (ii), and D ‾ α ≤ D α \overline{D}_{\alpha}\le D_{\alpha} D α ≤ D α . If W ( ϵ / 2 ) < ∞ W(\epsilon/2)<\infty W ( ϵ /2 ) < ∞ , every f ∈ F f\in\mathcal{F} f ∈ F with err ( f ) ≤ ϵ / 2 \operatorname{err}(f)\le\epsilon/2 err ( f ) ≤ ϵ /2 is nonzero, because err ( 0 ) = α ⋆ > ϵ / 2 \operatorname{err}(0)=\alpha^\star>\epsilon/2 err ( 0 ) = α ⋆ > ϵ /2 , and has ( ϵ − err ( f ) ) / ∥ f ∥ H ≥ ϵ / ( 2 ∥ f ∥ H ) (\epsilon-\operatorname{err}(f))/\lVert f\rVert_{\mathcal{H}}\ge\epsilon/(2\lVert f\rVert_{\mathcal{H}}) ( ϵ − err ( f )) / ∥ f ∥ H ≥ ϵ / ( 2 ∥ f ∥ H ) . The supremum over these f f f is ϵ / { 2 W ( ϵ / 2 ) } \epsilon/\{2W(\epsilon/2)\} ϵ / { 2 W ( ϵ /2 )} . If K ( λ ) < ϵ K(\lambda)<\epsilon K ( λ ) < ϵ , some f ∈ F f\in\mathcal{F} f ∈ F has err ( f ) + λ ∥ f ∥ H < ϵ \operatorname{err}(f)+\lambda\lVert f\rVert_{\mathcal{H}}<\epsilon err ( f ) + λ ∥ f ∥ H < ϵ , and it is nonzero because err ( 0 ) = α ⋆ ≥ ϵ \operatorname{err}(0)=\alpha^\star\ge\epsilon err ( 0 ) = α ⋆ ≥ ϵ , so ω H ( ϵ ) ≥ ( ϵ − err ( f ) ) / ∥ f ∥ H > λ \omega_{\mathcal{H}}(\epsilon)\ge(\epsilon-\operatorname{err}(f))/\lVert f\rVert_{\mathcal{H}}>\lambda ω H ( ϵ ) ≥ ( ϵ − err ( f )) / ∥ f ∥ H > λ . Conversely, ω H ( ϵ ) > λ \omega_{\mathcal{H}}(\epsilon)>\lambda ω H ( ϵ ) > λ gives a nonzero f ∈ F f\in\mathcal{F} f ∈ F with ϵ − err ( f ) > λ ∥ f ∥ H \epsilon-\operatorname{err}(f)>\lambda\lVert f\rVert_{\mathcal{H}} ϵ − err ( f ) > λ ∥ f ∥ H , that is, K ( λ ) < ϵ K(\lambda)<\epsilon K ( λ ) < ϵ .
Proof of Proposition 5.4. This is Proposition S4.7(ii) and (iii), with D ‾ α ⋆ − ϵ = ( 1 − α ⋆ + ϵ ) D α ⋆ − ϵ \overline{D}_{\alpha^\star-\epsilon}=(1-\alpha^\star+\epsilon)D_{\alpha^\star-\epsilon} D α ⋆ − ϵ = ( 1 − α ⋆ + ϵ ) D α ⋆ − ϵ .
Rates under a general margin
The rate of Theorem 5.7 extends to any margin, polynomial or not. For a nondecreasing ω \omega ω we write ω ← ( t ) = sup { ϵ ∈ [ 0 , α ⋆ ] : ω ( ϵ ) ≤ t } \omega^{\leftarrow}(t)=\sup\{\epsilon\in[0,\alpha^\star]:\omega(\epsilon)\le t\} ω ← ( t ) = sup { ϵ ∈ [ 0 , α ⋆ ] : ω ( ϵ ) ≤ t } .
Proposition S4.8 (Rates under a general margin). Let Assumption 2.1 hold, let α ⋆ < 1 \alpha^\star<1 α ⋆ < 1 , compute α ^ \widehat{\alpha} α as in Theorem 5.7 , and let ω : [ 0 , α ⋆ ] → [ 0 , ∞ ) \omega:[0,\alpha^\star]\to[0,\infty) ω : [ 0 , α ⋆ ] → [ 0 , ∞ ) be nondecreasing with ( 1 − α ⋆ + ϵ ) D α ⋆ − ϵ ( P , Q ) ≥ ω ( ϵ ) (1-\alpha^\star+\epsilon)D_{\alpha^\star-\epsilon}(P,Q)\ge\omega(\epsilon) ( 1 − α ⋆ + ϵ ) D α ⋆ − ϵ ( P , Q ) ≥ ω ( ϵ ) for every ϵ ∈ [ 0 , α ⋆ ] \epsilon\in[0,\alpha^\star] ϵ ∈ [ 0 , α ⋆ ] .
(i) Parts (i) and (ii) of Theorem S4.3 hold with c 0 ϵ γ c_0\epsilon^\gamma c 0 ϵ γ replaced by ω ( ϵ ) \omega(\epsilon) ω ( ϵ ) and ( t n , m / c 0 ) 1 / γ (t_{n,m}/c_0)^{1/\gamma} ( t n , m / c 0 ) 1/ γ by ω ← ( t n , m ) \omega^{\leftarrow}(t_{n,m}) ω ← ( t n , m ) .
(ii) If moreover ω ( ϵ ) ≥ exp ( − c ′ / ϵ ) \omega(\epsilon)\ge\exp(-c'/\epsilon) ω ( ϵ ) ≥ exp ( − c ′ / ϵ ) for 0 < ϵ ≤ ϵ 0 0<\epsilon\le\epsilon_0 0 < ϵ ≤ ϵ 0 , for some c ′ > 0 c'>0 c ′ > 0 and ϵ 0 ∈ ( 0 , α ⋆ ] \epsilon_0\in(0,\alpha^\star] ϵ 0 ∈ ( 0 , α ⋆ ] , and the grid has at most ( n ∧ m ) b (n\wedge m)^b ( n ∧ m ) b levels for a fixed b > 0 b>0 b > 0 , then for every η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) and every c > 2 c ′ c>2c' c > 2 c ′ there is n 0 n_0 n 0 , depending on c , c ′ , ϵ 0 , b , η , δ , κ , α ⋆ c,c',\epsilon_0,b,\eta,\delta,\kappa,\alpha^\star c , c ′ , ϵ 0 , b , η , δ , κ , α ⋆ and v min v_{\min} v m i n , such that P { α ⋆ − Δ G − c / log ( n ∧ m ) ≤ α ^ ≤ α ⋆ } ≥ 1 − δ − η \mathbb{P}\{\alpha^\star-\Delta_G-c/\log(n\wedge m)\le\widehat{\alpha}\le\alpha^\star\}\ge1-\delta-\eta P { α ⋆ − Δ G − c / log ( n ∧ m ) ≤ α ≤ α ⋆ } ≥ 1 − δ − η whenever n ∧ m ≥ n 0 n\wedge m\ge n_0 n ∧ m ≥ n 0 .
(iii) Under the hypotheses of Proposition 5.6 , with a grid as in (ii) and no ω \omega ω assumed, the conclusion of (ii) holds for every c > π 2 σ 2 ℓ 0 / 4 c>\pi^2\sigma^2\ell_0/4 c > π 2 σ 2 ℓ 0 /4 .
Proof of Proposition S4.8(i). In the proof of Theorem S4.3, the margin enters only through D ⋆ = c 0 ϵ γ D_\star=c_0\epsilon^\gamma D ⋆ = c 0 ϵ γ and two facts: D ⋆ ≤ D α ⋆ − ϵ D_\star\le D_{\alpha^\star-\epsilon} D ⋆ ≤ D α ⋆ − ϵ , and D α j ≥ D ⋆ x j γ D_{\alpha_j}\ge D_\star x_j^\gamma D α j ≥ D ⋆ x j γ for the grid levels α j ≤ α ⋆ − ϵ \alpha_j\le\alpha^\star-\epsilon α j ≤ α ⋆ − ϵ , with x j = ( α ⋆ − α j ) / ϵ ≥ 1 x_j=(\alpha^\star-\alpha_j)/\epsilon\ge1 x j = ( α ⋆ − α j ) / ϵ ≥ 1 . That proof writes D α j ≥ D ⋆ x j γ D_{\alpha_j}\ge D_\star x_j^\gamma D α j ≥ D ⋆ x j γ and then uses only x j γ x_j^\gamma x j γ , in the step ϱ j S − C ≥ ϱ ⋆ x j γ S − C \varrho_j S-C\ge\varrho_\star x_j^\gamma S-C ϱ j S − C ≥ ϱ ⋆ x j γ S − C . Put D ⋆ = ω ( ϵ ) D_\star=\omega(\epsilon) D ⋆ = ω ( ϵ ) . Then D ⋆ ≤ D ‾ α ⋆ − ϵ ≤ D α ⋆ − ϵ D_\star\le\overline{D}_{\alpha^\star-\epsilon}\le D_{\alpha^\star-\epsilon} D ⋆ ≤ D α ⋆ − ϵ ≤ D α ⋆ − ϵ . By Lemma S4.2(ii), ϵ ′ ↦ D ‾ α ⋆ − ϵ ′ / ϵ ′ \epsilon'\mapsto\overline{D}_{\alpha^\star-\epsilon'}/\epsilon' ϵ ′ ↦ D α ⋆ − ϵ ′ / ϵ ′ is nondecreasing on ( 0 , α ⋆ ] (0,\alpha^\star] ( 0 , α ⋆ ] , and ϵ x j = α ⋆ − α j ∈ [ ϵ , α ⋆ ] \epsilon x_j=\alpha^\star-\alpha_j\in[\epsilon,\alpha^\star] ϵ x j = α ⋆ − α j ∈ [ ϵ , α ⋆ ] , so
D α j ≥ D ‾ α j = D ‾ α ⋆ − ϵ x j ≥ x j D ‾ α ⋆ − ϵ ≥ x j D ⋆ . D_{\alpha_j}\ge\overline{D}_{\alpha_j}=\overline{D}_{\alpha^\star-\epsilon x_j}\ge x_j\overline{D}_{\alpha^\star-\epsilon}\ge x_jD_\star. D α j ≥ D α j = D α ⋆ − ϵ x j ≥ x j D α ⋆ − ϵ ≥ x j D ⋆ .
The rest of the proof of part (i) of Theorem S4.3 uses D ⋆ ≤ Δ ϕ D_\star\le\Delta_\phi D ⋆ ≤ Δ ϕ , which holds since D α ⋆ − ϵ ≤ D 0 ≤ Δ ϕ D_{\alpha^\star-\epsilon}\le D_0\le\Delta_\phi D α ⋆ − ϵ ≤ D 0 ≤ Δ ϕ , and the hypothesis on D ⋆ D_\star D ⋆ , and is unchanged. For part (ii), every ϵ ∈ ( ω ← ( t n , m ) , α ⋆ ] \epsilon\in(\omega^{\leftarrow}(t_{n,m}),\alpha^\star] ϵ ∈ ( ω ← ( t n , m ) , α ⋆ ] has ω ( ϵ ) > t n , m \omega(\epsilon)>t_{n,m} ω ( ϵ ) > t n , m and J ϵ ≤ J J_\epsilon\le J J ϵ ≤ J , so part (i) gives P ( α ^ < α ⋆ − ϵ − Δ G ) ≤ P ( α ^ < α ⋆ − α ϵ ) ≤ η \mathbb{P}(\widehat{\alpha}<\alpha^\star-\epsilon-\Delta_G)\le\mathbb{P}(\widehat{\alpha}<\alpha^\star-\alpha_\epsilon)\le\eta P ( α < α ⋆ − ϵ − Δ G ) ≤ P ( α < α ⋆ − α ϵ ) ≤ η . Along a sequence ϵ k ↓ ω ← ( t n , m ) − Δ G \epsilon_k\downarrow\omega^{\leftarrow}(t_{n,m})-\Delta_G ϵ k ↓ ω ← ( t n , m ) − Δ G , whose probability is therefore at most η \eta η , and Corollary 4.3 and a union bound finish the proof as in Theorem S4.3.
Applied to a polynomial margin of D D D , part (i) loses a factor ( 1 − α ⋆ ) 1 / γ (1-\alpha^\star)^{1/\gamma} ( 1 − α ⋆ ) 1/ γ against Theorem S4.3, since a margin of D D D gives one of D ‾ \overline{D} D only after multiplication by 1 − α ⋆ 1-\alpha^\star 1 − α ⋆ . Its use is for margins that are not polynomial, such as the exponential margins of part (ii). Part (iii) is proved after Theorem S4.13.
Proof of Proposition S4.8(II). Write n = n ∧ m n=n\wedge m n = n ∧ m and let n ≥ 10 n\ge10 n ≥ 10 . By Theorem S4.3(iii), the quantity t n , m t_{n,m} t n , m of its part (ii) is at most an absolute constant times β ⋆ κ v min − 2 { ( 1 + L δ + log ( J / η ) ) / n } 1 / 2 \beta_{\star}\kappa v_{\min}^{-2}\{(1+L_{\delta}+\log(J/\eta))/n\}^{1/2} β ⋆ κ v m i n − 2 {( 1 + L δ + log ( J / η )) / n } 1/2 , and with J ≤ n b J\le n^{b} J ≤ n b this is at most C t ( log n / n ) 1 / 2 C_t(\log n/n)^{1/2} C t ( log n / n ) 1/2 , with C t C_t C t depending only on κ \kappa κ , α ⋆ \alpha^{\star} α ⋆ , v min v_{\min} v m i n , δ \delta δ , η \eta η and b b b . Let 0 < t < min { 1 , ω ( ϵ 0 ) } 0<t<\min\{1,\omega(\epsilon_0)\} 0 < t < min { 1 , ω ( ϵ 0 )} . As ω \omega ω is nondecreasing, every ϵ ∈ [ 0 , α ⋆ ] \epsilon\in[0,\alpha^{\star}] ϵ ∈ [ 0 , α ⋆ ] with ω ( ϵ ) ≤ t \omega(\epsilon)\le t ω ( ϵ ) ≤ t has ϵ < ϵ 0 \epsilon<\epsilon_0 ϵ < ϵ 0 , and then, if ϵ > 0 \epsilon>0 ϵ > 0 , exp ( − c ′ / ϵ ) ≤ t \exp(-c'/\epsilon)\le t exp ( − c ′ / ϵ ) ≤ t , that is, ϵ ≤ c ′ / log ( 1 / t ) \epsilon\le c'/\log(1/t) ϵ ≤ c ′ / log ( 1/ t ) ; so ω ← ( t ) ≤ c ′ / log ( 1 / t ) \omega^{\leftarrow}(t)\le c'/\log(1/t) ω ← ( t ) ≤ c ′ / log ( 1/ t ) . For t = t n , m t=t_{n,m} t = t n , m , log ( 1 / t n , m ) ≥ 1 2 log n − 1 2 log log n − log C t \log(1/t_{n,m})\ge\frac{1}{2}\log n-\frac{1}{2}\log\log n-\log C_t log ( 1/ t n , m ) ≥ 2 1 log n − 2 1 log log n − log C t , which exceeds ( c ′ / c ) log n (c'/c)\log n ( c ′ / c ) log n for all large n n n , because c ′ / c < 1 2 c'/c<\frac{1}{2} c ′ / c < 2 1 ; then also t n , m < min { 1 , ω ( ϵ 0 ) } t_{n,m}<\min\{1,\omega(\epsilon_0)\} t n , m < min { 1 , ω ( ϵ 0 )} , and ω ← ( t n , m ) ≤ c / log n \omega^{\leftarrow}(t_{n,m})\le c/\log n ω ← ( t n , m ) ≤ c / log n . Part (i), in the form of part (ii) of Theorem S4.3, gives the claim.
Sobolev kernels
Let ∥ f ∥ H s 2 = ( 2 π ) − d ∫ ∣ f ^ ( ξ ) ∣ 2 ( 1 + ∣ ξ ∣ 2 ) s d ξ \|f\|_{H^s}^2=(2\pi)^{-d}\int|\widehat f(\xi)|^2(1+|\xi|^2)^s\,d\xi ∥ f ∥ H s 2 = ( 2 π ) − d ∫ ∣ f ( ξ ) ∣ 2 ( 1 + ∣ ξ ∣ 2 ) s d ξ . If k ^ 0 ( ξ ) ≥ c ( 1 + ∣ ξ ∣ 2 ) − s \widehat k_0(\xi)\ge c(1+|\xi|^2)^{-s} k 0 ( ξ ) ≥ c ( 1 + ∣ ξ ∣ 2 ) − s , then by (S4.3) every continuous f ∈ L 2 f\in L^2 f ∈ L 2 with ∥ f ∥ H s < ∞ \|f\|_{H^s}<\infty ∥ f ∥ H s < ∞ lies in H \mathcal H H , with ∥ f ∥ H 2 ≤ ∥ f ∥ H s 2 / c \|f\|_{\mathcal H}^2\le\|f\|_{H^s}^2/c ∥ f ∥ H 2 ≤ ∥ f ∥ H s 2 / c . Such a kernel is characteristic, as k ^ 0 > 0 \widehat k_0>0 k 0 > 0 ([89 ] ). The approximant is a mollified indicator. For a set E E E we use the translation bound Leb ( E △ ( E + h ) ) ≤ Π ∣ h ∣ \operatorname{Leb}(E\mathbin{\triangle}(E+h))\le\Pi|h| Leb ( E △ ( E + h )) ≤ Π∣ h ∣ for all h ∈ R d h\in\mathbb R^d h ∈ R d , which holds with Π \Pi Π the perimeter of E E E ([28 Chapter 5] ), and, in R \mathbb R R , with Π = 2 N \Pi=2N Π = 2 N for a union of N N N disjoint intervals.
Lemma S4.9 (Norm of a mollified indicator). Let s > 1 / 2 s>1/2 s > 1/2 , let E ⊂ R d E\subset\mathbb R^d E ⊂ R d be bounded and measurable with Leb ( E △ ( E + h ) ) ≤ Π ∣ h ∣ \operatorname{Leb}(E\mathbin{\triangle}(E+h))\le\Pi|h| Leb ( E △ ( E + h )) ≤ Π∣ h ∣ for all h h h , let b ∈ C c ∞ b\in C^\infty_c b ∈ C c ∞ be a probability density supported in the closed unit ball, b w = w − d b ( ⋅ / w ) b_w=w^{-d}b(\mathord\cdot/w) b w = w − d b ( ⋅ / w ) , and f w = 1 E ∗ b w f_w=1_E*b_w f w = 1 E ∗ b w . Let m m m be the smallest integer with 4 m > 2 s − 1 4m>2s-1 4 m > 2 s − 1 , C b = ∥ Δ m b ∥ L 1 C_b=\|\Delta^m b\|_{L^1} C b = ∥ Δ m b ∥ L 1 , j d ( y ) j_d(y) j d ( y ) the mean of cos ( y v 1 ) \cos(yv_1) cos ( y v 1 ) for v v v uniform in the unit ball, and c d = 1 − sup y ≥ 1 j d ( y ) c_d=1-\sup_{y\ge1}j_d(y) c d = 1 − sup y ≥ 1 j d ( y ) . Then c d > 0 c_d>0 c d > 0 , 0 ≤ f w ≤ 1 0\le f_w\le1 0 ≤ f w ≤ 1 , f w ∈ C ∞ f_w\in C^\infty f w ∈ C ∞ , and for 0 < w ≤ 1 0<w\le1 0 < w ≤ 1
∥ f w ∥ H s 2 ≤ 2 s Leb ( E ) + C d , s , b Π w 1 − 2 s , C d , s , b = 2 3 s 2 c d [ 1 1 − 2 1 − 2 s + C b 2 1 − 2 − ( 4 m + 1 − 2 s ) ] . \|f_w\|_{H^s}^2\le2^s\operatorname{Leb}(E)+C_{d,s,b}\Pi w^{1-2s},\qquad C_{d,s,b}=\frac{2^{3s}}{2c_d}\left[\frac{1}{1-2^{1-2s}}+\frac{C_b^2}{1-2^{-(4m+1-2s)}}\right]. ∥ f w ∥ H s 2 ≤ 2 s Leb ( E ) + C d , s , b Π w 1 − 2 s , C d , s , b = 2 c d 2 3 s [ 1 − 2 1 − 2 s 1 + 1 − 2 − ( 4 m + 1 − 2 s ) C b 2 ] .
Proof. The indicator has a Fourier tail of order 1 / t 1/t 1/ t beyond frequency t t t , because translating E E E by h h h changes it on a set of measure Π ∣ h ∣ \Pi|h| Π∣ h ∣ , and mollification at width w w w cuts the frequencies beyond 1 / w 1/w 1/ w . Write g = 1 E g=1_E g = 1 E , so that f ^ w ( ξ ) = g ^ ( ξ ) b ^ ( w ξ ) \widehat f_w(\xi)=\widehat g(\xi)\widehat b(w\xi) f w ( ξ ) = g ( ξ ) b ( w ξ ) . As b b b is a probability density, ∣ b ^ ∣ ≤ 1 |\widehat b|\le1 ∣ b ∣ ≤ 1 , and ( Δ m b ) ∧ ( ξ ) = ( − ∣ ξ ∣ 2 ) m b ^ ( ξ ) (\Delta^m b)^{\wedge}(\xi)=(-|\xi|^2)^m\widehat b(\xi) ( Δ m b ) ∧ ( ξ ) = ( − ∣ ξ ∣ 2 ) m b ( ξ ) gives ∣ b ^ ( ξ ) ∣ ≤ min ( 1 , C b ∣ ξ ∣ − 2 m ) |\widehat b(\xi)|\le\min(1,C_b|\xi|^{-2m}) ∣ b ( ξ ) ∣ ≤ min ( 1 , C b ∣ ξ ∣ − 2 m ) .
We first bound the Fourier tail of g g g . For h ∈ R d h\in\mathbb R^d h ∈ R d , Plancherel’s identity gives
( 2 π ) − d ∫ ∣ g ^ ( ξ ) ∣ 2 ∣ e i h ⋅ ξ − 1 ∣ 2 d ξ = ∥ g ( ⋅ + h ) − g ∥ L 2 2 = Leb ( E △ ( E − h ) ) ≤ Π ∣ h ∣ , (2\pi)^{-d}\int|\widehat g(\xi)|^2|e^{ih\cdot\xi}-1|^2\,d\xi=\|g(\mathord\cdot+h)-g\|_{L^2}^2=\operatorname{Leb}(E\mathbin{\triangle}(E-h))\le\Pi|h|, ( 2 π ) − d ∫ ∣ g ( ξ ) ∣ 2 ∣ e ih ⋅ ξ − 1 ∣ 2 d ξ = ∥ g ( ⋅ + h ) − g ∥ L 2 2 = Leb ( E △ ( E − h )) ≤ Π∣ h ∣ ,
since g ( ⋅ + h ) − g g(\mathord\cdot+h)-g g ( ⋅ + h ) − g takes values in { − 1 , 0 , 1 } \{-1,0,1\} { − 1 , 0 , 1 } . To isolate the high frequencies we average over h h h uniform in the ball of radius 1 / t 1/t 1/ t . The mean of ∣ e i h ⋅ ξ − 1 ∣ 2 = 2 − 2 cos ( h ⋅ ξ ) |e^{ih\cdot\xi}-1|^2=2-2\cos(h\cdot\xi) ∣ e ih ⋅ ξ − 1 ∣ 2 = 2 − 2 cos ( h ⋅ ξ ) is 2 { 1 − j d ( ∣ ξ ∣ / t ) } 2\{1-j_d(|\xi|/t)\} 2 { 1 − j d ( ∣ ξ ∣/ t )} by rotation invariance, and the mean of ∣ h ∣ |h| ∣ h ∣ is at most 1 / t 1/t 1/ t . The function j d j_d j d is continuous, smaller than 1 1 1 on ( 0 , ∞ ) (0,\infty) ( 0 , ∞ ) , since cos ( y v 1 ) < 1 \cos(yv_1)<1 cos ( y v 1 ) < 1 off a null set, and tends to 0 0 0 at infinity by the Riemann–Lebesgue lemma, so c d > 0 c_d>0 c d > 0 ; in R \mathbb R R , j 1 ( y ) = sin y / y j_1(y)=\sin y/y j 1 ( y ) = sin y / y and c 1 = 1 − sin 1 c_1=1-\sin1 c 1 = 1 − sin 1 . As 1 − j d ≥ 0 1-j_d\ge0 1 − j d ≥ 0 everywhere and 1 − j d ( ∣ ξ ∣ / t ) ≥ c d 1-j_d(|\xi|/t)\ge c_d 1 − j d ( ∣ ξ ∣/ t ) ≥ c d for ∣ ξ ∣ ≥ t |\xi|\ge t ∣ ξ ∣ ≥ t , the averaged identity gives
Υ ( t ) : = ( 2 π ) − d ∫ ∣ ξ ∣ ≥ t ∣ g ^ ( ξ ) ∣ 2 d ξ ≤ Π 2 c d t , t > 0. \Upsilon(t):=(2\pi)^{-d}\int_{|\xi|\ge t}|\widehat g(\xi)|^2\,d\xi\le\frac{\Pi}{2c_dt},\qquad t>0. Υ ( t ) := ( 2 π ) − d ∫ ∣ ξ ∣ ≥ t ∣ g ( ξ ) ∣ 2 d ξ ≤ 2 c d t Π , t > 0.
We now split the frequencies into the unit ball and dyadic shells. On { ∣ ξ ∣ < 1 } \{|\xi|<1\} { ∣ ξ ∣ < 1 } , ( 1 + ∣ ξ ∣ 2 ) s ≤ 2 s (1+|\xi|^2)^s\le2^s ( 1 + ∣ ξ ∣ 2 ) s ≤ 2 s and ∣ b ^ ∣ ≤ 1 |\widehat b|\le1 ∣ b ∣ ≤ 1 , which contributes at most 2 s ( 2 π ) − d ∫ ∣ g ^ ∣ 2 = 2 s Leb ( E ) 2^s(2\pi)^{-d}\int|\widehat g|^2=2^s\operatorname{Leb}(E) 2 s ( 2 π ) − d ∫ ∣ g ∣ 2 = 2 s Leb ( E ) , the first term of the bound. On the shell S j = { 2 j ≤ ∣ ξ ∣ < 2 j + 1 } S_j=\{2^j\le|\xi|<2^{j+1}\} S j = { 2 j ≤ ∣ ξ ∣ < 2 j + 1 } , j ≥ 0 j\ge0 j ≥ 0 , we have ( 1 + ∣ ξ ∣ 2 ) s ≤ ( 2 ∣ ξ ∣ 2 ) s ≤ 2 3 s 4 s j (1+|\xi|^2)^s\le(2|\xi|^2)^s\le2^{3s}4^{sj} ( 1 + ∣ ξ ∣ 2 ) s ≤ ( 2∣ ξ ∣ 2 ) s ≤ 2 3 s 4 s j , ∣ b ^ ( w ξ ) ∣ 2 ≤ min { 1 , C b 2 ( w 2 j ) − 4 m } |\widehat b(w\xi)|^2\le\min\{1,C_b^2(w2^j)^{-4m}\} ∣ b ( w ξ ) ∣ 2 ≤ min { 1 , C b 2 ( w 2 j ) − 4 m } and ( 2 π ) − d ∫ S j ∣ g ^ ∣ 2 ≤ Υ ( 2 j ) ≤ Π 2 − j / ( 2 c d ) (2\pi)^{-d}\int_{S_j}|\widehat g|^2\le\Upsilon(2^j)\le\Pi2^{-j}/(2c_d) ( 2 π ) − d ∫ S j ∣ g ∣ 2 ≤ Υ ( 2 j ) ≤ Π 2 − j / ( 2 c d ) , so the shells contribute at most { 2 3 s Π / ( 2 c d ) } ∑ j ≥ 0 2 j ( 2 s − 1 ) min { 1 , C b 2 w − 4 m 2 − 4 m j } \{2^{3s}\Pi/(2c_d)\}\sum_{j\ge0}2^{j(2s-1)}\min\{1,C_b^2w^{-4m}2^{-4mj}\} { 2 3 s Π/ ( 2 c d )} ∑ j ≥ 0 2 j ( 2 s − 1 ) min { 1 , C b 2 w − 4 m 2 − 4 mj } . The sum grows geometrically up to the frequency 1 / w 1/w 1/ w and decays beyond it. Let j 0 ≥ 0 j_0 \ge0 j 0 ≥ 0 be the integer with 2 j 0 ≤ 1 / w < 2 j 0 + 1 2^{j_0} \le1/w < 2^{j_0+1} 2 j 0 ≤ 1/ w < 2 j 0 + 1 . As 2 s − 1 > 0 2s-1>0 2 s − 1 > 0 ,
∑ j ≤ j 0 2 j ( 2 s − 1 ) ≤ 2 j 0 ( 2 s − 1 ) 1 − 2 1 − 2 s ≤ w 1 − 2 s 1 − 2 1 − 2 s , \sum_{j\le j_0}2^{j(2s-1)}\le\frac{2^{j_0(2s-1)}}{1-2^{1-2s}}\le\frac{w^{1-2s}}{1-2^{1-2s}}, j ≤ j 0 ∑ 2 j ( 2 s − 1 ) ≤ 1 − 2 1 − 2 s 2 j 0 ( 2 s − 1 ) ≤ 1 − 2 1 − 2 s w 1 − 2 s ,
and as 2 s − 1 − 4 m < 0 2s-1-4m<0 2 s − 1 − 4 m < 0 ,
∑ j > j 0 C b 2 w − 4 m 2 j ( 2 s − 1 − 4 m ) ≤ C b 2 w − 4 m 2 ( j 0 + 1 ) ( 2 s − 1 − 4 m ) 1 − 2 2 s − 1 − 4 m ≤ C b 2 w 1 − 2 s 1 − 2 − ( 4 m + 1 − 2 s ) . \sum_{j>j_0}C_b^2w^{-4m}2^{j(2s-1-4m)}
\le\frac{C_b^2w^{-4m}2^{(j_0+1)(2s-1-4m)}}{1-2^{2s-1-4m}}
\le\frac{C_b^2w^{1-2s}}{1-2^{-(4m+1-2s)}}. j > j 0 ∑ C b 2 w − 4 m 2 j ( 2 s − 1 − 4 m ) ≤ 1 − 2 2 s − 1 − 4 m C b 2 w − 4 m 2 ( j 0 + 1 ) ( 2 s − 1 − 4 m ) ≤ 1 − 2 − ( 4 m + 1 − 2 s ) C b 2 w 1 − 2 s .
Adding the parts gives the bound, the two geometric series giving the two terms of C d , s , b C_{d,s,b} C d , s , b . Finally 0 ≤ f w ≤ 1 0\le f_w\le1 0 ≤ f w ≤ 1 because 0 ≤ g ≤ 1 0\le g\le1 0 ≤ g ≤ 1 and b w b_w b w is a probability density, and f w f_w f w is smooth with compact support because b b b is and E E E is bounded.
The laws enter through an open set G G G that carries the sign of p − q p-q p − q , the size of its boundary near the contact, and the order at which p − q p-q p − q vanishes there. We use the open balls B ρ B_\rho B ρ of radius ρ \rho ρ about a fixed centre.
Theorem S4.10 (Margin for Sobolev kernels). Let k ( x , y ) = k 0 ( x − y ) k(x,y)=k_0(x-y) k ( x , y ) = k 0 ( x − y ) on R d \mathbb{R}^d R d with k 0 ^ ( ξ ) ≥ c ( 1 + ∣ ξ ∣ 2 ) − s \widehat{k_0}(\xi)\ge c(1+|\xi|^2)^{-s} k 0 ( ξ ) ≥ c ( 1 + ∣ ξ ∣ 2 ) − s , s > d / 2 s>d/2 s > d /2 , and let P , Q P,Q P , Q have Lebesgue densities p , q p,q p , q with 0 < α ⋆ < 1 0<\alpha^\star<1 0 < α ⋆ < 1 . Let G ⊆ R d G\subseteq\mathbb{R}^d G ⊆ R d be open with p ≥ q p\ge q p ≥ q almost everywhere on G G G and p ≤ q p\le q p ≤ q almost everywhere off G G G , and let ρ ≥ 1 \rho\ge1 ρ ≥ 1 , r > 0 r>0 r > 0 , ℓ > 0 \ell>0 ℓ > 0 and w 0 ∈ ( 0 , 1 ] w_0\in(0,1] w 0 ∈ ( 0 , 1 ] be such that
(G1) Leb ( E ρ △ ( E ρ + h ) ) ≤ Π ρ ∣ h ∣ \operatorname{Leb}(E_\rho\mathbin{\triangle}(E_\rho+h))\le\Pi_\rho|h| Leb ( E ρ △ ( E ρ + h )) ≤ Π ρ ∣ h ∣ for all h h h , where E ρ = G ∩ B ρ E_\rho=G\cap B_\rho E ρ = G ∩ B ρ .
(G2) Leb ( { x ∈ B ρ : dist ( x , ∂ G ) ≤ t } ) ≤ V ρ t \operatorname{Leb}(\{x\in B_\rho:\operatorname{dist}(x,\partial G)\le t\})\le V_\rho t Leb ({ x ∈ B ρ : dist ( x , ∂ G ) ≤ t }) ≤ V ρ t for 0 < t ≤ w 0 0<t\le w_0 0 < t ≤ w 0 .
(G3) ∣ p ( x ) − q ( x ) ∣ ≤ ℓ dist ( x , ∂ G ) r |p(x)-q(x)|\le\ell\operatorname{dist}(x,\partial G)^r ∣ p ( x ) − q ( x ) ∣ ≤ ℓ dist ( x , ∂ G ) r for almost every x ∈ B ρ x\in B_\rho x ∈ B ρ with dist ( x , ∂ G ) ≤ w 0 \operatorname{dist}(x,\partial G)\le w_0 dist ( x , ∂ G ) ≤ w 0 .
Let T ( ρ ) = ∣ P − Q ∣ ( R d ∖ B ρ − 1 ) T(\rho)=|P-Q|(\mathbb{R}^d\setminus B_{\rho-1}) T ( ρ ) = ∣ P − Q ∣ ( R d ∖ B ρ − 1 ) , and for 0 < w ≤ w 0 0<w\le w_0 0 < w ≤ w 0 let f w = 1 E ρ ∗ b w f_w=\mathbf{1}_{E_\rho}*b_w f w = 1 E ρ ∗ b w as in Lemma S4.9. Then f w ∈ H f_w\in\mathcal{H} f w ∈ H , 0 ≤ f w ≤ 1 0\le f_w\le1 0 ≤ f w ≤ 1 , err ( f w ) ≤ ℓ V ρ w r + 1 + T ( ρ ) \operatorname{err}(f_w)\le\ell V_\rho w^{r+1}+T(\rho) err ( f w ) ≤ ℓ V ρ w r + 1 + T ( ρ ) , and for every ϵ ∈ [ 0 , α ⋆ ] \epsilon\in[0,\alpha^\star] ϵ ∈ [ 0 , α ⋆ ]
D α ⋆ − ϵ ( P , Q ) ≥ D ‾ α ⋆ − ϵ ≥ c 1 / 2 { ϵ − ℓ V ρ w r + 1 − T ( ρ ) } + { 2 s Leb ( B ρ ) + C d , s , b Π ρ w 1 − 2 s } 1 / 2 . D_{\alpha^\star-\epsilon}(P,Q)\ge\overline{D}_{\alpha^\star-\epsilon}\ge\frac{c^{1/2}\{\epsilon-\ell V_\rho w^{r+1}-T(\rho)\}_+}{\{2^s\operatorname{Leb}(B_\rho)+C_{d,s,b}\Pi_\rho w^{1-2s}\}^{1/2}}. D α ⋆ − ϵ ( P , Q ) ≥ D α ⋆ − ϵ ≥ { 2 s Leb ( B ρ ) + C d , s , b Π ρ w 1 − 2 s } 1/2 c 1/2 { ϵ − ℓ V ρ w r + 1 − T ( ρ ) } + .
Proof. The function f w f_w f w is the approximate witness of Proposition S4.7(ii), so we need its norm and its error. Lemma S4.9 and (S4.3) give f w ∈ H f_w\in\mathcal{H} f w ∈ H , 0 ≤ f w ≤ 1 0\le f_w\le1 0 ≤ f w ≤ 1 and ∥ f w ∥ H 2 ≤ c − 1 { 2 s Leb ( B ρ ) + C d , s , b Π ρ w 1 − 2 s } \|f_w\|_{\mathcal{H}}^2\le c^{-1}\{2^s\operatorname{Leb}(B_\rho)+C_{d,s,b}\Pi_\rho w^{1-2s}\} ∥ f w ∥ H 2 ≤ c − 1 { 2 s Leb ( B ρ ) + C d , s , b Π ρ w 1 − 2 s } , as E ρ ⊆ B ρ E_\rho\subseteq B_\rho E ρ ⊆ B ρ . For the error, since 1 G = 1 A \mathbf{1}_G=\mathbf{1}_A 1 G = 1 A almost everywhere for ∣ P − Q ∣ |P-Q| ∣ P − Q ∣ , err ( f w ) = ∫ ∣ 1 G − f w ∣ d ∣ P − Q ∣ \operatorname{err}(f_w)=\int|\mathbf{1}_G-f_w|\,d|P-Q| err ( f w ) = ∫ ∣ 1 G − f w ∣ d ∣ P − Q ∣ . Off B ρ − 1 B_{\rho-1} B ρ − 1 we use ∣ 1 G − f w ∣ ≤ 1 |\mathbf{1}_G-f_w|\le1 ∣ 1 G − f w ∣ ≤ 1 , which contributes at most T ( ρ ) T(\rho) T ( ρ ) . Inside B ρ − 1 B_{\rho-1} B ρ − 1 the mollified indicator differs from 1 G \mathbf{1}_G 1 G only near ∂ G \partial G ∂ G . Let x ∈ B ρ − 1 x\in B_{\rho-1} x ∈ B ρ − 1 . The density b w b_w b w is supported in the closed ball of radius w ≤ 1 w\le1 w ≤ 1 about 0 0 0 , and the closed ball B ‾ ( x , w ) \overline{B}(x,w) B ( x , w ) lies in B ρ B_\rho B ρ , so f w ( x ) = ∫ 1 G ( x − y ) b w ( y ) d y f_w(x)=\int\mathbf{1}_G(x-y)b_w(y)\,dy f w ( x ) = ∫ 1 G ( x − y ) b w ( y ) d y . If dist ( x , ∂ G ) > w \operatorname{dist}(x,\partial G)>w dist ( x , ∂ G ) > w , the connected set B ‾ ( x , w ) \overline{B}(x,w) B ( x , w ) misses ∂ G \partial G ∂ G , so it lies in the open set G G G or in the open set R d ∖ G ‾ \mathbb{R}^d\setminus\overline{G} R d ∖ G , and f w ( x ) = 1 G ( x ) f_w(x)=\mathbf{1}_G(x) f w ( x ) = 1 G ( x ) . Hence ∣ 1 G − f w ∣ ≤ 1 { dist ( ⋅ , ∂ G ) ≤ w } |\mathbf{1}_G-f_w|\le\mathbf{1}_{\{\operatorname{dist}(\cdot,\partial G)\le w\}} ∣ 1 G − f w ∣ ≤ 1 { dist ( ⋅ , ∂ G ) ≤ w } on B ρ − 1 B_{\rho-1} B ρ − 1 , and (G2) and (G3) give ∫ B ρ − 1 ∣ 1 G − f w ∣ ∣ p − q ∣ ≤ ℓ w r Leb ( { x ∈ B ρ : dist ( x , ∂ G ) ≤ w } ) ≤ ℓ V ρ w r + 1 \int_{B_{\rho-1}}|\mathbf{1}_G-f_w||p-q|\le\ell w^r\operatorname{Leb}(\{x\in B_\rho:\operatorname{dist}(x,\partial G)\le w\})\le\ell V_\rho w^{r+1} ∫ B ρ − 1 ∣ 1 G − f w ∣∣ p − q ∣ ≤ ℓ w r Leb ({ x ∈ B ρ : dist ( x , ∂ G ) ≤ w }) ≤ ℓ V ρ w r + 1 . Proposition S4.7(ii) finishes the proof.
Corollary S4.11 (Exponent of the Sobolev margin). In the setting of Theorem S4.10 put γ = 1 + ( 2 s − 1 ) / { 2 ( r + 1 ) } \gamma=1+(2s-1)/\{2(r+1)\} γ = 1 + ( 2 s − 1 ) / { 2 ( r + 1 )} . Suppose either that T ( ρ ) = 0 T(\rho)=0 T ( ρ ) = 0 , that is, ∣ P − Q ∣ |P-Q| ∣ P − Q ∣ vanishes off B ρ − 1 B_{\rho-1} B ρ − 1 , or that d = 1 d=1 d = 1 , G = ( x 0 , ∞ ) G=(x_0,\infty) G = ( x 0 , ∞ ) , the balls are centered at x 0 x_0 x 0 , (G3) holds for every ρ \rho ρ with the same ℓ \ell ℓ and w 0 w_0 w 0 , and T ( ρ ) ≤ C T e − ρ / a T(\rho)\le C_Te^{-\rho/a} T ( ρ ) ≤ C T e − ρ / a for some C T , a > 0 C_T,a>0 C T , a > 0 and all ρ ≥ 1 \rho\ge1 ρ ≥ 1 . Then there are c 1 > 0 c_1>0 c 1 > 0 and ϵ 1 > 0 \epsilon_1>0 ϵ 1 > 0 with D ‾ α ⋆ − ϵ ≥ c 1 ϵ γ \overline{D}_{\alpha^\star-\epsilon}\ge c_1\epsilon^\gamma D α ⋆ − ϵ ≥ c 1 ϵ γ for ϵ ≤ ϵ 1 \epsilon\le\epsilon_1 ϵ ≤ ϵ 1 , and Assumption 5.1 holds with this γ \gamma γ . Hence, with α ^ \widehat{\alpha} α computed as in Theorem 5.7 on a grid of J J J levels fixed in advance with mesh Δ G \Delta_\mathcal{G} Δ G below α ⋆ \alpha^\star α ⋆ , α ^ ≥ α ⋆ − Δ G − O P ( ( n ∧ m ) − 1 / ( 2 γ ) ) \widehat{\alpha}\ge\alpha^\star-\Delta_\mathcal{G}-O_{\mathbb{P}}((n\wedge m)^{-1/(2\gamma)}) α ≥ α ⋆ − Δ G − O P (( n ∧ m ) − 1/ ( 2 γ ) ) for fixed J J J , with 1 / ( 2 γ ) = ( r + 1 ) / { 2 ( r + 1 ) + 2 s − 1 } 1/(2\gamma)=(r+1)/\{2(r+1)+2s-1\} 1/ ( 2 γ ) = ( r + 1 ) / { 2 ( r + 1 ) + 2 s − 1 } , equal to 2 / ( 2 s + 3 ) 2/(2s+3) 2/ ( 2 s + 3 ) for r = 1 r=1 r = 1 .
Proof. The width w w w is chosen so that the error of f w f_w f w is half of ϵ \epsilon ϵ , which balances error and norm in Theorem S4.10. If T ( ρ ) = 0 T(\rho)=0 T ( ρ ) = 0 , write V V V and Π \Pi Π for V ρ V_\rho V ρ and Π ρ \Pi_\rho Π ρ , put w ( ϵ ) = { ϵ / ( 2 ℓ V ) } 1 / ( r + 1 ) w(\epsilon)=\{\epsilon/(2\ell V)\}^{1/(r+1)} w ( ϵ ) = { ϵ / ( 2 ℓ V ) } 1/ ( r + 1 ) , so that ℓ V w r + 1 = ϵ / 2 \ell Vw^{r+1}=\epsilon/2 ℓ V w r + 1 = ϵ /2 , and let w 1 ∈ ( 0 , w 0 ] w_1\in(0,w_0] w 1 ∈ ( 0 , w 0 ] be such that C d , s , b Π w 1 1 − 2 s ≥ 2 s Leb ( B ρ ) C_{d,s,b}\Pi w_1^{1-2s}\ge2^s\operatorname{Leb}(B_\rho) C d , s , b Π w 1 1 − 2 s ≥ 2 s Leb ( B ρ ) for w ≤ w 1 w\le w_1 w ≤ w 1 , so that the second term of the denominator dominates. For ϵ ≤ ϵ 1 = 2 ℓ V w 1 r + 1 \epsilon\le\epsilon_1=2\ell Vw_1^{r+1} ϵ ≤ ϵ 1 = 2 ℓ V w 1 r + 1 , Theorem S4.10 gives D ‾ α ⋆ − ϵ ≥ c 1 / 2 ( ϵ / 2 ) ( 2 C d , s , b Π ) − 1 / 2 w ( ϵ ) s − 1 / 2 = c 1 ϵ γ \overline{D}_{\alpha^\star-\epsilon}\ge c^{1/2}(\epsilon/2)(2C_{d,s,b}\Pi)^{-1/2}w(\epsilon)^{s-1/2}=c_1\epsilon^\gamma D α ⋆ − ϵ ≥ c 1/2 ( ϵ /2 ) ( 2 C d , s , b Π ) − 1/2 w ( ϵ ) s − 1/2 = c 1 ϵ γ , the exponent being 1 + ( s − 1 2 ) / ( r + 1 ) = γ 1+(s-\frac{1}{2})/(r+1)=\gamma 1 + ( s − 2 1 ) / ( r + 1 ) = γ . In the second case, E ρ = ( x 0 , x 0 + ρ ) E_\rho=(x_0,x_0+\rho) E ρ = ( x 0 , x 0 + ρ ) , so Π ρ = 2 \Pi_\rho=2 Π ρ = 2 , and { x : dist ( x , ∂ G ) ≤ t } = [ x 0 − t , x 0 + t ] \{x:\operatorname{dist}(x,\partial G)\le t\}=[x_0-t,x_0+t] { x : dist ( x , ∂ G ) ≤ t } = [ x 0 − t , x 0 + t ] , so V ρ = 2 V_\rho=2 V ρ = 2 . Take ρ ( ϵ ) = max { 2 , 1 + a log ( 4 C T / ϵ ) } \rho(\epsilon)=\max\{2,1+a\log(4C_T/\epsilon)\} ρ ( ϵ ) = max { 2 , 1 + a log ( 4 C T / ϵ )} , so that T ( ρ ( ϵ ) ) ≤ ϵ / 4 T(\rho(\epsilon))\le\epsilon/4 T ( ρ ( ϵ )) ≤ ϵ /4 , and w ( ϵ ) = { ϵ / ( 8 ℓ ) } 1 / ( r + 1 ) w(\epsilon)=\{\epsilon/(8\ell)\}^{1/(r+1)} w ( ϵ ) = { ϵ / ( 8 ℓ ) } 1/ ( r + 1 ) , so that 2 ℓ w r + 1 = ϵ / 4 2\ell w^{r+1}=\epsilon/4 2 ℓ w r + 1 = ϵ /4 . The denominator in Theorem S4.10 is { 2 s + 1 ρ ( ϵ ) + 2 C d , s , b w ( ϵ ) 1 − 2 s } 1 / 2 \{2^{s+1}\rho(\epsilon)+2C_{d,s,b}w(\epsilon)^{1-2s}\}^{1/2} { 2 s + 1 ρ ( ϵ ) + 2 C d , s , b w ( ϵ ) 1 − 2 s } 1/2 , in which the second term, a power of 1 / ϵ 1/\epsilon 1/ ϵ , dominates the first, of order log ( 1 / ϵ ) \log(1/\epsilon) log ( 1/ ϵ ) , for small ϵ \epsilon ϵ . This gives c 1 c_1 c 1 and ϵ 1 \epsilon_1 ϵ 1 as before. In both cases, for ϵ ∈ [ ϵ 1 , α ⋆ ] \epsilon\in[\epsilon_1,\alpha^\star] ϵ ∈ [ ϵ 1 , α ⋆ ] the path is nonincreasing, so D α ⋆ − ϵ ≥ D ‾ α ⋆ − ϵ ≥ c 1 ( ϵ 1 / α ⋆ ) γ ϵ γ D_{\alpha^\star-\epsilon}\ge\overline{D}_{\alpha^\star-\epsilon}\ge c_1(\epsilon_1/\alpha^\star)^\gamma\epsilon^\gamma D α ⋆ − ϵ ≥ D α ⋆ − ϵ ≥ c 1 ( ϵ 1 / α ⋆ ) γ ϵ γ , and Assumption 5.1 holds with c 0 = c 1 ( ϵ 1 / α ⋆ ) γ c_0=c_1(\epsilon_1/\alpha^\star)^\gamma c 0 = c 1 ( ϵ 1 / α ⋆ ) γ , since D ≥ D ‾ D\ge\overline{D} D ≥ D . The rate is Theorem S4.3, whose part (i) alone, with parts (ii) and (iii) for the size of t n , m t_{n,m} t n , m , gives the bound with probability at least 1 − η 1-\eta 1 − η . □
A transversal crossing of a compact C 2 C^2 C 2 hypersurface ∂ G \partial G ∂ G , with p − q p-q p − q continuously differentiable near it and ∣ P − Q ∣ \lvert P-Q\rvert ∣ P − Q ∣ compactly supported, satisfies (G1)–(G3) with r = 1 r=1 r = 1 . Indeed Π ρ \Pi_\rho Π ρ is at most the sum of the areas of ∂ G \partial G ∂ G and ∂ B ρ \partial B_\rho ∂ B ρ , by the submodularity of the perimeter, V ρ V_\rho V ρ is finite by the tube formula, and ℓ \ell ℓ can be taken as a Lipschitz constant of p − q p-q p − q near ∂ G \partial G ∂ G .
The Gaussian kernel
For k ( x , y ) = exp { − ( x − y ) 2 / ( 2 σ 2 ) } k(x,y)=\exp\{-(x-y)^2/(2\sigma^2)\} k ( x , y ) = exp { − ( x − y ) 2 / ( 2 σ 2 )} on R \mathbb{R} R , k ^ 0 ( ξ ) = ( 2 π ) 1 / 2 σ e − σ 2 ξ 2 / 2 \widehat{k}_0(\xi)=(2\pi)^{1/2}\sigma e^{-\sigma^2\xi^2/2} k 0 ( ξ ) = ( 2 π ) 1/2 σ e − σ 2 ξ 2 /2 , so by (S4.3) and Plancherel’s identity every continuous f ∈ L 2 f\in L^2 f ∈ L 2 whose Fourier transform vanishes outside [ − ξ 0 , ξ 0 ] [-\xi_0,\xi_0] [ − ξ 0 , ξ 0 ] lies in H \mathcal{H} H , with
∥ f ∥ H 2 ≤ e σ 2 ξ 0 2 / 2 ( 2 π ) 1 / 2 σ ∥ f ∥ L 2 2 , (30) \lVert f\rVert_{\mathcal{H}}^2\le\frac{e^{\sigma^2\xi_0^2/2}}{(2\pi)^{1/2}\sigma}\lVert f\rVert_{L^2}^2, \tag*{(30)} ∥ f ∥ H 2 ≤ ( 2 π ) 1/2 σ e σ 2 ξ 0 2 /2 ∥ f ∥ L 2 2 , (30)
the elementary half of the description of this RKHS by Steinwart et al. [90 ] . Let b b b be an even probability density with b ^ = 0 \widehat{b}=0 b = 0 outside [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] and m 2 = ∫ t 2 b ( t ) d t < ∞ m_2=\int t^2b(t)\,dt<\infty m 2 = ∫ t 2 b ( t ) d t < ∞ , let b ‾ ( t ) = ∫ t ∞ b \overline{b}(t)=\int_t^\infty b b ( t ) = ∫ t ∞ b for t ≥ 0 t\ge0 t ≥ 0 , so that b ‾ ≤ 1 / 2 \overline{b}\le1/2 b ≤ 1/2 , and b ξ 0 ( t ) = ξ 0 b ( ξ 0 t ) b_{\xi_0}(t)=\xi_0b(\xi_0t) b ξ 0 ( t ) = ξ 0 b ( ξ 0 t ) . The density b ( t ) = 4 π cos 2 ( t / 2 ) / ( π 2 − t 2 ) 2 b(t)=4\pi\cos^2(t/2)/(\pi^2-t^2)^2 b ( t ) = 4 π cos 2 ( t /2 ) / ( π 2 − t 2 ) 2 qualifies: it is h 2 / ∥ h ∥ L 2 2 h^2/\lVert h\rVert_{L^2}^2 h 2 / ∥ h ∥ L 2 2 for h ( t ) = cos ( t / 2 ) / ( π 2 − t 2 ) h(t)=\cos(t/2)/(\pi^2-t^2) h ( t ) = cos ( t /2 ) / ( π 2 − t 2 ) , whose Fourier transform is cos ( π ξ ) \cos(\pi\xi) cos ( π ξ ) on [ − 1 / 2 , 1 / 2 ] [-1/2,1/2] [ − 1/2 , 1/2 ] and 0 0 0 elsewhere, so that b ^ \widehat{b} b , a multiple of the autocorrelation of h ^ \widehat{h} h , vanishes outside [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] . Moreover ∥ h ∥ L 2 2 = 1 / ( 4 π ) \lVert h\rVert_{L^2}^2=1/(4\pi) ∥ h ∥ L 2 2 = 1/ ( 4 π ) and m 2 = ∫ ∣ h ^ ∣ 2 / ∣ h ^ ∣ 2 = π 2 m_2=\int\lvert\widehat{h}\rvert^2/\lvert\widehat{h}\rvert^2=\pi^2 m 2 = ∫ ∣ h ∣ 2 / ∣ h ∣ 2 = π 2 . For t ≥ 2 1 / 2 π t\ge2^{1/2}\pi t ≥ 2 1/2 π , t 2 − π 2 ≥ t 2 / 2 t^2-\pi^2\ge t^2/2 t 2 − π 2 ≥ t 2 /2 , so b ( t ) ≤ 16 π t − 4 b(t)\le16\pi t^{-4} b ( t ) ≤ 16 π t − 4 and b ‾ ( t ) ≤ 16 π / ( 3 t 3 ) \overline{b}(t)\le16\pi/(3t^3) b ( t ) ≤ 16 π / ( 3 t 3 ) .
The laws cross once, at x 0 x_0 x 0 : p ≥ q p\ge q p ≥ q almost everywhere on ( x 0 , ∞ ) (x_0,\infty) ( x 0 , ∞ ) and p ≤ q p\le q p ≤ q almost everywhere on ( − ∞ , x 0 ) (-\infty,x_0) ( − ∞ , x 0 ) , so that A = ( x 0 , ∞ ) A=(x_0,\infty) A = ( x 0 , ∞ ) up to a null set of ∣ P − Q ∣ \lvert P-Q\rvert ∣ P − Q ∣ , and ∣ p − q ∣ ( x ) ≤ ℓ ∣ x − x 0 ∣ \lvert p-q\rvert(x)\le\ell\lvert x-x_0\rvert ∣ p − q ∣ ( x ) ≤ ℓ ∣ x − x 0 ∣ for almost every x x x with ∣ x − x 0 ∣ ≤ r 0 \lvert x-x_0\rvert\le r_0 ∣ x − x 0 ∣ ≤ r 0 , for some ℓ > 0 \ell>0 ℓ > 0 and r 0 ∈ ( 0 , ∞ ] r_0\in(0,\infty] r 0 ∈ ( 0 , ∞ ] ; we read b ‾ ( ∞ ) \overline{b}(\infty) b ( ∞ ) as 0 0 0 . We write T + ( ρ ) = ∣ P − Q ∣ ( ( x 0 + ρ , ∞ ) ) T_+(\rho)=\lvert P-Q\rvert((x_0+\rho,\infty)) T + ( ρ ) = ∣ P − Q ∣ (( x 0 + ρ , ∞ )) .
Lemma S4.12 (A band-limited step). For ξ 0 > 0 \xi_0>0 ξ 0 > 0 and ρ > 0 \rho>0 ρ > 0 , f = 1 ( x 0 , x 0 + ρ ) ∗ b ξ 0 f=\mathbf{1}_{(x_0,x_0+\rho)}*b_{\xi_0} f = 1 ( x 0 , x 0 + ρ ) ∗ b ξ 0 lies in H \mathcal{H} H , 0 ≤ f ≤ 1 0\le f\le1 0 ≤ f ≤ 1 , ∥ f ∥ H 2 ≤ ρ e σ 2 ξ 0 2 / 2 / { ( 2 π ) 1 / 2 σ } \lVert f\rVert_{\mathcal{H}}^2\le\rho e^{\sigma^2\xi_0^2/2}/\{(2\pi)^{1/2}\sigma\} ∥ f ∥ H 2 ≤ ρ e σ 2 ξ 0 2 /2 / {( 2 π ) 1/2 σ } , and
err ( f ) ≤ ℓ m 2 2 ξ 0 2 + 2 T + ( ρ / 2 ) + 2 α ⋆ { b ‾ ( ξ 0 r 0 ) + b ‾ ( ξ 0 ρ / 2 ) } . \operatorname{err}(f)\le\frac{\ell m_2}{2\xi_0^2}+2T_+(\rho/2)+2\alpha^\star\{\overline{b}(\xi_0r_0)+\overline{b}(\xi_0\rho/2)\}. err ( f ) ≤ 2 ξ 0 2 ℓ m 2 + 2 T + ( ρ /2 ) + 2 α ⋆ { b ( ξ 0 r 0 ) + b ( ξ 0 ρ /2 )} .
Proof. Let g = 1 ( x 0 , x 0 + ρ ) g=\mathbf{1}_{(x_0,x_0+\rho)} g = 1 ( x 0 , x 0 + ρ ) . As b ξ 0 b_{\xi_0} b ξ 0 is a probability density, f f f is continuous, in L 2 L^2 L 2 , with values in [ 0 , 1 ] [0,1] [ 0 , 1 ] , and f ^ = g ^ b ^ ( ⋅ / ξ 0 ) \widehat{f}=\widehat{g}\widehat{b}(\cdot/\xi_0) f = g b ( ⋅ / ξ 0 ) vanishes outside [ − ξ 0 , ξ 0 ] [-\xi_0,\xi_0] [ − ξ 0 , ξ 0 ] . Since ∣ b ^ ∣ ≤ 1 \lvert\widehat{b}\rvert\le1 ∣ b ∣ ≤ 1 , ∥ f ∥ L 2 2 ≤ ∥ g ∥ L 2 2 = ρ / 2 \lVert f\rVert_{L^2}^2\le\lVert g\rVert_{L^2}^2=\rho/2 ∥ f ∥ L 2 2 ≤ ∥ g ∥ L 2 2 = ρ /2 , and (S4.5) gives the norm bound.
For the error we compare f f f with g g g , and g g g with 1 A \mathbf{1}_A 1 A : ∣ 1 A − f ∣ ≤ ∣ 1 A − g ∣ + ∣ g − f ∣ \lvert\mathbf{1}_A-f\rvert\le\lvert\mathbf{1}_A-g\rvert+\lvert g-f\rvert ∣ 1 A − f ∣ ≤ ∣ 1 A − g ∣ + ∣ g − f ∣ , and 1 A − g = 1 [ x 0 + ρ , ∞ ) \mathbf{1}_A-g=\mathbf{1}_{[x_0+\rho,\infty)} 1 A − g = 1 [ x 0 + ρ , ∞ ) almost everywhere, which contributes T + ( ρ ) ≤ T + ( ρ / 2 ) T_+(\rho)\le T_+(\rho/2) T + ( ρ ) ≤ T + ( ρ /2 ) . Next, ∣ g − \lvert g- ∣ g − f ∣ ( x ) ≤ ∫ ∣ g ( x ) − g ( x − y ) ∣ b ξ 0 ( y ) d y f|(x) \le\int|g(x)-g(x-y)|b_{\xi_0}(y)\,dy f ∣ ( x ) ≤ ∫ ∣ g ( x ) − g ( x − y ) ∣ b ξ 0 ( y ) d y . For x 0 < x < x 0 + ρ x_0<x<x_0+\rho x 0 < x < x 0 + ρ , g ( x − y ) ≠ g ( x ) g(x-y)\ne g(x) g ( x − y ) = g ( x ) exactly when y ≥ x − x 0 y\ge x-x_0 y ≥ x − x 0 or y ≤ x − x 0 − ρ y\le x-x_0-\rho y ≤ x − x 0 − ρ , a set of b ξ 0 b_{\xi_0} b ξ 0 -mass b ˉ ( ξ 0 ( x − x 0 ) ) + b ˉ ( ξ 0 ( x 0 + ρ − x ) ) \bar b(\xi_0(x-x_0))+\bar b(\xi_0(x_0+\rho-x)) b ˉ ( ξ 0 ( x − x 0 )) + b ˉ ( ξ 0 ( x 0 + ρ − x )) . For x < x 0 x<x_0 x < x 0 only y < − ∣ x − x 0 ∣ y<-|x-x_0| y < − ∣ x − x 0 ∣ can change g g g , and for x > x 0 + ρ x>x_0+\rho x > x 0 + ρ only y > x − x 0 − ρ y>x-x_0-\rho y > x − x 0 − ρ . Hence, for almost every x x x , ∣ g − f ∣ ( x ) ≤ b ˉ ( ξ 0 ∣ x − x 0 ∣ ) + b ˉ ( ξ 0 ∣ x − x 0 − ρ ∣ ) |g-f|(x)\le\bar b(\xi_0|x-x_0|)+\bar b(\xi_0|x-x_0-\rho|) ∣ g − f ∣ ( x ) ≤ b ˉ ( ξ 0 ∣ x − x 0 ∣ ) + b ˉ ( ξ 0 ∣ x − x 0 − ρ ∣ ) , the leakage of the mollifier across the two ends of the interval. Integrated against ∣ P − Q ∣ |P-Q| ∣ P − Q ∣ , it is at most
ℓ ∫ ∣ t ∣ ≤ r 0 ∣ t ∣ b ˉ ( ξ 0 ∣ t ∣ ) d t + b ˉ ( ξ 0 r 0 ) ∣ P − Q ∣ ( R ) ≤ 2 ℓ ξ 0 2 ∫ 0 ∞ b ˉ ( v ) d v + 2 α ⋆ b ˉ ( ξ 0 r 0 ) = ℓ m 2 2 ξ 0 2 + 2 α ⋆ b ˉ ( ξ 0 r 0 ) , \begin{aligned}
\ell\int_{|t|\le r_0}|t|\bar b(\xi_0|t|)\,dt+\bar b(\xi_0r_0)|P-Q|(\mathbb{R})\le\frac{2\ell}{\xi_0^2}\int_0^\infty\bar b(v)\,dv+2\alpha^\star\bar b(\xi_0r_0) \\
&=\frac{\ell m_2}{2\xi_0^2}+2\alpha^\star\bar b(\xi_0r_0),
\end{aligned} ℓ ∫ ∣ t ∣ ≤ r 0 ∣ t ∣ b ˉ ( ξ 0 ∣ t ∣ ) d t + b ˉ ( ξ 0 r 0 ) ∣ P − Q ∣ ( R ) ≤ ξ 0 2 2 ℓ ∫ 0 ∞ b ˉ ( v ) d v + 2 α ⋆ b ˉ ( ξ 0 r 0 ) = 2 ξ 0 2 ℓ m 2 + 2 α ⋆ b ˉ ( ξ 0 r 0 ) ,
because b ˉ \bar b b ˉ is nonincreasing and ∫ 0 ∞ b ˉ ( v ) d v = ∫ 0 ∞ b ( y ) y 2 / 2 d y = m 2 / 4 \int_0^\infty\bar b(v)\,dv=\int_0^\infty b(y)y^2/2\,dy=m_2/4 ∫ 0 ∞ b ˉ ( v ) d v = ∫ 0 ∞ b ( y ) y 2 /2 d y = m 2 /4 . The second term is at most 1 / 2 1/2 1/2 on ( x 0 + ρ / 2 , ∞ ) (x_0+\rho/2,\infty) ( x 0 + ρ /2 , ∞ ) , a set of ∣ P − Q ∣ |P-Q| ∣ P − Q ∣ -mass T + ( ρ / 2 ) T_+(\rho/2) T + ( ρ /2 ) , and at most b ˉ ( ξ 0 ρ / 2 ) \bar b(\xi_0\rho/2) b ˉ ( ξ 0 ρ /2 ) elsewhere, where ∣ x − x 0 − ρ ∣ ≥ ρ / 2 |x-x_0-\rho|\ge\rho/2 ∣ x − x 0 − ρ ∣ ≥ ρ /2 . Adding the contributions gives the bound.
Theorem S4.13 (Margin for the Gaussian kernel). In this setting let θ ∈ ( 0 , 1 ) \theta\in(0,1) θ ∈ ( 0 , 1 ) , ϵ ∈ ( 0 , α ⋆ ] \epsilon\in(0,\alpha^\star] ϵ ∈ ( 0 , α ⋆ ] and ξ ϵ = { ℓ m 2 / ( 2 θ ϵ ) } 1 / 2 \xi_\epsilon=\{\ell m_2/(2\theta\epsilon)\}^{1/2} ξ ϵ = { ℓ m 2 / ( 2 θ ϵ ) } 1/2 , and let ρ > 0 \rho>0 ρ > 0 satisfy 2 T + ( ρ / 2 ) + 2 α ⋆ { b ˉ ( ξ ϵ r 0 ) + b ˉ ( ξ ϵ ρ / 2 ) } ≤ ( 1 − θ ) ϵ / 2 2T_+(\rho/2)+2\alpha^\star\{\bar b(\xi_\epsilon r_0)+\bar b(\xi_\epsilon\rho/2)\}\le(1-\theta)\epsilon/2 2 T + ( ρ /2 ) + 2 α ⋆ { b ˉ ( ξ ϵ r 0 ) + b ˉ ( ξ ϵ ρ /2 )} ≤ ( 1 − θ ) ϵ /2 . Then
D α ⋆ − ϵ ( P , Q ) ≥ D ˉ α ⋆ − ϵ ≥ ( 1 − θ ) ϵ 2 { ( 2 π ) 1 / 2 σ ρ } 1 / 2 exp ( − σ 2 ℓ m 2 8 θ ϵ ) . D_{\alpha^\star-\epsilon}(P,Q)\ge\bar D_{\alpha^\star-\epsilon}\ge\frac{(1-\theta)\epsilon}{2}\left\{\frac{(2\pi)^{1/2}\sigma}{\rho}\right\}^{1/2}\exp\left(-\frac{\sigma^2\ell m_2}{8\theta\epsilon}\right). D α ⋆ − ϵ ( P , Q ) ≥ D ˉ α ⋆ − ϵ ≥ 2 ( 1 − θ ) ϵ { ρ ( 2 π ) 1/2 σ } 1/2 exp ( − 8 θ ϵ σ 2 ℓ m 2 ) . If T + ( t ) ≤ C T e − t / a T_+(t)\le C_Te^{-t/a} T + ( t ) ≤ C T e − t / a , then ρ ϵ = max { 2 , 2 a log ( 8 C T / ( ( 1 − θ ) ϵ ) ) } \rho_\epsilon=\max\{2,2a\log(8C_T/((1-\theta)\epsilon))\} ρ ϵ = max { 2 , 2 a log ( 8 C T / (( 1 − θ ) ϵ ))} satisfies the condition for all small ϵ \epsilon ϵ when b b b is the density above, and log { 1 / D ˉ α ⋆ − ϵ } ≤ σ 2 ℓ m 2 / ( 8 θ ϵ ) + log ( 1 / ϵ ) + O ( log log ( 1 / ϵ ) ) \log\{1/\bar D_{\alpha^\star-\epsilon}\}\le\sigma^2\ell m_2/(8\theta\epsilon)+\log(1/\epsilon)+O(\log\log(1/\epsilon)) log { 1/ D ˉ α ⋆ − ϵ } ≤ σ 2 ℓ m 2 / ( 8 θ ϵ ) + log ( 1/ ϵ ) + O ( log log ( 1/ ϵ )) .
Proof. The bandwidth ξ ϵ \xi_\epsilon ξ ϵ is chosen so that the smoothing error near x 0 x_0 x 0 is the fraction θ \theta θ of ϵ \epsilon ϵ , and the norm of the band-limited step then grows like exp { σ 2 ξ ϵ 2 / 4 } \exp\{\sigma^2\xi_\epsilon^2/4\} exp { σ 2 ξ ϵ 2 /4 } . By Lemma S4.12 with ξ 0 = ξ ϵ \xi_0=\xi_\epsilon ξ 0 = ξ ϵ , ℓ m 2 / ( 2 ξ 0 2 ) = θ ϵ \ell m_2/(2\xi_0^2)=\theta\epsilon ℓ m 2 / ( 2 ξ 0 2 ) = θ ϵ , so err ( f ) ≤ θ ϵ + ( 1 − θ ) ϵ / 2 \operatorname{err}(f)\le\theta\epsilon+(1-\theta)\epsilon/2 err ( f ) ≤ θ ϵ + ( 1 − θ ) ϵ /2 and ϵ − err ( f ) ≥ ( 1 − θ ) ϵ / 2 \epsilon-\operatorname{err}(f)\ge(1-\theta)\epsilon/2 ϵ − err ( f ) ≥ ( 1 − θ ) ϵ /2 , while ∥ f ∥ H ≤ { ρ / ( ( 2 π ) 1 / 2 σ ) } 1 / 2 exp { σ 2 ℓ m 2 / ( 8 θ ϵ ) } \|f\|_{\mathcal H}\le\{\rho/((2\pi)^{1/2}\sigma)\}^{1/2}\exp\{\sigma^2\ell m_2/(8\theta\epsilon)\} ∥ f ∥ H ≤ { ρ / (( 2 π ) 1/2 σ ) } 1/2 exp { σ 2 ℓ m 2 / ( 8 θ ϵ )} , and Proposition S4.7(ii) gives the bound. With the density above, b ˉ ( ξ ϵ t ) ≤ 16 π / { 3 ( ξ ϵ t ) 3 } \bar b(\xi_\epsilon t)\le16\pi/\{3(\xi_\epsilon t)^3\} b ˉ ( ξ ϵ t ) ≤ 16 π / { 3 ( ξ ϵ t ) 3 } once ξ ϵ t ≥ 2 1 / 2 π \xi_\epsilon t\ge2^{1/2}\pi ξ ϵ t ≥ 2 1/2 π , which is of order ϵ 3 / 2 \epsilon^{3/2} ϵ 3/2 for t = r 0 t=r_0 t = r 0 and for t = ρ ϵ / 2 ≥ 1 t=\rho_\epsilon/2\ge1 t = ρ ϵ /2 ≥ 1 , so the two terms in b ˉ \bar b b ˉ are at most ( 1 − θ ) ϵ / 4 (1-\theta)\epsilon/4 ( 1 − θ ) ϵ /4 for small ϵ \epsilon ϵ , and 2 T + ( ρ ϵ / 2 ) ≤ 2 C T exp { − log ( 8 C T / ( ( 1 − θ ) ϵ ) ) } = ( 1 − θ ) ϵ / 4 2T_+(\rho_\epsilon/2)\le2C_T\exp\{-\log(8C_T/((1-\theta)\epsilon))\}=(1-\theta)\epsilon/4 2 T + ( ρ ϵ /2 ) ≤ 2 C T exp { − log ( 8 C T / (( 1 − θ ) ϵ ))} = ( 1 − θ ) ϵ /4 .
Proof of Proposition S4.6. The hypotheses of Proposition 5.5 give the setting of Theorem S4.13, with exponential tails, for every ℓ > ℓ 0 \ell>\ell_0 ℓ > ℓ 0 and a small enough r 0 r_0 r 0 : ( p − q ) ( x ) / ( x − x 0 ) (p-q)(x)/(x-x_0) ( p − q ) ( x ) / ( x − x 0 ) is continuous and nonnegative near x 0 x_0 x 0 , away from x 0 x_0 x 0 , and tends to ℓ 0 \ell_0 ℓ 0 at x 0 x_0 x 0 . Given c > π 2 σ 2 ℓ 0 / 8 c>\pi^2\sigma^2\ell_0/8 c > π 2 σ 2 ℓ 0 /8 , choose θ < 1 \theta<1 θ < 1 and ℓ > ℓ 0 \ell>\ell_0 ℓ > ℓ 0 with π 2 σ 2 ℓ / ( 8 θ ) < c \pi^2\sigma^2\ell/(8\theta)<c π 2 σ 2 ℓ / ( 8 θ ) < c . Then the bound of Theorem S4.13, with m 2 = π 2 m_2=\pi^2 m 2 = π 2 , exceeds exp ( − c / ϵ ) \exp(-c/\epsilon) exp ( − c / ϵ ) for small ϵ \epsilon ϵ . The upper bound is Proposition S4.15(b) below with 2 j 2j 2 j vanishing moments, which gives the order ϵ 4 j \epsilon^{4j} ϵ 4 j , as M 4 j = ( 4 j − 1 ) ! ! σ − 4 j < ∞ M_{4j}=(4j-1)!!\sigma^{-4j}<\infty M 4 j = ( 4 j − 1 )!! σ − 4 j < ∞ for every j j j .
Proof of Proposition S4.8(iii). Given c > π 2 σ 2 ℓ 0 / 4 c>\pi^2\sigma^2\ell_0/4 c > π 2 σ 2 ℓ 0 /4 , take c ′ ∈ ( π 2 σ 2 ℓ 0 / 8 , c / 2 ) c'\in(\pi^2\sigma^2\ell_0/8,c/2) c ′ ∈ ( π 2 σ 2 ℓ 0 /8 , c /2 ) . By the proof of Proposition 5.6 , the bound of Theorem S4.13, with m 2 = π 2 m_2=\pi^2 m 2 = π 2 , ρ = ρ ϵ \rho=\rho_\epsilon ρ = ρ ϵ and suitable θ < 1 \theta<1 θ < 1 and ℓ > ℓ 0 \ell>\ell_0 ℓ > ℓ 0 , exceeds exp ( − c ′ / ϵ ) \exp(-c'/\epsilon) exp ( − c ′ / ϵ ) for 0 < ϵ ≤ ϵ 0 0<\epsilon\le\epsilon_0 0 < ϵ ≤ ϵ 0 , for some ϵ 0 ∈ ( 0 , α ⋆ ] \epsilon_0\in(0,\alpha^\star] ϵ 0 ∈ ( 0 , α ⋆ ] . The proof of Theorem S4.13 obtains this bound as a lower bound on ( ϵ − err ( f ) ) / ∥ f ∥ H (\epsilon-\operatorname{err}(f))/\|f\|_{\mathcal H} ( ϵ − err ( f )) /∥ f ∥ H for a function f ∈ F f\in\mathcal F f ∈ F , so it is also a lower bound on ω H ( ϵ ) \omega_{\mathcal H}(\epsilon) ω H ( ϵ ) . By Proposition S4.7(iii), ω H \omega_{\mathcal H} ω H is nondecreasing and at most D ˉ α ⋆ − ϵ = ( 1 − α ⋆ + ϵ ) D α ⋆ − ϵ \bar D_{\alpha^\star-\epsilon}=(1-\alpha^\star+\epsilon)D_{\alpha^\star-\epsilon} D ˉ α ⋆ − ϵ = ( 1 − α ⋆ + ϵ ) D α ⋆ − ϵ , so part (ii) applies to ω = ω H \omega=\omega_{\mathcal H} ω = ω H , and c > 2 c ′ c>2c' c > 2 c ′ .
Explicit trimmings and sharpness
Upper bounds on the path come from explicit trimmings: nonnegative measures P ′ ≤ P P' \le P P ′ ≤ P and Q ′ ≤ Q Q' \le Q Q ′ ≤ Q of equal mass 1 − α 1-\alpha 1 − α give D ˉ α ≤ ∥ ∫ ϕ d ( P ′ − Q ′ ) ∥ H \bar{D}_{\alpha} \le\left\lVert\int\phi\,d(P'-Q')\right\rVert_H D ˉ α ≤ ∫ ϕ d ( P ′ − Q ′ ) H . If ν = P ′ − Q ′ \nu=P'-Q' ν = P ′ − Q ′ has total variation ∣ ν ∣ |\nu| ∣ ν ∣ , support in [ x 0 − W , x 0 + W ] [x_0-W,x_0+W] [ x 0 − W , x 0 + W ] and ∫ ( x − x 0 ) j d ν = 0 \int(x-x_0)^j\,d\nu=0 ∫ ( x − x 0 ) j d ν = 0 for 0 ≤ j < N 0\le j<N 0 ≤ j < N , where N ≥ 1 N\ge1 N ≥ 1 and j = 0 j=0 j = 0 holds because the masses agree, then ∣ e i t − ∑ j < N ( i t ) j / j ! ∣ ≤ ∣ t ∣ N / N ! |e^{it}-\sum_{j<N}(it)^j/j!|\le|t|^N/N! ∣ e i t − ∑ j < N ( i t ) j / j ! ∣ ≤ ∣ t ∣ N / N ! gives
∣ ν ^ ( ξ ) ∣ ≤ ∣ ν ∣ min { 1 , ( ∣ ξ ∣ W ) N / N ! } . (31) |\hat{\nu}(\xi)|\le|\nu|\min\{1,(|\xi|W)^N/N!\}. \tag*{(31)} ∣ ν ^ ( ξ ) ∣ ≤ ∣ ν ∣ min { 1 , ( ∣ ξ ∣ W ) N / N !} . (31)
Proposition S4.14 (Sobolev order below $3/2). Let d = 1 d=1 d = 1 , k ( x , y ) = k 0 ( x − y ) k(x,y)=k_0(x-y) k ( x , y ) = k 0 ( x − y ) with k ^ 0 ( ξ ) ≤ C ∣ ξ ∣ − 2 s \hat{k}_0(\xi)\le C|\xi|^{-2s} k ^ 0 ( ξ ) ≤ C ∣ ξ ∣ − 2 s for some s ∈ ( 1 / 2 , 3 / 2 ) s\in(1/2,3/2) s ∈ ( 1/2 , 3/2 ) , and suppose that p − q ≥ ℓ ′ ( x − x 0 ) r p-q\ge\ell'(x-x_0)^r p − q ≥ ℓ ′ ( x − x 0 ) r almost everywhere on ( x 0 , x 0 + r 0 ) (x_0,x_0+r_0) ( x 0 , x 0 + r 0 ) and q − p ≥ ℓ ′ ( x 0 − x ) r q-p\ge\ell'(x_0-x)^r q − p ≥ ℓ ′ ( x 0 − x ) r almost everywhere on ( x 0 − r 0 , x 0 ) (x_0-r_0,x_0) ( x 0 − r 0 , x 0 ) , for some ℓ ′ , r , r 0 > 0 \ell',r,r_0>0 ℓ ′ , r , r 0 > 0 . Then for 0 < ϵ ≤ ℓ ′ r 0 r + 1 / ( r + 1 ) 0<\epsilon\le\ell' r_0^{r+1}/(r+1) 0 < ϵ ≤ ℓ ′ r 0 r + 1 / ( r + 1 ) , with W ϵ = { ( r + 1 ) ϵ / ℓ ′ } 1 / ( r + 1 ) W_\epsilon=\{(r+1)\epsilon/\ell'\}^{1/(r+1)} W ϵ = {( r + 1 ) ϵ / ℓ ′ } 1/ ( r + 1 ) ,
D ˉ α ⋆ − ϵ ≤ 2 ϵ W ϵ s − 1 / 2 { C 2 π ( 2 3 − 2 s + 2 2 s − 1 ) } 1 / 2 . \bar{D}_{\alpha^\star-\epsilon}\le2\epsilon W_\epsilon^{s-1/2}\left\{\frac{C}{2\pi}\left(\frac{2}{3-2s}+\frac{2}{2s-1}\right)\right\}^{1/2}. D ˉ α ⋆ − ϵ ≤ 2 ϵ W ϵ s − 1/2 { 2 π C ( 3 − 2 s 2 + 2 s − 1 2 ) } 1/2 .
Proof. We keep the common part together with the excess of P P P on a short interval to the right of x 0 x_0 x 0 and that of Q Q Q on one to the left, so that the two trimmed parts differ by a measure of mass zero carried near x 0 x_0 x 0 , whose Fourier transform vanishes at the origin. The map w ↦ ∫ x 0 x 0 + w ( p − q ) w\mapsto\int_{x_0}^{x_0+w}(p-q) w ↦ ∫ x 0 x 0 + w ( p − q ) is continuous, nondecreasing and at least ℓ ′ w r + 1 / ( r + 1 ) \ell'w^{r+1}/(r+1) ℓ ′ w r + 1 / ( r + 1 ) on [ 0 , r 0 ] [0,r_0] [ 0 , r 0 ] , so some w P ≤ W ϵ w_P\le W_\epsilon w P ≤ W ϵ gives it the value ϵ \epsilon ϵ , and likewise some w Q ≤ W ϵ w_Q\le W_\epsilon w Q ≤ W ϵ on the left. As p − q = ( p − q ) + p-q=(p-q)_+ p − q = ( p − q ) + almost everywhere on ( x 0 , x 0 + w P ) (x_0,x_0+w_P) ( x 0 , x 0 + w P ) , the measure P ′ = P ∧ Q + ( p − q ) 1 ( x 0 , x 0 + w P ) d x P'=P\wedge Q+(p-q)1_{(x_0,x_0+w_P)}\,dx P ′ = P ∧ Q + ( p − q ) 1 ( x 0 , x 0 + w P ) d x satisfies P ′ ≤ P ∧ Q + ( P − P ∧ Q ) = P P'\le P\wedge Q+(P-P\wedge Q)=P P ′ ≤ P ∧ Q + ( P − P ∧ Q ) = P and has mass 1 − α ⋆ + ϵ 1-\alpha^\star+\epsilon 1 − α ⋆ + ϵ . The measure Q ′ Q' Q ′ is built in the same way, and ν = P ′ − Q ′ = ( p − q ) 1 ( x 0 − w Q , x 0 + w P ) d x \nu=P'-Q'=(p-q)1_{(x_0-w_Q,x_0+w_P)}\,dx ν = P ′ − Q ′ = ( p − q ) 1 ( x 0 − w Q , x 0 + w P ) d x has ∣ ν ∣ = 2 ϵ |\nu|=2\epsilon ∣ ν ∣ = 2 ϵ , mass 0 0 0 and support in [ x 0 − W ϵ , x 0 + W ϵ ] [x_0-W_\epsilon,x_0+W_\epsilon] [ x 0 − W ϵ , x 0 + W ϵ ] . By (S4.4) and (S4.6) with N = 1 N=1 N = 1 , ∥ ∫ ϕ d ν ∥ H 2 ≤ ( 2 π ) − 1 C ( 2 ϵ ) 2 ∫ min ( 1 , ξ 2 W ϵ 2 ) ∣ ξ ∣ − 2 s d ξ \left\lVert\int\phi\,d\nu\right\rVert_H^2\le(2\pi)^{-1}C(2\epsilon)^2\int\min(1,\xi^2W_\epsilon^2)|\xi|^{-2s}\,d\xi ∫ ϕ d ν H 2 ≤ ( 2 π ) − 1 C ( 2 ϵ ) 2 ∫ min ( 1 , ξ 2 W ϵ 2 ) ∣ ξ ∣ − 2 s d ξ , and the integral is W ϵ 2 s − 1 { 2 / ( 3 − 2 s ) + 2 / ( 2 s − 1 ) } W_\epsilon^{2s-1}\{2/(3-2s)+2/(2s-1)\} W ϵ 2 s − 1 { 2/ ( 3 − 2 s ) + 2/ ( 2 s − 1 )} .
For larger s s s , and for the Gaussian kernel, the difference of the trimmings must have more vanishing moments. They are created by removing from the common part a small polynomial density near x 0 x_0 x 0 , which needs the core to have positive density there.
Proposition S4.15 (Trimmings with vanishing moments). Let d = 1 d=1 d = 1 , let p , q p,q p , q be continuous on ( x 0 − r 0 , x 0 + r 0 ) (x_0-r_0,x_0+r_0) ( x 0 − r 0 , x 0 + r 0 ) , let e = p − q e=p-q e = p − q be differentiable at x 0 x_0 x 0 with e ′ ( x 0 ) = ℓ 0 > 0 e'(x_0)=\ell_0>0 e ′ ( x 0 ) = ℓ 0 > 0 , and let p ( x 0 ) = q ( x 0 ) > 0 p(x_0)=q(x_0)>0 p ( x 0 ) = q ( x 0 ) > 0 . For every integer N ≥ 1 N\ge1 N ≥ 1 there are T N ≥ 1 T_N\ge1 T N ≥ 1 and w N > 0 w_N>0 w N > 0 such that for 0 < w ≤ w N 0<w\le w_N 0 < w ≤ w N there are nonnegative measures P ′ ≤ P P'\le P P ′ ≤ P and Q ′ ≤ Q Q'\le Q Q ′ ≤ Q of equal mass 1 − α ⋆ + ϵ ( w ) 1-\alpha^\star+\epsilon(w) 1 − α ⋆ + ϵ ( w ) , with ϵ ( w ) ≥ ℓ 0 w 2 / 8 \epsilon(w)\ge\ell_0w^2/8 ϵ ( w ) ≥ ℓ 0 w 2 /8 , whose difference ν \nu ν satisfies ∣ ν ∣ ≤ 2 ℓ 0 w 2 |\nu|\le2\ell_0w^2 ∣ ν ∣ ≤ 2 ℓ 0 w 2 , supp ν ⊆ [ x 0 − T N w , x 0 + T N w ] \operatorname{supp}\nu\subseteq[x_0-T_Nw,x_0+T_Nw] supp ν ⊆ [ x 0 − T N w , x 0 + T N w ] and ∫ ( x − x 0 ) j d ν = 0 \int(x-x_0)^j\,d\nu=0 ∫ ( x − x 0 ) j d ν = 0 for 0 ≤ j < N 0\le j<N 0 ≤ j < N . Consequently, with w = ( 8 ϵ / ℓ 0 ) 1 / 2 w=(8\epsilon/\ell_0)^{1/2} w = ( 8 ϵ / ℓ 0 ) 1/2 and 0 < ϵ ≤ ℓ 0 w N 2 / 8 0<\epsilon\le\ell_0w_N^2/8 0 < ϵ ≤ ℓ 0 w N 2 /8 :
(a) if k ^ 0 ( ξ ) ≤ C ( 1 + ξ 2 ) − s \hat{k}_0(\xi)\le C(1+\xi^2)^{-s} k ^ 0 ( ξ ) ≤ C ( 1 + ξ 2 ) − s with s > 1 / 2 s>1/2 s > 1/2 and N > s − 1 / 2 N>s-1/2 N > s − 1/2 , then D ˉ α ⋆ + ϵ ≤ 2 ℓ 0 w 2 ( T N w ) s − 1 / 2 { C I N , s / ( 2 π ) } 1 / 2 \bar{D}_{\alpha^\star+\epsilon}\le2\ell_0w^2(T_Nw)^{s-1/2}\{CI_{N,s}/(2\pi)\}^{1/2} D ˉ α ⋆ + ϵ ≤ 2 ℓ 0 w 2 ( T N w ) s − 1/2 { C I N , s / ( 2 π ) } 1/2 , which is at most a constant times ϵ ( 2 s + 3 ) / 4 \epsilon^{(2s+3)/4} ϵ ( 2 s + 3 ) /4 , where I N , s = ∫ min ( 1 , v 2 N / N ! 2 ) ∣ v ∣ − 2 s d v < ∞ I_{N,s}=\int\min(1,v^{2N}/N!^2)|v|^{-2s}\,dv<\infty I N , s = ∫ min ( 1 , v 2 N / N ! 2 ) ∣ v ∣ − 2 s d v < ∞ .
(b) if M 2 N = ( 2 π ) − 1 ∫ ξ 2 N k ^ 0 ( ξ ) d ξ < ∞ M_{2N}=(2\pi)^{-1}\int\xi^{2N}\hat{k}_0(\xi)\,d\xi<\infty M 2 N = ( 2 π ) − 1 ∫ ξ 2 N k ^ 0 ( ξ ) d ξ < ∞ , then D ˉ α ⋆ − ϵ ≤ 2 ℓ 0 w 2 ( T N w ) N M 2 N 1 / 2 / N ! \bar{D}_{\alpha^\star-\epsilon}\le2\ell_0w^2(T_Nw)^NM_{2N}^{1/2}/N! D ˉ α ⋆ − ϵ ≤ 2 ℓ 0 w 2 ( T N w ) N M 2 N 1/2 / N ! , which is at most a constant times ϵ 1 + N / 2 \epsilon^{1+N/2} ϵ 1 + N /2 . For the Gaussian kernel M 2 N = ( 2 N − 1 ) ! ! σ − 2 N M_{2N}=(2N-1)!!\,\sigma^{-2N} M 2 N = ( 2 N − 1 )!! σ − 2 N .
Proof. We add the excess e e e on ( x 0 − w , x 0 + w ) (x_0-w,x_0+w) ( x 0 − w , x 0 + w ) to the common part and cancel its first N N N moments with a polynomial density removed from the common part on a fixed multiple of that interval. For ∣ t ∣ < 1 |t|<1 ∣ t ∣ < 1 let F w ( t ) = e ( x 0 + w t ) / ( ℓ 0 w ) F_w(t)=e(x_0+wt)/(\ell_0w) F w ( t ) = e ( x 0 + w t ) / ( ℓ 0 w ) , and F w ( t ) = 0 F_w(t)=0 F w ( t ) = 0 otherwise. Differentiability at x 0 x_0 x 0 gives sup t ∣ F w ( t ) − t 1 { ∣ t ∣ < 1 } ∣ → 0 \sup_t|F_w(t)-t1_{\{|t|<1\}}|\to0 sup t ∣ F w ( t ) − t 1 { ∣ t ∣ < 1 } ∣ → 0 as $w\to0. Let T ≥ 1 T \ge1 T ≥ 1 and let G T \mathcal{G}_T G T map M ∈ R N M \in\mathbb{R}^N M ∈ R N to the polynomial G G G of degree less than N N N with ∫ − T T t j G ( t ) d t = M j \int_{-T}^{T} t^jG(t)\,dt=M_j ∫ − T T t j G ( t ) d t = M j for 0 ≤ j < N 0 \le j<N 0 ≤ j < N , which exists and is unique because the Gram matrix of the monomials on [ − T , T ] [-T,T] [ − T , T ] is positive definite. The map G T \mathcal{G}_T G T is linear. Put M j ( w ) = − ∫ t j F w ( t ) d t M_j(w)=-\int t^jF_w(t)\,dt M j ( w ) = − ∫ t j F w ( t ) d t , so that M ( w ) → M ( 0 ) M(w)\to M(0) M ( w ) → M ( 0 ) , with M 0 ( 0 ) = 0 M_0(0)=0 M 0 ( 0 ) = 0 and ∣ M j ( 0 ) ∣ = ∣ ∫ 0 1 t j + 1 d t ∣ ≤ 2 / 3 |M_j(0)|=|\int_0^1t^{j+1}\,dt|\le2/3 ∣ M j ( 0 ) ∣ = ∣ ∫ 0 1 t j + 1 d t ∣ ≤ 2/3 .
For G 0 = G T [ M ( 0 ) ] G_0=\mathcal{G}_T[M(0)] G 0 = G T [ M ( 0 )] , the polynomial v ↦ T G 0 ( T v ) v\mapsto TG_0(Tv) v ↦ T G 0 ( T v ) has moments T − j M j ( 0 ) T^{-j}M_j(0) T − j M j ( 0 ) on [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] , so it is G 1 \mathcal{G}_1 G 1 applied to a vector of Euclidean norm at most ( 2 / 3 ) N 1 / 2 / T (2/3)N^{1/2}/T ( 2/3 ) N 1/2 / T , as M 0 ( 0 ) = 0 M_0(0)=0 M 0 ( 0 ) = 0 . Hence ∫ − T T ∣ G 0 ∣ = ∫ − 1 1 T ∣ G 0 ( T v ) ∣ d v ≤ c N / T \int_{-T}^{T}|G_0|=\int_{-1}^{1}T|G_0(Tv)|\,dv\le c_N/T ∫ − T T ∣ G 0 ∣ = ∫ − 1 1 T ∣ G 0 ( T v ) ∣ d v ≤ c N / T with c N = ( 2 / 3 ) N 1 / 2 ∥ G 1 ∥ c_N=(2/3)N^{1/2}\|\mathcal{G}_1\| c N = ( 2/3 ) N 1/2 ∥ G 1 ∥ , the operator norm from R N \mathbb{R}^N R N to L 1 [ − 1 , 1 ] L^1[-1,1] L 1 [ − 1 , 1 ] . Fix T = T N = max ( 1 , 8 c N ) T=T_N=\max(1,8c_N) T = T N = max ( 1 , 8 c N ) , so that ∫ ∣ G 0 ∣ ≤ 1 / 8 \int|G_0|\le1/8 ∫ ∣ G 0 ∣ ≤ 1/8 , and let B N = sup [ − T , T ] ∣ G 0 ∣ + 1 B_N=\sup_{[-T,T]}|G_0|+1 B N = sup [ − T , T ] ∣ G 0 ∣ + 1 .
The polynomials G w = G T [ M ( w ) ] G_w=\mathcal{G}_T[M(w)] G w = G T [ M ( w )] converge to G 0 G_0 G 0 uniformly on [ − T , T ] [-T,T] [ − T , T ] . Choose w N > 0 w_N>0 w N > 0 so small that for w ≤ w N w\le w_N w ≤ w N the following hold. First, ∫ ∣ G w ∣ ≤ 1 / 4 \int|G_w|\le1/4 ∫ ∣ G w ∣ ≤ 1/4 and sup ∣ G w ∣ ≤ B N \sup|G_w|\le B_N sup ∣ G w ∣ ≤ B N . Next, T w ≤ r 0 Tw\le r_0 T w ≤ r 0 , min ( p , q ) ≥ p ( x 0 ) / 2 \min(p,q)\ge p(x_0)/2 min ( p , q ) ≥ p ( x 0 ) /2 on [ x 0 − T w , x 0 + T w ] [x_0-Tw,x_0+Tw] [ x 0 − T w , x 0 + T w ] and ℓ 0 w B N ≤ p ( x 0 ) / 2 \ell_0wB_N\le p(x_0)/2 ℓ 0 w B N ≤ p ( x 0 ) /2 . Finally, e > 0 e>0 e > 0 on ( x 0 , x 0 + w ) (x_0,x_0+w) ( x 0 , x 0 + w ) , e < 0 e<0 e < 0 on ( x 0 − w , x 0 ) (x_0-w,x_0) ( x 0 − w , x 0 ) , and both ∫ 0 w e ( x 0 + t ) d t \int_0^w e(x_0+t)\,dt ∫ 0 w e ( x 0 + t ) d t and − ∫ − w 0 e ( x 0 + t ) d t -\int_{-w}^0e(x_0+t)\,dt − ∫ − w 0 e ( x 0 + t ) d t lie between 3 ℓ 0 w 2 / 8 3\ell_0w^2/8 3 ℓ 0 w 2 /8 and 5 ℓ 0 w 2 / 8 5\ell_0w^2/8 5 ℓ 0 w 2 /8 , which is possible because both equal ℓ 0 w 2 { 1 / 2 + o ( 1 ) } \ell_0w^2\{1/2+o(1)\} ℓ 0 w 2 { 1/2 + o ( 1 )} .
Let a P = e 1 ( x 0 , x 0 + w ) a_P=e1_{(x_0,x_0+w)} a P = e 1 ( x 0 , x 0 + w ) , a Q = − e 1 ( x 0 − w , x 0 ) a_Q=-e1_{(x_0-w,x_0)} a Q = − e 1 ( x 0 − w , x 0 ) , g ( x ) = ℓ 0 w G w ( ( x − x 0 ) / w ) 1 { ∣ x − x 0 ∣ ≤ T w } g(x)=\ell_0wG_w((x-x_0)/w)1_{\{|x-x_0|\le Tw\}} g ( x ) = ℓ 0 w G w (( x − x 0 ) / w ) 1 { ∣ x − x 0 ∣ ≤ T w } , and P ′ = P ∧ Q + ( a P − g − ) d x P'=P\wedge Q+(a_P-g_-)dx P ′ = P ∧ Q + ( a P − g − ) d x , Q ′ = P ∧ Q + ( a Q − g + ) d x Q'=P\wedge Q+(a_Q-g_+)dx Q ′ = P ∧ Q + ( a Q − g + ) d x . As ∣ g ∣ ≤ ℓ 0 w B N ≤ min ( p , q ) |g|\le\ell_0wB_N\le\min(p,q) ∣ g ∣ ≤ ℓ 0 w B N ≤ min ( p , q ) where g ≠ 0 g\ne0 g = 0 , both measures are nonnegative, and P ′ ≤ P ∧ Q + ( p − q ) + d x = P P'\le P\wedge Q+(p-q)_+dx=P P ′ ≤ P ∧ Q + ( p − q ) + d x = P , Q ′ ≤ Q Q'\le Q Q ′ ≤ Q . Their difference is ν = ( e 1 ( x 0 − w , x 0 + w ) + g ) d x \nu=(e1_{(x_0-w,x_0+w)}+g)\,dx ν = ( e 1 ( x 0 − w , x 0 + w ) + g ) d x , and for j < N j<N j < N
∫ ( x − x 0 ) j d ν = ℓ 0 w j + 2 { ∫ t j F w ( t ) d t + ∫ − T T t j G w ( t ) d t } = ℓ 0 w j + 2 { − M j ( w ) + M j ( w ) } = 0. \begin{aligned}
\int(x-x_0)^j\,d\nu=\ell_0w^{j+2}\left\{\int t^jF_w(t)\,dt+\int_{-T}^{T}t^jG_w(t)\,dt\right\} \\
&=\ell_0w^{j+2}\{-M_j(w)+M_j(w)\}=0.
\end{aligned} ∫ ( x − x 0 ) j d ν = ℓ 0 w j + 2 { ∫ t j F w ( t ) d t + ∫ − T T t j G w ( t ) d t } = ℓ 0 w j + 2 { − M j ( w ) + M j ( w )} = 0.
The case j = 0 j=0 j = 0 says that the masses agree, and they equal 1 − α ⋆ + ϵ ( w ) 1-\alpha^\star+\epsilon(w) 1 − α ⋆ + ϵ ( w ) with ϵ ( w ) = ∫ a P − ∫ g − \epsilon(w)=\int a_P-\int g_- ϵ ( w ) = ∫ a P − ∫ g − . As ∫ ∣ g ∣ = ℓ 0 w 2 ∫ ∣ G w ∣ ≤ ℓ 0 w 2 / 4 \int|g|=\ell_0w^2\int|G_w|\le\ell_0w^2/4 ∫ ∣ g ∣ = ℓ 0 w 2 ∫ ∣ G w ∣ ≤ ℓ 0 w 2 /4 , ϵ ( w ) ≥ 3 ℓ 0 w 2 / 8 − ℓ 0 w 2 / 4 = ℓ 0 w 2 / 8 \epsilon(w)\ge3\ell_0w^2/8-\ell_0w^2/4=\ell_0w^2/8 ϵ ( w ) ≥ 3 ℓ 0 w 2 /8 − ℓ 0 w 2 /4 = ℓ 0 w 2 /8 and ∣ ν ∣ ≤ 5 ℓ 0 w 2 / 4 + ℓ 0 w 2 / 4 ≤ 2 ℓ 0 w 2 |\nu|\le5\ell_0w^2/4+\ell_0w^2/4\le2\ell_0w^2 ∣ ν ∣ ≤ 5 ℓ 0 w 2 /4 + ℓ 0 w 2 /4 ≤ 2 ℓ 0 w 2 . The support of ν \nu ν lies in [ x 0 − T w , x 0 + T w ] [x_0-Tw,x_0+Tw] [ x 0 − T w , x 0 + T w ] because T ≥ 1 T\ge1 T ≥ 1 .
For the bounds, w = ( 8 ϵ / ℓ 0 ) 1 / 2 ≤ w N w=(8\epsilon/\ell_0)^{1/2}\le w_N w = ( 8 ϵ / ℓ 0 ) 1/2 ≤ w N gives ϵ ≤ ϵ ( w ) \epsilon\le\epsilon(w) ϵ ≤ ϵ ( w ) , and D ‾ \overline{D} D is nonincreasing, so D ‾ α ⋆ − ϵ ≤ D ‾ α ⋆ − ϵ ( w ) ≤ ∥ ∫ φ d ν ∥ H \overline{D}_{\alpha^\star-\epsilon}\le\overline{D}_{\alpha^\star-\epsilon(w)}\le\|\int\varphi\,d\nu\|_{\mathcal{H}} D α ⋆ − ϵ ≤ D α ⋆ − ϵ ( w ) ≤ ∥ ∫ φ d ν ∥ H . By (S4.4) and (S4.6) with W = T w W=Tw W = T w , in case (a)
∥ ∫ φ d ν ∥ H 2 ≤ ( 2 π ) − 1 C ∣ ν ∣ 2 ∫ min { 1 , ( ∣ ξ ∣ T w ) 2 N / N ! 2 } ∣ ξ ∣ − 2 s d ξ = ( 2 π ) − 1 C ∣ ν ∣ 2 ( T w ) 2 s − 1 I N , s , \left\|\int\varphi\,d\nu\right\|_{\mathcal{H}}^2\le(2\pi)^{-1}C|\nu|^2\int\min\{1,(|\xi|Tw)^{2N}/N!^2\}|\xi|^{-2s}\,d\xi
=(2\pi)^{-1}C|\nu|^2(Tw)^{2s-1}I_{N,s}, ∫ φ d ν H 2 ≤ ( 2 π ) − 1 C ∣ ν ∣ 2 ∫ min { 1 , ( ∣ ξ ∣ T w ) 2 N / N ! 2 } ∣ ξ ∣ − 2 s d ξ = ( 2 π ) − 1 C ∣ ν ∣ 2 ( T w ) 2 s − 1 I N , s ,
where I N , s I_{N,s} I N , s is finite because 2 N − 2 s > − 1 2N-2s>-1 2 N − 2 s > − 1 near 0 0 0 and 2 s > 1 2s>1 2 s > 1 at infinity. In case (b), ∥ ∫ φ d ν ∥ H 2 ≤ ∣ ν ∣ 2 ( T w ) 2 N M 2 N / N ! 2 \|\int\varphi\,d\nu\|_{\mathcal{H}}^2\le|\nu|^2(Tw)^{2N}M_{2N}/N!^2 ∥ ∫ φ d ν ∥ H 2 ≤ ∣ ν ∣ 2 ( T w ) 2 N M 2 N / N ! 2 . With ∣ ν ∣ ≤ 2 ℓ 0 w 2 |\nu|\le2\ell_0w^2 ∣ ν ∣ ≤ 2 ℓ 0 w 2 and w 2 = 8 ϵ / ℓ 0 w^2=8\epsilon/\ell_0 w 2 = 8 ϵ / ℓ 0 these are the bounds. For the Gaussian kernel, M 2 N = ( − 1 ) N k ( 2 N ) ( 0 ) = ( 2 N − 1 ) ! ! σ − 2 N M_{2N}=(-1)^Nk^{(2N)}(0)=(2N-1)!!\sigma^{-2N} M 2 N = ( − 1 ) N k ( 2 N ) ( 0 ) = ( 2 N − 1 )!! σ − 2 N .
Proof of Proposition 5.5. For the lower bound, ( p − q ) ( x ) / ( x − x 0 ) (p-q)(x)/(x-x_0) ( p − q ) ( x ) / ( x − x 0 ) is continuous near x 0 x_0 x 0 with limit ℓ 0 > 0 \ell_0>0 ℓ 0 > 0 , so for some w 0 ≤ 1 w_0\le1 w 0 ≤ 1 and ℓ < ∞ \ell<\infty ℓ < ∞ , ∣ p − q ∣ ( x ) ≤ ℓ ∣ x − x 0 ∣ |p-q|(x)\le\ell|x-x_0| ∣ p − q ∣ ( x ) ≤ ℓ ∣ x − x 0 ∣ for ∣ x − x 0 ∣ ≤ w 0 |x-x_0|\le w_0 ∣ x − x 0 ∣ ≤ w 0 , and Corollary S4.11, second case, applies with r = 1 r=1 r = 1 , since k ^ 0 ≥ c ( 1 + ξ 2 ) − s \widehat{k}_0\ge c(1+\xi^2)^{-s} k 0 ≥ c ( 1 + ξ 2 ) − s with s > 1 / 2 = d / 2 s>1/2=d/2 s > 1/2 = d /2 . For the upper bound, Proposition S4.15(a) with any N > s − 1 / 2 N>s-1/2 N > s − 1/2 applies, and D α ⋆ − ϵ ≤ D α ⋆ − ϵ / ( 1 − α ⋆ ) D_{\alpha^\star-\epsilon}\le D_{\alpha^\star-\epsilon}/(1-\alpha^\star) D α ⋆ − ϵ ≤ D α ⋆ − ϵ / ( 1 − α ⋆ ) . For s < 3 / 2 s<3/2 s < 3/2 and α ⋆ < 1 \alpha^\star<1 α ⋆ < 1 , Proposition S4.14 with r = 1 r=1 r = 1 already gives the upper bound, without p ( x 0 ) > 0 p(x_0)>0 p ( x 0 ) > 0 .
The converse
For a version of the analytic baseline run with the larger threshold τ S \tau^S τ S of (S2.1) alone, an upper bound on the path gives a lower bound on the error. For τ P \tau^P τ P , the threshold the baseline uses, no such converse is known.
Proposition S4.16 (The margin governs the rate). Let (A1) and (A2) of Assumption 2.1 hold, let α ⋆ < 1 \alpha^\star<1 α ⋆ < 1 and 0 < δ < δ ′ < 1 0<\delta<\delta'<1 0 < δ < δ ′ < 1 , let α ^ a n S \widehat{\alpha}^{S}_{\mathrm{an}} α an S be (14) computed with the threshold τ S ( ⋅ , δ ) \tau^S(\cdot,\delta) τ S ( ⋅ , δ ) , and
put g n , m = Δ ϕ { ( 1 / n + 1 / m ) / 2 } 1 / 2 { log 1 / 2 ( 1 / δ ) − log 1 / 2 ( 1 / δ ′ ) } g_{n,m}=\Delta_{\phi}\{(1/n+1/m)/2\}^{1/2}\{\log^{1/2}(1/\delta)-\log^{1/2}(1/\delta')\} g n , m = Δ ϕ {( 1/ n + 1/ m ) /2 } 1/2 { log 1/2 ( 1/ δ ) − log 1/2 ( 1/ δ ′ )} . Then, with probability at least 1 − δ ′ 1-\delta' 1 − δ ′ ,
α ⋆ − α ^ a n S ≥ sup { ϵ ∈ [ 0 , α ⋆ ] : D α ⋆ − ϵ ( P , Q ) ≤ g n , m } , \alpha^\star-\widehat{\alpha}^{\mathrm{S}}_{\mathrm{an}}\ge\sup\{\epsilon\in[0,\alpha^\star]:D_{\alpha^\star-\epsilon}(P,Q)\le g_{n,m}\}, α ⋆ − α an S ≥ sup { ϵ ∈ [ 0 , α ⋆ ] : D α ⋆ − ϵ ( P , Q ) ≤ g n , m } ,
a set that contains 0 0 0 , since the path vanishes at α ⋆ \alpha^\star α ⋆ .
Proof of Proposition S4.16. On the event where the statistic exceeds the path by at most τ n , m S ( ⋅ , δ ′ ) \tau^{\mathrm{S}}_{n,m}(\cdot,\delta') τ n , m S ( ⋅ , δ ′ ) , every level at which the path lies below the gap between the thresholds at δ \delta δ and at δ ′ \delta' δ ′ is accepted. Let E + E^+ E + be the event of Theorem S2.1 at level δ ′ \delta' δ ′ , of probability at least 1 − δ ′ 1-\delta' 1 − δ ′ . On E + E^+ E + , for every ϵ ∈ [ 0 , α ⋆ ] \epsilon\in[0,\alpha^\star] ϵ ∈ [ 0 , α ⋆ ] , D ^ α ⋆ − ϵ ≤ D α ⋆ − ϵ + τ n , m S ( α ⋆ − ϵ , δ ′ ) \widehat{D}_{\alpha^\star-\epsilon}\le D_{\alpha^\star-\epsilon}+\tau^{\mathrm{S}}_{n,m}(\alpha^\star-\epsilon,\delta') D α ⋆ − ϵ ≤ D α ⋆ − ϵ + τ n , m S ( α ⋆ − ϵ , δ ′ ) . With β = ( 1 − α ⋆ + ϵ ) − 1 ≥ 1 \beta=(1-\alpha^\star+\epsilon)^{-1}\ge1 β = ( 1 − α ⋆ + ϵ ) − 1 ≥ 1 ,
τ n , m S ( α ⋆ − ϵ , δ ) − τ n , m S ( α ⋆ − ϵ , δ ′ ) = β Δ ϕ { ( 1 / n + 1 / m ) / 2 } 1 / 2 { log 1 / 2 ( 1 / δ ) − log 1 / 2 ( 1 / δ ′ ) } ≥ g n , m . \begin{aligned}
\tau^{\mathrm{S}}_{n,m}(\alpha^\star-\epsilon,\delta)-\tau^{\mathrm{S}}_{n,m}(\alpha^\star-\epsilon,\delta') \\
&=\beta\Delta_{\phi}\{(1/n+1/m)/2\}^{1/2}\{\log^{1/2}(1/\delta)-\log^{1/2}(1/\delta')\}\ge g_{n,m}.
\end{aligned} τ n , m S ( α ⋆ − ϵ , δ ) − τ n , m S ( α ⋆ − ϵ , δ ′ ) = β Δ ϕ {( 1/ n + 1/ m ) /2 } 1/2 { log 1/2 ( 1/ δ ) − log 1/2 ( 1/ δ ′ )} ≥ g n , m .
So if D α ⋆ − ϵ ≤ g n , m D_{\alpha^\star-\epsilon}\le g_{n,m} D α ⋆ − ϵ ≤ g n , m , then D ^ α ⋆ − ϵ ≤ τ n , m S ( α ⋆ − ϵ , δ ) \widehat{D}_{\alpha^\star-\epsilon}\le\tau^{\mathrm{S}}_{n,m}(\alpha^\star-\epsilon,\delta) D α ⋆ − ϵ ≤ τ n , m S ( α ⋆ − ϵ , δ ) , the level α ⋆ − ϵ \alpha^\star-\epsilon α ⋆ − ϵ is accepted, and α ^ a n S ≤ α ⋆ − ϵ \widehat{\alpha}^{\mathrm{S}}_{\mathrm{an}}\le\alpha^\star-\epsilon α an S ≤ α ⋆ − ϵ by the definition (14) . The event does not depend on ϵ \epsilon ϵ , so this holds for all such ϵ \epsilon ϵ at once.
Under the hypotheses of Proposition 5.5, let ϵ 0 > 0 \epsilon_0>0 ϵ 0 > 0 be such that D α ⋆ − ϵ ≤ c 2 ϵ ( 2 s + 3 ) / 4 D_{\alpha^\star-\epsilon}\le c_2\epsilon^{(2s+3)/4} D α ⋆ − ϵ ≤ c 2 ϵ ( 2 s + 3 ) /4 for ϵ ≤ ϵ 0 \epsilon\le\epsilon_0 ϵ ≤ ϵ 0 ; then on E + E^+ E + , α ⋆ − α ^ a n S ≥ min { α ⋆ , ϵ 0 , ( g n , m / c 2 ) 4 / ( 2 s + 3 ) } \alpha^\star-\widehat{\alpha}^{\mathrm{S}}_{\mathrm{an}}\ge\min\{\alpha^\star,\epsilon_0,(g_{n,m}/c_2)^{4/(2s+3)}\} α ⋆ − α an S ≥ min { α ⋆ , ϵ 0 , ( g n , m / c 2 ) 4/ ( 2 s + 3 ) } , of order ( n ∧ m ) − 2 / ( 2 s + 3 ) (n\wedge m)^{-2/(2s+3)} ( n ∧ m ) − 2/ ( 2 s + 3 ) since 1 / n + 1 / m ≥ 1 / ( n ∧ m ) 1/n+1/m\ge1/(n\wedge m) 1/ n + 1/ m ≥ 1/ ( n ∧ m ) . Under the hypotheses of Proposition 5.6, the bound D α ⋆ − ϵ ≤ C j ϵ j D_{\alpha^\star-\epsilon}\le C_j\epsilon^j D α ⋆ − ϵ ≤ C j ϵ j gives α ⋆ − α ^ a n S ≥ c ( n ∧ m ) − 1 / ( 2 j ) \alpha^\star-\widehat{\alpha}^{\mathrm{S}}_{\mathrm{an}}\ge c(n\wedge m)^{-1/(2j)} α ⋆ − α an S ≥ c ( n ∧ m ) − 1/ ( 2 j ) on E + E^+ E + for every j j j and n ∧ m n\wedge m n ∧ m large, so the error is not O ( ( n ∧ m ) − a ) O((n\wedge m)^{-a}) O (( n ∧ m ) − a ) for any a > 0 a>0 a > 0 .
The excess of the population ramp
This subsection proves Proposition 5.10. Its arguments use α ⋆ < 1 \alpha^\star<1 α ⋆ < 1 only in part (ii) of the proposition: Lemmas S4.17 and S4.18 and parts (i) and (iii) hold for any pair of probability measures with α < d T V ( P , Q ) ≤ 1 \alpha<d_{\mathrm{TV}}(P,Q)\le1 α < d TV ( P , Q ) ≤ 1 , which § 9.4.12 uses for empirical laws. Fix α < α ⋆ \alpha<\alpha^\star α < α ⋆ , with D ‾ \overline{D} D and C ‾ α \overline{C}_{\alpha} C α as in Section S4.2; D ‾ α > 0 \overline{D}_{\alpha}>0 D α > 0 by (7) . By Lemma 2.3 there are parts P ′ P' P ′ of P P P and Q ′ Q' Q ′ of Q Q Q of mass 1 − α 1-\alpha 1 − α such that d = μ P ′ − μ Q ′ d=\mu_{P'}-\mu_{Q'} d = μ P ′ − μ Q ′ is the element of minimal norm of C ‾ α ( P ) − C ‾ α ( Q ) \overline{C}_{\alpha}(P)-\overline{C}_{\alpha}(Q) C α ( P ) − C α ( Q ) , with ∥ d ∥ H = D ‾ α \lVert d\rVert_{\mathcal{H}}=\overline{D}_{\alpha} ∥ d ∥ H = D α , and f ⋆ = d / D ‾ α f^\star=d/\overline{D}_{\alpha} f ⋆ = d / D α is the witness of Lemma S3.4, with the same cut points t ⋆ t^\star t ⋆ and u ⋆ u^\star u ⋆ .
Lemma S4.17 (Bathtub for the closest parts). Every measure P ′ ′ ≤ P P''\le P P ′′ ≤ P satisfies ∫ f ⋆ d P ′ ′ ≥ ∫ f ⋆ d P ′ + t ⋆ { P ′ ′ ( X ) − ( 1 − α ) } \int f^\star\,dP''\ge\int f^\star\,dP'+t^\star\{P''(\mathcal{X})-(1-\alpha)\} ∫ f ⋆ d P ′′ ≥ ∫ f ⋆ d P ′ + t ⋆ { P ′′ ( X ) − ( 1 − α )} , and every Q ′ ′ ≤ Q Q''\le Q Q ′′ ≤ Q satisfies ∫ f ⋆ d Q ′ ′ ≤ ∫ f ⋆ d Q ′ + u ⋆ { Q ′ ′ ( X ) − ( 1 − α ) } \int f^\star\,dQ''\le\int f^\star\,dQ'+u^\star\{Q''(\mathcal{X})-(1-\alpha)\} ∫ f ⋆ d Q ′′ ≤ ∫ f ⋆ d Q ′ + u ⋆ { Q ′′ ( X ) − ( 1 − α )} . Moreover P ′ = P P'=P P ′ = P on { f ⋆ < t ⋆ } \{f^\star<t^\star\} { f ⋆ < t ⋆ } , P ′ ( { f ⋆ > t ⋆ } ) = 0 P'(\{f^\star>t^\star\})=0 P ′ ({ f ⋆ > t ⋆ }) = 0 , Q ′ = Q Q'=Q Q ′ = Q on { f ⋆ > u ⋆ } \{f^\star>u^\star\} { f ⋆ > u ⋆ } and Q ′ ( { f ⋆ < u ⋆ } ) = 0 Q'(\{f^\star<u^\star\})=0 Q ′ ({ f ⋆ < u ⋆ }) = 0 .
Proof. As d d d has minimal norm in a convex set, ⟨ d , c − d ⟩ H ≥ 0 \langle d,c-d\rangle_{\mathcal{H}}\ge0 ⟨ d , c − d ⟩ H ≥ 0 for every c c c in it. With c = μ P ′ ′ − μ Q ′ c=\mu_{P''}-\mu_{Q'} c = μ P ′′ − μ Q ′ for a part P ′ ′ P'' P ′′ of P P P of mass 1 − α 1-\alpha 1 − α and the reproducing property, P ′ P' P ′ minimizes ∫ f ⋆ d P ′ ′ \int f^\star\,dP'' ∫ f ⋆ d P ′′ over these parts; likewise Q ′ Q' Q ′ maximizes ∫ f ⋆ d Q ′ ′ \int f^\star\,dQ'' ∫ f ⋆ d Q ′′ over the parts of Q Q Q of mass 1 − α 1-\alpha 1 − α . Suppose ( P − P ′ ) ( { f ⋆ < t ⋆ } ) > 0 (P-P')(\{f^\star<t^\star\})>0 ( P − P ′ ) ({ f ⋆ < t ⋆ }) > 0 . As t ⋆ t^\star t ⋆ is a ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile, P ( { f ⋆ < t ⋆ } ) ≤ 1 − α P(\{f^\star<t^\star\})\le1-\alpha P ({ f ⋆ < t ⋆ }) ≤ 1 − α , so P ′ ( { f ⋆ ≥ t ⋆ } ) = ( 1 − α ) − P ′ ( { f ⋆ < t ⋆ } ) ≥ ( P − P ′ ) ( { f ⋆ < t ⋆ } ) > 0 P'(\{f^\star\ge t^\star\})=(1-\alpha)-P'(\{f^\star<t^\star\})\ge(P-P')(\{f^\star<t^\star\})>0 P ′ ({ f ⋆ ≥ t ⋆ }) = ( 1 − α ) − P ′ ({ f ⋆ < t ⋆ }) ≥ ( P − P ′ ) ({ f ⋆ < t ⋆ }) > 0 . Moving a small mass from P ′ P' P ′ on { f ⋆ ≥ t ⋆ } \{f^\star\ge t^\star\} { f ⋆ ≥ t ⋆ } to P − P ′ P-P' P − P ′ on { f ⋆ < t ⋆ } \{f^\star<t^\star\} { f ⋆ < t ⋆ } gives another part of mass 1 − α 1-\alpha 1 − α with a smaller integral of f ⋆ f^\star f ⋆ , a contradiction; so P ′ = P P'=P P ′ = P on { f ⋆ < t ⋆ } \{f^\star<t^\star\} { f ⋆ < t ⋆ } . If P ′ ( { f ⋆ > t ⋆ } ) > 0 P'(\{f^\star>t^\star\})>0 P ′ ({ f ⋆ > t ⋆ }) > 0 , then, as P ( { f ⋆ ≤ t ⋆ } ) ≥ 1 − α P(\{f^\star\le t^\star\})\ge1-\alpha P ({ f ⋆ ≤ t ⋆ }) ≥ 1 − α , the measure P − P ′ P-P' P − P ′ has at least that mass on { f ⋆ = t ⋆ } \{f^\star=t^\star\} { f ⋆ = t ⋆ } , and moving mass there from { f ⋆ > t ⋆ } \{f^\star>t^\star\} { f ⋆ > t ⋆ } lowers the integral; so P ′ ( { f ⋆ > t ⋆ } ) = 0 P'(\{f^\star>t^\star\})=0 P ′ ({ f ⋆ > t ⋆ }) = 0 . The claims on Q ′ Q' Q ′ follow in the same way from Q ( { f ⋆ > u ⋆ } ) ≤ 1 − α ≤ Q ( { f ⋆ ≥ u ⋆ } ) Q(\{f^\star>u^\star\})\le1-\alpha\le Q(\{f^\star\ge u^\star\}) Q ({ f ⋆ > u ⋆ }) ≤ 1 − α ≤ Q ({ f ⋆ ≥ u ⋆ }) .
For the inequality, let P ′ ′ ≤ P P''\le P P ′′ ≤ P have any mass and λ = P ′ ′ − P ′ \lambda=P''-P' λ = P ′′ − P ′ . On { f ⋆ < t ⋆ } \{f^\star<t^\star\} { f ⋆ < t ⋆ } , λ = P ′ ′ − P ≤ 0 \lambda=P''-P\le0 λ = P ′′ − P ≤ 0 and f ⋆ < t ⋆ f^\star<t^\star f ⋆ < t ⋆ ; on { f ⋆ > t ⋆ } \{f^\star>t^\star\} { f ⋆ > t ⋆ } , λ = P ′ ′ ≥ 0 \lambda=P''\ge0 λ = P ′′ ≥ 0 and f ⋆ > t ⋆ f^\star>t^\star f ⋆ > t ⋆ . So ∫ A f ⋆ d λ ≥ t ⋆ λ ( A ) \int_A f^\star\,d\lambda\ge t^\star\lambda(A) ∫ A f ⋆ d λ ≥ t ⋆ λ ( A ) for each of the sets A = { f ⋆ < t ⋆ } A = \{f^\star< t^\star\} A = { f ⋆ < t ⋆ } , { f ⋆ = t ⋆ } \{f^\star= t^\star\} { f ⋆ = t ⋆ } and { f ⋆ > t ⋆ } \{f^\star> t^\star\} { f ⋆ > t ⋆ } , and adding gives ∫ f ⋆ d λ ≥ t ⋆ λ ( X ) = t ⋆ { P ′ ′ ( X ) − ( 1 − α ) } \int f^\star\,d\lambda\ge t^\star\lambda(\mathcal{X}) = t^\star\{P^{\prime\prime}(\mathcal{X})-(1-\alpha)\} ∫ f ⋆ d λ ≥ t ⋆ λ ( X ) = t ⋆ { P ′′ ( X ) − ( 1 − α )} . The bound for Q ′ ′ Q^{\prime\prime} Q ′′ is the same argument with the inequalities reversed.
Lemma S4.18 (Excess identity).
E P ψ ⋆ − E Q ψ ⋆ − α = D ‾ α + ∫ ( u ⋆ − f ⋆ ) + d P + ∫ ( f ⋆ − t ⋆ ) + d Q t ⋆ − u ⋆ . \mathbb{E}_P\psi^\star-\mathbb{E}_Q\psi^\star-\alpha=\frac{\overline{D}_\alpha+\int(u^\star-f^\star)_+\,dP+\int(f^\star-t^\star)_+\,dQ}{t^\star-u^\star}. E P ψ ⋆ − E Q ψ ⋆ − α = t ⋆ − u ⋆ D α + ∫ ( u ⋆ − f ⋆ ) + d P + ∫ ( f ⋆ − t ⋆ ) + d Q . Proof. By Lemma S4.17, P − P ′ P-P^\prime P − P ′ has mass α \alpha α and is carried by { f ⋆ ≥ t ⋆ } \{f^\star\ge t^\star\} { f ⋆ ≥ t ⋆ } , where ψ ⋆ = 1 \psi^\star=1 ψ ⋆ = 1 , and Q − Q ′ Q-Q^\prime Q − Q ′ is carried by { f ⋆ ≤ u ⋆ } \{f^\star\le u^\star\} { f ⋆ ≤ u ⋆ } , where ψ ⋆ = 0 \psi^\star=0 ψ ⋆ = 0 . Hence the left side is ∫ ψ ⋆ d ( P ′ − Q ′ ) \int\psi^\star\,d(P^\prime-Q^\prime) ∫ ψ ⋆ d ( P ′ − Q ′ ) . With the clipped witness f ~ = ( f ⋆ ∨ u ⋆ ) ∧ t ⋆ = ( f ~ − u ⋆ ) / ( t ⋆ − u ⋆ ) \widetilde{f}=(f^\star\vee u^\star)\wedge t^\star=(\widetilde{f}-u^\star)/(t^\star-u^\star) f = ( f ⋆ ∨ u ⋆ ) ∧ t ⋆ = ( f − u ⋆ ) / ( t ⋆ − u ⋆ ) , and as P ′ P^\prime P ′ and Q ′ Q^\prime Q ′ have the same mass, the left side is ∫ f ~ d ( P ′ − Q ′ ) / ( t ⋆ − u ⋆ ) \int\widetilde{f}\,d(P^\prime-Q^\prime)/(t^\star-u^\star) ∫ f d ( P ′ − Q ′ ) / ( t ⋆ − u ⋆ ) . On { f ⋆ ≤ t ⋆ } \{f^\star\le t^\star\} { f ⋆ ≤ t ⋆ } , which carries P ′ P^\prime P ′ , f ~ = f ⋆ + ( u ⋆ − f ⋆ ) + \widetilde{f}=f^\star+(u^\star-f^\star)_+ f = f ⋆ + ( u ⋆ − f ⋆ ) + , and on { f ⋆ ≥ u ⋆ } \{f^\star\ge u^\star\} { f ⋆ ≥ u ⋆ } , which carries Q ′ Q^\prime Q ′ , f ~ = f ⋆ − ( f ⋆ − t ⋆ ) + \widetilde{f}=f^\star-(f^\star-t^\star)_+ f = f ⋆ − ( f ⋆ − t ⋆ ) + . So ∫ f ~ d ( P ′ − Q ′ ) = ⟨ f ⋆ , d ⟩ H + ∫ ( u ⋆ − f ⋆ ) + d P ′ + ∫ ( f ⋆ − t ⋆ ) + d Q ′ \int\widetilde{f}\,d(P^\prime-Q^\prime)=\langle f^\star,d\rangle_H+\int(u^\star-f^\star)_+\,dP^\prime+\int(f^\star-t^\star)_+\,dQ^\prime ∫ f d ( P ′ − Q ′ ) = ⟨ f ⋆ , d ⟩ H + ∫ ( u ⋆ − f ⋆ ) + d P ′ + ∫ ( f ⋆ − t ⋆ ) + d Q ′ , the first term is D ‾ α \overline{D}_\alpha D α , and P ′ P^\prime P ′ and Q ′ Q^\prime Q ′ may be replaced by P P P and Q Q Q in the other two, because P ′ = P P^\prime=P P ′ = P on { f ⋆ < u ⋆ } ⊆ { f ⋆ < t ⋆ } \{f^\star<u^\star\}\subseteq\{f^\star<t^\star\} { f ⋆ < u ⋆ } ⊆ { f ⋆ < t ⋆ } and Q ′ = Q Q^\prime=Q Q ′ = Q on { f ⋆ > t ⋆ } ⊆ { f ⋆ > u ⋆ } \{f^\star>t^\star\}\subseteq\{f^\star>u^\star\} { f ⋆ > t ⋆ } ⊆ { f ⋆ > u ⋆ } .
The two integrals are overshoots of the witness beyond its cut points, each against the law that is not trimmed there.
Proof of Proposition 5.10. The first inequality of (i) is Lemma S4.18, the integrals being nonnegative. For the second, let α ′ ∈ [ 0 , 1 ) \alpha^\prime\in[0,1) α ′ ∈ [ 0 , 1 ) . As f ⋆ f^\star f ⋆ has unit norm, the Cauchy–Schwarz inequality gives D ‾ α ′ ≥ ∫ f ⋆ d P ′ ′ − ∫ f ⋆ d Q ′ ′ \overline{D}_{\alpha^\prime}\ge\int f^\star\,dP^{\prime\prime}-\int f^\star\,dQ^{\prime\prime} D α ′ ≥ ∫ f ⋆ d P ′′ − ∫ f ⋆ d Q ′′ for the closest parts P ′ ′ P^{\prime\prime} P ′′ of P P P and Q ′ ′ Q^{\prime\prime} Q ′′ of Q Q Q of mass 1 − α ′ 1-\alpha^\prime 1 − α ′ , and by Lemma S4.17 the right side is at least ∫ f ⋆ d ( P ′ − Q ′ ) − ( t ⋆ − u ⋆ ) ( α ′ − α ) = D ‾ α − ( t ⋆ − u ⋆ ) ( α ′ − α ) \int f^\star\,d(P^\prime-Q^\prime)-(t^\star-u^\star)(\alpha^\prime-\alpha)=\overline{D}_\alpha-(t^\star-u^\star)(\alpha^\prime-\alpha) ∫ f ⋆ d ( P ′ − Q ′ ) − ( t ⋆ − u ⋆ ) ( α ′ − α ) = D α − ( t ⋆ − u ⋆ ) ( α ′ − α ) .
For (ii), let α = α ⋆ − ϵ \alpha=\alpha^\star-\epsilon α = α ⋆ − ϵ with ϵ ≤ ϵ 0 / 2 \epsilon\le\epsilon_0/2 ϵ ≤ ϵ 0 /2 and take α ′ = α ⋆ − 2 ϵ \alpha^\prime=\alpha^\star-2\epsilon α ′ = α ⋆ − 2 ϵ in (i): t ⋆ − u ⋆ ≤ { D ‾ α ⋆ − 2 ϵ − D ‾ α ⋆ − ϵ } / ϵ ≤ D α ⋆ − 2 ϵ / ϵ ≤ c 2 ( 2 ϵ ) γ / ϵ t^\star-u^\star\le\{\overline{D}_{\alpha^\star-2\epsilon}-\overline{D}_{\alpha^\star-\epsilon}\}/\epsilon\le D_{\alpha^\star-2\epsilon}/\epsilon\le c_2(2\epsilon)^\gamma/\epsilon t ⋆ − u ⋆ ≤ { D α ⋆ − 2 ϵ − D α ⋆ − ϵ } / ϵ ≤ D α ⋆ − 2 ϵ / ϵ ≤ c 2 ( 2 ϵ ) γ / ϵ , while D ‾ α ⋆ − ϵ ≥ ( 1 − α ⋆ ) D α ⋆ − ϵ ≥ ( 1 − α ⋆ ) c 1 ϵ γ \overline{D}_{\alpha^\star-\epsilon}\ge(1-\alpha^\star)D_{\alpha^\star-\epsilon}\ge(1-\alpha^\star)c_1\epsilon^\gamma D α ⋆ − ϵ ≥ ( 1 − α ⋆ ) D α ⋆ − ϵ ≥ ( 1 − α ⋆ ) c 1 ϵ γ . The first inequality of (i) gives the bound. Proposition 5.5 gives the two-sided bound with γ = ( 2 s + 3 ) / 4 \gamma=(2s+3)/4 γ = ( 2 s + 3 ) /4 .
For (iii), write d ( x ) = ∫ k ( x , y ) d ν ( y ) d(x)=\int k(x,y)\,d\nu(y) d ( x ) = ∫ k ( x , y ) d ν ( y ) with ν = P ′ − Q ′ \nu=P^\prime-Q^\prime ν = P ′ − Q ′ , a finite signed measure with ν ( R ) = 0 \nu(\mathbb{R})=0 ν ( R ) = 0 . Since ( 1 − σ 2 ∂ x 2 ) e − ∣ x ∣ / σ = 2 σ δ 0 (1-\sigma^2\partial_x^2)e^{-|x|/\sigma}=2\sigma\delta_0 ( 1 − σ 2 ∂ x 2 ) e − ∣ x ∣/ σ = 2 σ δ 0 in the sense of distributions, d − σ 2 d ′ ′ = 2 σ ν d-\sigma^2d^{\prime\prime}=2\sigma\nu d − σ 2 d ′′ = 2 σ ν . The function d d d is continuous and tends to 0 0 0 at ± ∞ \pm\infty ± ∞ , and it is not zero, as ∥ d ∥ H = D ‾ 0 \lVert d\rVert_H=\overline{D}_0 ∥ d ∥ H = D 0 ; by Fubini’s theorem ∫ d ( x ) d x = 2 σ ν ( R ) = 0 \int d(x)\,dx=2\sigma\nu(\mathbb{R})=0 ∫ d ( x ) d x = 2 σ ν ( R ) = 0 , so d d d takes positive values and attains its maximum M > 0 M>0 M > 0 at some z 0 z_0 z 0 . Suppose that M > D ‾ α M>\overline{D}_\alpha M > D α . The open set O = { f ⋆ > t ⋆ } O=\{f^\star>t^\star\} O = { f ⋆ > t ⋆ } contains z 0 z_0 z 0 , and on it P ′ = 0 P^\prime=0 P ′ = 0 and Q ′ = Q Q^\prime=Q Q ′ = Q by Lemma S4.17, as t ⋆ > u ⋆ t^\star>u^\star t ⋆ > u ⋆ , so ν = − Q ≤ 0 \nu=-Q\le0 ν = − Q ≤ 0 on O O O . On an open interval I ∋ z 0 I\ni z_0 I ∋ z 0 inside O O O on which d > M / 2 d>M/2 d > M /2 , the distribution σ 2 d ′ ′ = d − 2 σ ν \sigma^2d^{\prime\prime}=d-2\sigma\nu σ 2 d ′′ = d − 2 σ ν is at least M / 2 M/2 M /2 , so d ~ ( x ) = d ( x ) − M ( x − z 0 ) 2 / ( 4 σ 2 ) \widetilde{d}(x)=d(x)-M(x-z_0)^2/(4\sigma^2) d ( x ) = d ( x ) − M ( x − z 0 ) 2 / ( 4 σ 2 ) is convex on I I I . But 1 2 { d ~ ( z 0 + h ) + d ~ ( z 0 − h ) } ≤ d ( z 0 ) − M h 2 / ( 4 σ 2 ) < d ~ ( z 0 ) \frac12\{\widetilde{d}(z_0+h)+\widetilde{d}(z_0-h)\}\le d(z_0)-Mh^2/(4\sigma^2)<\widetilde{d}(z_0) 2 1 { d ( z 0 + h ) + d ( z 0 − h )} ≤ d ( z 0 ) − M h 2 / ( 4 σ 2 ) < d ( z 0 ) for small h > 0 h>0 h > 0 , a contradiction. Hence f ⋆ ≤ t ⋆ f^\star\le t^\star f ⋆ ≤ t ⋆ on R \mathbb{R} R , and the same argument at the minimum of d d d , where ν = P ≥ 0 \nu=P\ge0 ν = P ≥ 0 on { f ⋆ < u ⋆ } \{f^\star<u^\star\} { f ⋆ < u ⋆ } , gives f ⋆ ≥ u ⋆ f^\star\ge u^\star f ⋆ ≥ u ⋆ . Both overshoots in Lemma S4.18 vanish.
In (iii) the witness is therefore flat on the set it trims from each law, P ( { f ⋆ = t ⋆ } ) ≥ α P(\{f^\star=t^\star\})\ge\alpha P ({ f ⋆ = t ⋆ }) ≥ α and Q ( { f ⋆ = u ⋆ } ) ≥ α Q(\{f^\star=u^\star\})\ge\alpha Q ({ f ⋆ = u ⋆ }) ≥ α . The argument rests on k k k being the Green function of a second-order operator with a maximum principle.
Proof of Theorem 5.11
S4.12. Proof of Theorem 5.11. Theorem 5.11 is the following theorem with its constants absorbed in the O O O : as η ≤ 1 \eta\le1 η ≤ 1 , L n , m ≥ log ( n ∨ m ) L_{n,m}\ge\log(n\vee m) L n , m ≥ log ( n ∨ m ) , so ( log ( n ∨ m ) ) 1 / 4 L n , m 1 / 2 ≤ L n , m 3 / 4 (\log(n\vee m))^{1/4}L_{n,m}^{1/2}\le L_{n,m}^{3/4} ( log ( n ∨ m ) ) 1/4 L n , m 1/2 ≤ L n , m 3/4 and ( log ( n ∨ m ) ) 1 / 2 L n , m ≤ L n , m 3 / 2 (\log(n\vee m))^{1/2}L_{n,m}\le L_{n,m}^{3/2} ( log ( n ∨ m ) ) 1/2 L n , m ≤ L n , m 3/2 .
Theorem S4.19 (Theorem 5.11 with its constants). Let P , Q P,Q P , Q satisfy the hypotheses of Proposition 5.5 , let k ( x , y ) = e − ∣ x − y ∣ / σ k(x,y)=e^{-|x-y|/\sigma} k ( x , y ) = e − ∣ x − y ∣/ σ with σ > 0 \sigma>0 σ > 0 fixed in advance, and let n ∧ m ≥ 10 n\wedge m\ge10 n ∧ m ≥ 10 . Compute α ^ \widehat{\alpha} α at level δ \delta δ as in Proposition 4.4 , with the batches and fractions of § 4.2 , λ max = 1 2 \lambda_{\max}=\frac{1}{2} λ m a x = 2 1 , initial variance v 0 2 ≤ 4 v_0^2\le4 v 0 2 ≤ 4 in (S3.3) and the running variance floored at v min 2 ∈ ( 0 , 4 ] v_{\min}^2\in(0,4] v m i n 2 ∈ ( 0 , 4 ] , an exact minimizer of (10) at each level, and a grid of J J J levels in ( 0 , 1 ) (0,1) ( 0 , 1 ) fixed in advance whose mesh below α ⋆ \alpha^\star α ⋆ is Δ G \Delta_G Δ G , but with cut points that are genuine empirical quantiles: any ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile of the witness values at the X X X ’s and any α \alpha α -quantile of those at the Y Y Y ’s of the fitting batches, computed with or without the own terms. Let η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) , L δ = log ( 1 / δ ) L_\delta=\log(1/\delta) L δ = log ( 1/ δ ) and L n , m = log { ( n ∨ m ) / η } L_{n,m}=\log\{(n\vee m)/\eta\} L n , m = log {( n ∨ m ) / η } .
(i) If (17) holds for some r ⋆ ∈ ( 0 , 1 ] r_\star\in(0,1] r ⋆ ∈ ( 0 , 1 ] and c ⋆ > 0 c_\star>0 c ⋆ > 0 , then with probability at least 1 − δ − η 1-\delta-\eta 1 − δ − η ,
α ⋆ − Δ G − C ( log ( n ∨ m ) ) 1 / 4 L n , m 1 / 2 + v min 2 { L δ 1 / 2 + ( log ( 2 J / η ) ) 1 / 2 } ( n ∧ m ) 1 / 2 ≤ α ^ ≤ α ⋆ . \alpha^\star-\Delta_G-C\frac{(\log(n\vee m))^{1/4}L_{n,m}^{1/2}+v_{\min}^2\{L_\delta^{1/2}+(\log(2J/\eta))^{1/2}\}}{(n\wedge m)^{1/2}}\le\widehat{\alpha}\le\alpha^\star. α ⋆ − Δ G − C ( n ∧ m ) 1/2 ( log ( n ∨ m ) ) 1/4 L n , m 1/2 + v m i n 2 { L δ 1/2 + ( log ( 2 J / η ) ) 1/2 } ≤ α ≤ α ⋆ . (ii) If instead ( P + Q ) ( { x : ∣ x − x 0 ∣ > t } ) ≤ C ′ e − t / C ′ (P+Q)(\{x:|x-x_0|>t\})\le C'e^{-t/C'} ( P + Q ) ({ x : ∣ x − x 0 ∣ > t }) ≤ C ′ e − t / C ′ for all t > 0 t>0 t > 0 , then with probability at least 1 − δ − η 1-\delta-\eta 1 − δ − η ,
α ⋆ − Δ G − C [ { ( log ( n ∨ m ) ) 1 / 2 L n , m n ∧ m } 4 / 9 + L δ 1 / 2 + ( log ( 2 J / η ) ) 1 / 2 v min 2 ( n ∧ m ) 1 / 2 ] ≤ α ^ ≤ α ⋆ . \alpha^\star-\Delta_G-C\left[\left\{\frac{(\log(n\vee m))^{1/2}L_{n,m}}{n\wedge m}\right\}^{4/9}+\frac{L_\delta^{1/2}+(\log(2J/\eta))^{1/2}}{v_{\min}^2(n\wedge m)^{1/2}}\right]\le\widehat{\alpha}\le\alpha^\star. α ⋆ − Δ G − C [ { n ∧ m ( log ( n ∨ m ) ) 1/2 L n , m } 4/9 + v m i n 2 ( n ∧ m ) 1/2 L δ 1/2 + ( log ( 2 J / η ) ) 1/2 ] ≤ α ≤ α ⋆ .
Here C C C depends only on σ \sigma σ and on the pair through α ⋆ \alpha^\star α ⋆ , the constants of Proposition 5.5 with s = 1 s=1 s = 1 , the tail constant C ′ C' C ′ (that of P + Q P+Q P + Q in (ii)), and, in (i), c ⋆ c_\star c ⋆ , r ⋆ r_\star r ⋆ and the supremum of p + q p+q p + q on [ x 0 − r ⋆ , x 0 + r ⋆ ] [x_0-r_\star,x_0+r_\star] [ x 0 − r ⋆ , x 0 + r ⋆ ] , which is finite once r ⋆ r_\star r ⋆ is small enough.
The constant C C C degenerates when c ⋆ c_\star c ⋆ is small, as for narrow contaminations on a wide core, and it involves the constants c 1 c_1 c 1 , c 2 c_2 c 2 , ϵ 0 \epsilon_0 ϵ 0 of Proposition 5.5 , which come from limiting arguments (Corollary S4.11 and Proposition S4.15) and are not explicit; whether C C C is uniform over a natural class is open, and we return to it after Lemma S4.28. The theorem needs exact minimizers of (10) , as self-clipping (Lemma S4.21) is a first-order property whose survival under an inexact solve is open. In R d \mathbb{R}^d R d the margin that Theorem S4.10 gives a transversal crossing guarantees at best ( n ∧ m ) − 2 / ( d + 3 ) (n\wedge m)^{-2/(d+3)} ( n ∧ m ) − 2/ ( d + 3 ) , as a Sobolev kernel needs s > d / 2 s>d/2 s > d /2 , and the minimax rate is slower than parametric for L 1 L_1 L 1 -type functionals ([54 , 16 , 35 ] ). The simulation of Section S6.4 agrees with the rate, but its cut points are interpolated between order statistics, which the theorem does not cover, and its grid approaches the known α ⋆ \alpha^\star α ⋆ geometrically.
The proof rests on a property special to the Laplace kernel on the line: the fitted witness never leaves the band between its cut points, so the fitted ramp maximizes the ratio of empirical excess to norm over the functions of oscillation at most one (Lemmas S4.20 and S4.21). Comparing this ratio with the population path at the levels α ⋆ − ϵ \alpha^\star-\epsilon α ⋆ − ϵ and α ⋆ − 2 ϵ \alpha^\star-2\epsilon α ⋆ − 2 ϵ shows that the fitted ramp keeps a fixed fraction of ϵ \epsilon ϵ as excess, up to two fluctuation terms (Lemma S4.22), which we bound through the norm and the error of the function, localized near x 0 x_0 x 0 by (17) (Lemmas S4.23 to S4.25); a fixed-point argument closes the bound (Proposition S4.27), and the bets are those of Theorem S4.3. Rescaling the data by 1 / σ 1/\sigma 1/ σ leaves the witness values, cut points and ramps unchanged and preserves the hypotheses with rescaled constants, so we take σ = 1 \sigma=1 σ = 1 . The reproducing kernel Hilbert space of e − ∣ x − y ∣ e^{-|x-y|} e − ∣ x − y ∣ is the Sobolev space H 1 ( R ) H^1(\mathbb{R}) H 1 ( R ) with ∥ f ∥ H 2 = 1 2 ∫ ( f 2 + f ′ 2 ) \lVert f\rVert_{\mathcal{H}}^2=\frac{1}{2}\int(f^2+f'^2) ∥ f ∥ H 2 = 2 1 ∫ ( f 2 + f ′2 ) , since e − ∣ x ∣ e^{-|x|} e − ∣ x ∣ has Fourier transform 2 / ( 1 + ω 2 ) 2/(1+\omega^2) 2/ ( 1 + ω 2 ) ([102 Theorem 10.12] ). Every f ∈ H f\in\mathcal{H} f ∈ H is absolutely continuous, tends to 0 0 0 at ± ∞ \pm\infty ± ∞ , and satisfies
∣ f ( x ) ∣ ≤ ∥ f ∥ H , ∫ a b ∣ f ′ ∣ ≤ 2 ( b − a ) ∥ f ∥ H . (32) |f(x)|\le\lVert f\rVert_{\mathcal{H}},\qquad\int_a^b |f'|\le\sqrt{2(b-a)}\,\lVert f\rVert_{\mathcal{H}}. \tag*{(32)} ∣ f ( x ) ∣ ≤ ∥ f ∥ H , ∫ a b ∣ f ′ ∣ ≤ 2 ( b − a ) ∥ f ∥ H . (32)
Write osc ( f ) = sup f − inf f \operatorname{osc}(f)=\sup f-\inf f osc ( f ) = sup f − inf f ; for f ∈ H f\in\mathcal{H} f ∈ H with osc ( f ) ≤ 1 \operatorname{osc}(f)\le1 osc ( f ) ≤ 1 , ∣ f ∣ ≤ 1 |f|\le1 ∣ f ∣ ≤ 1 , as f f f tends to 0 0 0 at infinity. For bounded f f f let L ( f ) = ∫ f d ( P − Q ) L(f)=\int f\,\mathrm{d}(P-Q) L ( f ) = ∫ f d ( P − Q ) and err ( f ) = α ⋆ − L ( f ) \operatorname{err}(f)=\alpha^\star-L(f) err ( f ) = α ⋆ − L ( f ) , the error of § 5.2 when f f f takes values in [ 0 , 1 ] [0,1] [ 0 , 1 ] . If osc ( f ) ≤ 1 \operatorname{osc}(f)\le1 osc ( f ) ≤ 1 , then 0 ≤ err ( f ) ≤ 2 0\le\operatorname{err}(f)\le2 0 ≤ err ( f ) ≤ 2 , and with M f = sup f M_f=\sup f M f = sup f , m f = inf f m_f=\inf f m f = inf f ,
err ( f ) = α ⋆ { 1 − ( M f − m f ) } + ∫ ( M f − f ) ( p − q ) + d x + ∫ ( f − m f ) ( q − p ) + d x (33) \operatorname{err}(f)=\alpha^\star\{1-(M_f-m_f)\}+\int(M_f-f)(p-q)_+\,\mathrm{d}x+\int(f-m_f)(q-p)_+\,\mathrm{d}x \tag*{(33)} err ( f ) = α ⋆ { 1 − ( M f − m f )} + ∫ ( M f − f ) ( p − q ) + d x + ∫ ( f − m f ) ( q − p ) + d x (33)
all three terms being nonnegative: the error of a function of oscillation at most one is its loss of range plus its distances from its maximum where p > q p>q p > q and from its minimum where q > p q>p q > p . With D ˉ \bar D D ˉ as in Section S4.2, D ˉ α \bar D_\alpha D ˉ α is the smallest ∥ μ P ′ − μ Q ′ ∥ H \|\mu_{P'}-\mu_{Q'}\|_{\mathcal H} ∥ μ P ′ − μ Q ′ ∥ H over parts P ′ ≤ P P'\le P P ′ ≤ P , Q ′ ≤ Q Q'\le Q Q ′ ≤ Q of mass 1 − α 1-\alpha 1 − α , and we put V ( ϵ ) = D ˉ α ⋆ − ϵ V(\epsilon)=\bar D_{\alpha^\star-\epsilon} V ( ϵ ) = D ˉ α ⋆ − ϵ . For other laws P , Q ~ P,\widetilde Q P , Q we write D ˉ α ( P , Q ~ ) = ( 1 − α ) D α ( P , Q ~ ) \bar D_\alpha(P,\widetilde Q)=(1-\alpha)D_\alpha(P,\widetilde Q) D ˉ α ( P , Q ) = ( 1 − α ) D α ( P , Q ) for their rescaled path and L ~ ( f ) = ∫ f d ( P − Q ~ ) \widetilde L(f)=\int f\,\mathrm{d}(P-\widetilde Q) L ( f ) = ∫ f d ( P − Q ) .
By Proposition 5.5 with s = 1 s=1 s = 1 there are 0 < c 1 ≤ c 2 0<c_1\le c_2 0 < c 1 ≤ c 2 and ϵ 0 ∈ ( 0 , α ⋆ ] \epsilon_0\in(0,\alpha^\star] ϵ 0 ∈ ( 0 , α ⋆ ] with c 1 ϵ 5 / 4 ≤ D α ⋆ − ϵ ≤ c 2 ϵ 5 / 4 c_1\epsilon^{5/4}\le D_{\alpha^\star-\epsilon}\le c_2\epsilon^{5/4} c 1 ϵ 5/4 ≤ D α ⋆ − ϵ ≤ c 2 ϵ 5/4 for 0 < ϵ ≤ ϵ 0 0<\epsilon\le\epsilon_0 0 < ϵ ≤ ϵ 0 . Put
ρ 0 = ( 1 − α ⋆ ) c 1 2 5 / 4 c 2 , c V = ( 1 − α ⋆ ) c 1 ( ϵ 0 α ⋆ ) 5 / 4 , κ 0 = min { ρ 0 , ( 1 − α ⋆ ) c 1 ( ϵ 0 / 2 ) 5 / 4 2 α ⋆ } , \rho_0=\frac{(1-\alpha^\star)c_1}{2^{5/4}c_2},\qquad c_V=(1-\alpha^\star)c_1\left(\frac{\epsilon_0}{\alpha^\star}\right)^{5/4},\qquad\kappa_0=\min\left\{\rho_0,\frac{(1-\alpha^\star)c_1(\epsilon_0/2)^{5/4}}{2\alpha^\star}\right\}, ρ 0 = 2 5/4 c 2 ( 1 − α ⋆ ) c 1 , c V = ( 1 − α ⋆ ) c 1 ( α ⋆ ϵ 0 ) 5/4 , κ 0 = min { ρ 0 , 2 α ⋆ ( 1 − α ⋆ ) c 1 ( ϵ 0 /2 ) 5/4 } ,
so that ρ 0 , κ 0 ∈ ( 0 , 1 ) \rho_0,\kappa_0\in(0,1) ρ 0 , κ 0 ∈ ( 0 , 1 ) and c V > 0 c_V>0 c V > 0 . Here ρ 0 \rho_0 ρ 0 is a lower bound on V ( ϵ ) / V ( 2 ϵ ) V(\epsilon)/V(2\epsilon) V ( ϵ ) / V ( 2 ϵ ) for ϵ < ϵ 0 / 2 \epsilon<\epsilon_0/2 ϵ < ϵ 0 /2 , by the two-sided bound and ( 1 − α ⋆ ) D α ⋆ − ϵ ≤ V ( ϵ ) ≤ D α ⋆ − ϵ (1-\alpha^\star)D_{\alpha^\star-\epsilon}\le V(\epsilon)\le D_{\alpha^\star-\epsilon} ( 1 − α ⋆ ) D α ⋆ − ϵ ≤ V ( ϵ ) ≤ D α ⋆ − ϵ ; c V c_V c V extends the lower bound to all levels, V ( ϵ ) ≥ c V ϵ 5 / 4 V(\epsilon)\ge c_V\epsilon^{5/4} V ( ϵ ) ≥ c V ϵ 5/4 for ϵ ∈ ( 0 , α ⋆ ] \epsilon\in(0,\alpha^\star] ϵ ∈ ( 0 , α ⋆ ] , as V ( ϵ ) ≥ ( 1 − α ⋆ ) D α ⋆ − ϵ V(\epsilon)\ge(1-\alpha^\star)D_{\alpha^\star-\epsilon} V ( ϵ ) ≥ ( 1 − α ⋆ ) D α ⋆ − ϵ and V V V is nondecreasing; and κ 0 \kappa_0 κ 0 is the fraction of ϵ \epsilon ϵ that the comparison below guarantees as excess. In (i) put p ˉ = sup [ x 0 − r ⋆ , x 0 + r ⋆ ] ( p + q ) \bar p=\sup_{[x_0-r_\star,x_0+r_\star]}(p+q) p ˉ = sup [ x 0 − r ⋆ , x 0 + r ⋆ ] ( p + q ) , which is finite once r ⋆ r_\star r ⋆ is small, as p , q p,q p , q are continuous near x 0 x_0 x 0 , and shrinking r ⋆ r_\star r ⋆ keeps (5.1) with the same c ⋆ c_\star c ⋆ ; off this interval p + q ≤ ∣ p − q ∣ / ( c ⋆ r ⋆ ) p+q\le|p-q|/(c_\star r_\star) p + q ≤ ∣ p − q ∣/ ( c ⋆ r ⋆ ) , so P + Q P+Q P + Q inherits the exponential tails of ∣ P − Q ∣ |P-Q| ∣ P − Q ∣ .
Lemma S4.20 (Ratio inequality). For any probability measures P ~ , Q ~ \widetilde P,\widetilde Q P , Q , any α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) and any φ ∈ H ∖ { 0 } \varphi\in\mathcal H\setminus\{0\} φ ∈ H ∖ { 0 } with osc ( φ ) ≤ 1 \operatorname{osc}(\varphi)\le1 osc ( φ ) ≤ 1 , D ˉ α ( P ~ , Q ~ ) ≥ { L ~ ( φ ) − α } / ∥ φ ∥ H \bar D_\alpha(\widetilde P,\widetilde Q)\ge\{\widetilde L(\varphi)-\alpha\}/\|\varphi\|_{\mathcal H} D ˉ α ( P , Q ) ≥ { L ( φ ) − α } /∥ φ ∥ H . In particular V ( ϵ ′ − err ( φ ) ) ≥ { ϵ ′ − err ( φ ) } / ∥ φ ∥ H V(\epsilon'-\operatorname{err}(\varphi))\ge\{\epsilon'-\operatorname{err}(\varphi)\}/\|\varphi\|_{\mathcal H} V ( ϵ ′ − err ( φ )) ≥ { ϵ ′ − err ( φ )} /∥ φ ∥ H for ϵ ′ ∈ [ 0 , α ⋆ ] \epsilon'\in[0,\alpha^\star] ϵ ′ ∈ [ 0 , α ⋆ ] .
Proof. For parts P ′ ′ ≤ P ~ P''\le\widetilde P P ′′ ≤ P , Q ′ ′ ≤ Q ~ Q''\le\widetilde Q Q ′′ ≤ Q of mass 1 − α 1-\alpha 1 − α ,
∫ φ d P ′ ′ ≥ ∫ φ d P ~ − α sup φ \int\varphi\,\mathrm{d}P''\ge\int\varphi\,\mathrm{d}\widetilde P-\alpha\sup\varphi ∫ φ d P ′′ ≥ ∫ φ d P − α sup φ
and
∫ φ d Q ′ ′ ≤ ∫ φ d Q ~ − α inf φ , \int\varphi\,\mathrm{d}Q''\le\int\varphi\,\mathrm{d}\widetilde Q-\alpha\inf\varphi, ∫ φ d Q ′′ ≤ ∫ φ d Q − α inf φ ,
so ∥ φ ∥ H ∥ μ P ′ ′ − μ Q ′ ′ ∥ H ≥ ∫ φ d ( P ′ ′ − Q ′ ′ ) ≥ L ~ ( φ ) − α \|\varphi\|_{\mathcal H}\|\mu_{P''}-\mu_{Q''}\|_{\mathcal H}\ge\int\varphi\,\mathrm{d}(P''-Q'')\ge\widetilde L(\varphi)-\alpha ∥ φ ∥ H ∥ μ P ′′ − μ Q ′′ ∥ H ≥ ∫ φ d ( P ′′ − Q ′′ ) ≥ L ( φ ) − α ; take the infimum over the parts. □ \square □
At a level α \alpha α and a batch b b b , let P ~ , Q ~ \widetilde P,\widetilde Q P , Q be the empirical laws of the fitting batches, of sizes n ′ , m ′ n',m' n ′ , m ′ , with the pooled points pairwise distinct (almost surely, as P P P and Q Q Q have densities), let f ^ \widehat f f be the witness direction, D ˉ ^ = D ˉ α ( P ~ , Q ~ ) \widehat{\bar D}=\bar D_\alpha(\widetilde P,\widetilde Q) D ˉ = D ˉ α ( P , Q ) , t ^ = f ^ ( X ) ( ⌈ n ′ ( 1 − α ) ⌉ ) \widehat t=\widehat f(X)_{(\lceil n'(1-\alpha)\rceil)} t = f ( X ) (⌈ n ′ ( 1 − α )⌉) and u ^ = f ^ ( Y ) ( ⌊ m ′ α ⌋ + 1 ) \widehat u=\widehat f(Y)_{(\lfloor m'\alpha\rfloor+1)} u = f ( Y ) (⌊ m ′ α ⌋ + 1 ) , the smallest ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile of the values at the X X X ’s and the largest α \alpha α -quantile of those at the Y Y Y ’s. By Lemma S4.21, t ^ \widehat t t is also the ( n 1 − α ′ + 1 ) (n'_{1-\alpha}+1) ( n 1 − α ′ + 1 ) -th smallest value at the X X X ’s, n 1 − α ′ = ⌊ n ′ ( 1 − α ) ⌋ n'_{1-\alpha}=\lfloor n'(1-\alpha)\rfloor n 1 − α ′ = ⌊ n ′ ( 1 − α )⌋ , the cut of Proposition 2.5, and likewise for u ^ \widehat u u .
Lemma S4.21 (The fitted witness clips itself). Let α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) . Then D ˉ ^ > 0 \widehat{\bar D}>0 D ˉ > 0 , u ^ ≤ f ^ ≤ t ^ \widehat u\le\widehat f\le\widehat t u ≤ f ≤ t on R \mathbb R R , s = t ^ − u ^ = osc ( f ^ ) > 0 s=\widehat t-\widehat u=\operatorname{osc}(\widehat f)>0 s = t − u = osc ( f ) > 0 , the values of f ^ \widehat f f at the X X X ’s of rank at least ⌈ n ′ ( 1 − α ) ⌉ \lceil n'(1-\alpha)\rceil ⌈ n ′ ( 1 − α )⌉ equal t ^ \widehat t t , and those at the Y Y Y ’s of rank at most ⌊ m ′ α ⌋ + 1 \lfloor m'\alpha\rfloor+1 ⌊ m ′ α ⌋ + 1 equal u ^ \widehat u u . Hence every genuine ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile of the values at the X X X ’s is t ^ \widehat t t , every genuine α \alpha α -quantile of those at the Y Y Y ’s is u ^ \widehat u u , and the plain ramp is ψ ^ = ( f ^ − u ^ ) / s \widehat\psi=(\widehat f-\widehat u)/s ψ = ( f − u ) / s . Moreover φ ^ = f ^ / s \widehat\varphi=\widehat f/s φ = f / s has osc ( φ ^ ) = 1 \operatorname{osc}(\widehat\varphi)=1 osc ( φ ) = 1 , N ^ = ∥ φ ^ ∥ H = 1 / s ^ ≥ 1 2 \widehat N=\|\widehat\varphi\|_{\mathcal H}=1/\widehat s\ge\frac12 N = ∥ φ ∥ H = 1/ s ≥ 2 1 and
L ~ ( φ ^ ) − α = D ˉ ^ N ^ , \widetilde L(\widehat\varphi)-\alpha=\widehat{\bar D}\widehat N, L ( φ ) − α = D ˉ N , so by Lemma S4.20 φ ^ \widehat\varphi φ maximizes { L ~ ( φ ) − α } / ∥ φ ∥ H \{\widetilde L(\varphi)-\alpha\}/\|\varphi\|_{\mathcal H} { L ( φ ) − α } /∥ φ ∥ H over osc ( φ ) ≤ 1 \operatorname{osc}(\varphi)\le1 osc ( φ ) ≤ 1 . With the own terms removed, the values at the X X X ’s of rank at least ⌈ n ′ ( 1 − α ) ⌉ \lceil n'(1-\alpha)\rceil ⌈ n ′ ( 1 − α )⌉ lie in [ t ^ − 1 / ( n ′ D ˉ ^ ) , t ^ ] [\widehat t-1/(n'\widehat{\bar D}),\widehat t] [ t − 1/ ( n ′ D ˉ ) , t ] and those at the Y Y Y ’s of rank at most ⌊ m ′ α ⌋ + 1 \lfloor m'\alpha\rfloor+1 ⌊ m ′ α ⌋ + 1 in [ u ^ , u ^ + 1 / ( m ′ D ^ ) ] [\widehat u,\widehat u+1/(m'\widehat D)] [ u , u + 1/ ( m ′ D )] .
Proof. The empirical laws are themselves a pair to which the results on the population ramp apply. Since d T V ( P ~ , Q ~ ) = 1 > α d_{\mathrm{TV}}(\widetilde{P},\widetilde{Q})=1>\alpha d TV ( P , Q ) = 1 > α , D ^ > 0 \widehat{D}>0 D > 0 by (7) . As noted at the start of Section S4.11, Lemmas S4.17 and S4.18 and Proposition 5.10 (iii) use only Assumption 2.1, Lemmas 2.3 and S3.4, and α < d T V ( P , Q ) \alpha<d_{\mathrm{TV}}(P,Q) α < d TV ( P , Q ) . They therefore hold for P ~ , Q ~ \widetilde{P},\widetilde{Q} P , Q and any α < 1 = d T V ( P ~ , Q ~ ) \alpha<1=d_{\mathrm{TV}}(\widetilde{P},\widetilde{Q}) α < 1 = d TV ( P , Q ) , and the distributional argument of (iii) applies to the atomic measure ν = P ′ ′ − Q ′ ′ \nu=P''-Q'' ν = P ′′ − Q ′′ unchanged, as ν ≤ 0 \nu\leq0 ν ≤ 0 on { f ^ > t ^ } \{\widehat{f}>\widehat{t}\} { f > t } . Applied to P ~ , Q ~ \widetilde{P},\widetilde{Q} P , Q they give the two facts from which everything else is read off: u ^ ≤ f ^ ≤ t ^ \widehat{u}\leq\widehat{f}\leq\widehat{t} u ≤ f ≤ t on R \mathbb{R} R , and P ~ ψ ^ − Q ~ ψ ^ − α = D ^ / s ^ \widetilde{P}\widehat{\psi}-\widetilde{Q}\widehat{\psi}-\alpha=\widehat{D}/\widehat{s} P ψ − Q ψ − α = D / s . Both bounds are values of f ^ \widehat{f} f at sample points, so osc ( f ^ ) = s ^ \operatorname{osc}(\widehat{f})=\widehat{s} osc ( f ) = s , and s ^ > 0 \widehat{s}>0 s > 0 , as ∫ f ^ d x = 0 \int\widehat{f}\,dx=0 ∫ f d x = 0 forces max f ^ > 0 > min f ^ \max\widehat{f}>0>\min\widehat{f} max f > 0 > min f . The order statistics of rank at least ⌈ n ′ ( 1 − α ) ⌉ \lceil n'(1-\alpha)\rceil ⌈ n ′ ( 1 − α )⌉ are at least t ^ \widehat{t} t and at most max f ^ ≤ t ^ \max\widehat{f}\leq\widehat{t} max f ≤ t , so they equal t ^ \widehat{t} t , and likewise those of the Y ′ Y' Y ′ 's of rank at most ⌊ m ′ α ⌋ + 1 \lfloor m'\alpha\rfloor+1 ⌊ m ′ α ⌋ + 1 equal u ^ \widehat{u} u . A genuine ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile lies between the order statistics of ranks ⌈ n ′ ( 1 − α ) ⌉ \lceil n'(1-\alpha)\rceil ⌈ n ′ ( 1 − α )⌉ and ⌊ n ′ ( 1 − α ) ⌋ + 1 \lfloor n'(1-\alpha)\rfloor+1 ⌊ n ′ ( 1 − α )⌋ + 1 , and a genuine α \alpha α -quantile between those of ranks ⌈ m ′ α ⌉ ≥ 1 \lceil m'\alpha\rceil\geq1 ⌈ m ′ α ⌉ ≥ 1 and ⌊ m ′ α ⌋ + 1 \lfloor m'\alpha\rfloor+1 ⌊ m ′ α ⌋ + 1 , so they are t ^ \widehat{t} t and u ^ \widehat{u} u . As ψ ^ \widehat{\psi} ψ and ϕ ^ \widehat{\phi} ϕ differ by a constant, L ~ ( ϕ ^ ) = P ~ ψ ^ − Q ~ ψ ^ \widetilde{L}(\widehat{\phi})=\widetilde{P}\widehat{\psi}-\widetilde{Q}\widehat{\psi} L ( ϕ ) = P ψ − Q ψ , which gives the identity, and N ^ ≥ sup ∣ ϕ ^ ∣ ≥ 1 2 \widehat{N}\geq\sup|\widehat{\phi}|\geq\frac{1}{2} N ≥ sup ∣ ϕ ∣ ≥ 2 1 by (S4.7), as osc ( ϕ ^ ) = 1 \operatorname{osc}(\widehat{\phi})=1 osc ( ϕ ) = 1 . Finally, in the normalization of (11) the own term at X i X_i X i is w i / D ^ α = w i ( 1 − α ) / D ^ ∈ [ 0 , 1 / ( n ′ D ^ ) ] w_i/\widehat{D}_{\alpha}=w_i(1-\alpha)/\widehat{D}\in[0,1/(n'\widehat{D})] w i / D α = w i ( 1 − α ) / D ∈ [ 0 , 1/ ( n ′ D )] , and at Y j Y_j Y j it is at most 1 / ( m ′ D ^ ) 1/(m'\widehat{D}) 1/ ( m ′ D ) ; lowering each value by at most c c c lowers each order statistic by at most c c c .
At the population level, let f ⋆ f^\star f ⋆ , t ⋆ t^\star t ⋆ , u ⋆ u^\star u ⋆ and ψ ⋆ \psi^\star ψ ⋆ be as in Proposition 5.10 at α = α ⋆ − ϵ ∈ ( 0 , α ⋆ ) \alpha=\alpha^\star-\epsilon\in(0,\alpha^\star) α = α ⋆ − ϵ ∈ ( 0 , α ⋆ ) , s ⋆ = t ⋆ − u ⋆ s^\star=t^\star-u^\star s ⋆ = t ⋆ − u ⋆ and ϕ ⋆ = f ⋆ / s ⋆ \phi^\star=f^\star/s^\star ϕ ⋆ = f ⋆ / s ⋆ . By Proposition 5.10 (iii), osc ( ϕ ⋆ ) ≤ 1 \operatorname{osc}(\phi^\star)\leq1 osc ( ϕ ⋆ ) ≤ 1 , ∥ ϕ ⋆ ∥ H = 1 / s ⋆ \|\phi^\star\|_{\mathcal{H}}=1/s^\star ∥ ϕ ⋆ ∥ H = 1/ s ⋆ and
L ( ϕ ⋆ ) − α = E P ψ ⋆ − E Q ψ ⋆ − α = V ( ϵ ) s ⋆ ≤ ϵ , (34) L(\phi^\star)-\alpha=\mathbb{E}_{P}\psi^\star-\mathbb{E}_{Q}\psi^\star-\alpha=\frac{V(\epsilon)}{s^\star}\leq\epsilon, \tag*{(34)} L ( ϕ ⋆ ) − α = E P ψ ⋆ − E Q ψ ⋆ − α = s ⋆ V ( ϵ ) ≤ ϵ , (34)
the last inequality because L ( ϕ ⋆ ) ≤ α ⋆ L(\phi^\star)\leq\alpha^\star L ( ϕ ⋆ ) ≤ α ⋆ . So s ⋆ ≥ V ( ϵ ) / ϵ s^\star\geq V(\epsilon)/\epsilon s ⋆ ≥ V ( ϵ ) / ϵ , ∥ ϕ ⋆ ∥ H ≤ c V − 1 / 4 ϵ − 1 / 4 \|\phi^\star\|_{\mathcal{H}}\leq c_V^{-1/4}\epsilon^{-1/4} ∥ ϕ ⋆ ∥ H ≤ c V − 1/4 ϵ − 1/4 , err ( ϕ ⋆ ) ≤ ϵ \operatorname{err}(\phi^\star)\leq\epsilon err ( ϕ ⋆ ) ≤ ϵ , and s ⋆ ≤ osc ( f ⋆ ) ≤ 2 s^\star\leq\operatorname{osc}(f^\star)\leq2 s ⋆ ≤ osc ( f ⋆ ) ≤ 2 .
Lemma S4.22 (Comparison). Let Δ ( ϕ ) = ∫ ϕ d { ( P ~ − P ) − ( Q ~ − Q ) } \Delta(\phi)=\int\phi\,d\{(\widetilde{P}-P)-(\widetilde{Q}-Q)\} Δ ( ϕ ) = ∫ ϕ d {( P − P ) − ( Q − Q )} , Δ ^ = Δ ( ϕ ^ ) \widehat{\Delta}=\Delta(\widehat{\phi}) Δ = Δ ( ϕ ) , Δ ⋆ = Δ ( ϕ ⋆ ) \Delta^\star=\Delta(\phi^\star) Δ ⋆ = Δ ( ϕ ⋆ ) , T ^ = err ( ϕ ^ ) \widehat{T}=\operatorname{err}(\widehat{\phi}) T = err ( ϕ ) , y = V ( ϵ ) + s ⋆ Δ ⋆ y=V(\epsilon)+s^\star\Delta^\star y = V ( ϵ ) + s ⋆ Δ ⋆ and e = E P ψ ^ − E Q ψ ^ − α = ϵ − T ^ e=\mathbb{E}_{P}\widehat{\psi}-\mathbb{E}_{Q}\widehat{\psi}-\alpha=\epsilon-\widehat{T} e = E P ψ − E Q ψ − α = ϵ − T . Then:
(i) e + Δ ^ = D ^ N ^ e+\widehat{\Delta}=\widehat{D}\widehat{N} e + Δ = D N , D ^ ≥ y \widehat{D}\geq y D ≥ y , and y N ^ + T ^ ≤ ϵ + Δ ^ y\widehat{N}+\widehat{T}\leq\epsilon+\widehat{\Delta} y N + T ≤ ϵ + Δ ;
(ii) if κ 0 ϵ − ∣ Δ ⋆ ∣ − Δ ^ > 0 \kappa_0\epsilon-|\Delta^\star|-\widehat{\Delta}>0 κ 0 ϵ − ∣ Δ ⋆ ∣ − Δ > 0 , then e ≥ κ 0 ϵ − ∣ Δ ⋆ ∣ − Δ ^ e\geq\kappa_0\epsilon-|\Delta^\star|-\widehat{\Delta} e ≥ κ 0 ϵ − ∣ Δ ⋆ ∣ − Δ ;
(iii) if ∣ Δ ⋆ ∣ ≤ κ 0 ϵ / 4 |\Delta^\star|\leq\kappa_0\epsilon/4 ∣ Δ ⋆ ∣ ≤ κ 0 ϵ /4 , then y ≥ V ( ϵ ) / 2 ≥ c V ϵ 5 / 4 / 2 y\geq V(\epsilon)/2\geq c_V\epsilon^{5/4}/2 y ≥ V ( ϵ ) /2 ≥ c V ϵ 5/4 /2 .
Proof. Part (i) collects the basic relations. The identity is Lemma S4.21, as L ~ ( ϕ ^ ) − L ( ϕ ^ ) = Δ ^ \widetilde{L}(\widehat{\phi})-L(\widehat{\phi})=\widehat{\Delta} L ( ϕ ) − L ( ϕ ) = Δ . By Lemma S4.20 for P ~ , Q ~ \widetilde{P},\widetilde{Q} P , Q and ϕ ⋆ \phi^\star ϕ ⋆ , and (S4.9), D ^ ≥ s ⋆ { L ( ϕ ⋆ ) − α + Δ ⋆ } = y \widehat{D}\geq s^\star\{L(\phi^\star)-\alpha+\Delta^\star\}=y D ≥ s ⋆ { L ( ϕ ⋆ ) − α + Δ ⋆ } = y , and multiplying by N ^ > 0 \widehat{N}>0 N > 0 gives the last inequality, since D ^ N ^ = e + Δ ^ = ϵ − T ^ + Δ ^ \widehat{D}\widehat{N}=e+\widehat{\Delta}=\epsilon-\widehat{T}+\widehat{\Delta} D N = e + Δ = ϵ − T + Δ .
Parts (ii) and (iii) compare the path at two levels. A fitted ramp with a small excess e e e has error T ^ = ϵ − e \widehat{T}=\epsilon-e T = ϵ − e close to ϵ \epsilon ϵ , so at the level α ⋆ − 2 ϵ \alpha^\star-2\epsilon α ⋆ − 2 ϵ it still has an excess of about ϵ \epsilon ϵ . Lemma S4.20 at that level then forces its norm N ^ \widehat{N} N up, and by (i) a large N ^ \widehat{N} N forces e e e up. The population enters through Proposition 5.10 (i) at α ′ = α ⋆ − 2 ϵ \alpha'=\alpha^\star-2\epsilon α ′ = α ⋆ − 2 ϵ , by which the population gap is a supporting slope of the path,
s ⋆ ϵ ≤ V ( 2 ϵ ) − V ( ϵ ) ( 2 ϵ ≤ α ⋆ ) . s^\star\epsilon\leq V(2\epsilon)-V(\epsilon)\qquad(2\epsilon\leq\alpha^\star). s ⋆ ϵ ≤ V ( 2 ϵ ) − V ( ϵ ) ( 2 ϵ ≤ α ⋆ ) .
Suppose first ϵ < ϵ 0 / 2 \epsilon<\epsilon_0/2 ϵ < ϵ 0 /2 , so that V ( ϵ ) / V ( 2 ϵ ) ≥ ρ 0 ≥ κ 0 V(\epsilon)/V(2\epsilon)\geq\rho_0\geq\kappa_0 V ( ϵ ) / V ( 2 ϵ ) ≥ ρ 0 ≥ κ 0 . If ∣ Δ ⋆ ∣ ≥ ϵ V ( ϵ ) / V ( 2 ϵ ) |\Delta^\star|\geq\epsilon V(\epsilon)/V(2\epsilon) ∣ Δ ⋆ ∣ ≥ ϵ V ( ϵ ) / V ( 2 ϵ ) , then κ 0 ϵ − ∣ Δ ⋆ ∣ − Δ ^ ≤ − Δ ^ < e \kappa_0\epsilon-|\Delta^\star|-\widehat{\Delta}\leq-\widehat{\Delta}<e κ 0 ϵ − ∣ Δ ⋆ ∣ − Δ ≤ − Δ < e by (i), as D ^ N ^ > 0 \widehat{D}\widehat{N}>0 D N > 0 , and (ii) holds; so assume ∣ Δ ⋆ ∣ < ϵ V ( ϵ ) / V ( 2 ϵ ) |\Delta^\star|<\epsilon V(\epsilon)/V(2\epsilon) ∣ Δ ⋆ ∣ < ϵ V ( ϵ ) / V ( 2 ϵ ) . Then s ⋆ ∣ Δ ⋆ ∣ < { V ( 2 ϵ ) − V ( ϵ ) } V ( ϵ ) / V ( 2 ϵ ) s^\star|\Delta^\star|<\{V(2\epsilon)-V(\epsilon)\}V(\epsilon)/V(2\epsilon) s ⋆ ∣ Δ ⋆ ∣ < { V ( 2 ϵ ) − V ( ϵ )} V ( ϵ ) / V ( 2 ϵ ) , hence 0 < y < V ( 2 ϵ ) 0<y<V(2\epsilon) 0 < y < V ( 2 ϵ ) and r = y / V ( 2 ϵ ) ∈ ( 0 , 1 ) r=y/V(2\epsilon)\in(0,1) r = y / V ( 2 ϵ ) ∈ ( 0 , 1 ) . If e + ϵ ≤ 0 e+\epsilon\leq0 e + ϵ ≤ 0 , then Δ ^ > e \widehat{\Delta}>e Δ > e by (i), as D ^ N ^ > 0 \widehat{D}\widehat{N}>0 D N > 0 , contradicting the hypothesis of (ii). Otherwise 2 ϵ − T ^ = e + ϵ > 0 2\epsilon-\widehat{T}=e+\epsilon>0 2 ϵ − T = e + ϵ > 0 , Lemma S4.20 at the level α ⋆ − 2 ϵ \alpha^\star-2\epsilon α ⋆ − 2 ϵ gives N ^ ≥ ( e + ϵ ) / V ( 2 ϵ ) \widehat{N}\geq(e+\epsilon)/V(2\epsilon) N ≥ ( e + ϵ ) / V ( 2 ϵ ) , and with (i)
e + Δ ^ = D ^ N ^ ≥ y N ^ ≥ r ( e + ϵ ) , that is, ( 1 − r ) e ≥ r ϵ − Δ ^ . e+\widehat{\Delta}=\widehat{D}\widehat{N}\geq y\widehat{N}\geq r(e+\epsilon),
\qquad\text{that is,}\qquad
(1-r)e\geq r\epsilon-\widehat{\Delta}. e + Δ = D N ≥ y N ≥ r ( e + ϵ ) , that is, ( 1 − r ) e ≥ r ϵ − Δ .
As s ⋆ ϵ ≤ V ( 2 ϵ ) s^\star\epsilon\le V(2\epsilon) s ⋆ ϵ ≤ V ( 2 ϵ ) , r ϵ ≥ ϵ V ( ϵ ) / V ( 2 ϵ ) − ∣ Δ ⋆ ∣ r\epsilon\ge\epsilon V(\epsilon)/V(2\epsilon)-|\Delta^\star| r ϵ ≥ ϵ V ( ϵ ) / V ( 2 ϵ ) − ∣ Δ ⋆ ∣ , so ( 1 − r ) e ≥ κ 0 ϵ − ∣ Δ ⋆ ∣ − Δ ^ > 0 (1-r)e \ge\kappa_0\epsilon-|\Delta^\star|-\widehat{\Delta}>0 ( 1 − r ) e ≥ κ 0 ϵ − ∣ Δ ⋆ ∣ − Δ > 0 , whence e > 0 e>0 e > 0 and e ≥ ( 1 − r ) e e\ge(1-r)e e ≥ ( 1 − r ) e . For (iii), s ⋆ ∣ Δ ⋆ ∣ ≤ κ 0 V ( 2 ϵ ) / 4 ≤ V ( ϵ ) / 4 s^\star|\Delta^\star|\le\kappa_0V(2\epsilon)/4\le V(\epsilon)/4 s ⋆ ∣ Δ ⋆ ∣ ≤ κ 0 V ( 2 ϵ ) /4 ≤ V ( ϵ ) /4 , as s ⋆ ≤ V ( 2 ϵ ) / ϵ s^\star\le V(2\epsilon)/\epsilon s ⋆ ≤ V ( 2 ϵ ) / ϵ . If ϵ ≥ ϵ 0 / 2 \epsilon\ge\epsilon_0/2 ϵ ≥ ϵ 0 /2 , the path is bounded below by a constant: V ( ϵ ) ≥ ( 1 − α ⋆ ) c 1 ( ϵ 0 / 2 ) 5 / 4 ≥ 2 κ 0 α ⋆ ≥ 2 κ 0 ϵ V(\epsilon)\ge(1-\alpha^\star)c_1(\epsilon_0/2)^{5/4}\ge2\kappa_0\alpha^\star\ge2\kappa_0\epsilon V ( ϵ ) ≥ ( 1 − α ⋆ ) c 1 ( ϵ 0 /2 ) 5/4 ≥ 2 κ 0 α ⋆ ≥ 2 κ 0 ϵ , and s ⋆ ≤ 2 s^\star\le2 s ⋆ ≤ 2 . For (iii), s ⋆ ∣ Δ ⋆ ∣ ≤ κ 0 ϵ / 2 ≤ V ( ϵ ) / 4 s^\star|\Delta^\star|\le\kappa_0\epsilon/2\le V(\epsilon)/4 s ⋆ ∣ Δ ⋆ ∣ ≤ κ 0 ϵ /2 ≤ V ( ϵ ) /4 . For (ii), if y ≥ 0 y\ge0 y ≥ 0 , (i) and N ^ ≥ 1 2 \widehat{N}\ge\frac12 N ≥ 2 1 give e + Δ ^ ≥ y / 2 ≥ V ( ϵ ) / 2 − ∣ Δ ⋆ ∣ e+\widehat{\Delta}\ge y/2\ge V(\epsilon)/2-|\Delta^\star| e + Δ ≥ y /2 ≥ V ( ϵ ) /2 − ∣ Δ ⋆ ∣ , which is enough; if y < 0 y<0 y < 0 , then ∣ Δ ⋆ ∣ > V ( ϵ ) / 2 ≥ κ 0 ϵ |\Delta^\star|>V(\epsilon)/2\ge\kappa_0\epsilon ∣ Δ ⋆ ∣ > V ( ϵ ) /2 ≥ κ 0 ϵ , while e + Δ ^ = D ^ N ^ > 0 e+\widehat{\Delta}=\widehat{D}\widehat{N}>0 e + Δ = D N > 0 , so e > − Δ ^ > κ 0 ϵ − ∣ Δ ⋆ ∣ − Δ ^ e>-\widehat{\Delta}>\kappa_0\epsilon-|\Delta^\star|-\widehat{\Delta} e > − Δ > κ 0 ϵ − ∣ Δ ⋆ ∣ − Δ .
We bound Δ ⋆ \Delta^\star Δ ⋆ and Δ ^ \widehat{\Delta} Δ next, the second for a function fitted on the same data. We do it for all functions of oscillation at most one at once, in terms of their norm and error, on one event that does not depend on the level.
Lemma S4.23 (Intervals). Let P ~ \widetilde{P} P be the empirical law of n n n independent draws from P P P , which has a continuous distribution function, let η ′ ∈ ( 0 , 1 ) \eta'\in(0,1) η ′ ∈ ( 0 , 1 ) , x = log { 2 ( n + 1 ) 2 / η ′ } x=\log\{2(n+1)^2/\eta'\} x = log { 2 ( n + 1 ) 2 / η ′ } and c x = 2 x + 4 c_x=2x+4 c x = 2 x + 4 . With probability at least 1 − η ′ 1-\eta' 1 − η ′ , every interval I ⊆ R I\subseteq\mathbb{R} I ⊆ R satisfies ∣ P ~ ( I ) − P ( I ) ∣ ≤ { 2 P ( I ) x / n } 1 / 2 + c x / n |\widetilde{P}(I)-P(I)|\le\{2P(I)x/n\}^{1/2}+c_x/n ∣ P ( I ) − P ( I ) ∣ ≤ { 2 P ( I ) x / n } 1/2 + c x / n .
Proof. After the probability integral transform, a grid of at most ( n + 1 ) 2 (n+1)^2 ( n + 1 ) 2 intervals brackets every interval to within 2 / n 2/n 2/ n , so Bernstein’s inequality and a union bound over the grid suffice. Almost surely no observation lies in an interval of constancy of the distribution function F F F or at one of its endpoints, so X i ∈ I X_i\in I X i ∈ I if and only if F ( X i ) ∈ J F(X_i)\in J F ( X i ) ∈ J for the interval J J J with endpoints F ( inf I ) , F ( sup I ) F(\inf I),F(\sup I) F ( inf I ) , F ( sup I ) of the same types, and P ( I ) = ∣ J ∣ P(I)=|J| P ( I ) = ∣ J ∣ ; it suffices to treat uniform variables. For each of the at most ( n + 1 ) 2 (n+1)^2 ( n + 1 ) 2 intervals G G G with endpoints in { 0 , 1 / n , … , 1 } \{0,1/n,\ldots,1\} { 0 , 1/ n , … , 1 } , Bernstein’s inequality ([14 Section 2.8] ) for the binomial count, with deviation τ = ( 2 n ∣ G ∣ x ) 1 / 2 + 2 x / 3 \tau=(2n|G|x)^{1/2}+2x/3 τ = ( 2 n ∣ G ∣ x ) 1/2 + 2 x /3 , which satisfies τ 2 ≥ 2 x ( n ∣ G ∣ + τ / 3 ) \tau^2\ge2x(n|G|+\tau/3) τ 2 ≥ 2 x ( n ∣ G ∣ + τ /3 ) , bounds ∣ P ~ ( G ) − ∣ G ∣ ∣ |\widetilde{P}(G)-|G|| ∣ P ( G ) − ∣ G ∣∣ by ( 2 ∣ G ∣ x / n ) 1 / 2 + 2 x / ( 3 n ) (2|G|x/n)^{1/2}+2x/(3n) ( 2∣ G ∣ x / n ) 1/2 + 2 x / ( 3 n ) outside an event of probability 2 e − x 2e^{-x} 2 e − x ; a union bound covers all of them. A general J J J lies between grid intervals G − ⊆ J ⊆ G + G^-\subseteq J\subseteq G^+ G − ⊆ J ⊆ G + with ∣ G + ∣ − ∣ J ∣ ≤ 2 / n |G^+|-|J|\le2/n ∣ G + ∣ − ∣ J ∣ ≤ 2/ n and ∣ J ∣ − ∣ G − ∣ ≤ 2 / n |J|-|G^-|\le2/n ∣ J ∣ − ∣ G − ∣ ≤ 2/ n , which costs at most ( 2 x + 2 ) / n (2\sqrt{x}+2)/n ( 2 x + 2 ) / n ; and 2 x + 2 x / 3 + 2 ≤ c x 2\sqrt{x}+2x/3+2\le c_x 2 x + 2 x /3 + 2 ≤ c x as x > 2 x>2 x > 2 .
Lemma S4.24 (Localized deviation). On the event of Lemma S4.23, for every bounded interval I I I and every h : R → [ 0 , 1 ] h:\mathbb{R}\to[0,1] h : R → [ 0 , 1 ] continuous on the closure of I I I with total variation V I ( h ) V_I(h) V I ( h ) there,
∣ ∫ I h d ( P ~ − P ) ∣ ≤ [ 2 { V I ( h ) + 1 } ( ∫ I h d P ) x n ] 1 / 2 + { V I ( h ) + 1 } c x n . \left|\int_I h\,d(\widetilde{P}-P)\right|\le\left[2\{V_I(h)+1\}\left(\int_I h\,dP\right)\frac{x}{n}\right]^{1/2}+\{V_I(h)+1\}\frac{c_x}{n}. ∫ I h d ( P − P ) ≤ [ 2 { V I ( h ) + 1 } ( ∫ I h d P ) n x ] 1/2 + { V I ( h ) + 1 } n c x .
Proof. A function of bounded variation is an average of indicators of its upper level sets, each a union of few intervals, to which Lemma S4.23 applies. By Tonelli’s theorem, ∫ I h d ( P ~ − P ) = ∫ 0 1 ( P ~ − P ) ( A s ) d s \int_I h\,d(\widetilde{P}-P)=\int_0^1(\widetilde{P}-P)(A_s)\,ds ∫ I h d ( P − P ) = ∫ 0 1 ( P − P ) ( A s ) d s and ∫ I h d P = ∫ 0 1 P ( A s ) d s \int_I h\,dP=\int_0^1P(A_s)\,ds ∫ I h d P = ∫ 0 1 P ( A s ) d s , with A s = { z ∈ I : h ( z ) > s } A_s=\{z\in I:h(z)>s\} A s = { z ∈ I : h ( z ) > s } . Each component C C C of the relatively open set A s A_s A s other than the rightmost one has sup C ∈ I ∖ A s \sup C\in I\setminus A_s sup C ∈ I ∖ A s and h ( sup C ) = s h(\sup C)=s h ( sup C ) = s , so A s A_s A s has at most N ( s ) + 1 N(s)+1 N ( s ) + 1 components, N ( s ) N(s) N ( s ) being the number of points of I I I where h = s h=s h = s . By Banach’s indicatrix theorem ([7 ] ), N N N is measurable and ∫ N ( s ) d s = V I ( h ) \int N(s)\,ds=V_I(h) ∫ N ( s ) d s = V I ( h ) . Where N ( s ) < ∞ N(s)<\infty N ( s ) < ∞ , the event and the Cauchy–Schwarz inequality over the components give ∣ ( P ~ − P ) ( A s ) ∣ ≤ [ 2 { N ( s ) + 1 } P ( A s ) x / n ] 1 / 2 + { N ( s ) + 1 } c x / n |(\widetilde{P}-P)(A_s)|\le[2\{N(s)+1\}P(A_s)x/n]^{1/2}+\{N(s)+1\}c_x/n ∣ ( P − P ) ( A s ) ∣ ≤ [ 2 { N ( s ) + 1 } P ( A s ) x / n ] 1/2 + { N ( s ) + 1 } c x / n ; integrate over s s s and use the Cauchy–Schwarz inequality once more.
Lemma S4.25 (Deviation of functions of H \mathcal{H} H ). Let P ~ , Q ~ \widetilde{P},\widetilde{Q} P , Q be empirical laws of n n n draws from P P P and m m m draws from Q Q Q on whose events of Lemma S4.23 the same x ≥ log δ x\ge\log\delta x ≥ log δ holds, let K ≥ 1 K\ge1 K ≥ 1 , π K = ( P + Q ) ( { z − x 0 ∣ z > K } ) \pi_K=(P+Q)(\{z-x_0\mid z>K\}) π K = ( P + Q ) ({ z − x 0 ∣ z > K }) , s n , m = ( x / n ) 1 / 2 + ( x / m ) 1 / 2 s_{n,m}=(x/n)^{1/2}+(x/m)^{1/2} s n , m = ( x / n ) 1/2 + ( x / m ) 1/2 and r n , m = 1 / n + 1 / m r_{n,m}=1/n+1/m r n , m = 1/ n + 1/ m . Let φ ∈ H \varphi\in\mathcal{H} φ ∈ H with osc ( φ ) ≤ 1 \operatorname{osc}(\varphi)\le1 osc ( φ ) ≤ 1 , N = max ( ∥ φ ∥ H , 1 2 ) N=\max(\|\varphi\|_{\mathcal{H}},\frac12) N = max ( ∥ φ ∥ H , 2 1 ) and T = err ( φ ) T=\operatorname{err}(\varphi) T = err ( φ ) .
(a) ∣ Δ ( φ ) ∣ ≤ a ′ + ϖ ′ N 1 / 2 + b N |\Delta(\varphi)| \leq a' + \varpi'N^{1/2} + bN ∣Δ ( φ ) ∣ ≤ a ′ + ϖ ′ N 1/2 + b N , with a ′ = 5 s n , m + 4 c x r n , m + 2 π κ a' = 5s_{n,m} + 4c_xr_{n,m} + 2\pi\kappa a ′ = 5 s n , m + 4 c x r n , m + 2 π κ , ϖ ′ = 2 K 1 / 4 s n , m \varpi' = 2K^{1/4}s_{n,m} ϖ ′ = 2 K 1/4 s n , m and b = 6 K 1 / 2 c x r n , m b = 6K^{1/2}c_xr_{n,m} b = 6 K 1/2 c x r n , m .
(b) Under (17) , ∣ Δ ( φ ) ∣ ≤ a + ϖ N 1 / 2 T 3 / 10 + b N |\Delta(\varphi)| \leq a + \varpi N^{1/2}T^{3/10} + bN ∣Δ ( φ ) ∣ ≤ a + ϖ N 1/2 T 3/10 + b N , with a = A 0 s n , m + 7 c x r n , m + 2 π κ a = A_0s_{n,m} + 7c_xr_{n,m} + 2\pi\kappa a = A 0 s n , m + 7 c x r n , m + 2 π κ , ϖ = A 1 K 1 / 4 s n , m \varpi= A_1K^{1/4}s_{n,m} ϖ = A 1 K 1/4 s n , m , A 0 = 4 + 2 ( 2 p ˉ ) 1 / 2 + 4 ( c ∗ r ∗ ) − 1 / 2 A_0 = 4 + 2(2\bar p)^{1/2} + 4(c_*r_*)^{-1/2} A 0 = 4 + 2 ( 2 p ˉ ) 1/2 + 4 ( c ∗ r ∗ ) − 1/2 and A 1 = 2 { ( 2 2 p ˉ ) 1 / 2 + 2 1 / 5 ( 2 2 / ( c ∗ r ∗ ) ) 1 / 2 } A_1 = 2\{(2\sqrt{2}\,\bar p)^{1/2} + 2^{1/5}(2\sqrt{2}/(c_*r_*))^{1/2}\} A 1 = 2 {( 2 2 p ˉ ) 1/2 + 2 1/5 ( 2 2 / ( c ∗ r ∗ ) ) 1/2 } .
Proof. We bound ∫ φ d ( P ~ − P ) \int\varphi\,d(\widetilde P-P) ∫ φ d ( P − P ) ; the bound for Q ~ \widetilde Q Q is the same, and the two add. On the window W = [ x 0 − K , x 0 + K ] W=[x_0-K,x_0+K] W = [ x 0 − K , x 0 + K ] Lemma S4.24 applies, with the variation of φ \varphi φ controlled by its norm, and off W W W only the tail mass enters. Let M φ = sup φ M_\varphi=\sup\varphi M φ = sup φ and m φ = inf φ m_\varphi=\inf\varphi m φ = inf φ . By (S4.7) the variation of φ \varphi φ on an interval of length λ \lambda λ is at most ( 2 λ ) 1 / 2 N (2\lambda)^{1/2}N ( 2 λ ) 1/2 N , and off W W W , as ∣ φ ∣ ≤ 1 |\varphi|\leq1 ∣ φ ∣ ≤ 1 , ∣ ∫ W c φ d ( P ~ − P ) ∣ ≤ P ~ ( W c ) + P ( W c ) ≤ 2 π K P + 2 ( π K P x / n ) 1 / 2 + 2 c x / n \left|\int_{W^c}\varphi\,d(\widetilde P-P)\right|\leq\widetilde P(W^c)+P(W^c)\leq2\pi_K^P+2(\pi_K^Px/n)^{1/2}+2c_x/n ∫ W c φ d ( P − P ) ≤ P ( W c ) + P ( W c ) ≤ 2 π K P + 2 ( π K P x / n ) 1/2 + 2 c x / n , with π K P = P ( W c ) \pi_K^P=P(W^c) π K P = P ( W c ) , by the event of Lemma S4.23 for the two half-lines. For (a), write φ = m φ + h \varphi=m_\varphi+h φ = m φ + h on W W W and apply Lemma S4.24 with V W ( h ) ≤ 2 K 1 / 2 N V_W(h)\leq2K^{1/2}N V W ( h ) ≤ 2 K 1/2 N and ∫ W h d P ≤ 1 \int_W h\,dP\leq1 ∫ W h d P ≤ 1 , and the event to m φ ( P ~ − P ) ( W ) m_\varphi(\widetilde P-P)(W) m φ ( P − P ) ( W ) .
For (b), the error T T T controls the mass that φ \varphi φ carries away from its extreme values where p ≠ q p\ne q p = q , and (17) turns this into mass under P P P away from x 0 x_0 x 0 . Note that T > 0 T>0 T > 0 : if osc ( φ ) < 1 \operatorname{osc}(\varphi)<1 osc ( φ ) < 1 by (S4.8); otherwise T = 0 T=0 T = 0 would force φ = M φ \varphi=M_\varphi φ = M φ almost everywhere on { p > q } \{p>q\} { p > q } and φ = m φ \varphi=m_\varphi φ = m φ on { q > p } \{q>p\} { q > p } , which by (17) contain punctured neighborhoods of x 0 x_0 x 0 on the right and on the left, and continuity at x 0 x_0 x 0 would give M φ = m φ M_\varphi=m_\varphi M φ = m φ . Write φ = M φ − h \varphi=M_\varphi-h φ = M φ − h on R + = ( x 0 , ∞ ) R_+=(x_0,\infty) R + = ( x 0 , ∞ ) and φ = m φ + h \varphi=m_\varphi+h φ = m φ + h on R − = ( − ∞ , x 0 ] R_-=(-\infty,x_0] R − = ( − ∞ , x 0 ] , with h ∈ [ 0 , 1 ] h\in[0,1] h ∈ [ 0 , 1 ] . As ( P ~ − P ) ( R ) = 0 (\widetilde P-P)(\mathbb R)=0 ( P − P ) ( R ) = 0 ,
∫ φ d ( P ~ − P ) = ( M φ − m φ ) ( P ~ − P ) ( R + ) − ∫ R + h d ( P ~ − P ) + ∫ R − h d ( P ~ − P ) . \int\varphi\,d(\widetilde P-P)=(M_\varphi-m_\varphi)(\widetilde P-P)(R_+)-\int_{R_+}h\,d(\widetilde P-P)+\int_{R_-}h\,d(\widetilde P-P). ∫ φ d ( P − P ) = ( M φ − m φ ) ( P − P ) ( R + ) − ∫ R + h d ( P − P ) + ∫ R − h d ( P − P ) .
and by (S4.8), ∫ R + h ( p − q ) ≤ T \int_{R_+}h(p-q)\leq T ∫ R + h ( p − q ) ≤ T and ∫ R − h ( q − p ) ≤ T \int_{R_-}h(q-p)\leq T ∫ R − h ( q − p ) ≤ T . Put w = min ( r ∗ , T 2 / 5 ) w=\min(r_*,T^{2/5}) w = min ( r ∗ , T 2/5 ) and split R + R_+ R + into I 1 = ( x 0 , x 0 + w ] I_1=(x_0,x_0+w] I 1 = ( x 0 , x 0 + w ] , I 2 = ( x 0 + w , x 0 + K ] I_2=(x_0+w,x_0+K] I 2 = ( x 0 + w , x 0 + K ] and ( x 0 + K , ∞ ) (x_0+K,\infty) ( x 0 + K , ∞ ) . On the short interval I 1 I_1 I 1 , V I 1 ( h ) ≤ ( 2 w ) 1 / 2 N V_{I_1}(h)\leq(2w)^{1/2}N V I 1 ( h ) ≤ ( 2 w ) 1/2 N and ∫ I 1 h d P ≤ p ˉ w \int_{I_1}h\,dP\leq\bar p w ∫ I 1 h d P ≤ p ˉ w . On I 2 I_2 I 2 the densities differ, (17) gives p ≤ ( p − q ) / ( c ∗ w ) p\leq(p-q)/(c_*w) p ≤ ( p − q ) / ( c ∗ w ) , so ∫ I 2 h d P ≤ T / ( c ∗ w ) \int_{I_2}h\,dP\leq T/(c_*w) ∫ I 2 h d P ≤ T / ( c ∗ w ) , while V I 2 ( h ) ≤ ( 2 K ) 1 / 2 N V_{I_2}(h)\leq(2K)^{1/2}N V I 2 ( h ) ≤ ( 2 K ) 1/2 N . Lemma S4.24 bounds the two pieces by
( 2 2 p ˉ ) 1 / 2 w 3 / 4 N 1 / 2 ( x n ) 1 / 2 + ( 2 p ˉ ) 1 / 2 ( x n ) 1 / 2 + ( 2 N + 2 K 1 / 2 N + 2 ) c x n + { ( 2 2 c ∗ ) 1 / 2 K 1 / 4 N 1 / 2 + ( 2 c ∗ ) 1 / 2 } ( T w ) 1 / 2 ( x n ) 1 / 2 . \begin{aligned}
(2\sqrt{2}\,\bar p)^{1/2}w^{3/4}N^{1/2}\left(\frac{x}{n}\right)^{1/2}+(2\bar p)^{1/2}\left(\frac{x}{n}\right)^{1/2}+(\sqrt{2}N+\sqrt{2}K^{1/2}N+2)\frac{c_x}{n} \\
&+\left\{\left(\frac{2\sqrt{2}}{c_*}\right)^{1/2}K^{1/4}N^{1/2}+\left(\frac{2}{c_*}\right)^{1/2}\right\}\left(\frac{T}{w}\right)^{1/2}\left(\frac{x}{n}\right)^{1/2}.
\end{aligned} ( 2 2 p ˉ ) 1/2 w 3/4 N 1/2 ( n x ) 1/2 + ( 2 p ˉ ) 1/2 ( n x ) 1/2 + ( 2 N + 2 K 1/2 N + 2 ) n c x + ⎩ ⎨ ⎧ ( c ∗ 2 2 ) 1/2 K 1/4 N 1/2 + ( c ∗ 2 ) 1/2 ⎭ ⎬ ⎫ ( w T ) 1/2 ( n x ) 1/2 .
The width w w w balances the first and the last term: it gives w 3 / 4 ≤ T 3 / 10 w^{3/4}\leq T^{3/10} w 3/4 ≤ T 3/10 and ( T / w ) 1 / 2 ≤ 2 1 / 5 r ∗ − 1 / 2 T 3 / 10 (T/w)^{1/2}\leq2^{1/5}r_*^{-1/2}T^{3/10} ( T / w ) 1/2 ≤ 2 1/5 r ∗ − 1/2 T 3/10 , since if w = T 2 / 5 w=T^{2/5} w = T 2/5 the latter is T 3 / 10 T^{3/10} T 3/10 , and if w = r ∗ < T 2 / 5 w=r_*<T^{2/5} w = r ∗ < T 2/5 it is T 3 / 10 T 1 / 5 r ∗ − 1 / 2 T^{3/10}T^{1/5}r_*^{-1/2} T 3/10 T 1/5 r ∗ − 1/2 with T ≤ 2 T\leq2 T ≤ 2 ; also ( T / w ) 1 / 2 ≤ ( 2 / r ∗ ) 1 / 2 (T/w)^{1/2}\leq(2/r_*)^{1/2} ( T / w ) 1/2 ≤ ( 2/ r ∗ ) 1/2 . The half-line R − R_- R − is split in the same way, with q − p q-p q − p for p − q p-q p − q . Adding the bounds for the two half-lines, for the term ( M φ − m φ ) ( P ~ − P ) ( R + ) (M_\varphi-m_\varphi)(\widetilde P-P)(R_+) ( M φ − m φ ) ( P − P ) ( R + ) , which the event of Lemma S4.23 controls, and off W W W , and using 2 2 ( 1 + K 1 / 2 ) ≤ 6 K 1 / 2 2\sqrt{2}(1+K^{1/2})\leq6K^{1/2} 2 2 ( 1 + K 1/2 ) ≤ 6 K 1/2 , we get
∣ ∫ φ d ( P ~ − P ) ∣ ≤ A 0 ( x n ) 1 / 2 + 7 c x n + 2 π K P + A 1 K 1 / 4 N 1 / 2 T 3 / 10 ( x n ) 1 / 2 + 6 K 1 / 2 N c x n . \left|\int\varphi\,d(\widetilde P-P)\right|\leq A_0\left(\frac{x}{n}\right)^{1/2}+\frac{7c_x}{n}+2\pi_K^P+A_1K^{1/4}N^{1/2}T^{3/10}\left(\frac{x}{n}\right)^{1/2}+\frac{6K^{1/2}Nc_x}{n}. ∫ φ d ( P − P ) ≤ A 0 ( n x ) 1/2 + n 7 c x + 2 π K P + A 1 K 1/4 N 1/2 T 3/10 ( n x ) 1/2 + n 6 K 1/2 N c x .
where A 0 A_0 A 0 collects the constant terms, 2 ( 2 p ˉ ) 1 / 2 + 4 ( c ∗ r ∗ ) − 1 / 2 2(2\bar p)^{1/2}+4(c_*r_*)^{-1/2} 2 ( 2 p ˉ ) 1/2 + 4 ( c ∗ r ∗ ) − 1/2 from the two half-lines and at most 4 4 4 from ( P ~ − P ) ( R + ) (\widetilde P-P)(R_+) ( P − P ) ( R + ) and the tails. For Q ~ \widetilde Q Q , use q ≤ ( p − q ) / ( c ∗ w ) q\leq(p-q)/(c_*w) q ≤ ( p − q ) / ( c ∗ w ) on I 2 I_2 I 2 and Q ( I 1 ) ≤ p ˉ w Q(I_1)\leq\bar p w Q ( I 1 ) ≤ p ˉ w . ∎
Lemma S4.26 (Other cut points). Let u ^ ≤ u ~ < t ~ ≤ t ^ \widehat{u} \le\widetilde{u} < \widetilde{t} \le\widehat{t} u ≤ u < t ≤ t , a o = ( u ~ − u ^ ) / s ^ a_o = (\widetilde{u}-\widehat{u})/\widehat{s} a o = ( u − u ) / s and b o = ( t ^ − t ~ ) / s ^ b_o = (\widehat{t}-\widetilde{t})/\widehat{s} b o = ( t − t ) / s , so that a o + b o < 1 a_o+b_o < 1 a o + b o < 1 . The ramp ψ ~ \widetilde{\psi} ψ of f ^ \widehat{f} f between u ~ \widetilde{u} u and t ~ \widetilde{t} t satisfies E P ψ ~ − E Q ψ ~ ≥ E P ψ ^ − E Q ψ ^ − max ( a o , b o ) err ( ψ ^ ) / ( 1 − a o − b o ) \mathbb{E}_P\widetilde{\psi}-\mathbb{E}_Q\widetilde{\psi} \ge\mathbb{E}_P\widehat{\psi}-\mathbb{E}_Q\widehat{\psi}-\max(a_o,b_o)\operatorname{err}(\widehat{\psi})/(1-a_o-b_o) E P ψ − E Q ψ ≥ E P ψ − E Q ψ − max ( a o , b o ) err ( ψ ) / ( 1 − a o − b o ) . By Lemma S4.21, own-term cut points at genuine quantiles have a o ≤ 1 / ( m ′ D ^ s ^ ) a_o \le1/(m'\widehat{D}\widehat{s}) a o ≤ 1/ ( m ′ D s ) and b o ≤ 1 / ( n ′ D ^ s ^ ) b_o \le1/(n'\widehat{D}\widehat{s}) b o ≤ 1/ ( n ′ D s ) .
Proof. Moving the cut points inward rescales the ramp, and the error of the ramp controls what the rescaling costs. As f ^ = u ^ + s ^ ψ ^ \widehat{f}=\widehat{u}+\widehat{s}\widehat{\psi} f = u + s ψ , ψ ~ = χ ( ψ ^ ) \widetilde{\psi}=\chi(\widehat{\psi}) ψ = χ ( ψ ) with χ ( s ) = min [ 1 , max { 0 , ( s − a o ) / ( 1 − a o − b o ) } ] \chi(s)=\min[1,\max\{0,(s-a_o)/(1-a_o-b_o)\}] χ ( s ) = min [ 1 , max { 0 , ( s − a o ) / ( 1 − a o − b o )}] , and checking the three pieces [ 0 , a o ] [0,a_o] [ 0 , a o ] , [ a o , 1 − b o ] [a_o,1-b_o] [ a o , 1 − b o ] , [ 1 − b o , 1 ] [1-b_o,1] [ 1 − b o , 1 ] gives − a o ( 1 − s ) ≤ ( 1 − a o − b o ) { χ ( s ) − s } ≤ b o s -a_o(1-s)\le(1-a_o-b_o)\{\chi(s)-s\}\le b_os − a o ( 1 − s ) ≤ ( 1 − a o − b o ) { χ ( s ) − s } ≤ b o s on [ 0 , 1 ] [0,1] [ 0 , 1 ] . Integrate against ( p − q ) + (p-q)_+ ( p − q ) + and ( q − p ) + (q-p)_+ ( q − p ) + and use err ( ψ ) = ∫ ( 1 − ψ ) ( p − q ) + + ψ ( q − p ) + \operatorname{err}(\psi)=\int(1-\psi)(p-q)_+ + \psi(q-p)_+ err ( ψ ) = ∫ ( 1 − ψ ) ( p − q ) + + ψ ( q − p ) + for [ 0 , 1 ] [0,1] [ 0 , 1 ] -valued ψ \psi ψ . □
Proposition S4.27 (The fitted ramp keeps a linear excess). On the events of Lemma S4.23 for P ~ \widetilde{P} P and Q ~ \widetilde{Q} Q with a common x ≥ log 8 x\ge\log8 x ≥ log 8 , and with the constants of Lemma S4.25 for the sizes n ′ , m ′ n',m' n ′ , m ′ , put, in case (i) of Theorem 5.11,
ϵ f i t = max { 24 a κ 0 , 108 ϖ κ 0 c V 1 / 2 , ( 300 b κ 0 c V ) 4 / 5 , ( 2 c V ) 20 / 33 ϖ 40 / 33 , ( 1920 κ 0 c V 2 ( n ′ ∧ m ′ ) ) 2 / 3 } , \epsilon_{\mathrm{fit}}=\max\left\{\frac{24a}{\kappa_0},\frac{108\varpi}{\kappa_0c_V^{1/2}},\left(\frac{300b}{\kappa_0c_V}\right)^{4/5},\left(\frac{2}{c_V}\right)^{20/33}\varpi^{40/33},\left(\frac{1920}{\kappa_0c_V^2(n'\wedge m')}\right)^{2/3}\right\}, ϵ fit = max { κ 0 24 a , κ 0 c V 1/2 108 ϖ , ( κ 0 c V 300 b ) 4/5 , ( c V 2 ) 20/33 ϖ 40/33 , ( κ 0 c V 2 ( n ′ ∧ m ′ ) 1920 ) 2/3 } , and in case (ii)
ϵ f i t = max { 24 a ′ κ 0 , ( 60 ϖ ′ κ 0 − 1 c V − 1 / 2 ) 8 / 9 , ( 156 b κ 0 − 1 c V − 1 ) 4 / 5 , ( 576 κ 0 − 1 c V − 2 ( n ′ ∧ m ′ ) − 1 ) 2 / 3 } . \epsilon_{\mathrm{fit}}=\max\left\{\frac{24a'}{\kappa_0},(60\varpi'\kappa_0^{-1}c_V^{-1/2})^{8/9},(156b\kappa_0^{-1}c_V^{-1})^{4/5},(576\kappa_0^{-1}c_V^{-2}(n'\wedge m')^{-1})^{2/3}\right\}. ϵ fit = max { κ 0 24 a ′ , ( 60 ϖ ′ κ 0 − 1 c V − 1/2 ) 8/9 , ( 156 b κ 0 − 1 c V − 1 ) 4/5 , ( 576 κ 0 − 1 c V − 2 ( n ′ ∧ m ′ ) − 1 ) 2/3 } . At every level α = α ⋆ − ϵ ∈ ( 0 , α ⋆ ) \alpha=\alpha^\star-\epsilon\in(0,\alpha^\star) α = α ⋆ − ϵ ∈ ( 0 , α ⋆ ) with ϵ ≥ ϵ f i t \epsilon\ge\epsilon_{\mathrm{fit}} ϵ ≥ ϵ fit , the ramp fitted on P ~ , Q ~ \widetilde{P},\widetilde{Q} P , Q with genuine-quantile cut points, plain or own-term, has cut points that do not cross and E P ψ − E Q ψ − α ≥ κ 0 ϵ / 2 \mathbb{E}_P\psi-\mathbb{E}_Q\psi-\alpha\ge\kappa_0\epsilon/2 E P ψ − E Q ψ − α ≥ κ 0 ϵ /2 .
Proof. In case (i) we bound the fluctuation of the population ramp, then the norm and the error of the fitted ramp by a fixed-point argument, and then its fluctuation; the constants 24, 108 and 300 in ϵ f i t \epsilon_{\mathrm{fit}} ϵ fit are chosen so that a a a , ϖ \varpi ϖ and b b b each contribute at most κ 0 ϵ / 12 \kappa_0\epsilon/12 κ 0 ϵ /12 at the end; the fourth term gives ϖ 5 y − 5 / 2 ≤ ϵ \varpi^5y^{-5/2}\le\epsilon ϖ 5 y − 5/2 ≤ ϵ , and the fifth, with 1920 = 48 ⋅ 40 1920=48\cdot40 1920 = 48 ⋅ 40 , bounds the shifts a o , b o a_o,b_o a o , b o of the own-term cut points by κ 0 / 40 \kappa_0/40 κ 0 /40 . As ∥ ϕ ⋆ ∥ H ≤ c V − 1 / 4 ϵ − 1 / 4 \|\phi^\star\|_H\le c_V^{-1/4}\epsilon^{-1/4} ∥ ϕ ⋆ ∥ H ≤ c V − 1/4 ϵ − 1/4 and err ( ϕ ⋆ ) ≤ ϵ \operatorname{err}(\phi^\star)\le\epsilon err ( ϕ ⋆ ) ≤ ϵ , Lemma S4.25(b) and the first three terms of ϵ f i t \epsilon_{\mathrm{fit}} ϵ fit give
∣ Δ ⋆ ∣ ≤ a + c V − 1 / 2 ϖ ϵ 7 / 40 + c V − 1 b ϵ − 1 / 4 ≤ κ 0 ϵ ( 1 24 + 1 108 + 1 300 ) < κ 0 ϵ 4 . |\Delta^\star|\le a+c_V^{-1/2}\varpi\epsilon^{7/40}+c_V^{-1}b\epsilon^{-1/4}\le\kappa_0\epsilon\left(\frac{1}{24}+\frac{1}{108}+\frac{1}{300}\right)<\frac{\kappa_0\epsilon}{4}. ∣ Δ ⋆ ∣ ≤ a + c V − 1/2 ϖ ϵ 7/40 + c V − 1 b ϵ − 1/4 ≤ κ 0 ϵ ( 24 1 + 108 1 + 300 1 ) < 4 κ 0 ϵ .
By Lemma S4.22(iii), y ≥ c V ϵ 5 / 4 / 2 y\ge c_V\epsilon^{5/4}/2 y ≥ c V ϵ 5/4 /2 , so b ≤ y / 4 b\le y/4 b ≤ y /4 . The fitted ramp now appears on both sides: Lemma S4.22(i) and Lemma S4.25(b) for ϕ ^ \widehat{\phi} ϕ give N ^ y + T ^ ≤ ϵ + a + ϖ N ^ 1 / 2 T ^ 3 / 10 + b N ^ \widehat{N}y+\widehat{T}\le\epsilon+a+\varpi\widehat{N}^{1/2}\widehat{T}^{3/10}+b\widehat{N} N y + T ≤ ϵ + a + ϖ N 1/2 T 3/10 + b N . The weighted arithmetic–geometric mean inequality u 1 / 2 v 3 / 10 w 1 / 5 ≤ u / 2 + 3 v / 10 + w / 5 u^{1/2}v^{3/10}w^{1/5}\le u/2+3v/10+w/5 u 1/2 v 3/10 w 1/5 ≤ u /2 + 3 v /10 + w /5 with u = N ^ y u=\widehat{N}y u = N y , v = T ^ v=\widehat{T} v = T and w = ϖ 5 y − 5 / 2 w=\varpi^5y^{-5/2} w = ϖ 5 y − 5/2 separates the unknowns on the right, and with b N ^ ≤ N ^ y / 4 b\widehat{N}\le\widehat{N}y/4 b N ≤ N y /4 gives
N ^ y 4 + 7 T ^ 10 ≤ ϵ + a + ϖ 5 y − 5 / 2 5 ≤ 3 ϵ , \frac{\widehat{N}y}{4}+\frac{7\widehat{T}}{10}\le\epsilon+a+\frac{\varpi^5y^{-5/2}}{5}\le3\epsilon, 4 N y + 10 7 T ≤ ϵ + a + 5 ϖ 5 y − 5/2 ≤ 3 ϵ ,
the fourth term of ϵ f i t \epsilon_{\mathrm{fit}} ϵ fit giving ϖ 5 y − 5 / 2 ≤ ϵ \varpi^5y^{-5/2}\le\epsilon ϖ 5 y − 5/2 ≤ ϵ . Hence N ^ ≤ 24 c V − 1 / 4 ϵ − 1 / 4 \widehat{N}\le24c_V^{-1/4}\epsilon^{-1/4} N ≤ 24 c V − 1/4 ϵ − 1/4 and T ^ ≤ 5 ϵ \widehat{T}\le5\epsilon T ≤ 5 ϵ : up to constants, the fitted ramp has the norm and the error of the population one. Lemma S4.25(b) once more gives Δ ^ ≤ a + 8 c V − 1 / 2 ϖ + 24 c V − 1 b ϵ − 1 / 4 \widehat{\Delta}\le a+8c_V^{-1/2}\varpi+24c_V^{-1}b\epsilon^{-1/4} Δ ≤ a + 8 c V − 1/2 ϖ + 24 c V − 1 b ϵ − 1/4 , so that ∣ Δ ⋆ ∣ + Δ ^ ≤ 2 a + 9 c V − 1 / 2 ϖ + 25 c V − 1 b ϵ − 1 / 4 ≤ κ 0 ϵ / 4 |\Delta^\star|+\widehat{\Delta}\le2a+9c_V^{-1/2}\varpi+25c_V^{-1}b\epsilon^{-1/4}\le\kappa_0\epsilon/4 ∣ Δ ⋆ ∣ + Δ ≤ 2 a + 9 c V − 1/2 ϖ + 25 c V − 1 b ϵ − 1/4 ≤ κ 0 ϵ /4 , and by Lemma S4.22(ii) the plain ramp has excess at least 3 κ 0 ϵ / 4 3\kappa_0\epsilon/4 3 κ 0 ϵ /4 . For own-term cut points, D ^ s ^ ≥ y / N ^ ≥ c V 2 ϵ 3 / 2 / 48 \widehat{D}\widehat{s}\ge y/\widehat{N}\ge c_V^2\epsilon^{3/2}/48 D s ≥ y / N ≥ c V 2 ϵ 3/2 /48 , so by Lemma S4.26 and the fifth term max ( a o , b o ) ≤ κ 0 / 40 \max(a_o,b_o)\le\kappa_0/40 max ( a o , b o ) ≤ κ 0 /40 , and the loss is at most ( κ 0 / 40 ) ( 20 / 19 ) 5 ϵ < κ 0 ϵ / 4 (\kappa_0/40)(20/19)5\epsilon<\kappa_0\epsilon/4 ( κ 0 /40 ) ( 20/19 ) 5 ϵ < κ 0 ϵ /4 .
Case (ii) is the same argument with part (a) of Lemma S4.25, which has no factor T 3 / 10 T^{3/10} T 3/10 . It gives ∣ Δ ⋆ ∣ ≤ a ′ + c V − 1 / 2 ϖ ′ ϵ − 1 / 8 + c V − 1 b ϵ − 1 / 4 ≤ κ 0 ϵ / 4 |\Delta^\star|\le a'+c_V^{-1/2}\varpi'\epsilon^{-1/8}+c_V^{-1}b\epsilon^{-1/4}\le\kappa_0\epsilon/4 ∣ Δ ⋆ ∣ ≤ a ′ + c V − 1/2 ϖ ′ ϵ − 1/8 + c V − 1 b ϵ − 1/4 ≤ κ 0 ϵ /4 , so y ≥ c V ϵ 5 / 4 / 2 ≥ 4 b y\ge c_V\epsilon^{5/4}/2\ge4b y ≥ c V ϵ 5/4 /2 ≥ 4 b .
::: With ϖ ′ N ^ 1 / 2 ≤ N ^ y / 4 + ϖ ^ ′ 2 / y \varpi'\widehat{N}^{1/2}\le\widehat{N}y/4+\widehat{\varpi}'^{2}/y ϖ ′ N 1/2 ≤ N y /4 + ϖ ′ 2 / y and ϖ ^ ′ 2 / y ≤ ϵ \widehat{\varpi}'^{2}/y\le\epsilon ϖ ′ 2 / y ≤ ϵ (second term), N ^ y / 2 + T ^ ≤ 3 ϵ \widehat{N}y/2+\widehat{T}\le3\epsilon N y /2 + T ≤ 3 ϵ , so N ^ ≤ 12 c ν − 1 ϵ − 1 / 4 \widehat{N}\le12c_{\nu}^{-1}\epsilon^{-1/4} N ≤ 12 c ν − 1 ϵ − 1/4 , T ^ ≤ 3 ϵ \widehat{T}\le3\epsilon T ≤ 3 ϵ and ∣ Δ ⋆ ∣ + Δ ^ ≤ 2 a ′ + 5 c ν − 1 / 2 ( ϖ ′ ϵ − 1 / 8 + 13 c ν − 1 ϵ − 1 / 4 ≤ κ 0 ϵ / 4 |\Delta^\star|+\widehat{\Delta}\le2a'+5c_{\nu}^{-1/2}(\varpi'\epsilon^{-1/8}+13c_{\nu}^{-1}\epsilon^{-1/4}\le\kappa_0\epsilon/4 ∣ Δ ⋆ ∣ + Δ ≤ 2 a ′ + 5 c ν − 1/2 ( ϖ ′ ϵ − 1/8 + 13 c ν − 1 ϵ − 1/4 ≤ κ 0 ϵ /4 ; the own terms have max ( a o , b o ) ≤ 24 / { c ν ′ 2 ( n ′ ∧ m ′ ) 3 / 2 ϵ 3 / 2 } ≤ κ 0 / 24 \max(a_o,b_o)\le24/\{c_{\nu}^{\prime2}(n'\wedge m')^{3/2}\epsilon^{3/2}\}\le\kappa_0/24 max ( a o , b o ) ≤ 24/ { c ν ′2 ( n ′ ∧ m ′ ) 3/2 ϵ 3/2 } ≤ κ 0 /24 and cost less than κ 0 ϵ / 4 \kappa_0\epsilon/4 κ 0 ϵ /4 .
Proof of Theorem S4.19. The structure is that of the proof of Theorem S4.3, with Proposition S4.27 in place of the margin: one event makes every fitted ramp good, and a union over the levels handles the bets.
We first fix the fitting event. Take
x = log { 16 ( n ∨ m + 1 ) 2 / η } , K = max { 1 , C ′ log ( n ∨ m ) } , x=\log\{16(n\vee m+1)^2/\eta\},\qquad K=\max\{1,C'\log(n\vee m)\}, x = log { 16 ( n ∨ m + 1 ) 2 / η } , K = max { 1 , C ′ log ( n ∨ m )} ,
so that the window of Lemma S4.25 leaves a tail mass of order 1 / ( n ∨ m ) 1/(n\vee m) 1/ ( n ∨ m ) . Let E f i t \mathcal{E}_{\mathrm{fit}} E fit be the intersection of the events of Lemma S4.23, each with η ′ = η / 8 \eta'=\eta/8 η ′ = η /8 , for the X X X 's and the Y Y Y 's of batch 0 and of batches 0 and 1. These events weaken as x x x grows, so all four hold with this x x x , and P ( E f i t ) ≤ η / 2 \mathbb{P}(\mathcal{E}_{\mathrm{fit}})\le\eta/2 P ( E fit ) ≤ η /2 . The constants of Lemma S4.25 and the last term of ϵ f i t \epsilon_{\mathrm{fit}} ϵ fit decrease in the sample sizes, so the ϵ f i t \epsilon_{\mathrm{fit}} ϵ fit of batch 0 serves for both fits.
Next we choose the distance ϵ \epsilon ϵ from α ⋆ \alpha^\star α ⋆ . Let
T ~ b e t ( J ′ ) = ( 2 N ) 1 / 2 { ( 1 + 16 v min 2 ) L δ 1 / 2 + 2 v min ( log ( 2 J ′ / η ) ) 1 / 2 } , \widetilde{T}_{\mathrm{bet}}(J')=\left(\frac{2}{N}\right)^{1/2}\left\{\left(1+\frac{16}{v_{\min}^{2}}\right)L_{\delta}^{1/2}+\frac{2}{v_{\min}}\left(\log(2J'/\eta)\right)^{1/2}\right\}, T bet ( J ′ ) = ( N 2 ) 1/2 { ( 1 + v m i n 2 16 ) L δ 1/2 + v m i n 2 ( log ( 2 J ′ / η ) ) 1/2 } ,
the T b e t ( η , J ′ ) T_{\mathrm{bet}}(\eta,J') T bet ( η , J ′ ) of (S4.1) divided by 2 Δ ϕ 2\Delta_\phi 2 Δ ϕ . With J ϵ J_\epsilon J ϵ and a ϵ a_\epsilon a ϵ as in Theorem S4.3, fix ϵ ∈ [ ϵ f i t , α ⋆ ) \epsilon\in[\epsilon_{\mathrm{fit}},\alpha^\star) ϵ ∈ [ ϵ fit , α ⋆ ) with κ 0 ϵ ≥ 2 T ~ b e t ( J ϵ ) \kappa_0\epsilon\ge2\widetilde{T}_{\mathrm{bet}}(J_\epsilon) κ 0 ϵ ≥ 2 T bet ( J ϵ ) , and put ϱ ∗ = κ 0 ϵ / 2 \varrho_\ast=\kappa_0\epsilon/2 ϱ ∗ = κ 0 ϵ /2 . Write each grid level α j ≤ α ⋆ − ϵ \alpha_j\le\alpha^\star-\epsilon α j ≤ α ⋆ − ϵ as α j = α ⋆ − ϵ ξ j \alpha_j=\alpha^\star-\epsilon\xi_j α j = α ⋆ − ϵ ξ j , so that ξ j ≥ 1 \xi_j\ge1 ξ j ≥ 1 and ϵ ξ j ≥ ϵ f i t \epsilon\xi_j\ge\epsilon_{\mathrm{fit}} ϵ ξ j ≥ ϵ fit . On E f i t \mathcal{E}_{\mathrm{fit}} E fit , Proposition S4.27 at the level α j \alpha_j α j shows that both batches have a ramp with
E P ψ b − E Q ψ b − α j ≥ ϱ ∗ ξ j . \mathbb{E}_{P}\psi_b-\mathbb{E}_{Q}\psi_b-\alpha_j\ge\varrho_\ast\xi_j. E P ψ b − E Q ψ b − α j ≥ ϱ ∗ ξ j .
The bets then win at every such level. As 1 > κ 0 ϵ ≥ 10 ( 2 L δ / N ) 1 / 2 1>\kappa_0\epsilon\ge10(2L_\delta/N)^{1/2} 1 > κ 0 ϵ ≥ 10 ( 2 L δ / N ) 1/2 , we have N ≥ 200 L δ N\ge200L_\delta N ≥ 200 L δ , and the first bound of (S3.6), with E = E f i t \mathcal{E}=\mathcal{E}_{\mathrm{fit}} E = E fit and ϱ = ϱ ∗ ξ j \varrho=\varrho_\ast\xi_j ϱ = ϱ ∗ ξ j , gives
P ( E f i t ∩ { H 0 , α j is not rejected } ) ≤ exp { − v min 2 4 L δ ( ϱ ∗ ξ j S − C 0 ) 2 } . \mathbb{P}\left(\mathcal{E}_{\mathrm{fit}}\cap\{H_{0,\alpha_j}\text{ is not rejected}\}\right)\le\exp\left\{-\frac{v_{\min}^{2}}{4L_\delta}(\varrho_\ast\xi_jS-C_0)^2\right\}. P ( E fit ∩ { H 0 , α j is not rejected } ) ≤ exp { − 4 L δ v m i n 2 ( ϱ ∗ ξ j S − C 0 ) 2 } .
with S = ( N L δ / 2 ) 1 / 2 S=(NL_\delta/2)^{1/2} S = ( N L δ /2 ) 1/2 and C 0 = L δ ( 1 + 16 / v min 2 ) C_0=L_\delta(1+16/v_{\min}^{2}) C 0 = L δ ( 1 + 16/ v m i n 2 ) . Multiplied by S S S , the condition ϱ ∗ ≥ T ~ b e t ( J ϵ ) \varrho_\ast\ge\widetilde{T}_{\mathrm{bet}}(J_\epsilon) ϱ ∗ ≥ T bet ( J ϵ ) reads a ∗ = ϱ ∗ S − C 0 ≥ 2 v min { L δ log ( 2 J ϵ / η ) } 1 / 2 a_\ast=\varrho_\ast S-C_0\ge2v_{\min}\{L_\delta\log(2J_\epsilon/\eta)\}^{1/2} a ∗ = ϱ ∗ S − C 0 ≥ 2 v m i n { L δ log ( 2 J ϵ / η ) } 1/2 . Since ϱ ∗ ξ j S − C 0 ≥ a ∗ ξ j \varrho_\ast\xi_jS-C_0\ge a_\ast\xi_j ϱ ∗ ξ j S − C 0 ≥ a ∗ ξ j , each term is at most e − A ξ j 2 e^{-A\xi_j^2} e − A ξ j 2 with A = v min 2 a ∗ 2 / ( 4 L δ ) ≥ log ( 2 J ϵ / η ) > log 2 A=v_{\min}^{2}a_\ast^2/(4L_\delta)\ge\log(2J_\epsilon/\eta)>\log2 A = v m i n 2 a ∗ 2 / ( 4 L δ ) ≥ log ( 2 J ϵ / η ) > log 2 . The summation over the levels in the proof of Theorem S4.3, with γ = 1 \gamma=1 γ = 1 , bounds the sum by η / 2 \eta/2 η /2 , and (4.1) gives P ( α ^ < a ϵ ) ≤ η \mathbb{P}(\widehat{\alpha}<a_\epsilon)\le\eta P ( α < a ϵ ) ≤ η . Put ϵ n , m = max { ϵ f i t , 2 T ~ b e t ( J ) / κ 0 } \epsilon_{n,m}=\max\{\epsilon_{\mathrm{fit}},2\widetilde{T}_{\mathrm{bet}}(J)/\kappa_0\} ϵ n , m = max { ϵ fit , 2 T bet ( J ) / κ 0 } , which is either at least α ⋆ \alpha^\star α ⋆ or satisfies the requirements on ϵ \epsilon ϵ . With Corollary 4.3, with probability at least 1 − δ − η 1-\delta-\eta 1 − δ − η ,
α ⋆ − Δ G − min { ϵ n , m , α ⋆ } ≤ α ^ ≤ α ⋆ . \alpha^\star-\Delta_{\mathcal{G}}-\min\{\epsilon_{n,m},\alpha^\star\}\le\widehat{\alpha}\le\alpha^\star. α ⋆ − Δ G − min { ϵ n , m , α ⋆ } ≤ α ≤ α ⋆ .
It remains to read the orders of the terms of ϵ f i t \epsilon_{\mathrm{fit}} ϵ fit and of T ~ b e t \widetilde{T}_{\mathrm{bet}} T bet . As in the proof of Theorem S4.3(iii), n ′ ∧ m ′ ≥ ( n ∧ m ) / 5 n'\wedge m'\ge(n\wedge m)/5 n ′ ∧ m ′ ≥ ( n ∧ m ) /5 and N ≥ ( n ∧ m ) / 2 N\ge(n\wedge m)/2 N ≥ ( n ∧ m ) /2 for n ∧ m ≥ 10 n\wedge m\ge10 n ∧ m ≥ 10 , so that
s n ′ , m ′ ≤ 2 ( 5 x n ∧ m ) 1 / 2 , r n ′ , m ′ ≤ 10 n ∧ m , π K ≤ C ′ ′ n ∨ m , s_{n',m'}\le2\left(\frac{5x}{n\wedge m}\right)^{1/2},\qquad r_{n',m'}\le\frac{10}{n\wedge m},\qquad\pi_K\le\frac{C''}{n\vee m}, s n ′ , m ′ ≤ 2 ( n ∧ m 5 x ) 1/2 , r n ′ , m ′ ≤ n ∧ m 10 , π K ≤ n ∨ m C ′′ ,
with C ′ ′ C'' C ′′ depending on C ′ C' C ′ and, in case (i), on c ∗ r ∗ c_\ast r_\ast c ∗ r ∗ , and K 1 / 4 x 1 / 2 ≤ C ′ ′ ′ ( log ( n ∨ m ) ) 1 / 4 L n , m 1 / 2 K^{1/4}x^{1/2}\le C'''(\log(n\vee m))^{1/4}L_{n,m}^{1/2} K 1/4 x 1/2 ≤ C ′′′ ( log ( n ∨ m ) ) 1/4 L n , m 1/2 with C ′ ′ ′ ≥ 1 C'''\ge1 C ′′′ ≥ 1 depending only on C ′ C' C ′ . If K 1 / 2 x > n ∧ m K^{1/2}x>n\wedge m K 1/2 x > n ∧ m , the bounds of the theorem exceed 1 > α ⋆ 1>\alpha^\star 1 > α ⋆ once C ≥ C ′ ′ ′ C\ge C''' C ≥ C ′′′ , and there is nothing to prove. Otherwise u = K 1 / 4 { x / ( n ∨ m ) } 1 / 2 ≤ 1 u=K^{1/4}\{x/(n\vee m)\}^{1/2}\le1 u = K 1/4 { x / ( n ∨ m ) } 1/2 ≤ 1 , and u 8 / 5 = { K 1 / 2 x / ( n ∨ m ) } 4 / 5 u^{8/5}=\{K^{1/2}x/(n\vee m)\}^{4/5} u 8/5 = { K 1/2 x / ( n ∨ m ) } 4/5 , u 4 / 5 = ( n ∨ m ) − 2 / 3 ( x / ( n ∨ m ) ) u^{4/5}=(n\vee m)^{-2/3}(x/(n\vee m)) u 4/5 = ( n ∨ m ) − 2/3 ( x / ( n ∨ m )) , the other quantities through which a , ϖ , b a,\varpi,b a , ϖ , b and the last term enter ϵ f i t \epsilon_{\mathrm{fit}} ϵ fit in case (i), are all at most u u u . Hence
ϵ f i t ≤ C u in case (i) , ϵ f i t ≤ C { K 1 / 2 x n ∧ m } 4 / 9 in case (ii) , \epsilon_{\mathrm{fit}}\le Cu\quad\text{in case (i)},\qquad
\epsilon_{\mathrm{fit}}\le C\left\{\frac{K^{1/2}x}{n\wedge m}\right\}^{4/9}\quad\text{in case (ii)}, ϵ fit ≤ C u in case (i) , ϵ fit ≤ C { n ∧ m K 1/2 x } 4/9 in case (ii) ,
and, as v min 2 ≤ 4 v_{\min}^{2} \le4 v m i n 2 ≤ 4 ,
T ~ b e t ( J ) ≤ 2 { 20 L δ 1 / 2 + 4 ( log ( 2 J / η ) ) 1 / 2 } v min 2 ( n ∧ m ) 1 / 2 . \widetilde{T}_{\mathrm{bet}}(J) \le\frac{2\{20L_{\delta}^{1/2}+4(\log(2J/\eta))^{1/2}\}}{v_{\min}^{2}(n \wedge m)^{1/2}}. T bet ( J ) ≤ v m i n 2 ( n ∧ m ) 1/2 2 { 20 L δ 1/2 + 4 ( log ( 2 J / η ) ) 1/2 } .
Near every pair covered by part (i) no valid lower bound does better than ( n ∧ m ) − 1 / 2 (n \wedge m)^{-1/2} ( n ∧ m ) − 1/2 . The pairs of Proposition 5.8 are separated and do not satisfy these hypotheses, so we perturb P P P away from x 0 x_0 x 0 instead.
Lemma S4.28 (A local two-point bound). Let ( P , Q ) (P,Q) ( P , Q ) satisfy the hypotheses of Theorem 5.11 (i), let r ∈ ( 0 , r ∗ ] r \in(0,r_*] r ∈ ( 0 , r ∗ ] be such that p , q p,q p , q are continuous and positive on [ x 0 − 2 r , x 0 + 2 r ] [x_0-2r,x_0+2r] [ x 0 − 2 r , x 0 + 2 r ] , put A 1 = ( x 0 + r , x 0 + 2 r ) A_1=(x_0+r,x_0+2r) A 1 = ( x 0 + r , x 0 + 2 r ) , B 1 = ( x 0 − 2 r , x 0 − r ) B_1=(x_0-2r,x_0-r) B 1 = ( x 0 − 2 r , x 0 − r ) , π = min { P ( A 1 ) , P ( B 1 ) } > 0 \pi=\min\{P(A_1),P(B_1)\}>0 π = min { P ( A 1 ) , P ( B 1 )} > 0 and, for h ∈ [ 0 , 1 ] h\in[0,1] h ∈ [ 0 , 1 ] ,
P h = P + h π { P ( ⋅ ∩ A 1 ) P ( A 1 ) − P ( ⋅ ∩ B 1 ) P ( B 1 ) } . P_h=P+h\pi\left\{\frac{P(\cdot\cap A_1)}{P(A_1)}-\frac{P(\cdot\cap B_1)}{P(B_1)}\right\}. P h = P + hπ { P ( A 1 ) P ( ⋅ ∩ A 1 ) − P ( B 1 ) P ( ⋅ ∩ B 1 ) } . Then P h P_h P h is a probability measure, d T V ( P h , Q ) = α ⋆ + h π d_{\mathrm{TV}}(P_h,Q)=\alpha^\star+h\pi d TV ( P h , Q ) = α ⋆ + hπ , and ( P h , Q ) (P_h,Q) ( P h , Q ) satisfies the hypotheses of Theorem 5.11 (i), with c ∗ / 2 c_\ast/2 c ∗ /2 , 2 p ‾ 2\overline{p} 2 p and a tail constant depending only on C ′ C' C ′ and r r r . Every α ~ \widetilde{\alpha} α , a measurable function of the samples and of an independent randomization, with P P , Q ( α ~ > α ⋆ ) ≤ δ \mathbb{P}_{P,Q}(\widetilde{\alpha}>\alpha^\star)\le\delta P P , Q ( α > α ⋆ ) ≤ δ satisfies P P h , Q { d T V ( P h , Q ) − α ~ ≥ h π } ≥ 1 − δ − h ( n π ) 1 / 2 \mathbb{P}_{P_h,Q}\{d_{\mathrm{TV}}(P_h,Q)-\widetilde{\alpha}\ge h\pi\}\ge1-\delta-h(n\pi)^{1/2} P P h , Q { d TV ( P h , Q ) − α ≥ hπ } ≥ 1 − δ − h ( nπ ) 1/2 . The same holds for the second sample, with Q Q Q moved from A 1 A_1 A 1 to B 1 B_1 B 1 , m m m in place of n n n and π ′ = min { Q ( A 1 ) , Q ( B 1 ) } \pi'=\min\{Q(A_1),Q(B_1)\} π ′ = min { Q ( A 1 ) , Q ( B 1 )} in place of π \pi π .
Proof. Moving mass h π h\pi hπ from B 1 B_1 B 1 to A 1 A_1 A 1 , away from x 0 x_0 x 0 , raises the total variation by h π h\pi hπ without touching the crossing, and costs little in χ 2 \chi^2 χ 2 -divergence. The density of P h P_h P h is p { 1 + h π / P ( A 1 ) } p\{1+h\pi/P(A_1)\} p { 1 + hπ / P ( A 1 )} on A 1 A_1 A 1 , p { 1 − h π / P ( B 1 ) } ≥ 0 p\{1-h\pi/P(B_1)\}\ge0 p { 1 − hπ / P ( B 1 )} ≥ 0 on B 1 B_1 B 1 and p p p elsewhere; it jumps at x 0 ± r x_0\pm r x 0 ± r and x 0 ± 2 r x_0\pm2r x 0 ± 2 r , which is harmless, as the hypotheses ask continuity near x 0 x_0 x 0 only. By (17) , p > q p>q p > q almost everywhere on A 1 A_1 A 1 and q > p q>p q > p on B 1 B_1 B 1 , so p h − q p_h-q p h − q has the sign of p − q p-q p − q everywhere and
d T V ( P h , Q ) = ∫ { p > q } ( p h − q ) = α ⋆ + h π . d_{\mathrm{TV}}(P_h,Q)=\int_{\{p>q\}}(p_h-q)=\alpha^\star+h\pi. d TV ( P h , Q ) = ∫ { p > q } ( p h − q ) = α ⋆ + hπ .
Near x 0 x_0 x 0 nothing changes, so the hypotheses of Proposition 5.5 hold; on A 1 A_1 A 1 , ∣ p h − q ∣ ≥ ∣ p − q ∣ |p_h-q|\ge|p-q| ∣ p h − q ∣ ≥ ∣ p − q ∣ and p h + q ≤ 2 ( p + q ) p_h+q\le2(p+q) p h + q ≤ 2 ( p + q ) , and on B 1 B_1 B 1 , ∣ p h − q ∣ ≥ ∣ p − q ∣ |p_h-q|\ge|p-q| ∣ p h − q ∣ ≥ ∣ p − q ∣ and p h ≤ p p_h\le p p h ≤ p , which gives (17) with c ∗ / 2 c_\ast/2 c ∗ /2 . Further,
χ 2 ( P h ∥ P ) = ( h π ) 2 { 1 P ( A 1 ) + 1 P ( B 1 ) } ≤ 2 h 2 π , \chi^2(P_h\mathbin{\|}P)=(h\pi)^2\left\{\frac{1}{P(A_1)}+\frac{1}{P(B_1)}\right\}\le2h^2\pi, χ 2 ( P h ∥ P ) = ( hπ ) 2 { P ( A 1 ) 1 + P ( B 1 ) 1 } ≤ 2 h 2 π ,
so, by K L ≤ χ 2 \mathrm{KL}\le\chi^2 KL ≤ χ 2 for each of the n n n observations and Pinsker’s inequality, the laws of the data and the randomization under ( P , Q ) (P,Q) ( P , Q ) and ( P h , Q ) (P_h,Q) ( P h , Q ) are at total variation at most { n χ 2 ( P h ∥ P ) / 2 } 1 / 2 ≤ h ( n π ) 1 / 2 \{n\chi^2(P_h\mathbin{\|}P)/2\}^{1/2}\le h(n\pi)^{1/2} { n χ 2 ( P h ∥ P ) /2 } 1/2 ≤ h ( nπ ) 1/2 , and on { α ~ ≤ α ⋆ } \{\widetilde{\alpha}\le\alpha^\star\} { α ≤ α ⋆ } the error at ( P h , Q ) (P_h,Q) ( P h , Q ) is at least h π h\pi hπ . For the second sample, Q h = Q + h π ′ { Q ( ⋅ ∩ B 1 ) / Q ( B 1 ) − Q ( ⋅ ∩ A 1 ) / Q ( A 1 ) } Q_h=Q+h\pi'\{Q(\cdot\cap B_1)/Q(B_1)-Q(\cdot\cap A_1)/Q(A_1)\} Q h = Q + h π ′ { Q ( ⋅ ∩ B 1 ) / Q ( B 1 ) − Q ( ⋅ ∩ A 1 ) / Q ( A 1 )} with π ′ = min { Q ( A 1 ) , Q ( B 1 ) } \pi'=\min\{Q(A_1),Q(B_1)\} π ′ = min { Q ( A 1 ) , Q ( B 1 )} gives d T V ( P , Q h ) = α ⋆ + h π ′ d_{\mathrm{TV}}(P,Q_h)=\alpha^\star+h\pi' d TV ( P , Q h ) = α ⋆ + h π ′ in the same way.
With h = ( 1 − δ ) / { 2 ( n π ) 1 / 2 } h=(1-\delta)/\{2(n\pi)^{1/2}\} h = ( 1 − δ ) / { 2 ( nπ ) 1/2 } , which is at most 1 1 1 once n π ≥ 1 / 4 n\pi\ge1/4 nπ ≥ 1/4 , a valid lower bound falls short at ( P h , Q ) (P_h,Q) ( P h , Q ) by at least 1 2 ( 1 − δ ) ( π / n ) 1 / 2 \frac{1}{2}(1-\delta)(\pi/n)^{1/2} 2 1 ( 1 − δ ) ( π / n ) 1/2 with probability at least ( 1 − δ ) / 2 (1-\delta)/2 ( 1 − δ ) /2 . The constants of Proposition 5.5 for ( P h , Q ) (P_h,Q) ( P h , Q ) exist; whether they stay bounded uniformly in h h h , as a minimax statement over a class containing these pairs would need, is open.
The two-point lower bound and the minimax rate
This subsection proves Proposition 5.8 and Corollary 5.9 of the main text. The perturbed pairs of Proposition 5.8 satisfy the margin condition with a constant that does not depend on a a a or h h h .
Lemma S4.29 (The two-point pairs satisfy the margin). Let ( A 1 ) (A1) ( A 1 ) and ( A 2 ) (A2) ( A 2 ) of Assumption 2.1 hold, let R R R , P 0 P_0 P 0 and Q 0 Q_0 Q 0 be probability measures concentrated on pairwise disjoint
measurable sets S R S_R S R , S P S_P S P and S Q S_Q S Q , define P a P_a P a , Q a Q_a Q a , P a , h P_{a,h} P a , h and Q a , h Q_{a,h} Q a , h as in Proposition 5.8, and suppose some f ∈ H f \in\mathcal{H} f ∈ H takes the value 0 0 0 on S R S_R S R , 1 1 1 on S P S_P S P and − 1 -1 − 1 on S Q S_Q S Q . Then for every a ∈ ( 0 , 1 ) a \in(0,1) a ∈ ( 0 , 1 ) and h ∈ [ 0 , 1 − a ) h \in[0,1-a) h ∈ [ 0 , 1 − a ) , each of the pairs ( P a , h , Q a ) (P_{a,h},Q_a) ( P a , h , Q a ) and ( P a , Q a , h ) (P_a,Q_{a,h}) ( P a , Q a , h ) , with α ⋆ = a + h \alpha^\star=a+h α ⋆ = a + h , satisfies D α ⋆ − ϵ ≥ ϵ / ∥ f ∥ H D_{\alpha^\star-\epsilon} \ge\epsilon/\lVert f\rVert_{\mathcal{H}} D α ⋆ − ϵ ≥ ϵ / ∥ f ∥ H for all ϵ ∈ [ 0 , α ⋆ ] \epsilon\in[0,\alpha^\star] ϵ ∈ [ 0 , α ⋆ ] , that is, Assumption 5.1 with γ = 1 \gamma=1 γ = 1 and c 0 = 1 / ∥ f ∥ H c_0=1/\lVert f\rVert_{\mathcal{H}} c 0 = 1/ ∥ f ∥ H .
Proof. Consider ( P a , h , Q a ) (P_{a,h},Q_a) ( P a , h , Q a ) and fix α ∈ [ 0 , α ⋆ ] \alpha\in[0,\alpha^\star] α ∈ [ 0 , α ⋆ ] . Under P a , h P_{a,h} P a , h , f ( X ) ∈ { 0 , 1 } f(X) \in\{0,1\} f ( X ) ∈ { 0 , 1 } almost surely with P a , h ( f ( X ) = 1 ) = a + h P_{a,h}(f(X)=1)=a+h P a , h ( f ( X ) = 1 ) = a + h . Since 1 − α ≥ 1 − a − h 1-\alpha\ge1-a-h 1 − α ≥ 1 − a − h , an α \alpha α -trimming P ′ = g P a , h P'=gP_{a,h} P ′ = g P a , h puts mass at most β ( 1 − a − h ) ≤ 1 \beta(1-a-h)\le1 β ( 1 − a − h ) ≤ 1 on { f = 0 } \{f=0\} { f = 0 } , so E P ′ f ≥ 1 − β ( 1 − a − h ) = ( a + h − α ) / ( 1 − α ) \mathbb{E}_{P'}f \ge1-\beta(1-a-h)=(a+h-\alpha)/(1-\alpha) E P ′ f ≥ 1 − β ( 1 − a − h ) = ( a + h − α ) / ( 1 − α ) . Under Q a Q_a Q a , f ( Y ) ∈ { 0 , − 1 } f(Y) \in\{0,-1\} f ( Y ) ∈ { 0 , − 1 } almost surely with Q a ( f ( Y ) = − 1 ) = a Q_a(f(Y)=-1)=a Q a ( f ( Y ) = − 1 ) = a , and an α \alpha α -trimming Q ′ Q' Q ′ puts mass at most min { 1 , β ( 1 − a ) } \min\{1,\beta(1-a)\} min { 1 , β ( 1 − a )} on { f = 0 } \{f=0\} { f = 0 } , so E Q ′ f ≤ − ( 1 − β ( 1 − a ) ) + = − ( a − α ) + / ( 1 − α ) ≤ 0 \mathbb{E}_{Q'}f \le-(1-\beta(1-a))_+=-(a-\alpha)_+/(1-\alpha)\le0 E Q ′ f ≤ − ( 1 − β ( 1 − a ) ) + = − ( a − α ) + / ( 1 − α ) ≤ 0 . By the reproducing property and the Cauchy–Schwarz inequality, for all such P ′ P' P ′ and Q ′ Q' Q ′ ,
MMD ( P ′ , Q ′ ) ≥ E P ′ f − E Q ′ f ∥ f ∥ H ≥ a + h − α ( 1 − α ) ∥ f ∥ H ≥ α ⋆ − α ∥ f ∥ H . \operatorname{MMD}(P',Q') \ge\frac{\mathbb{E}_{P'}f-\mathbb{E}_{Q'}f}{\lVert f\rVert_{\mathcal{H}}} \ge\frac{a+h-\alpha}{(1-\alpha)\lVert f\rVert_{\mathcal{H}}} \ge\frac{\alpha^\star-\alpha}{\lVert f\rVert_{\mathcal{H}}}. MMD ( P ′ , Q ′ ) ≥ ∥ f ∥ H E P ′ f − E Q ′ f ≥ ( 1 − α ) ∥ f ∥ H a + h − α ≥ ∥ f ∥ H α ⋆ − α .
Taking the infimum over P ′ P' P ′ and Q ′ Q' Q ′ and putting α = α ⋆ − ϵ \alpha=\alpha^\star-\epsilon α = α ⋆ − ϵ gives the claim. The pair ( P a , Q a , h ) (P_a,Q_{a,h}) ( P a , Q a , h ) is the same computation with − f -f − f in place of f f f and the roles of the two laws exchanged.
Proof of Proposition 5.8. The two pairs are close in χ 2 \chi^2 χ 2 , so a bound valid at the first must often fall short at the second, by Le Cam’s two-point method. The three measures are mutually singular. Hence P a , h ∧ Q a P_{a,h}\wedge Q_a P a , h ∧ Q a has mass min ( 1 − a − h , 1 − a ) = 1 − a − h \min(1-a-h,1-a)=1-a-h min ( 1 − a − h , 1 − a ) = 1 − a − h on S R S_R S R and none elsewhere, so d T V ( P a , h , Q a ) = a + h d_{\mathrm{TV}}(P_{a,h},Q_a)=a+h d TV ( P a , h , Q a ) = a + h , and likewise d T V ( P a , Q a , h ) = a + h d_{\mathrm{TV}}(P_a,Q_{a,h})=a+h d TV ( P a , Q a , h ) = a + h and d T V ( P a , Q a ) = a d_{\mathrm{TV}}(P_a,Q_a)=a d TV ( P a , Q a ) = a . The density of P a , h P_{a,h} P a , h with respect to P a P_a P a is ( 1 − a − h ) / ( 1 − a ) (1-a-h)/(1-a) ( 1 − a − h ) / ( 1 − a ) on S R S_R S R and ( a + h ) / a (a+h)/a ( a + h ) / a on S P S_P S P , so
χ 2 ( P a , h ∥ P a ) = ( 1 − a ) ( h 1 − a ) 2 + a ( h a ) 2 = h 2 a ( 1 − a ) . \chi^2(P_{a,h}\mathbin{\|}P_a)=(1-a)\left(\frac{h}{1-a}\right)^2+a\left(\frac{h}{a}\right)^2=\frac{h^2}{a(1-a)}. χ 2 ( P a , h ∥ P a ) = ( 1 − a ) ( 1 − a h ) 2 + a ( a h ) 2 = a ( 1 − a ) h 2 .
Let Q 0 \mathbb{Q}_0 Q 0 and Q 1 \mathbb{Q}_1 Q 1 be the laws of the data and the randomization under ( P a , Q a ) (P_a,Q_a) ( P a , Q a ) and under ( P a , h , Q a ) (P_{a,h},Q_a) ( P a , h , Q a ) . They differ only in the law of the n n n observations of the first sample, and the Kullback–Leibler divergence adds over independent coordinates, so with K L ≤ log ( 1 + χ 2 ) ≤ χ 2 \mathrm{KL}\le\log(1+\chi^2)\le\chi^2 KL ≤ log ( 1 + χ 2 ) ≤ χ 2 , K L ( Q 1 ∥ Q 0 ) ≤ n h 2 / { a ( 1 − a ) } \mathrm{KL}(\mathbb{Q}_1\mathbin{\|}\mathbb{Q}_0)\le nh^2/\{a(1-a)\} KL ( Q 1 ∥ Q 0 ) ≤ n h 2 / { a ( 1 − a )} . By Pinsker’s inequality d T V ( Q 0 , Q 1 ) ≤ { K L ( Q 1 ∥ Q 0 ) / 2 } 1 / 2 ≤ h { n / [ 2 a ( 1 − a ) ] } 1 / 2 d_{\mathrm{TV}}(\mathbb{Q}_0,\mathbb{Q}_1)\le\{\mathrm{KL}(\mathbb{Q}_1\mathbin{\|}\mathbb{Q}_0)/2\}^{1/2}\le h\{n/[2a(1-a)]\}^{1/2} d TV ( Q 0 , Q 1 ) ≤ { KL ( Q 1 ∥ Q 0 ) /2 } 1/2 ≤ h { n / [ 2 a ( 1 − a )] } 1/2 . Therefore
P P a , h , Q a ( α ~ ≤ a ) ≥ P P a , Q a ( α ~ ≤ a ) − d T V ( Q 0 , Q 1 ) ≥ 1 − δ − h n 2 a ( 1 − a ) . \mathbb{P}_{P_{a,h},Q_a}(\widetilde{\alpha}\le a)\ge\mathbb{P}_{P_a,Q_a}(\widetilde{\alpha}\le a)-d_{\mathrm{TV}}(\mathbb{Q}_0,\mathbb{Q}_1)\ge1-\delta-h\sqrt{\frac{n}{2a(1-a)}}. P P a , h , Q a ( α ≤ a ) ≥ P P a , Q a ( α ≤ a ) − d TV ( Q 0 , Q 1 ) ≥ 1 − δ − h 2 a ( 1 − a ) n .
and on { α ~ ≤ a } \{\widetilde{\alpha}\le a\} { α ≤ a } the error at ( P a , h , Q a ) (P_{a,h},Q_a) ( P a , h , Q a ) , whose total variation is a + h a+h a + h , is at least h h h . The same argument with the second sample perturbed gives the bound with m m m .
Proof of Corollary 5.9. Write n ˉ = n ∧ m \bar n=n\wedge m n ˉ = n ∧ m . For (i), let R R R , P 0 P_0 P 0 and Q 0 Q_0 Q 0 be the point masses at x 2 x_2 x 2 , x 1 x_1 x 1 and x 3 x_3 x 3 , put a = a 0 a=a_0 a = a 0 and h = c 0 n ˉ − 1 / 2 h=c_0\bar n^{-1/2} h = c 0 n ˉ − 1/2 , so that a 0 + h ≤ a 1 < 1 a_0+h\le a_1<1 a 0 + h ≤ a 1 < 1 by the condition on n ˉ \bar n n ˉ . The pair ( P a 0 , Q a 0 ) (P_{a_0},Q_{a_0}) ( P a 0 , Q a 0 ) belongs to M \mathcal{M} M by Example 5.2, since c 0 ≤ 1 / ∥ f ∥ H ≤ 2 / ∥ f ∥ H c_0\le1/\lVert f\rVert_{\mathcal{H}}\le2/\lVert f\rVert_{\mathcal{H}} c 0 ≤ 1/ ∥ f ∥ H ≤ 2/ ∥ f ∥ H , and the two perturbed pairs belong to M \mathcal{M} M by Lemma S4.29. If Proposition 5.8 at the pair ( P a 0 , h , Q a 0 ) (P_{a_0,h},Q_{a_0}) ( P a 0 , h , Q a 0 ) gives an error of at least h h h with probability at least 1 − δ − h { n / ( 2 a 0 ( 1 − a 0 ) ) } 1 / 2 = ( 1 − δ ) / 2 1-\delta-h\{n/(2a_0(1-a_0))\}^{1/2}=(1-\delta)/2 1 − δ − h { n / ( 2 a 0 ( 1 − a 0 )) } 1/2 = ( 1 − δ ) /2 ; if n ˉ = m \bar n=m n ˉ = m , the pair ( P a 0 , Q a 0 , h ) (P_{a_0},Q_{a_0,h}) ( P a 0 , Q a 0 , h ) gives the same with m m m .
For (ii), validity is Corollary 4.3. On the grid { j n ˉ − 1 / 2 } \{j\bar n^{-1/2}\} { j n ˉ − 1/2 } the smallest gap is Δ min = n ˉ − 1 / 2 \Delta_{\min}=\bar n^{-1/2} Δ m i n = n ˉ − 1/2 and the mesh below α ⋆ \alpha^\star α ⋆ is at most n ˉ − 1 / 2 \bar n^{-1/2} n ˉ − 1/2 . Apply Theorem S4.3(i) with ϵ = C ϵ n ˉ − 1 / 2 \epsilon=C_\epsilon\bar n^{-1/2} ϵ = C ϵ n ˉ − 1/2 : then J ϵ ≤ 2 ( 1 + C ϵ ) J_\epsilon\le2(1+C_\epsilon) J ϵ ≤ 2 ( 1 + C ϵ ) does not grow with n ˉ \bar n n ˉ , and by Theorem S4.3(iii), r 1 ≤ 12 / n ˉ r_1\le12/\bar n r 1 ≤ 12/ n ˉ and the number of pairs is at least n ˉ / 2 \bar n/2 n ˉ /2 , so β ⋆ max { T f i t ( η ) , T b e t ( η , J ϵ ) } ≤ C ′ ′ ( C ϵ ) n ˉ − 1 / 2 \beta_\star\max\{\mathsf{T}_{\mathrm{fit}}(\eta),\mathsf{T}_{\mathrm{bet}}(\eta,J_\epsilon)\}\le C''(C_\epsilon)\bar n^{-1/2} β ⋆ max { T fit ( η ) , T bet ( η , J ϵ )} ≤ C ′′ ( C ϵ ) n ˉ − 1/2 with β ⋆ ≤ ( 1 − a 1 ) − 1 \beta_\star\le(1-a_1)^{-1} β ⋆ ≤ ( 1 − a 1 ) − 1 and C ′ ′ ( C ϵ ) C''(C_\epsilon) C ′′ ( C ϵ ) growing like { log ( 1 + C ϵ ) } 1 / 2 \{\log(1+C_\epsilon)\}^{1/2} { log ( 1 + C ϵ ) } 1/2 . Choose C ϵ C_\epsilon C ϵ with c 0 C ϵ ≥ C ′ ′ ( C ϵ ) c_0C_\epsilon\ge C''(C_\epsilon) c 0 C ϵ ≥ C ′′ ( C ϵ ) and let n ˉ ≥ 10 \bar n\ge10 n ˉ ≥ 10 , so that Theorem S4.3(iii) applies; every step of the proof holds for these sizes, so n 1 = 10 n_1 = 10 n 1 = 10 will do. If ϵ > α ⋆ \epsilon> \alpha^\star ϵ > α ⋆ , then α ^ ≥ 0 > α ⋆ − ϵ \widehat{\alpha} \ge0 > \alpha^\star- \epsilon α ≥ 0 > α ⋆ − ϵ and there is nothing to prove. Otherwise ϵ ∈ ( 0 , α ⋆ ] \epsilon\in(0,\alpha^\star] ϵ ∈ ( 0 , α ⋆ ] , Theorem S4.3(i) gives P ( α ^ < a ϵ ) ≤ η \mathbb{P}(\widehat{\alpha} < a_\epsilon) \le\eta P ( α < a ϵ ) ≤ η , and a ϵ ≥ α ⋆ − ϵ − n ˉ − 1 / 2 a_\epsilon\ge\alpha^\star- \epsilon- \bar{n}^{-1/2} a ϵ ≥ α ⋆ − ϵ − n ˉ − 1/2 . In both cases P ( α ⋆ − α ^ > ( C ϵ + 1 ) n ˉ − 1 / 2 ) ≤ η \mathbb{P}(\alpha^\star- \widehat{\alpha} > (C_\epsilon+ 1)\bar{n}^{-1/2}) \le\eta P ( α ⋆ − α > ( C ϵ + 1 ) n ˉ − 1/2 ) ≤ η . Take C = C ϵ + 1 C = C_\epsilon+ 1 C = C ϵ + 1 .
Proofs for Section 6 and Proposition 2.5
This section proves Proposition 2.5 and the results of Section 6, and with them the uniform bound (2.9) (Corollary S5.7). The witnesses, cuts, kept sets, trimming densities, the constants c f c_f c f , C f C_f C f , c f ′ c_f^\prime c f ′ , r Q r_Q r Q and the modulus Ω \Omega Ω are those of Section 6.
Structure of the trimming
Proof of Proposition 2.5. The minimizing difference of two polytopes is unique, and the gradient in the weights is the witness, so each optimal weight vector solves the bathtub problem of Lemma S3.2. The objective is continuous and convex on a compact convex set, so T α \mathcal{T}_\alpha T α is nonempty, compact and convex.
(i) With u = ∑ i w i ϕ ( X i ) u = \sum_i w_i\phi(X_i) u = ∑ i w i ϕ ( X i ) and z = ∑ j v j ϕ ( Y j ) z = \sum_j v_j\phi(Y_j) z = ∑ j v j ϕ ( Y j ) the objective is ∥ u − z ∥ H 2 \lVert u-z\rVert_{\mathcal{H}}^2 ∥ u − z ∥ H 2 , and u − z u-z u − z ranges over the convex compact set C α ( P n ) − C α ( Q m ) C_\alpha(P_n)-C_\alpha(Q_m) C α ( P n ) − C α ( Q m ) (Proposition 2.2 ), whose element of minimal norm is unique and has norm D ^ α \widehat{D}_\alpha D α .
(ii) The objective F F F is convex and differentiable, so ( w ⋆ , v ⋆ ) ∈ T α (w^\star,v^\star) \in\mathcal{T}_\alpha ( w ⋆ , v ⋆ ) ∈ T α if and only if w ⋆ w^\star w ⋆ minimizes w ↦ ⟨ ∇ w F ( w ⋆ , v ⋆ ) , w ⟩ w \mapsto\langle\nabla_w F(w^\star,v^\star),w\rangle w ↦ ⟨ ∇ w F ( w ⋆ , v ⋆ ) , w ⟩ over the capped simplex, and likewise for v ⋆ v^\star v ⋆ . By the reproducing property and part (i), at every minimizer
( ∇ w F ) i = 2 ( K X X w ⋆ − K X Y v ⋆ ) i = 2 ⟨ ϕ ( X i ) , u ⋆ − z ⋆ ⟩ H = 2 d ^ ( X i ) , (\nabla_w F)_i = 2(K_{XX}w^\star-K_{XY}v^\star)_i = 2\langle\phi(X_i),u^\star-z^\star\rangle_{\mathcal{H}} = 2\widehat{d}(X_i), ( ∇ w F ) i = 2 ( K X X w ⋆ − K X Y v ⋆ ) i = 2 ⟨ ϕ ( X i ) , u ⋆ − z ⋆ ⟩ H = 2 d ( X i ) ,
the last equality because u ⋆ − z ⋆ = d ^ u^\star-z^\star=\widehat{d} u ⋆ − z ⋆ = d is the same at every minimizer, and Lemma S3.2, in its minimum form, describes the minimizers of this linear function. The statement for v ⋆ v^\star v ⋆ follows from ( ∇ v F ) j = − 2 d ^ ( Y j ) (\nabla_v F)_j=-2\widehat{d}(Y_j) ( ∇ v F ) j = − 2 d ( Y j ) and the maximum form of the same lemma.
(iii) D ^ α = 0 \widehat{D}_\alpha=0 D α = 0 forces d ^ = 0 \widehat{d}=0 d = 0 by (i), that is, u ⋆ = z ⋆ u^\star=z^\star u ⋆ = z ⋆ . Conversely, every feasible pair with u = z u=z u = z attains the value 0, which is the minimum.
The population trimming has the same threshold form (6.1).
Lemma S5.1 (Threshold form of the population trimming). Let Assumption 2.1 hold, let α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) , and suppose that dist ( C α ( P ) , C α ( Q ) ) > 0 \operatorname{dist}(C_\alpha(P),C_\alpha(Q))>0 dist ( C α ( P ) , C α ( Q )) > 0 . Let d ⋆ d^\star d ⋆ be the element of minimal norm of C α ( P ) − C α ( Q ) C_\alpha(P)-C_\alpha(Q) C α ( P ) − C α ( Q ) , write d ⋆ = a ⋆ − b ⋆ d^\star=a^\star-b^\star d ⋆ = a ⋆ − b ⋆ with a ⋆ = E P [ g ⋆ ϕ ] a^\star=\mathbb{E}_P[g^\star\phi] a ⋆ = E P [ g ⋆ ϕ ] for some g ⋆ ∈ G α ( P ) g^\star\in\mathcal{G}_\alpha(P) g ⋆ ∈ G α ( P ) and b ⋆ ∈ C α ( Q ) b^\star\in C_\alpha(Q) b ⋆ ∈ C α ( Q ) , and let t t t be any ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile of d ⋆ ( X ) d^\star(X) d ⋆ ( X ) for X ∼ P X\sim P X ∼ P . Then g ⋆ = β g^\star=\beta g ⋆ = β P P P -almost surely on { d ⋆ < t } \{d^\star<t\} { d ⋆ < t } and g ⋆ = 0 g^\star=0 g ⋆ = 0 P P P -almost surely on { d ⋆ > t } \{d^\star>t\} { d ⋆ > t } .
Proof. We show that g ⋆ g^\star g ⋆ minimizes a linear functional of the density, and then that every minimizer of that functional has the threshold form. The set C α ( P ) − C α ( Q ) C_\alpha(P)-C_\alpha(Q) C α ( P ) − C α ( Q ) is convex and weakly compact, as the image of the weakly compact product of the two regions (Lemma 2.3 ) under the weakly continuous map ( a , b ) ↦ a − b (a,b)\mapsto a-b ( a , b ) ↦ a − b , hence norm-closed; so d ⋆ d^\star d ⋆ exists, and it has a decomposition of the stated form by (2.5). For a ∈ C α ( P ) a\in C_\alpha(P) a ∈ C α ( P ) , a − b ⋆ a-b^\star a − b ⋆ lies in the same set, so ⟨ a − a ⋆ , d ⋆ ⟩ H ≥ 0 \langle a-a^\star,d^\star\rangle_{\mathcal{H}}\ge0 ⟨ a − a ⋆ , d ⋆ ⟩ H ≥ 0 , and by the reproducing property g ⋆ g^\star g ⋆ minimizes g ↦ E P [ g U ] g\mapsto\mathbb{E}_P[gU] g ↦ E P [ g U ] over G α ( P ) \mathcal{G}_\alpha(P) G α ( P ) , where U = d ⋆ ( X ) U=d^\star(X) U = d ⋆ ( X ) .
The threshold density is such a minimizer, and every minimizer agrees with it off the cut. Since P ( U < t ) ≤ 1 − α ≤ P ( U ≤ t ) \mathbb{P}(U<t)\le1-\alpha\le\mathbb{P}(U\le t) P ( U < t ) ≤ 1 − α ≤ P ( U ≤ t ) , there is c ∈ [ 0 , β ] c\in[0,\beta] c ∈ [ 0 , β ] such that h = β 1 { U < t } + c 1 { U = t } h=\beta\mathbf{1}\{U<t\}+c\mathbf{1}\{U=t\} h = β 1 { U < t } + c 1 { U = t } lies in G α ( P ) \mathcal{G}_\alpha(P) G α ( P ) , as in the proof of Lemma 2.4 . For every g ∈ G α ( P ) g\in\mathcal{G}_\alpha(P) g ∈ G α ( P ) , ( g − h ) ( U − t ) ≥ 0 (g-h)(U-t)\ge0 ( g − h ) ( U − t ) ≥ 0 pointwise, because h = β ≥ g h=\beta\ge g h = β ≥ g where U < t U<t U < t and h = 0 ≤ g h=0\le g h = 0 ≤ g where U > t U>t U > t , and E [ ( g − h ) ( U − t ) ] = E [ g U ] − E [ h U ] \mathbb{E}[(g-h)(U-t)]=\mathbb{E}[gU]-\mathbb{E}[hU] E [( g − h ) ( U − t )] = E [ g U ] − E [ h U ] , since E g = E h = 1 \mathbb{E}g=\mathbb{E}h=1 E g = E h = 1 . So h h h is a minimizer, and ( g ⋆ − h ) ( U − t ) ≥ 0 (g^\star-h)(U-t)\ge0 ( g ⋆ − h ) ( U − t ) ≥ 0 has expectation at most 0, hence vanishes almost surely: g ⋆ = β g^\star=\beta g ⋆ = β where U < t U<t U < t and g ⋆ = 0 g^\star=0 g ⋆ = 0 where U > t U>t U > t .
The parametric rate
Throughout this subsection α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) , A = C α ( P ) \mathcal{A} = \mathcal{C}_{\alpha}(P) A = C α ( P ) , B = C α ( Q ) \mathcal{B} = \mathcal{C}_{\alpha}(Q) B = C α ( Q ) , A n , B m \mathcal{A}_n,\mathcal{B}_m A n , B m are the empirical regions, sep ( f ) = sep ( f ; A , B ) \operatorname{sep}(f)=\operatorname{sep}(f;\mathcal{A},\mathcal{B}) sep ( f ) = sep ( f ; A , B ) and sep n ( f ) = sep ( f ; A n , B m ) \operatorname{sep}_n(f)=\operatorname{sep}(f;\mathcal{A}_n,\mathcal{B}_m) sep n ( f ) = sep ( f ; A n , B m ) as in (S3.1), and ξ ( f ) = sep n ( f ) − sep ( f ) \xi(f)=\operatorname{sep}_n(f)-\operatorname{sep}(f) ξ ( f ) = sep n ( f ) − sep ( f ) is the fluctuation of the separation. For a probability measure R R R and a bounded measurable f f f write
L R ( f ) = inf g ∈ G α ( R ) E R [ g f ] = sup t ∈ R { t − β E R ( t − f ) + } , U R ( f ) = sup g ∈ G α ( R ) E R [ g f ] = inf u ∈ R { u + β E R ( f − u ) + } . (35) \begin{aligned}
L_R(f)&=\inf_{g\in\mathcal{G}_{\alpha}(R)}\mathbb{E}_R[gf]
=\sup_{t\in\mathbb{R}}\{t-\beta\mathbb{E}_R(t-f)_+\},\\
U_R(f)&=\sup_{g\in\mathcal{G}_{\alpha}(R)}\mathbb{E}_R[gf]
=\inf_{u\in\mathbb{R}}\{u+\beta\mathbb{E}_R(f-u)_+\}. \tag*{(35)}
\end{aligned} L R ( f ) U R ( f ) = g ∈ G α ( R ) inf E R [ g f ] = t ∈ R sup { t − β E R ( t − f ) + } , = g ∈ G α ( R ) sup E R [ g f ] = u ∈ R inf { u + β E R ( f − u ) + } . (35)
the equalities being Lemma 2.4 applied to − f -f − f and to f f f . For f ∈ H f\in\mathcal{H} f ∈ H these are L R ( f ) = − h C α ( R ) ( − f ) L_R(f)=-h_{\mathcal{C}_{\alpha}(R)}(-f) L R ( f ) = − h C α ( R ) ( − f ) and U R ( f ) = h C α ( R ) ( f ) U_R(f)=h_{\mathcal{C}_{\alpha}(R)}(f) U R ( f ) = h C α ( R ) ( f ) , with the support functions of § 2 . The function maximized in L R L_R L R is concave with right and left derivatives 1 − β R ( f ≤ t ) 1-\beta R(f\le t) 1 − β R ( f ≤ t ) and 1 − β R ( f < t ) 1-\beta R(f<t) 1 − β R ( f < t ) , so its maximizers are the t t t with R ( f < t ) ≤ 1 − α ≤ R ( f ≤ t ) R(f<t)\le1-\alpha\le R(f\le t) R ( f < t ) ≤ 1 − α ≤ R ( f ≤ t ) , the ( 1 − α ) (1-\alpha) ( 1 − α ) -quantiles of f f f under R R R ; likewise the minimizers in U R U_R U R are the α \alpha α -quantiles. By Proposition 2.2 , sep ( f ) = L P ( f ) − U Q ( f ) \operatorname{sep}(f)=L_P(f)-U_Q(f) sep ( f ) = L P ( f ) − U Q ( f ) and sep n ( f ) = L P n ( f ) − U Q m ( f ) \operatorname{sep}_n(f)=L_{P_n}(f)-U_{Q_m}(f) sep n ( f ) = L P n ( f ) − U Q m ( f ) .
Lemma S5.2 (A quadratic margin on the unit sphere). Let K ⊂ H K\subset\mathcal{H} K ⊂ H be nonempty, convex and closed, write sep K ( f ) = inf z ∈ K ⟨ f , z ⟩ H \operatorname{sep}_K(f)=\inf_{z\in K}\langle f,z\rangle_{\mathcal{H}} sep K ( f ) = inf z ∈ K ⟨ f , z ⟩ H , let d ⋆ d^\star d ⋆ be its element of minimal norm, suppose D = ∥ d ⋆ ∥ H > 0 D=\lVert d^\star\rVert_{\mathcal{H}}>0 D = ∥ d ⋆ ∥ H > 0 , and put f ⋆ = d ⋆ / D f^\star=d^\star/D f ⋆ = d ⋆ / D . Then sep K ( f ) ≤ ⟨ f , d ⋆ ⟩ H \operatorname{sep}_K(f)\le\langle f,d^\star\rangle_{\mathcal{H}} sep K ( f ) ≤ ⟨ f , d ⋆ ⟩ H for every f ∈ H f\in\mathcal{H} f ∈ H , sep K ( f ⋆ ) = D = max f ∈ B H sep K ( f ) \operatorname{sep}_K(f^\star)=D=\max_{f\in B_{\mathcal{H}}}\operatorname{sep}_K(f) sep K ( f ⋆ ) = D = max f ∈ B H sep K ( f ) , and
sep K ( f ⋆ ) − sep K ( u ) ≥ D 2 ∥ u − f ⋆ ∥ H 2 \operatorname{sep}_K(f^\star)-\operatorname{sep}_K(u)\ge\frac{D}{2}\lVert u-f^\star\rVert_{\mathcal{H}}^2 sep K ( f ⋆ ) − sep K ( u ) ≥ 2 D ∥ u − f ⋆ ∥ H 2 for every u ∈ H u\in\mathcal{H} u ∈ H with ∥ u ∥ H = 1 \lVert u\rVert_{\mathcal{H}}=1 ∥ u ∥ H = 1 .
For d ′ ∈ H d'\in\mathcal{H} d ′ ∈ H with D ′ = ∥ d ′ ∥ H > 0 D'=\lVert d'\rVert_{\mathcal{H}}>0 D ′ = ∥ d ′ ∥ H > 0 and f ′ = d ′ / D ′ f'=d'/D' f ′ = d ′ / D ′ , ∥ d ′ − d ⋆ ∥ H 2 = ( D ′ − D ) 2 + D ′ D ∥ f ′ − f ⋆ ∥ H 2 \lVert d'-d^\star\rVert_{\mathcal{H}}^2=(D'-D)^2+D'D\lVert f'-f^\star\rVert_{\mathcal{H}}^2 ∥ d ′ − d ⋆ ∥ H 2 = ( D ′ − D ) 2 + D ′ D ∥ f ′ − f ⋆ ∥ H 2 .
Proof. Since d ⋆ ∈ K d^\star\in K d ⋆ ∈ K , sep K ( f ) ≤ ⟨ f , d ⋆ ⟩ H \operatorname{sep}_K(f)\le\langle f,d^\star\rangle_{\mathcal{H}} sep K ( f ) ≤ ⟨ f , d ⋆ ⟩ H . For z ∈ K z\in K z ∈ K and t ∈ ( 0 , 1 ] t\in(0,1] t ∈ ( 0 , 1 ] , ∥ d ⋆ ∥ H 2 ≤ ∥ d ⋆ + t ( z − d ⋆ ) ∥ H 2 \lVert d^\star\rVert_{\mathcal{H}}^2\le\lVert d^\star+t(z-d^\star)\rVert_{\mathcal{H}}^2 ∥ d ⋆ ∥ H 2 ≤ ∥ d ⋆ + t ( z − d ⋆ ) ∥ H 2 by convexity, and letting t ↓ 0 t\downarrow0 t ↓ 0 gives ⟨ d ⋆ , z − d ⋆ ⟩ H ≥ 0 \langle d^\star,z-d^\star\rangle_{\mathcal{H}}\ge0 ⟨ d ⋆ , z − d ⋆ ⟩ H ≥ 0 , that is, ⟨ f ⋆ , z ⟩ H ≥ D \langle f^\star,z\rangle_{\mathcal{H}}\ge D ⟨ f ⋆ , z ⟩ H ≥ D on K K K . So sep K ( f ⋆ ) ≥ D = ⟨ f ⋆ , d ⋆ ⟩ H ≥ sep K ( f ⋆ ) \operatorname{sep}_K(f^\star)\ge D=\langle f^\star,d^\star\rangle_{\mathcal{H}}\ge\operatorname{sep}_K(f^\star) sep K ( f ⋆ ) ≥ D = ⟨ f ⋆ , d ⋆ ⟩ H ≥ sep K ( f ⋆ ) , and for f ∈ B H f\in B_{\mathcal{H}} f ∈ B H , sep K ( f ) ≤ ⟨ f , d ⋆ ⟩ H ≤ D \operatorname{sep}_K(f)\le\langle f,d^\star\rangle_{\mathcal{H}}\le D sep K ( f ) ≤ ⟨ f , d ⋆ ⟩ H ≤ D by Cauchy–Schwarz. For a unit vector u u u , ⟨ u , f ⋆ ⟩ H = 1 − 1 2 ∥ u − f ⋆ ∥ H 2 \langle u,f^\star\rangle_{\mathcal{H}}=1-\frac{1}{2}\lVert u-f^\star\rVert_{\mathcal{H}}^2 ⟨ u , f ⋆ ⟩ H = 1 − 2 1 ∥ u − f ⋆ ∥ H 2 , so sep K ( u ) ≤ D ⟨ u , f ⋆ ⟩ H = D − D 2 ∥ u − f ⋆ ∥ H 2 \operatorname{sep}_K(u)\le D\langle u,f^\star\rangle_{\mathcal{H}}=D-\frac{D}{2}\lVert u-f^\star\rVert_{\mathcal{H}}^2 sep K ( u ) ≤ D ⟨ u , f ⋆ ⟩ H = D − 2 D ∥ u − f ⋆ ∥ H 2 . Finally ∥ D ′ f ′ − D f ⋆ ∥ H 2 = D ′ 2 + D 2 − 2 D ′ D ⟨ f ′ , f ⋆ ⟩ H \lVert D'f'-Df^\star\rVert_{\mathcal{H}}^2=D'^2+D^2-2D'D\langle f',f^\star\rangle_{\mathcal{H}} ∥ D ′ f ′ − D f ⋆ ∥ H 2 = D ′2 + D 2 − 2 D ′ D ⟨ f ′ , f ⋆ ⟩ H , and substituting ⟨ f ′ , f ⋆ ⟩ H = 1 − 1 2 ∥ f ′ − f ⋆ ∥ H 2 \langle f',f^\star\rangle_{\mathcal{H}}=1-\frac{1}{2}\lVert f'-f^\star\rVert_{\mathcal{H}}^2 ⟨ f ′ , f ⋆ ⟩ H = 1 − 2 1 ∥ f ′ − f ⋆ ∥ H 2 gives the identity.
Lemma S5.3 (A basic inequality at two cuts). Let (A1) and (A2) of Assumption 2.1 hold, let α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) , and suppose D = D α ( P , Q ) > 0 D=D_\alpha(P,Q)>0 D = D α ( P , Q ) > 0 and D ^ = D ^ α > 0 \widehat{D}=\widehat{D}_\alpha>0 D = D α > 0 . Let f ⋆ = d ⋆ / D f^\star=d^\star/D f ⋆ = d ⋆ / D and f ^ = d ^ / D ^ \widehat{f}=\widehat{d}/\widehat{D} f = d / D , let t ⋆ t^\star t ⋆ be a ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile of f ⋆ ( X ) f^\star(X) f ⋆ ( X ) for X ∼ P X\sim P X ∼ P and u ⋆ u^\star u ⋆ an α \alpha α -quantile of f ⋆ ( Y ) f^\star(Y) f ⋆ ( Y ) for Y ∼ Q Y\sim Q Y ∼ Q , and let t ^ \widehat{t} t be the ( n 1 − α + 1 ) (n_{1-\alpha}+1) ( n 1 − α + 1 ) -th smallest of the values f ^ ( X i ) \widehat{f}(X_i) f ( X i ) and u ^ \widehat{u} u the ( m 1 − α + 1 ) (m_{1-\alpha}+1) ( m 1 − α + 1 ) -th largest of the values f ^ ( Y j ) \widehat{f}(Y_j) f ( Y j ) . Then, for every realization of the samples,
D 2 ∥ f ^ − f ⋆ ∥ H 2 ≤ ξ ( f ^ ) − ξ ( f ⋆ ) ≤ β [ ( P − P n ) { ( t ^ − f ^ ) + − ( t ⋆ − f ⋆ ) + } + ( Q − Q m ) { ( f ^ − u ^ ) + − ( f ⋆ − u ⋆ ) + } ] . \frac{D}{2}\lVert\widehat{f}-f^\star\rVert_{\mathcal{H}}^2
\le\xi(\widehat{f})-\xi(f^\star)
\le\beta\left[(P-P_n)\{(\widehat{t}-\widehat{f})_+-(t^\star-f^\star)_+\}+(Q-Q_m)\{(\widehat{f}-\widehat{u})_+-(f^\star-u^\star)_+\}\right]. 2 D ∥ f − f ⋆ ∥ H 2 ≤ ξ ( f ) − ξ ( f ⋆ ) ≤ β [ ( P − P n ) {( t − f ) + − ( t ⋆ − f ⋆ ) + } + ( Q − Q m ) {( f − u ) + − ( f ⋆ − u ⋆ ) + } ] . Proof. The population separation loses at f ^ \widehat{f} f at most the difference of the fluctuations, and the quadratic margin turns that loss into a squared distance; the right-hand side then comes from evaluating each trimmed mean at a cut that is optimal for the other measure. The set A − B \mathcal{A}-\mathcal{B} A − B is nonempty, convex and closed (proof of Lemma S5.1), with element of minimal norm d ⋆ d^\star d ⋆ , and sep = sep A − B \operatorname{sep}=\operatorname{sep}_{\mathcal{A}-\mathcal{B}} sep = sep A − B ; the same holds for the polytope A n − B m \mathcal{A}_n-\mathcal{B}_m A n − B m and d ^ \widehat{d} d (Proposition 2.5 (i)). By Lemma S5.2, f ^ \widehat{f} f maximizes sep n \operatorname{sep}_n sep n over B H ∋ f ⋆ B_{\mathcal{H}}\ni f^\star B H ∋ f ⋆ , so $\operatorname{sep}(f^\star)-\operatorname{sep}(\widehat{f})=[\operatorname{sep}_n(f^\star)-
sep n ( f ^ ) + ξ ( f ^ ) − ξ ( f ⋆ ) ≤ ξ ( f ^ ) − ξ ( f ⋆ ) \operatorname{sep}_{n}(\widehat{f})+\xi(\widehat{f})-\xi(f^\star)\leq\xi(\widehat{f})-\xi(f^\star) sep n ( f ) + ξ ( f ) − ξ ( f ⋆ ) ≤ ξ ( f ) − ξ ( f ⋆ ) , and Lemma S5.2 at u = f ^ u=\widehat{f} u = f bounds the left-hand side below by D 2 ∥ f ^ − f ⋆ ∥ H 2 \frac{D}{2}\lVert\widehat{f}-f^\star\rVert_{\mathcal{H}}^2 2 D ∥ f − f ⋆ ∥ H 2 .
At f ^ \widehat{f} f we bound the fluctuation from above, using the empirical cuts. Since P n ( f ^ < t ^ ) ≤ n 1 − α / n ≤ 1 − α < ( n 1 − α + 1 ) / n ≤ P n ( f ^ ≤ t ^ ) P_n(\widehat{f}<\widehat{t})\leq n_{1-\alpha}/n\leq1-\alpha<(n_{1-\alpha}+1)/n\leq P_n(\widehat{f}\leq\widehat{t}) P n ( f < t ) ≤ n 1 − α / n ≤ 1 − α < ( n 1 − α + 1 ) / n ≤ P n ( f ≤ t ) , t ^ \widehat{t} t is a ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile of f ^ \widehat{f} f under P n P_n P n . By the characterization after (S5.1), L P n ( f ^ ) = t ^ − β P n ( t ^ − f ^ ) + L_{P_n}(\widehat{f})=\widehat{t}-\beta P_n(\widehat{t}-\widehat{f})_+ L P n ( f ) = t − β P n ( t − f ) + , while L P ( f ^ ) ≥ t ^ − β P ( t ^ − f ^ ) + L_P(\widehat{f})\geq\widehat{t}-\beta P(\widehat{t}-\widehat{f})_+ L P ( f ) ≥ t − β P ( t − f ) + , so L P n ( f ^ ) − L P ( f ^ ) ≤ β ( P − P n ) ( t ^ − f ^ ) + L_{P_n}(\widehat{f})-L_P(\widehat{f})\leq\beta(P-P_n)(\widehat{t}-\widehat{f})_+ L P n ( f ) − L P ( f ) ≤ β ( P − P n ) ( t − f ) + . Likewise u ^ \widehat{u} u , the k k k -th smallest of the f ^ ( Y j ) \widehat{f}(Y_j) f ( Y j ) with k = m − m 1 − α k=m-m_{1-\alpha} k = m − m 1 − α , is an α \alpha α -quantile of f ^ \widehat{f} f under Q m Q_m Q m , as α ≤ k / m < α + 1 / m \alpha\leq k/m<\alpha+1/m α ≤ k / m < α + 1/ m gives Q m ( f ^ < u ^ ) < α ≤ Q m ( f ^ ≤ u ^ ) Q_m(\widehat{f}<\widehat{u})<\alpha\leq Q_m(\widehat{f}\leq\widehat{u}) Q m ( f < u ) < α ≤ Q m ( f ≤ u ) . So U Q m ( f ^ ) = u ^ + β Q m ( f ^ − u ^ ) + U_{Q_m}(\widehat{f})=\widehat{u}+\beta Q_m(\widehat{f}-\widehat{u})_+ U Q m ( f ) = u + β Q m ( f − u ) + and U Q ( f ^ ) ≤ u ^ + β Q ( f ^ − u ^ ) + U_Q(\widehat{f})\leq\widehat{u}+\beta Q(\widehat{f}-\widehat{u})_+ U Q ( f ) ≤ u + β Q ( f − u ) + . Adding, since ξ = ( L P n − L P ) + ( U Q − U Q m ) \xi=(L_{P_n}-L_P)+(U_Q-U_{Q_m}) ξ = ( L P n − L P ) + ( U Q − U Q m ) , ξ ( f ^ ) ≤ β [ ( P − P n ) ( t ^ − f ^ ) + + ( Q − Q m ) ( f ^ − u ^ ) + ] \xi(\widehat{f})\leq\beta[(P-P_n)(\widehat{t}-\widehat{f})_+ +(Q-Q_m)(\widehat{f}-\widehat{u})_+] ξ ( f ) ≤ β [( P − P n ) ( t − f ) + + ( Q − Q m ) ( f − u ) + ] .
At f ⋆ f^\star f ⋆ we bound it from below in the same way, using the population cuts. Now t ⋆ t^\star t ⋆ maximizes the population objective, so L P ( f ⋆ ) = t ⋆ − β P ( t ⋆ − f ⋆ ) + L_P(f^\star)=t^\star-\beta P(t^\star-f^\star)_+ L P ( f ⋆ ) = t ⋆ − β P ( t ⋆ − f ⋆ ) + , while L P n ( f ⋆ ) ≥ t ⋆ − β P n ( t ⋆ − f ⋆ ) + L_{P_n}(f^\star)\geq t^\star-\beta P_n(t^\star-f^\star)_+ L P n ( f ⋆ ) ≥ t ⋆ − β P n ( t ⋆ − f ⋆ ) + ; and U Q ( f ⋆ ) = u ⋆ + β Q ( f ⋆ − u ⋆ ) + U_Q(f^\star)=u^\star+\beta Q(f^\star-u^\star)_+ U Q ( f ⋆ ) = u ⋆ + β Q ( f ⋆ − u ⋆ ) + , while U Q m ( f ⋆ ) ≤ u ⋆ + β Q m ( f ⋆ − u ⋆ ) + U_{Q_m}(f^\star)\leq u^\star+\beta Q_m(f^\star-u^\star)_+ U Q m ( f ⋆ ) ≤ u ⋆ + β Q m ( f ⋆ − u ⋆ ) + . Hence ξ ( f ⋆ ) ≥ β [ ( P − P n ) ( t ⋆ − f ⋆ ) + + ( Q − Q m ) ( f ⋆ − u ⋆ ) + ] \xi(f^\star)\geq\beta[(P-P_n)(t^\star-f^\star)_+ +(Q-Q_m)(f^\star-u^\star)_+] ξ ( f ⋆ ) ≥ β [( P − P n ) ( t ⋆ − f ⋆ ) + + ( Q − Q m ) ( f ⋆ − u ⋆ ) + ] , and subtracting gives the claim. □
The next lemma uses, as in Section S2, n ⋆ = n m / ( n + m ) n_\star=nm/(n+m) n ⋆ = nm / ( n + m ) and e k = E ∣ ε 1 + ⋯ + ε k ∣ / k ≤ k − 1 / 2 e_k=\mathbb{E}|\varepsilon_1+\cdots+\varepsilon_k|/k\leq k^{-1/2} e k = E ∣ ε 1 + ⋯ + ε k ∣/ k ≤ k − 1/2 for independent Rademacher signs ε i \varepsilon_i ε i .
Lemma S5.4 (A local modulus for the ramps). Let (A1) and (A2) of Assumption 2.1 hold, let f ⋆ ∈ H f^\star\in\mathcal{H} f ⋆ ∈ H and t ⋆ , u ⋆ ∈ R t^\star,u^\star\in\mathbb{R} t ⋆ , u ⋆ ∈ R be fixed, and let r , λ 1 , λ 2 ≥ 0 r,\lambda_1,\lambda_2\geq0 r , λ 1 , λ 2 ≥ 0 . Let H ( r ) \mathcal{H}(r) H ( r ) be the set of pairs of functions h 1 = ( t − f ) + − ( t ⋆ − f ⋆ ) + h_1=(t-f)_+-(t^\star-f^\star)_+ h 1 = ( t − f ) + − ( t ⋆ − f ⋆ ) + and h 2 = ( f − u ) + − ( f ⋆ − u ⋆ ) + h_2=(f-u)_+-(f^\star-u^\star)_+ h 2 = ( f − u ) + − ( f ⋆ − u ⋆ ) + with f ∈ H f\in\mathcal{H} f ∈ H , ∥ f − f ⋆ ∥ H ≤ r \lVert f-f^\star\rVert_{\mathcal{H}}\leq r ∥ f − f ⋆ ∥ H ≤ r , ∣ t − t ⋆ ∣ ≤ κ r + λ 1 |t-t^\star|\leq\kappa r+\lambda_1 ∣ t − t ⋆ ∣ ≤ κ r + λ 1 and ∣ u − u ⋆ ∣ ≤ κ r + λ 2 |u-u^\star|\leq\kappa r+\lambda_2 ∣ u − u ⋆ ∣ ≤ κ r + λ 2 , and put Γ ( r ) = sup ( h 1 , h 2 ) ∈ H ( r ) [ ( P − P n ) h 1 + ( Q − Q m ) h 2 ] \Gamma(r)=\sup_{(h_1,h_2)\in\mathcal{H}(r)}[(P-P_n)h_1+(Q-Q_m)h_2] Γ ( r ) = sup ( h 1 , h 2 ) ∈ H ( r ) [( P − P n ) h 1 + ( Q − Q m ) h 2 ] . Then Γ ( r ) \Gamma(r) Γ ( r ) is measurable, nonnegative and nondecreasing in r r r ,
E Γ ( r ) ≤ 2 [ κ r n ⋆ + ( κ r + λ 1 ) e n + ( κ r + λ 2 ) e m ] , \mathbb{E}\Gamma(r)\leq2\left[\frac{\kappa r}{\sqrt{n_\star}}+(\kappa r+\lambda_1)e_n+(\kappa r+\lambda_2)e_m\right], E Γ ( r ) ≤ 2 [ n ⋆ κ r + ( κ r + λ 1 ) e n + ( κ r + λ 2 ) e m ] , and for every χ > 0 \chi>0 χ > 0 , with probability at least 1 − e − χ 1-e^{-\chi} 1 − e − χ ,
Γ ( r ) ≤ κ r L ( χ ) + M ( χ ) , \Gamma(r)\leq\kappa r L(\chi)+M(\chi), Γ ( r ) ≤ κ r L ( χ ) + M ( χ ) , L ( χ ) = 2 n ⋆ + 2 ( e n + e m ) + 2 2 χ n ⋆ , L(\chi)=\frac{2}{\sqrt{n_\star}}+2(e_n+e_m)+2\sqrt{\frac{2\chi}{n_\star}}, L ( χ ) = n ⋆ 2 + 2 ( e n + e m ) + 2 n ⋆ 2 χ , M ( χ ) = 2 ( λ 1 e n + λ 2 e m ) + 2 χ ( λ 1 2 n + λ 2 2 m ) . M(\chi)=2(\lambda_1e_n+\lambda_2e_m)+\sqrt{2\chi\left(\frac{\lambda_1^2}{n}+\frac{\lambda_2^2}{m}\right)}. M ( χ ) = 2 ( λ 1 e n + λ 2 e m ) + 2 χ ( n λ 1 2 + m λ 2 2 ) .
Proof. Write f = f ⋆ + v f=f^\star+v f = f ⋆ + v , t = t ⋆ + a t=t^\star+a t = t ⋆ + a , u = u ⋆ + b u=u^\star+b u = u ⋆ + b , and for each x x x let φ 1 x ( z ) = ( t ⋆ − f ⋆ ( x ) + z ) + − ( t ⋆ − f ⋆ ( x ) ) + \varphi_1^x(z)=(t^\star-f^\star(x)+z)_+-(t^\star-f^\star(x))_+ φ 1 x ( z ) = ( t ⋆ − f ⋆ ( x ) + z ) + − ( t ⋆ − f ⋆ ( x ) ) + and φ 2 x ( z ) = ( f ⋆ ( x ) − u ⋆ + z ) + − ( f ⋆ ( x ) − u ⋆ ) + \varphi_2^x(z)=(f^\star(x)-u^\star+z)_+-(f^\star(x)-u^\star)_+ φ 2 x ( z ) = ( f ⋆ ( x ) − u ⋆ + z ) + − ( f ⋆ ( x ) − u ⋆ ) + . Both are 1-Lipschitz and vanish at 0, and h 1 ( x ) = φ 1 x ( a − v ( x ) ) h_1(x)=\varphi_1^x(a-v(x)) h 1 ( x ) = φ 1 x ( a − v ( x )) , h 2 ( y ) = φ 2 y ( v ( y ) − b ) h_2(y)=\varphi_2^y(v(y)-b) h 2 ( y ) = φ 2 y ( v ( y ) − b ) , so Γ ( r ) \Gamma(r) Γ ( r ) is the supremum Γ \Gamma Γ of Lemma S1.3 with these maps, radius r r r and ρ i = κ r + λ i \rho_i=\kappa r+\lambda_i ρ i = κ r + λ i . That lemma gives the measurability and the bound on E Γ ( r ) \mathbb{E}\Gamma(r) E Γ ( r ) . The choice ( v , a , b ) = 0 (v,a,b)=0 ( v , a , b ) = 0 gives Γ ( r ) ≥ 0 \Gamma(r)\geq0 Γ ( r ) ≥ 0 , and the classes increase with r r r . Since ∣ φ i x ( z ) ∣ ≤ ∣ z ∣ |\varphi_i^x(z)|\leq|z| ∣ φ i x ( z ) ∣ ≤ ∣ z ∣ , every pair has ∣ h 1 ∣ ≤ 2 κ r + λ 1 |h_1|\leq2\kappa r+\lambda_1 ∣ h 1 ∣ ≤ 2 κ r + λ 1 and ∣ h 2 ∣ ≤ 2 κ r + λ 2 |h_2|\leq2\kappa r+\lambda_2 ∣ h 2 ∣ ≤ 2 κ r + λ 2 , so the tail bound of the lemma holds with Δ i = 2 ( 2 κ r + λ i ) \Delta_i=2(2\kappa r+\lambda_i) Δ i = 2 ( 2 κ r + λ i ) . With probability at least 1 − e − χ 1-e^{-\chi} 1 − e − χ , by Minkowski’s inequality in R 2 \mathbb{R}^2 R 2 ,
Γ ( r ) ≤ E Γ ( r ) + 2 χ [ ( 2 κ r + λ 1 ) 2 / n + ( 2 κ r + λ 2 ) 2 / m ] ≤ E Γ ( r ) + 2 χ [ 2 κ r / n ⋆ + ( λ 1 2 / n + λ 2 2 / m ) 1 / 2 ] , \begin{aligned}
\Gamma(r)\leq\mathbb{E}\Gamma(r)+\sqrt{2\chi\left[(2\kappa r+\lambda_1)^2/n+(2\kappa r+\lambda_2)^2/m\right]} \\
&\leq\mathbb{E}\Gamma(r)+\sqrt{2\chi}\left[2\kappa r/\sqrt{n_\star}+(\lambda_1^2/n+\lambda_2^2/m)^{1/2}\right],
\end{aligned} Γ ( r ) ≤ E Γ ( r ) + 2 χ [ ( 2 κ r + λ 1 ) 2 / n + ( 2 κ r + λ 2 ) 2 / m ] ≤ E Γ ( r ) + 2 χ [ 2 κ r / n ⋆ + ( λ 1 2 / n + λ 2 2 / m ) 1/2 ] ,
and adding the bound on E Γ ( r ) \mathbb{E}\Gamma(r) E Γ ( r ) and collecting the terms in κ r \kappa r κ r gives the claim. □
Proof of Theorem 6.1. The basic inequality of Lemma S5.3 bounds D 2 r ^ 2 \frac{D}{2}\widehat{r}^{\,2} 2 D r 2 by a supremum whose mean grows linearly in r ^ \widehat{r} r , which forces r ^ \widehat{r} r to be of order ( n ∧ m ) − 1 / 2 (n\wedge m)^{-1/2} ( n ∧ m ) − 1/2 ; dyadic shells and Markov’s inequality turn this into a rate, as in the proof of van der Vaart and Wellner [96 ] . We work with the direction f ⋆ = d ⋆ / D f^\star=d^\star/D f ⋆ = d ⋆ / D , so cuts and radii on the scale of d ⋆ d^\star d ⋆ are divided by D D D . Precisely, we show that for every η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) there are a constant C η C_\eta C η , depending on η \eta η alone, and a size n η n_\eta n η , depending on η \eta η , ( P , Q , k , α ) (P,Q,k,\alpha) ( P , Q , k , α ) and r Q r_Q r Q , such that for n ∧ m ≥ n η n \wedge m \ge n_\eta n ∧ m ≥ n η each of the four bounds holds with C η C_\eta C η in place of O P O_{\mathbb{P}} O P with probability at least 1 − η 1-\eta 1 − η .
We write D ^ = D ^ α \widehat{D} = \widehat{D}_\alpha D = D α , f ⋆ = d ⋆ / D f^\star= d^\star/D f ⋆ = d ⋆ / D , f ^ = d ^ / D ^ \widehat{f} = \widehat{d}/\widehat{D} f = d / D when D ^ > 0 \widehat{D}>0 D > 0 , r ^ = ∥ f ^ − f ⋆ ∥ H \widehat{r} = \lVert\widehat{f}-f^\star\rVert_{\mathcal{H}} r = ∥ f − f ⋆ ∥ H , t ⋆ = t α / D t^\star=t_\alpha/D t ⋆ = t α / D and u ⋆ = u α / D u^\star=u_\alpha/D u ⋆ = u α / D , which are a ( 1 − α ) (1-\alpha) ( 1 − α ) -quantile of f ⋆ ( X ) f^\star(X) f ⋆ ( X ) and an α \alpha α -quantile of f ⋆ ( Y ) f^\star(Y) f ⋆ ( Y ) , and let t ^ \widehat{t} t and u ^ \widehat{u} u be as in Lemma S5.3, so that t ^ = t ^ n / D ^ \widehat{t}=\widehat{t}_n/\widehat{D} t = t n / D . Write c = min ( c f , c f ′ ) c=\min(c_f,c'_f) c = min ( c f , c f ′ ) and n = n ∧ m n=n\wedge m n = n ∧ m , fix η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) and put η ′ = η / 2 \eta'=\eta/2 η ′ = η /2 ,
λ X = 1 c f ( ε n + 1 n ) , λ Y = 1 c f ′ ( ε m + 1 m ) , ε n = { log ( 10 / η ′ ) 2 n } 1 / 2 , \lambda_X=\frac{1}{c_f}\left(\varepsilon_n+\frac{1}{n}\right), \qquad\lambda_Y=\frac{1}{c'_f}\left(\varepsilon_m+\frac{1}{m}\right), \qquad\varepsilon_n=\left\{\frac{\log(10/\eta')}{2n}\right\}^{1/2}, λ X = c f 1 ( ε n + n 1 ) , λ Y = c f ′ 1 ( ε m + m 1 ) , ε n = { 2 n log ( 10/ η ′ ) } 1/2 ,
with ε m \varepsilon_m ε m defined likewise, and τ S = τ n , m S ( α , η ′ / 5 ) \tau^{\mathrm{S}}=\tau^{\mathrm{S}}_{n,m}(\alpha,\eta'/5) τ S = τ n , m S ( α , η ′ /5 ) as in (S2.1). Let Γ \Gamma Γ be the process of Lemma S5.4 for f ⋆ , t ⋆ , u ⋆ , λ 1 = λ X / D f^\star,t^\star,u^\star,\lambda_1=\lambda_X/D f ⋆ , t ⋆ , u ⋆ , λ 1 = λ X / D and λ 2 = λ Y / D \lambda_2=\lambda_Y/D λ 2 = λ Y / D . The proof uses four events, each of probability at least 1 − η ′ / 5 1-\eta'/5 1 − η ′ /5 : the events E + E^+ E + and E − E^- E − of Theorem S2.1 at level η ′ / 5 \eta'/5 η ′ /5 , and, by the Dvoretzky–Kiefer–Wolfowitz inequality with Massart’s constant [63 ] , E X = { sup t ∣ F n ( t ) − F ( t ) ∣ ≤ ε n } E_X=\{\sup_t\lvert F_n(t)-F(t)\rvert\le\varepsilon_n\} E X = { sup t ∣ F n ( t ) − F ( t )∣ ≤ ε n } for the distribution function F F F of d ⋆ ( X ) d^\star(X) d ⋆ ( X ) and the empirical one F n F_n F n of the d ⋆ ( X i ) d^\star(X_i) d ⋆ ( X i ) , and the analogous E Y E_Y E Y for the d ⋆ ( Y j ) d^\star(Y_j) d ⋆ ( Y j ) , with G G G , G m G_m G m and ε m \varepsilon_m ε m . Let E = E − ∩ E X ∩ E Y E=E^-\cap E_X\cap E_Y E = E − ∩ E X ∩ E Y , so P ( E c ) ≤ 3 η / 10 \mathbb{P}(E^c)\le3\eta/10 P ( E c ) ≤ 3 η /10 . For n ∧ m n\wedge m n ∧ m large enough, τ S < D \tau^{\mathrm{S}}<D τ S < D and max ( λ X , λ Y ) ≤ r Q \max(\lambda_X,\lambda_Y)\le r_Q max ( λ X , λ Y ) ≤ r Q .
On E − E^- E − the problem is nondegenerate: D ^ ≥ D − τ S > 0 \widehat{D}\ge D-\tau^{\mathrm{S}}>0 D ≥ D − τ S > 0 . So f ^ \widehat{f} f is a unit vector, r ^ ≤ 2 \widehat{r}\le2 r ≤ 2 , and Proposition 2.5(ii) applies, with A ^ n = { f ^ < t ^ } \widehat{A}_n=\{\widehat{f}<\widehat{t}\} A n = { f < t } ; also A ⋆ = { f ⋆ < t ⋆ } A^\star=\{f^\star<t^\star\} A ⋆ = { f ⋆ < t ⋆ } .
The lower density bounds keep the empirical cuts of f ⋆ f^\star f ⋆ near the population ones, within λ X \lambda_X λ X or λ Y \lambda_Y λ Y , the radius of the Dvoretzky–Kiefer–Wolfowitz event plus one rank, divided by c f c_f c f or c f ′ c'_f c f ′ . By (Q), F F F is continuous at t α t_\alpha t α , so F ( t α ) = 1 − α F(t_\alpha)=1-\alpha F ( t α ) = 1 − α , and integrating the lower density bound gives F ( t α + ϵ ) ≥ 1 − α + c f ϵ F(t_\alpha+\epsilon)\ge1-\alpha+c_f\epsilon F ( t α + ϵ ) ≥ 1 − α + c f ϵ and F ( t α − ϵ ) ≤ 1 − α − c f ϵ F(t_\alpha-\epsilon)\le1-\alpha-c_f\epsilon F ( t α − ϵ ) ≤ 1 − α − c f ϵ for 0 ≤ ϵ ≤ r Q 0\le\epsilon\le r_Q 0 ≤ ϵ ≤ r Q . Let d ( n 1 − α + 1 ) ⋆ d^\star_{(n_{1-\alpha+1})} d ( n 1 − α + 1 ) ⋆ be the ( n 1 − α + 1 ) (n_{1-\alpha}+1) ( n 1 − α + 1 ) -th smallest of the d ⋆ ( X i ) d^\star(X_i) d ⋆ ( X i ) , so that F n ( t ) ≥ ( n 1 − α + 1 ) / n F_n(t)\ge(n_{1-\alpha}+1)/n F n ( t ) ≥ ( n 1 − α + 1 ) / n exactly when t ≥ d ( n 1 − α + 1 ) ⋆ t\ge d^\star_{(n_{1-\alpha+1})} t ≥ d ( n 1 − α + 1 ) ⋆ . On E X E_X E X , since c f λ X = ε n + 1 / n c_f\lambda_X=\varepsilon_n+1/n c f λ X = ε n + 1/ n and λ X ≤ r Q \lambda_X\le r_Q λ X ≤ r Q , F n ( t α + λ X ) ≥ 1 − α + 1 / n ≥ ( n 1 − α + 1 ) / n F_n(t_\alpha+\lambda_X)\ge1-\alpha+1/n\ge(n_{1-\alpha}+1)/n F n ( t α + λ X ) ≥ 1 − α + 1/ n ≥ ( n 1 − α + 1 ) / n and F n ( t α − λ X ) ≤ 1 − α − 1 / n < ( n 1 − α + 1 ) / n F_n(t_\alpha-\lambda_X)\le1-\alpha-1/n<(n_{1-\alpha}+1)/n F n ( t α − λ X ) ≤ 1 − α − 1/ n < ( n 1 − α + 1 ) / n , using n ( 1 − α ) − 1 < n 1 − α ≤ n ( 1 − α ) n(1-\alpha)-1<n_{1-\alpha}\le n(1-\alpha) n ( 1 − α ) − 1 < n 1 − α ≤ n ( 1 − α ) ; so ∣ d ( n 1 − α + 1 ) ⋆ − t α ∣ ≤ λ X \lvert d^\star_{(n_{1-\alpha+1})}-t_\alpha\rvert\le\lambda_X ∣ d ( n 1 − α + 1 ) ⋆ − t α ∣ ≤ λ X . On the second sample let d [ k ] ⋆ d^\star_{[k]} d [ k ] ⋆ be the k k k -th smallest of the d ⋆ ( Y j ) d^\star(Y_j) d ⋆ ( Y j ) , k = m − m 1 − α k=m-m_{1-\alpha} k = m − m 1 − α , which is the ( m 1 − α + 1 ) (m_{1-\alpha}+1) ( m 1 − α + 1 ) -th largest, with α ≤ k / m < α + 1 / m \alpha\le k/m<\alpha+1/m α ≤ k / m < α + 1/ m . In the same way (Q′) gives, on E Y E_Y E Y , G m ( u α + λ Y ) ≥ α + 1 / m > k / m G_m(u_\alpha+\lambda_Y)\ge\alpha+1/m>k/m G m ( u α + λ Y ) ≥ α + 1/ m > k / m and G m ( u α − λ Y ) ≤ α − 1 / m < k / m G_m(u_\alpha-\lambda_Y)\le\alpha-1/m<k/m G m ( u α − λ Y ) ≤ α − 1/ m < k / m , so ∣ d [ k ] ⋆ − u α ∣ ≤ λ Y \lvert d^\star_{[k]}-u_\alpha\rvert\le\lambda_Y ∣ d [ k ] ⋆ − u α ∣ ≤ λ Y . Dividing by D D D , the corresponding order statistics of the f ⋆ ( X i ) f^\star(X_i) f ⋆ ( X i ) and f ⋆ ( Y j ) f^\star(Y_j) f ⋆ ( Y j ) are within λ 1 \lambda_1 λ 1 of t ⋆ t^\star t ⋆ and within λ 2 \lambda_2 λ 2 of u ⋆ u^\star u ⋆ . Order statistics are 1-Lipschitz in the sup-norm of the values, and ∣ f ^ ( x ) − f ⋆ ( x ) ∣ ≤ κ r ^ \lvert\widehat{f}(x)-f^\star(x)\rvert\le\kappa\widehat{r} ∣ f ( x ) − f ⋆ ( x )∣ ≤ κ r by Cauchy–Schwarz, so ∣ t ^ − t ⋆ ∣ ≤ κ r ^ + λ 1 \lvert\widehat{t}-t^\star\rvert\le\kappa\widehat{r}+\lambda_1 ∣ t − t ⋆ ∣ ≤ κ r + λ 1 and ∣ u ^ − u ⋆ ∣ ≤ κ r ^ + λ 2 \lvert\widehat{u}-u^\star\rvert\le\kappa\widehat{r}+\lambda_2 ∣ u − u ⋆ ∣ ≤ κ r + λ 2 . The pair of functions in Lemma S5.3 therefore belongs to H ( r ^ ) \mathcal{H}(\widehat{r}) H ( r ) , and the lemma gives
D 2 r ^ 2 ≤ β Γ ( r ^ ) . (36) \frac{D}{2}\widehat{r}^{\,2}\le\beta\Gamma(\widehat{r}). \tag*{(36)} 2 D r 2 ≤ β Γ ( r ) . (36)
A peeling turns (S5.2) into a rate. We peel the values of n 1 / 2 r ^ n^{1/2}\widehat{r} n 1/2 r into dyadic shells. For j ∈ Z j\in\mathbb{Z} j ∈ Z let S j = { 2 j − 1 < n 1 / 2 r ^ ≤ 2 j } S_j=\{2^{j-1}<n^{1/2}\widehat{r}\le2^j\} S j = { 2 j − 1 < n 1/2 r ≤ 2 j } . On S j ∩ E S_j\cap E S j ∩ E , (S5.2) and the monotonicity of Γ \Gamma Γ give Γ ( 2 j n − 1 / 2 ) ≥ D 4 j / ( 8 β n ) \Gamma(2^j n^{-1/2})\ge D4^j/(8\beta n) Γ ( 2 j n − 1/2 ) ≥ D 4 j / ( 8 β n ) , so S j ∩ E S_j\cap E S j ∩ E lies in the measurable event { Γ ( 2 j n − 1 / 2 ) ≥ D 4 j / ( 8 β n ) } \{\Gamma(2^j n^{-1/2})\ge D4^j/(8\beta n)\} { Γ ( 2 j n − 1/2 ) ≥ D 4 j / ( 8 β n )} . The bound on E Γ \mathbb{E}\Gamma E Γ in Lemma S5.4, with n ⋆ − 1 / 2 ≤ ( 2 / n ) 1 / 2 n_\star^{-1/2}\le(2/n)^{1/2} n ⋆ − 1/2 ≤ ( 2/ n ) 1/2 and ε n , ε m ≤ n − 1 / 2 \varepsilon_n,\varepsilon_m\le n^{-1/2} ε n , ε m ≤ n − 1/2 , gives n E Γ ( 2 j n − 1 / 2 ) ≤ a 2 j + b n\mathbb{E}\Gamma(2^j n^{-1/2})\le a2^j+b n E Γ ( 2 j n − 1/2 ) ≤ a 2 j + b with a = 2 ( 2 + 2 ) κ a=2(2+\sqrt{2})\kappa a = 2 ( 2 + 2 ) κ , the linear term, and b = 2 n 1 / 2 ( λ 1 + λ 2 ) b=2n^{1/2}(\lambda_1+\lambda_2) b = 2 n 1/2 ( λ 1 + λ 2 ) , the cost of the cuts, so by Markov’s inequality, since Γ ≥ 0 \Gamma\ge0 Γ ≥ 0 , that event has probability at most 8 β ( a 2 j + b ) / ( D 4 j ) 8\beta(a2^j+b)/(D4^j) 8 β ( a 2 j + b ) / ( D 4 j ) . Write Ξ η ′ = log ( 10 / η ′ ) / 2 + 1 \Xi_{\eta'}=\sqrt{\log(10/\eta')/2+1} Ξ η ′ = log ( 10/ η ′ ) /2 + 1 . Since n ≤ n n\le n n ≤ n , n 1 / 2 λ X ≤ Ξ η ′ / c f n^{1/2}\lambda_X\le\Xi_{\eta'}/c_f n 1/2 λ X ≤ Ξ η ′ / c f , and likewise for λ Y \lambda_Y λ Y , so b ≤ 4 Ξ η ′ / ( c D ) b\le4\Xi_{\eta'}/(cD) b ≤ 4 Ξ η ′ / ( cD ) . Let j 0 j_0 j 0 be the smallest integer with 2 j 0 ≥ N α / D 2^{j_0}\ge N\sqrt{\alpha}/D 2 j 0 ≥ N α / D , for a number Λ ≥ 1 \Lambda\ge1 Λ ≥ 1 chosen below. The shells S j S_j S j with j > j 0 j>j_0 j > j 0 cover { n 1 / 2 r ^ > 2 j 0 } \{n^{1/2}\widehat{r}>2^{j_0}\} { n 1/2 r > 2 j 0 } , so { n 1 / 2 r ^ > 2 j 0 } ∩ E \{n^{1/2}\widehat r>2^{j_0}\}\cap E { n 1/2 r > 2 j 0 } ∩ E lies in the union B j 0 \mathcal B_{j_0} B j 0 of the events above over j > j 0 j>j_0 j > j 0 , and summing the geometric series,
P ( B j 0 ) ≤ 8 β α D 2 j 0 + 8 β b 3 D 4 j 0 ≤ 8 β α Λ V α + 32 β Ξ η ′ 3 c Λ 2 V α 2 ≤ 16 ( 2 + 2 ) Λ + 32 Ξ η ′ 3 Λ 2 . \mathbb{P}(\mathcal B_{j_0})\le\frac{8\beta\alpha}{D2^{j_0}}+\frac{8\beta b}{3D4^{j_0}}\le\frac{8\beta\alpha}{\Lambda V_\alpha}+\frac{32\beta\Xi\eta'}{3c\Lambda^2V_\alpha^2}\le\frac{16(2+\sqrt{2})}{\Lambda}+\frac{32\Xi\eta'}{3\Lambda^2}. P ( B j 0 ) ≤ D 2 j 0 8 β α + 3 D 4 j 0 8 β b ≤ Λ V α 8 β α + 3 c Λ 2 V α 2 32 β Ξ η ′ ≤ Λ 16 ( 2 + 2 ) + 3 Λ 2 32Ξ η ′ .
using V α ≥ β κ V_\alpha\ge\beta\kappa V α ≥ β κ and V α 2 ≥ β / c V_\alpha^2\ge\beta/c V α 2 ≥ β / c . Choose Λ \Lambda Λ , depending only on η \eta η , so that the right-hand side is at most η / 2 \eta/2 η /2 . Since 2 j 0 < 2 Λ V α / D 2^{j_0}<2\Lambda V_\alpha/D 2 j 0 < 2Λ V α / D , the event { r ^ > 2 Λ V α / ( D n 1 / 2 ) } \{\widehat r>2\Lambda V_\alpha/(Dn^{1/2})\} { r > 2Λ V α / ( D n 1/2 )} lies in E c ∪ B j 0 E^c\cup\mathcal B_{j_0} E c ∪ B j 0 , of probability at most 3 η / 10 + η / 2 < η 3\eta/10+\eta/2<\eta 3 η /10 + η /2 < η for n ∧ m n\wedge m n ∧ m large, which is the rate of the direction.
The bounds on the witness and the kept set follow from that on the direction. For the witness, Lemma S5.2 gives ∥ d ^ − d ⋆ ∥ H ≤ ∣ D ^ − D ∣ + D ^ D r ^ ≤ τ S + 2 D r ^ \|\widehat d-d^\star\|_{\mathcal H}\le|\widehat D-D|+\sqrt{\widehat D D}\widehat r\le\tau^S+\sqrt{2}D\widehat r ∥ d − d ⋆ ∥ H ≤ ∣ D − D ∣ + D D r ≤ τ S + 2 D r on E + ∩ E − E^+\cap E^- E + ∩ E − when τ S < D \tau^S<D τ S < D , and (S2.1) gives τ n , m S ( α , η ′ / 5 ) ≤ β κ ( 2 2 + 4 + 2 log ( 5 / η ′ ) ) n − 1 / 2 \tau^S_{n,m}(\alpha,\eta'/5)\le\beta\kappa(2\sqrt{2}+4+2\sqrt{\log(5/\eta')})n^{-1/2} τ n , m S ( α , η ′ /5 ) ≤ β κ ( 2 2 + 4 + 2 log ( 5/ η ′ ) ) n − 1/2 , a multiple of V α n − 1 / 2 V_\alpha n^{-1/2} V α n − 1/2 depending only on η \eta η . For the kept set, on E E E , if f ^ ( x ) < t ^ \widehat f(x)<\widehat t f ( x ) < t and f ⋆ ( x ) ≥ t ⋆ f^\star(x)\ge t^\star f ⋆ ( x ) ≥ t ⋆ , then f ⋆ ( x ) ≤ f ^ ( x ) + κ r ^ < t ^ + κ r ^ ≤ t ⋆ + 2 κ r ^ + λ 1 f^\star(x)\le\widehat f(x)+\kappa\widehat r<\widehat t+\kappa\widehat r\le t^\star+2\kappa\widehat r+\lambda_1 f ⋆ ( x ) ≤ f ( x ) + κ r < t + κ r ≤ t ⋆ + 2 κ r + λ 1 ; if f ⋆ ( x ) < t ⋆ f^\star(x)<t^\star f ⋆ ( x ) < t ⋆ and f ^ ( x ) ≥ t ^ \widehat f(x)\ge\widehat t f ( x ) ≥ t , then f ⋆ ( x ) ≥ t ^ − κ r ^ ≥ t ⋆ − 2 κ r ^ − λ 1 f^\star(x)\ge\widehat t-\kappa\widehat r\ge t^\star-2\kappa\widehat r-\lambda_1 f ⋆ ( x ) ≥ t − κ r ≥ t ⋆ − 2 κ r − λ 1 . So A ^ n △ A ⋆ \widehat A_n\triangle A^\star A n △ A ⋆ lies in the band { ∣ f ⋆ − t ⋆ ∣ ≤ 2 κ r ^ + λ 1 } = { ∣ d ⋆ − t α ∣ ≤ 2 κ D r ^ + λ X } \{|f^\star-t^\star|\le2\kappa\widehat r+\lambda_1\}=\{|d^\star-t_\alpha|\le2\kappa D\widehat r+\lambda_X\} { ∣ f ⋆ − t ⋆ ∣ ≤ 2 κ r + λ 1 } = { ∣ d ⋆ − t α ∣ ≤ 2 κ D r + λ X } , and the same computation puts { d ^ = t ^ n } = { f ^ = t ^ } \{\widehat d=\widehat t_n\}=\{\widehat f=\widehat t\} { d = t n } = { f = t } in it. If its half-width ℓ = 2 κ D r ^ + λ X \ell=2\kappa D\widehat r+\lambda_X ℓ = 2 κ D r + λ X is at most r Q r_Q r Q , the upper density bound of (Q) gives the band mass at most 2 C f ℓ 2C_f\ell 2 C f ℓ . Finally, g ^ n \widehat g_n g n and g ⋆ g^\star g ⋆ take values in [ 0 , β ] [0,\beta] [ 0 , β ] and agree outside ( A ^ n △ A ⋆ ) ∪ { d ^ = t ^ n } ∪ { d ⋆ = t α } (\widehat A_n\triangle A^\star)\cup\{\widehat d=\widehat t_n\}\cup\{d^\star=t_\alpha\} ( A n △ A ⋆ ) ∪ { d = t n } ∪ { d ⋆ = t α } : both equal β \beta β on A ^ n ∩ A ⋆ \widehat A_n\cap A^\star A n ∩ A ⋆ and 0 0 0 where d ^ > t ^ n \widehat d>\widehat t_n d > t n and d ⋆ > t α d^\star>t_\alpha d ⋆ > t α . All three sets lie in the band, which gives the bound on ∫ ∣ g ^ n − g ⋆ ∣ d P \int|\widehat g_n-g^\star|\,dP ∫ ∣ g n − g ⋆ ∣ d P . On E E E the half-width is at most r Q r_Q r Q with probability tending to one, and λ X ≤ Ξ η ′ / ( c f n 1 / 2 ) \lambda_X\le\Xi\eta'/(c_f n^{1/2}) λ X ≤ Ξ η ′ / ( c f n 1/2 ) , while the rate of the direction bounds 2 κ D r ^ 2\kappa D\widehat r 2 κ D r by 4 Λ κ V α n − 1 / 2 4\Lambda\kappa V_\alpha n^{-1/2} 4Λ κ V α n − 1/2 outside probability η \eta η .
A sufficient condition for (Q)
The density conditions of Section 6 hold, for instance, under the following condition on the witness.
Remark S5.5 (A sufficient condition for (Q)). Let X = R d \mathcal X=\mathbb R^d X = R d with the Gaussian kernel, so that d ⋆ d^\star d ⋆ is infinitely differentiable and vanishes at infinity. If t α ≠ 0 t_\alpha\ne0 t α = 0 , the level set { d ⋆ = t α } \{d^\star=t_\alpha\} { d ⋆ = t α } is nonempty, the gradient of d ⋆ d^\star d ⋆ does not vanish on it, and P P P has a Lebesgue density p p p that is continuous near the level set and positive on it, then (Q) holds, by the coarea formula Evans and Gariepy, [28 ] . The same conditions at u α u_\alpha u α under Q Q Q give ( Q ′ ) (Q') ( Q ′ ) (proof below). For the Laplace kernel on R \mathbb R R , by contrast, (Q) fails for every pair and every level 0 < α < α ⋆ 0<\alpha<\alpha^\star 0 < α < α ⋆ , as the law of d ⋆ ( X ) d^\star(X) d ⋆ ( X ) has an atom of mass at least α \alpha α at the cut (Proposition 5.10 (iii) and the remark after its proof); whether it can hold for the Laplace kernel in R d \mathbb R^d R d is open.
Proof of Remark S5.5. For the Gaussian kernel every function in H \mathcal H H is infinitely differentiable (Steinwart and Christmann, [91 ] , Corollary 4.36) and vanishes at infinity (Steinwart and Christmann, [91 ] , Theorem 4.21 and Lemma 4.23), so for 0 < ρ < ∣ t α ∣ / 2 0<\rho<|t_\alpha|/2 0 < ρ < ∣ t α ∣/2 the band B ρ = { ∣ d ⋆ − t α ∣ ≤ ρ } B_\rho=\{|d^\star-t_\alpha|\le\rho\} B ρ = { ∣ d ⋆ − t α ∣ ≤ ρ } is compact, and for ρ \rho ρ small enough ∇ d ⋆ \nabla d^\star ∇ d ⋆ does not vanish and p p p is continuous and positive on it, by continuity and compactness. On B ρ B_\rho B ρ the coarea formula Evans and Gariepy, [28 ] gives d ⋆ ( X ) d^\star(X) d ⋆ ( X ) the density h ( t ) = ∫ { d ⋆ = t } p / ∣ ∇ d ⋆ ∣ d H d − 1 h(t)=\int_{\{d^\star=t\}}p/\lvert\nabla d^\star\rvert\,d\mathcal H^{d-1} h ( t ) = ∫ { d ⋆ = t } p / ∣ ∇ d ⋆ ∣ d H d − 1 for ∣ t − t α ∣ ≤ ρ |t-t_\alpha|\le\rho ∣ t − t α ∣ ≤ ρ , which is continuous, as the flow of ∇ d ⋆ / ∣ ∇ d ⋆ ∣ 2 \nabla d^\star/|\nabla d^\star|^2 ∇ d ⋆ /∣∇ d ⋆ ∣ 2 carries the level sets smoothly onto one another, and positive. So (Q) holds for r Q < ρ r_Q<\rho r Q < ρ with c f c_f c f and C f C_f C f the extremes of h h h on [ t α − r Q , t α + r Q ] [t_\alpha-r_Q,t_\alpha+r_Q] [ t α − r Q , t α + r Q ] , and the same argument for Q Q Q , Y Y Y and u α u_\alpha u α gives ( Q ′ ) (Q') ( Q ′ ) .
The trimming at the estimated level
The regions touch in a single point at α ⋆ \alpha^\star α ⋆ , and concentrate in Hausdorff distance d H d_H d H . Recall the modulus of contact Ω ( ϵ ) = sup { ∥ a − μ R ⋆ ∥ H : a ∈ C α ⋆ ( P ) , dist ( a , C α ⋆ ( Q ) ) ≤ ϵ } \Omega(\epsilon)=\sup\{\|a-\mu_{R^\star}\|_{\mathcal H}:a\in C_{\alpha^\star}(P),\operatorname{dist}(a,C_{\alpha^\star}(Q))\le\epsilon\} Ω ( ϵ ) = sup { ∥ a − μ R ⋆ ∥ H : a ∈ C α ⋆ ( P ) , dist ( a , C α ⋆ ( Q )) ≤ ϵ } .
Lemma S5.6 (The contact point). Let Assumption 2.1 hold. Then C α ( P ) C_\alpha(P) C α ( P ) is norm-compact for every α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) . If α ⋆ < 1 \alpha^\star< 1 α ⋆ < 1 , then R ⋆ = ( P ∧ Q ) / ( 1 − α ⋆ ) R^\star= (P \wedge Q)/(1-\alpha^\star) R ⋆ = ( P ∧ Q ) / ( 1 − α ⋆ ) is the only common element of R α ⋆ ( P ) R_{\alpha^\star}(P) R α ⋆ ( P ) and R α ⋆ ( Q ) R_{\alpha^\star}(Q) R α ⋆ ( Q ) , C α ⋆ ( P ) ∩ C α ⋆ ( Q ) = { μ R ⋆ } C_{\alpha^\star}(P) \cap C_{\alpha^\star}(Q) = \{\mu_{R^\star}\} C α ⋆ ( P ) ∩ C α ⋆ ( Q ) = { μ R ⋆ } , and Ω ( ϵ ) → 0 \Omega(\epsilon) \to0 Ω ( ϵ ) → 0 as ϵ ↓ 0 \epsilon\downarrow0 ϵ ↓ 0 .
Proof. Norm-compactness is part of Lemma 2.3 .
The common trimming is unique by the maximality of P ∧ Q P \wedge Q P ∧ Q , and the common embedding by (A3). If R ∈ R α ⋆ ( P ) ∩ R α ⋆ ( Q ) R \in R_{\alpha^\star}(P) \cap R_{\alpha^\star}(Q) R ∈ R α ⋆ ( P ) ∩ R α ⋆ ( Q ) , then ( 1 − α ⋆ ) R ≤ P ∧ Q (1-\alpha^\star)R \le P \wedge Q ( 1 − α ⋆ ) R ≤ P ∧ Q (Section S1), and both have mass 1 − α ⋆ 1-\alpha^\star 1 − α ⋆ , so R = R ⋆ R=R^\star R = R ⋆ ; conversely R ⋆ R^\star R ⋆ lies in both. If a a a lies in both regions, then a = E P [ g ϕ ] = E Q [ h ϕ ] a = \mathbb{E}_P[g\phi] = \mathbb{E}_Q[h\phi] a = E P [ g ϕ ] = E Q [ h ϕ ] with g ∈ G α ⋆ ( P ) g \in G_{\alpha^\star}(P) g ∈ G α ⋆ ( P ) and h ∈ G α ⋆ ( Q ) h \in G_{\alpha^\star}(Q) h ∈ G α ⋆ ( Q ) , the probability measures g P gP g P and h Q hQ h Q have the same embedding, and they are equal by (A3). So a a a is the embedding of a common trimming, which is R ⋆ R^\star R ⋆ .
That the modulus tends to zero is a compactness argument. If Ω ( ϵ ) ↛ 0 \Omega(\epsilon) \not\to0 Ω ( ϵ ) → 0 , there are ϵ j → 0 \epsilon_j \to0 ϵ j → 0 , c > 0 c > 0 c > 0 and a j ∈ C α ⋆ ( P ) a_j \in C_{\alpha^\star}(P) a j ∈ C α ⋆ ( P ) with dist ( a j , C α ⋆ ( Q ) ) ≤ ϵ j \operatorname{dist}(a_j,C_{\alpha^\star}(Q)) \le\epsilon_j dist ( a j , C α ⋆ ( Q )) ≤ ϵ j and ∥ a j − μ R ⋆ ∥ H ≥ c \lVert a_j-\mu_{R^\star}\rVert_H \ge c ∥ a j − μ R ⋆ ∥ H ≥ c . By compactness a subsequence converges in norm to some a ˉ ∈ C α ⋆ ( P ) \bar a \in C_{\alpha^\star}(P) a ˉ ∈ C α ⋆ ( P ) , and dist ( a ˉ , C α ⋆ ( Q ) ) = 0 \operatorname{dist}(\bar a,C_{\alpha^\star}(Q))=0 dist ( a ˉ , C α ⋆ ( Q )) = 0 , so a ˉ \bar a a ˉ lies in the closed set C α ⋆ ( Q ) C_{\alpha^\star}(Q) C α ⋆ ( Q ) as well. Then a ˉ = μ R ⋆ \bar a=\mu_{R^\star} a ˉ = μ R ⋆ , which contradicts ∥ a ˉ − μ R ⋆ ∥ H ≥ c \lVert\bar a-\mu_{R^\star}\rVert_H \ge c ∥ a ˉ − μ R ⋆ ∥ H ≥ c . □
Let G = { x ↦ ( f ( x ) − t ) + : f ∈ B H , t ∈ [ − κ , κ ] } \mathcal{G}=\{x\mapsto(f(x)-t)_+ : f\in B_H,\ t\in[-\kappa,\kappa]\} G = { x ↦ ( f ( x ) − t ) + : f ∈ B H , t ∈ [ − κ , κ ]} , a class of hinge functions, not to be confused with the sets G α ( P ) G_\alpha(P) G α ( P ) of trimming densities.
Corollary S5.7 (Concentration of the regions, simultaneously in α \alpha α ). Under Assumption 2.1, for every n ≥ 1 n\ge1 n ≥ 1 and δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) there is an event of probability at least 1 − δ 1-\delta 1 − δ , namely { sup g ∈ G ∣ ( P n − P ) g ∣ ≤ 4 κ / n + κ 2 log ( 2 / δ ) / n } \{\sup_{g\in\mathcal{G}} |(P_n-P)g| \le4\kappa/\sqrt{n}+\kappa\sqrt{2\log(2/\delta)/n}\} { sup g ∈ G ∣ ( P n − P ) g ∣ ≤ 4 κ / n + κ 2 log ( 2/ δ ) / n } , which does not depend on α \alpha α and on which, for every α ∈ [ 0 , 1 ) \alpha\in[0,1) α ∈ [ 0 , 1 ) ,
d H ( C α ( P n ) , C α ( P ) ) ≤ r n ( α , δ ) : = κ 1 − α [ 4 n + 2 log ( 2 / δ ) n ] . (37) d_H(C_\alpha(P_n),C_\alpha(P)) \le r_n(\alpha,\delta):=\frac{\kappa}{1-\alpha}\left[\frac{4}{\sqrt{n}}+\sqrt{\frac{2\log(2/\delta)}{n}}\right]. \tag*{(37)} d H ( C α ( P n ) , C α ( P )) ≤ r n ( α , δ ) := 1 − α κ [ n 4 + n 2 log ( 2/ δ ) ] . (37)
Proof. The Hausdorff distance between two convex sets is the largest difference of their support functions, each support function is an infimum over cuts of means of hinge functions, and so one supremum over the hinge class controls every level. Write A = C α ( P ) \mathcal{A}=C_\alpha(P) A = C α ( P ) and A n = C α ( P n ) \mathcal{A}_n=C_\alpha(P_n) A n = C α ( P n ) . For a ∈ A n a\in\mathcal{A}_n a ∈ A n , (S3.2) for A \mathcal{A} A and { a } \{a\} { a } , with − ⟨ f , a ⟩ H ≤ h A n ( − f ) -\langle f,a\rangle_H\le h_{\mathcal{A}_n}(-f) − ⟨ f , a ⟩ H ≤ h A n ( − f ) , gives
dist ( a , A ) = max f ∈ B H { − h A ( − f ) − ⟨ f , a ⟩ H } ≤ sup f ∈ B H { h A n ( − f ) − h A ( − f ) } , \operatorname{dist}(a,\mathcal{A})=\max_{f\in B_H}\{-h_{\mathcal{A}}(-f)-\langle f,a\rangle_H\}\le\sup_{f\in B_H}\{h_{\mathcal{A}_n}(-f)-h_{\mathcal{A}}(-f)\}, dist ( a , A ) = f ∈ B H max { − h A ( − f ) − ⟨ f , a ⟩ H } ≤ f ∈ B H sup { h A n ( − f ) − h A ( − f )} ,
and in the same way dist ( a , A n ) ≤ sup f ∈ B H { h A ( − f ) − h A n ( − f ) } \operatorname{dist}(a,\mathcal{A}_n)\le\sup_{f\in B_H}\{h_{\mathcal{A}}(-f)-h_{\mathcal{A}_n}(-f)\} dist ( a , A n ) ≤ sup f ∈ B H { h A ( − f ) − h A n ( − f )} for a ∈ A a\in\mathcal{A} a ∈ A . As in the deterministic reduction in the proof of Theorem S2.1, Lemmas 2.4 and S1.1 bound h A n ( − f ) − h A ( − f ) h_{\mathcal{A}_n}(-f)-h_{\mathcal{A}}(-f) h A n ( − f ) − h A ( − f ) by β ( P n − P ) ( − f − t ) + \beta(P_n-P)(-f-t)_+ β ( P n − P ) ( − f − t ) + at the population minimizer t ∈ [ − κ , κ ] t\in[-\kappa,\kappa] t ∈ [ − κ , κ ] , and h A ( − f ) − h A n ( − f ) h_{\mathcal{A}}(-f)-h_{\mathcal{A}_n}(-f) h A ( − f ) − h A n ( − f ) by β ( P − P n ) ( − f − t n ) + \beta(P-P_n)(-f-t_n)_+ β ( P − P n ) ( − f − t n ) + at the empirical one. Since B H B_H B H and [ − κ , κ ] [-\kappa,\kappa] [ − κ , κ ] are symmetric, these functions lie in G \mathcal{G} G , so d H ( A n , A ) ≤ β sup g ∈ G ∣ ( P n − P ) g ∣ d_H(\mathcal{A}_n,\mathcal{A})\le\beta\sup_{g\in\mathcal{G}}|(P_n-P)g| d H ( A n , A ) ≤ β sup g ∈ G ∣ ( P n − P ) g ∣ , in which only β \beta β depends on α \alpha α . Lemma S1.3 for one sample, with ϕ = ( ⋅ ) + \phi=(\cdot)_+ ϕ = ( ⋅ ) + , r = 1 r=1 r = 1 , ρ 1 = κ \rho_1=\kappa ρ 1 = κ and Δ 1 = 2 κ \Delta_1=2\kappa Δ 1 = 2 κ (the functions in G \mathcal{G} G take values in [ 0 , 2 κ ] [0,2\kappa] [ 0 , 2 κ ] ), bounds the means of sup g ( P n − P ) g \sup_g(P_n-P)g sup g ( P n − P ) g and sup g ( P − P n ) g \sup_g(P-P_n)g sup g ( P − P n ) g by 4 κ / n 4\kappa/\sqrt{n} 4 κ / n , and at e − x = δ / 2 e^{-x}=\delta/2 e − x = δ /2 each exceeds its mean by more than κ 2 log ( 2 / δ ) / n \kappa\sqrt{2\log(2/\delta)/n} κ 2 log ( 2/ δ ) / n with probability at most δ / 2 \delta/2 δ /2 . □
Proof of Proposition 6.2. The empirical trimming is nearly in both population regions at α ⋆ \alpha^\star α ⋆ , and Ω \Omega Ω says such a point is close to μ R ⋆ \mu_{R^\star} μ R ⋆ . That Ω ( ϵ ) → 0 \Omega(\epsilon)\to0 Ω ( ϵ ) → 0 is Lemma S5.6, and one event serves all levels. Let E E E be the intersection of the events of Corollary S5.7 for the two samples at level δ ′ \delta' δ ′ , of probability at least 1 − 2 δ ′ 1-2\delta' 1 − 2 δ ′ , with r n = r n ( α ⋆ , δ ′ ) r_n=r_n(\alpha^\star,\delta') r n = r n ( α ⋆ , δ ′ ) and r m = r m ( α ⋆ , δ ′ ) r_m=r_m(\alpha^\star,\delta') r m = r m ( α ⋆ , δ ′ ) . Let a ^ = ∑ i w i ϕ ( X i ) ∈ C α ~ ( P n ) \hat a=\sum_i w_i\phi(X_i)\in C_{\tilde\alpha}(P_n) a ^ = ∑ i w i ϕ ( X i ) ∈ C α ~ ( P n ) and b ^ = ∑ j v j ϕ ( Y j ) ∈ C α ~ ( Q m ) \hat b=\sum_j v_j\phi(Y_j)\in C_{\tilde\alpha}(Q_m) b ^ = ∑ j v j ϕ ( Y j ) ∈ C α ~ ( Q m ) , so that ∥ a ^ − b ^ ∥ H = D ~ α ~ \lVert\hat a-\hat b\rVert_H=\widetilde D_{\tilde\alpha} ∥ a ^ − b ^ ∥ H = D α ~ by Proposition 2.5 (i) and MMD ( P n w , R ⋆ ) = ∥ a ^ − μ R ⋆ ∥ H \operatorname{MMD}(P_n^w,R^\star)=\lVert\hat a-\mu_{R^\star}\rVert_H MMD ( P n w , R ⋆ ) = ∥ a ^ − μ R ⋆ ∥ H . We pass from the sample regions to the population ones at α ⋆ \alpha^\star α ⋆ . On E E E , dist ( a ^ , C α ~ ( P ) ) ≤ r n ( α ~ , δ ′ ) ≤ r n \operatorname{dist}(\hat{a}, C_{\widetilde{\alpha}}(P)) \le r_n(\widetilde{\alpha},\delta') \le r_n dist ( a ^ , C α ( P )) ≤ r n ( α , δ ′ ) ≤ r n for every α ~ ≤ α ⋆ \widetilde{\alpha} \le\alpha^\star α ≤ α ⋆ simultaneously, and likewise for b ^ \hat{b} b ^ . The regions increase with the level and are weakly compact, so there are a ∈ C α ⋆ ( P ) a \in C_{\alpha^\star}(P) a ∈ C α ⋆ ( P ) with ∥ a ^ − a ∥ H ≤ r n \|\hat{a}-a\|_{\mathcal{H}} \le r_n ∥ a ^ − a ∥ H ≤ r n and b ∈ C α ⋆ ( Q ) b \in C_{\alpha^\star}(Q) b ∈ C α ⋆ ( Q ) with ∥ b ^ − b ∥ H ≤ r m \|\hat{b}-b\|_{\mathcal{H}} \le r_m ∥ b ^ − b ∥ H ≤ r m . Then dist ( a , C α ⋆ ( Q ) ) ≤ ∥ a − b ∥ H ≤ r n + D ~ α + r m \operatorname{dist}(a,C_{\alpha^\star}(Q)) \le\|a-b\|_{\mathcal{H}} \le r_n+\widetilde{D}_{\alpha}+r_m dist ( a , C α ⋆ ( Q )) ≤ ∥ a − b ∥ H ≤ r n + D α + r m , by the triangle inequality through a ^ \hat{a} a ^ and b ^ \hat{b} b ^ , and by the definition of Ω \Omega Ω , ∥ a − μ R ⋆ ∥ H ≤ Ω ( D ~ α + r n + r m ) \|a-\mu_{R^\star}\|_{\mathcal{H}} \le\Omega(\widetilde{D}_{\alpha}+r_n+r_m) ∥ a − μ R ⋆ ∥ H ≤ Ω ( D α + r n + r m ) , and the triangle inequality gives the bound. The second sample is the same argument with P P P and Q Q Q exchanged.
Proof of Corollary 6.3. Consistency of α ^ \hat{\alpha} α ^ makes the trimmed distance at α ^ \hat{\alpha} α ^ small, as the path falls to zero at most linearly, and Proposition 6.2 turns a small trimmed distance into closeness to R ⋆ R^\star R ⋆ . Fix ϵ > 0 \epsilon> 0 ϵ > 0 and δ ′ ∈ ( 0 , 1 ) \delta' \in(0,1) δ ′ ∈ ( 0 , 1 ) , and let E E E be the event of the proof of Proposition 6.2 at level δ ′ / 3 \delta'/3 δ ′ /3 , of probability at least 1 − 2 δ ′ / 3 1-2\delta'/3 1 − 2 δ ′ /3 , with its radii r n , r m r_n,r_m r n , r m . On E E E , for every level α ≤ α ⋆ \alpha\le\alpha^\star α ≤ α ⋆ the empirical regions are within r n r_n r n and r m r_m r m of the population ones in Hausdorff distance, by Corollary S5.7 and the monotonicity of r n ( α , δ ′ ) r_n(\alpha,\delta') r n ( α , δ ′ ) in α \alpha α , and the distance between two sets moves by at most the sum of these, so D ~ α ≤ D α + r n + r m \widetilde{D}_{\alpha} \le D_{\alpha}+r_n+r_m D α ≤ D α + r n + r m . On E ∩ { α ^ ≤ α ⋆ } E \cap\{\hat{\alpha}\le\alpha^\star\} E ∩ { α ^ ≤ α ⋆ } , Lemma S4.2(ii) at α ⋆ − α ^ ∈ [ 0 , α ⋆ ] \alpha^\star-\hat{\alpha}\in[0,\alpha^\star] α ⋆ − α ^ ∈ [ 0 , α ⋆ ] then gives
D ~ α ^ ≤ D 0 ( P , Q ) α ⋆ ( 1 − α ⋆ ) ( α ⋆ − α ^ ) + r n + r m . \widetilde{D}_{\hat{\alpha}} \le\frac{D_0(P,Q)}{\alpha^\star(1-\alpha^\star)}(\alpha^\star-\hat{\alpha})+r_n+r_m. D α ^ ≤ α ⋆ ( 1 − α ⋆ ) D 0 ( P , Q ) ( α ⋆ − α ^ ) + r n + r m .
and Proposition 6.2 at α ~ = α ^ \widetilde{\alpha}=\hat{\alpha} α = α ^ , a level at most α ⋆ \alpha^\star α ⋆ , gives MMD ( P w , R ⋆ ) ≤ r n + Ω ( D ~ α ^ + r n + r m ) \operatorname{MMD}(P^w,R^\star)\le r_n+\Omega(\widetilde{D}_{\hat{\alpha}}+r_n+r_m) MMD ( P w , R ⋆ ) ≤ r n + Ω ( D α ^ + r n + r m ) for every ( w , v ) ∈ T α ^ (w,v)\in T_{\hat{\alpha}} ( w , v ) ∈ T α ^ , and the same bound for MMD ( Q m v , R ⋆ ) \operatorname{MMD}(Q^v_m,R^\star) MMD ( Q m v , R ⋆ ) . Since Ω ( t ) → 0 \Omega(t)\to0 Ω ( t ) → 0 as t ↓ 0 t\downarrow0 t ↓ 0 and Ω \Omega Ω is nondecreasing, there is ϵ 1 > 0 \epsilon_1>0 ϵ 1 > 0 with ϵ 1 + Ω ( 3 ϵ 1 ) ≤ ϵ \epsilon_1+\Omega(3\epsilon_1)\le\epsilon ϵ 1 + Ω ( 3 ϵ 1 ) ≤ ϵ . By (A3), D 0 ( P , Q ) = MMD ( P , Q ) > 0 D_0(P,Q)=\operatorname{MMD}(P,Q)>0 D 0 ( P , Q ) = MMD ( P , Q ) > 0 as α ⋆ > 0 \alpha^\star>0 α ⋆ > 0 . For n , m n,m n , m large enough, r n + r m ≤ ϵ 1 r_n+r_m\le\epsilon_1 r n + r m ≤ ϵ 1 , and by Proposition 4.4 the event A = { ∣ α ^ − α ⋆ ∣ ≤ ϵ 1 α ⋆ ( 1 − α ⋆ ) / D 0 ( P , Q ) } A=\{|\hat{\alpha}-\alpha^\star|\le\epsilon_1\alpha^\star(1-\alpha^\star)/D_0(P,Q)\} A = { ∣ α ^ − α ⋆ ∣ ≤ ϵ 1 α ⋆ ( 1 − α ⋆ ) / D 0 ( P , Q )} has probability at least 1 − δ ′ / 3 1-\delta'/3 1 − δ ′ /3 . On E ∩ A ∩ { α ^ ≤ α ⋆ } E\cap A\cap\{\hat{\alpha}\le\alpha^\star\} E ∩ A ∩ { α ^ ≤ α ⋆ } both distances are at most r n + Ω ( ϵ 1 + 2 ( r n + r m ) ) ≤ ϵ 1 + Ω ( 3 ϵ 1 ) ≤ ϵ r_n+\Omega(\epsilon_1+2(r_n+r_m))\le\epsilon_1+\Omega(3\epsilon_1)\le\epsilon r n + Ω ( ϵ 1 + 2 ( r n + r m )) ≤ ϵ 1 + Ω ( 3 ϵ 1 ) ≤ ϵ , and by Corollary 4.3 and a union bound this event has probability at least 1 − δ − δ ′ 1-\delta-\delta' 1 − δ − δ ′ .
Experimental details
This section gives the details of § 3 , § 5 and § 7 , with δ = 0.05 \delta=0.05 δ = 0.05 throughout.
Synthetic designs
Table 1 and Figure 3 of the main text use the designs of Table S1 . Each follows (3) with a mixture weight a a a in place of α \alpha α , so that d T V ( P , Q ) = a d T V ( P 0 , Q 0 ) d_{\mathrm{TV}}(P,Q)=a d_{\mathrm{TV}}(P_0,Q_0) d TV ( P , Q ) = a d TV ( P 0 , Q 0 ) whatever the common component R R R ; in the overlap and shift designs R = N ( 0 , I ) R=\mathcal{N}(0,I) R = N ( 0 , I ) and a = 1 4 a=\frac{1}{4} a = 4 1 , and mutually singular P 0 P_0 P 0 and Q 0 Q_0 Q 0 give α ⋆ = a \alpha^\star=a α ⋆ = a . The module explore/harder_sims/designs.py of the repository of Section S6.6 defines every design, its core, weight and contaminations, and explore/harder_sims/DESIGN.md derives each α ⋆ \alpha^\star α ⋆ .
All methods see the same 200 replicates per design and size. The permutation test and MMDAGG, which uses 10 Gaussian bandwidths, were run up to n = m = 800 n=m=800 n = m = 800 , and to 1,600 on the narrow bump. The tests of H 0 , 0 H_{0,0} H 0 , 0 that certify a level were continued: every design and method below power 0.8 at n = m = 800 n=m=800 n = m = 800 (n = 400 n=400 n = 400 for mixed types) was run at n = m = 1600 n=m=1600 n = m = 1600 , 3200, 6400 and 12,800 (from n = 800 n=800 n = 800 , with m = 5 n m=5n m = 5 n , for mixed types), with 200 new replicates per size, until its power was at least 0.8 at two consecutive sizes, in 67 design and size cells, and the four nulls with P = Q P=Q P = Q below in 15 cells (3,000 replicates). The methods of § 9.6.3 see the replicates of the main size, with the same data, folds and bandwidths. Gradient boosting’s drop on the correlation flip at n = 12 , 800 n=12,800 n = 12 , 800 is scikit-learn’s default early stopping above 10,000 training points; without it its power is 1.00 instead of 0.72 (60 replicates).
The analytic test and the permutation test take their Gaussian bandwidth from one pilot draw per design, 1000 + 1000 points (400 + 2000 for mixed types), as the median pairwise distance of the pooled pilot. Every analytic number of the main text and of this section uses τ = min { τ P , τ S } \tau=\min\{\tau^{P},\tau^{S}\} τ = min { τ P , τ S } , which equals τ P \tau^{P} τ P at every size and level of these runs, so the analytic test is that of Theorem 3.1 ; § 9.6.2 says where another threshold is used. The Laplace ramp cuts its witness at genuine empirical quantiles (Algorithm S1), and the Gaussian ramp, the untrimmed witness and the check of Section S6.4 between order statistics, within one rank of genuine quantiles (S3.4). The classifiers, histogram gradient boosting with default settings and logistic regression with unit L 2 L^2 L 2 penalty, label a point as from P P P when its fitted probability exceeds n t r / ( n t r + m t r ) n_{\mathrm{tr}}/(n_{\mathrm{tr}}+m_{\mathrm{tr}}) n tr / ( n tr + m tr ) , with n t r n_{\mathrm{tr}} n tr and m t r m_{\mathrm{tr}} m tr the numbers of X X X ’s and Y Y Y ’s they are trained on. The simulations test the levels j α ⋆ / 8 j\alpha^\star/8 j α ⋆ /8 , j = 0 , … , 10 j=0,\ldots,10 j = 0 , … , 10 , which use the known α ⋆ \alpha^\star α ⋆ and serve only to measure recovery; the real data use the grid 0 , 0.05 , … , 0.95 0,0.05,\ldots,0.95 0 , 0.05 , … , 0.95 .
The null boundary of § 3 is that of a standard Gaussian core in d = 2 d=2 d = 2 with contaminations uniform on two disjoint boxes and α ⋆ = 0.2 \alpha^\star=0.2 α ⋆ = 0.2 . With 400 replicates per level at n = m = 300 n=m=300 n = m = 300 , no replicate rejected H 0 , α H_{0,\alpha} H 0 , α at α ≥ α ⋆ \alpha\geq\alpha^\star α ≥ α ⋆ (one-sided 95% Clopper–Pearson upper limit 0.007), and at α = α ⋆ \alpha=\alpha^\star α = α ⋆ the threshold τ P \tau^P τ P is 6.5 times the empirical 1 − δ 1-\delta 1 − δ quantile of D ^ α \widehat{D}_\alpha D α .
In the designs, the Laplace ramp rejected the true null H 0 , α H_{0,\alpha} H 0 , α in at most a fraction 8 / 200 8/200 8/200 of the replicates of a design (binomial p = 0.787 p=0.787 p = 0.787 ), its rate under P = Q P=Q P = Q lies between 0.5 and 5.5% in every cell, and its bound exceeded α ⋆ \alpha^\star α ⋆ in at most a fraction 0.010 of the replicates of any design. The analytic test rejected in none of its 77 boundary cells and never under P = Q P=Q P = Q . The other methods were checked in the same way. At the boundary, in the 73 cells of the eighteen designs other than the RHC-shaped one, the Gaussian ramp rejected at most 5 times in a cell, gradient boosting 4 and logistic regression 13. On the RHC-shaped design the three rejected 7, 9 and 7 times. All these counts are below the 19 rejections at which a binomial test against δ \delta δ at level 0.01 flags a cell. Four nulls with P = Q P=Q P = Q , on which every bet has mean exactly α = 0 \alpha=0 α = 0 , use the law P P P of the dense-shift (d = 100 d=100 d = 100 ), mixed-type, t 3 t_3 t 3 and narrow-bump designs; up to n = 800 n=800 n = 800 the Gaussian ramp rejected in 2.8% of the replicates, gradient boosting in 2.5% and logistic regression in 3.0%, and up to n = 12,800 n=12{,}800 n = 12 , 800 at most 12, 9 and 12 times in a cell of 200. The lower bound of every method exceeded d T V ( P , Q ) d_{\mathrm{TV}}(P,Q) d TV ( P , Q ) in at most a fraction 0.035 of the replicates of a cell on the eighteen designs, 0.015 on the RHC-shaped one and 0.065 on the nulls.
The kernel and the cut-point rule
The Gaussian kernel and the Laplace kernel e − ∥ x − y ∥ / σ e^{-\lVert x-y\rVert/\sigma} e − ∥ x − y ∥ / σ are compared at the same bandwidth rule. The Gaussian ramp cuts its witness between order statistics, and the Laplace ramp at genuine quantiles; on the same Laplace fits the two cut rules give the same recovery in 17 designs, slightly less with genuine quantiles in 2, and the same real-data bounds, so the comparison is one of kernels. On all 200 replicates of each design at the main size, at two paired standard errors, the Laplace ramp recovers more than the Gaussian ramp in 4 designs, the t 3 t_3 t 3 tails and 3 oscillating densities, as much in 9, and less in 6, the RHC-shaped design, overlap designs, a dense shift and the narrow bump, by at most 0.025. Its median recovery is 0.38 against 0.31, and 0.35 against 0.34 without the oscillating density with ν = 4 \nu= 4 ν = 4 , on which it is 0.69 against 0.02. On the first 50 replicates of each design, the analytic estimator certifies less with the Laplace kernel than with the Gaussian kernel on 3 designs and more on 0; this comparison uses a threshold that is valid and nowhere larger than τ P \tau^{P} τ P , the minimum of τ P \tau^{P} τ P , τ S \tau^{S} τ S and τ P \tau^{P} τ P with the tails of its sums inverted numerically, with and without coupled kernel constants.
On the real data, every bound of Table 2 uses the Laplace kernel. With the Gaussian kernel the minima over the eight splits are 0.75, 0.35 and 0.00 on the child, adult age and body-mass contrasts, the same as with the Laplace kernel on the two age contrasts and lower on body mass. On RHC they are 0.30 on all 45 covariates, a run that cuts the Gaussian witness at genuine quantiles, as for the Laplace kernel, against 0.35 with the Laplace kernel, and 0.30 on the 33 covariates stored as numbers, where the Laplace kernel also gives 0.30. Reporting the larger of the bounds of the two kernels would be valid only at level 2 δ 2\delta 2 δ , by the union bound.
With the own term removed, the cut points can cross at a level where the fitted witness still separates the samples, and the batch is then skipped. Two other rules compare with this one as follows: plain empirical quantile cuts whenever the own-term cuts cross, the fallback, and plain cuts always. On the first 50 replicates of each design, at two paired standard errors, the fallback wins on 1 design, ties on 18 and loses on 0 against the own-term rule, and plain cuts always win on 0, tie on 7 and lose on 12. On the real data, with RHC on its 33 covariates stored as numbers, the fallback with the Gaussian kernel bets where every split stops with no bet under the own-term rule, but moves no minimum (largest wealth e 0.95 e^{0.95} e 0.95 on RHC against 1 / δ = e 3.00 1/\delta= e^{3.00} 1/ δ = e 3.00 ), and with the Laplace kernel it lowers the medians on RHC and the adult age contrast, from 0.35 to 0.32 and from 0.40 to 0.35: where the own rule cuts cross in one batch only, the own rule bets on the other batch alone, while the fallback also bets on the crossed batch and loses wealth there. No rule and no kernel was flagged at α = α ∗ \alpha= \alpha^* α = α ∗ (exact binomial p ≥ 0.01 p \ge0.01 p ≥ 0.01 ).
Recovery and further baselines
Figure S1 follows the recovery of Figure 3 against n n n , with 75 replicates per size below n = 800 n = 800 n = 800 . Its oracle reference runs the same test, with the same batches, fractions and grid, on a fixed function known only to an oracle, and reports the better of two choices: ψ = 1 { p > q } \psi= 1\{p > q\} ψ = 1 { p > q } , whose drift E P ψ − E Q ψ = α ∗ \mathbb{E}_{P}\psi- \mathbb{E}_{Q}\psi= \alpha^* E P ψ − E Q ψ = α ∗ is the largest of any [ 0 , 1 ] [0,1] [ 0 , 1 ] -valued function, and, at each level, the level set { p / q > t } \{p/q > t\} { p / q > t } whose drift has the largest ratio to its standard deviation, the quantity this betting rule rewards to first order (t t t from 1,000,000 draws of each law). Both tests are valid, but neither is a proven ceiling: the rule is not log-optimal and ψ \psi ψ pays for its noise, so on the small contamination at n = 800 n = 800 n = 800 , where ψ \psi ψ halves the common component, betting on it recovers 0.13, the ramp 0.21 and the best level set 0.34. At n = 800 n = 800 n = 800 the ramp reaches 0.8 of the reference in 4 designs (RHC-shaped d = 33 d = 33 d = 33 ; overlap d = 2 d = 2 d = 2 (α ∗ = 0.2 \alpha^* = 0.2 α ∗ = 0.2 ); oscillating ν = 1 \nu= 1 ν = 1 ; oscillating ν = 4 \nu= 4 ν = 4 ), and the tenth percentile of
Recovery and further baselines
α ^ / α ⋆ \hat{\alpha}/\alpha^\star α ^ / α ⋆ , median over the designs, is 0.25, against 0.50 for the reference. The grid still uses the known α ⋆ \alpha^\star α ⋆ .
Gradient boosting and logistic regression refitted on the batches of the ramp, which removes the handicap of Table 1 , default or tuned by threefold cross-validation, bet their labels or their probabilities corrected for the sample sizes; the best of them has more power against H 0 , 0 H_{0,0} H 0 , 0 than the Gaussian ramp in 5 designs and less in 3, and than the Laplace ramp in 4 and 3, all at n = m = 800 n=m=800 n = m = 800 . With default settings the better of the two classifiers recovers more than the Laplace ramp in 10 designs and less in 9. Tuned logistic labels recover more than the Laplace ramp in 9 designs and less in 6 at two paired standard errors, and tuned gradient boosting labels recover more than it, at two decimals, in 7 designs (sparse shift, d = 50 d=50 d = 50 ; mixed types, m = 5 n m=5n m = 5 n ; t 3 t_3 t 3 tails, d = 5 d=5 d = 5 ; curves, narrow bump; oscillating, ν = 1 \nu=1 ν = 1 (α ⋆ = 0.5 \alpha^\star=0.5 α ⋆ = 0.5 ); oscillating, ν = 4 \nu=4 ν = 4 (α ⋆ = 0.5 \alpha^\star=0.5 α ⋆ = 0.5 ); oscillating, ν = 16 \nu=16 ν = 16 (α ⋆ = 0.5 \alpha^\star=0.5 α ⋆ = 0.5 )). Probabilities lose to labels (median recovery 0.15 against 0.35 for logistic regression), as calibrated probabilities shrink toward 1 / 2 1/2 1/2 on the common part. The normal of a ν \nu ν -support vector machine on the Gram matrices of the ramp (ν \nu ν by cross-validation, median 0.80), bet as a ramp with the cut points of the tested level, certifies less than the ramp except on 2 designs. The untrimmed witness of § 7.1 is the Gaussian witness fitted at α = 0 \alpha=0 α = 0 on the fitting batches and used at every level, which needs no quadratic program; § 7.1 gives its recoveries, and cut at the tested level it is equal to the Laplace ramp at two decimals in the remaining 3 designs. A fixed-sample empirical Bernstein bound on the ramp fitted on one half certified less than betting on the other half in 16 of the 19 designs and more in none. On the line, the Kolmogorov–Smirnov statistic minus the two Dvoretzky–Kiefer–Wolfowitz radii, a lower bound on d T V ( P , Q ) d_{\mathrm{TV}}(P,Q) d TV ( P , Q ) , exceeded the better of the analytic estimator and the Gaussian ramp in 0 of 24 cells of the oscillating designs and of a shift and a change of scale of a t 3 t_3 t 3 law. Of further certificates, the trimmed-mean statistic of the witness with a Dvoretzky–Kiefer–Wolfowitz bound certified nothing except on the oscillating density with ν = 1 \nu=1 ν = 1 , and nearest neighbors bet like the ramp certified less than it except on the oscillating densities; the trimmed-Wasserstein test of Álvarez-Esteban et al. [4 ] , asymptotic and pointwise, is not compared. MMDAgg (Schrab et al., [83 ] ) uses 10 Gaussian bandwidths. None of these tests was flagged, at the boundary in any of the 19 designs or under P = Q P=Q P = Q on the four nulls; the largest rates were 0.07 (13 of 200, logistic labels, RHC-shaped design) at the boundary and 0.08 (binomial p = 0.044 p=0.044 p = 0.044 , MMDAgg, mixed-type null) under P = Q P=Q P = Q .
Numerical checks on the line
For the shift N ( ± 1 , 1 ) N(\pm1,1) N ( ± 1 , 1 ) and the mixtures 0.8 N ( 0 , 1 ) + 0.2 N ( ± μ , 1 ) 0.8N(0,1)+0.2N(\pm\mu,1) 0.8 N ( 0 , 1 ) + 0.2 N ( ± μ , 1 ) , μ ∈ { 1.5 , 2 , 3 } \mu\in\{1.5,2,3\} μ ∈ { 1.5 , 2 , 3 } , which cross at x 0 = 0 x_0=0 x 0 = 0 , the rescaled path D ˉ α ⋆ − ϵ \bar{D}_{\alpha^\star-\epsilon} D ˉ α ⋆ − ϵ of § 5 , bracketed to certified accuracy between the separation (S3.1) in a computed direction and the norm of an explicit pair of trimmings, with the kernels e − ∣ x − y ∣ e^{-|x-y|} e − ∣ x − y ∣ and e − ( x − y ) 2 / 2 e^{-(x-y)^2/2} e − ( x − y ) 2 /2 , lay at all 134 levels above the lower bound of Proposition S4.7 and below the explicit trimming of Proposition S4.14. With the Laplace kernel its local log-log slope for the shift reaches 1.24 at ϵ = 1 × 10 − 5 \epsilon=1\times10^{-5} ϵ = 1 × 1 0 − 5 , approaching 5 / 4 5/4 5/4 ; with the Gaussian kernel and μ = 3 \mu=3 μ = 3 it falls from 1.0 × 10 − 1 1.0\times10^{-1} 1.0 × 1 0 − 1 to 1.05 × 10 − 8 1.05\times10^{-8} 1.05 × 1 0 − 8 between ϵ = 1.1 × 10 − 1 \epsilon=1.1\times10^{-1} ϵ = 1.1 × 1 0 − 1 and 2.9 × 10 − 4 2.9\times10^{-4} 2.9 × 1 0 − 4 , and a fit of log D ˉ = A + B log ϵ − c ′ / ϵ \log\bar{D}=A+B\log\epsilon-c'/\epsilon log D ˉ = A + B log ϵ − c ′ / ϵ gives c ′ / ℓ 0 c'/\ell_0 c ′ / ℓ 0 between 0.68 and 0.87 over μ \mu μ , with ℓ 0 = 0.4 μ ϕ ( μ ) \ell_0=0.4\mu\phi(\mu) ℓ 0 = 0.4 μ ϕ ( μ ) , below the constant π 2 / 8 ≈ 1.23 \pi^2/8\approx1.23 π 2 /8 ≈ 1.23 of Theorem S4.13.
The split-sample bound was computed on the shift and the mixture with μ = 1.5 \mu=1.5 μ = 1.5 , which satisfy (17) , with both kernels, n = m n=m n = m , the batches of § 4.2 , own-term cut points interpolated between order statistics, which Theorem 5.11 , stated for genuine quantiles, does not cover, levels approaching the known α ⋆ \alpha^\star α ⋆ geometrically (from 0.4 and 0.12 below it to 0.002 and 0.0006) and 30 to 41 replicates per cell. With the Laplace kernel the mean error of α ^ \hat{\alpha} α ^ falls like n − 0.51 n^{-0.51} n − 0.51 and n − 0.47 n^{-0.47} n − 0.47 up to n = 51200 n=51200 n = 51200 (least-squares slopes on log n \log n log n ), as fast as that of the Kolmogorov–Smirnov lower bound, n − 0.50 n^{-0.50} n − 0.50 and n − 0.46 n^{-0.46} n − 0.46 , and is smaller by factors 1.7 and 1.3 at n = 51200 n=51200 n = 51200 . The analytic estimator with the Laplace kernel and the threshold min { τ P , τ S } \min\{\tau^P,\tau^S\} min { τ P , τ S } falls like n − 0.45 n^{-0.45} n − 0.45 and n − 0.36 n^{-0.36} n − 0.36 ; we prove no rate for it, and with τ S \tau^S τ S alone its error is at least of order n − 2 / 5 n^{-2/5} n − 2/5 (Proposition S4.16). With the Gaussian kernel the split-sample bound falls like n − 0.35 n^{-0.35} n − 0.35 and n − 0.38 n^{-0.38} n − 0.38 up to n = 12800 n=12800 n = 12800 , against n − 0.57 n^{-0.57} n − 0.57 and n − 0.46 n^{-0.46} n − 0.46 for the Laplace kernel over the same range.
Real data, bandwidths and the cohort
For RHC (Connors et al., [19 ] ), the first contrast of Table 2 , we use 45 baseline covariates, named as in rhc.csv. The 33 stored as numbers are the measurements age, edu, surv2md1, das2d3pc, aps1, scoma1, meanbp1, wblc1, hrt1, resp1, temp1, pafi1, alb1, hema1, bili1, crea1, sod1, pot1, paco21, ph1 and wtkilo1 and the history indicators cardiohx, chfhx, dementhx, psychhx, chrpulhx, renalhx, liverhx, gibledhx, malighx, immunhx, transhx and amihx; the 12 binary ones stored as text and coded 0/1 are sex (female 1), the do-not-resuscitate status dnr1 and the admission-diagnosis indicators resp, card, neuro, gastr, renal, meta, hema, seps, trauma and ortho (yes 1), all standardized by the moments of the data each test fits on (batch 0 of each split, the pilot for the analytic test, the pooled sample for the cohort of § 7.3 , which bets on nothing). We exclude the treatment, the dated or outcome-derived variables (death, dth30, t3d30 and the dates), adld3p and urin1, missing for more than half of the patients, and the categorical variables cat1, cat2, ca, ninsclas, race and income, whose one-hot indicators would drive the median bandwidth. The weight wtkilo1 keeps the code 0 that the data use for a missing weight; the zeros are a group of patients that the trimming may keep or discard like any other. The lower bounds hold for any longer vector, since total variation can only grow with it, but the balance of § 7.3 concerns the covariates used. Of these 12 covariates 8 have an unweighted standardized difference above 0.1, up to 0.353, and two are rare (7 and 52 patients coded 1). On the 33 covariates the averaged e-value certifies 0.35, the analytic baseline again no positive level, and the Laplace cohort at α = 0.30 \alpha= 0.30 α = 0.30 had largest standardized difference 0.065 on them but 0.205 on the others, and mortality differences 0.028 for the trimming and 0.022 to 0.035 for the other weightings of Table S2 .
The propensity estimate of § 7.3 uses a ridge logistic fit, refitted on each bootstrap resample; fivefold cross-fitting gives 0.43, and on the 33 covariates it is 0.38. Seeing the arms only through the fitted score, a misspecified model tends to understate α ⋆ \alpha^{\star} α ⋆ , while fitting in sample overstates it. The classifiers of § 7.2 are those of § 9.6.3 ; their labels certify 0.35 (logistic) and 0.35 (boosting) with default settings and 0.30 and 0.35 tuned, and on the 33 covariates 0.30, 0.30, 0.30 and 0.35. Their probabilities, corrected for the sample sizes as in § 9.6.3 , certify 0.20 and 0.25 with default settings and 0.15 and 0.20 tuned, and on the 33 covariates 0.15, 0.25, 0.15 and 0.15.
For NHANES [46 ] (National Center for Health Statistics 2020) we pool the cycles 2011–2012 and 2013–2014, reconstruct the clock time of each hourly record, drop invalid and quality-flagged hours, and require at least 20 hours of wear on at least four days; the profiles are used without standardization and without survey weights. The public files carry no household identifier. With whole masked variance units (SDMVPSU within SDMVSTRA, 61 units) assigned at random to the batches, which makes the fitting batches independent of the batches bet on if the units are, the minima are 0.80, 0.35 and 0.05 for the child, adult age and body-mass contrasts, against 0.75, 0.35 and 0.05 with participants assigned to batches.
In Table 2 the pilot of each group is a 30% random subsample (seed fixed in advance), the scales are 0.1, 0.15, 0.2, 0.3, 0.5, 0.7 and 1 times the pilot median, the scale whose analytic bound on the pilot is largest is chosen, ties going to the scale closest to 0.5, and the chosen scales, under the threshold τ P \tau^{\mathrm{P}} τ P , are 0.5 for RHC, 0.7 for the child contrast, 0.5 for the adult age contrast and 0.5 for body mass. In the analytic columns of Table 2 nothing the test uses depends on the held-out 70%, so the theorems cover it.
For the cohort of § 7.3 , with the Gaussian kernel at the pooled median distance 8.96, the program at α = 0.35 \alpha= 0.35 α = 0.35 is solved by accelerated projected gradient followed by 9,023 steps of sequential minimal optimization, to a duality gap of 1.9 × 10 − 16 1.9 \times10^{-16} 1.9 × 1 0 − 16 ; the smallest eigenvalue of the Gram matrix is 2.0 × 10 − 5 2.0 \times10^{-5} 2.0 × 1 0 − 5 , so the minimizer is unique, and the gap bounds the distance of the computed weights to it by 3.0 × 10 − 6 3.0 \times10^{-6} 3.0 × 1 0 − 6 and the error of the witness by 1.4 × 10 − 8 1.4 \times10^{-8} 1.4 × 1 0 − 8 , which places every patient on the same side of the cut as at the exact minimizer. The 154 and 100 fractionally weighted patients carry fractions 0.054 and 0.021 of the trimmed samples, and their witness values agree to within 1.8 × 10 − 11 1.8 \times10^{-11} 1.8 × 1 0 − 11 . The summaries of Table S2 for the trimming row are those of this minimizer. Standardized by batch of one split instead, the minimizer retains 1,503 and 2,361 patients, and over the eight splits of Table 2 between 1,496 and 1,503 catheterized and between 2,357 and 2,363 other patients, with the largest standardized difference between 0.030 and 0.053. Table S2 compares the trimmed cohort with five weightings that differ in target as much as in method: matching and overlap weights target overlap populations like the common core, energy and kernel balancing the pooled one.
Computation, code and data
Throughout § 7 we solve (10) as in Algorithm S1 and evaluate (14) on its grid, with the threshold of Section S6. The iterates are feasible, so their value bounds D ^ α 2 \widehat{D}_{\alpha}^{2} D α 2 from above, and the Frank–Wolfe gap bounds it from below; a level is rejected only when the lower bound exceeds τ ( α ) 2 \tau(\alpha)^2 τ ( α ) 2 . Every level rejected in § 7.2 is at a converged solve, and an unconverged solve changes only the direction of the split-sample estimator, not its level. Where the data do not determine the minimizer, we return the minimizer z ˉ \bar{z} z ˉ of the strictly convex G ( w , v ) = ∥ w − 1 n 1 ∥ 2 2 + ∥ v − 1 m 1 ∥ 2 2 G(w,v)=\lVert w-\frac{1}{n}\mathbf{1}\rVert_2^2+\lVert v-\frac{1}{m}\mathbf{1}\rVert_2^2 G ( w , v ) = ∥ w − n 1 1 ∥ 2 2 + ∥ v − m 1 1 ∥ 2 2 over T α T_\alpha T α , the limit as λ ↓ 0 \lambda\downarrow0 λ ↓ 0 of the minimizers of F + λ G F+\lambda G F + λ G , with F F F the objective of (10) (every cluster point lies in T α T_\alpha T α and has G ≤ G ( z ˉ ) G\leq G(\bar{z}) G ≤ G ( z ˉ ) ). On one core, a replicate of the synthetic study at n = 800 n=800 n = 800 took 0.33 seconds for the analytic test and 5.9 for the betting test, and one of all the tests of H 0 , 0 H_{0,0} H 0 , 0 at n = m = 12,800 n=m=12{,}800 n = m = 12 , 800 about 13, 11 of them for kernel sums computed in blocks.
The RHC data are https://hbiostat.org/data/repo/rhc.csv ; the NHANES data are the files PAXHR, PAXHD, DEMO and BMX of the cycles G and H (2011–2014) of the National Center for Health Statistics. The repository https://github.com/HristoInouzhe/trimmed-mmd holds the package trimmedmmd and one script for each table and figure, and scripts/fetch_data.py downloads the data. The Laplace ramp and the analytic test of Table 1 and Figure 3 come from scripts/aos_main_synth.py, aos_main_alpha0.py and aos_main_analytic.py, the classifiers on the batches of the ramp, the permutation test and MMDAgg from aos_baselines_run.py, the Gaussian ramp and the classifiers trained once from the study in explore/harder_sims, and the tables and the figure from aos_main_tables.py, aos_baselines_tables.py and aos_main_figs.sh; Table 2 comes from aos_main_realdata.py and exp_valid_bandwidth.py, Table S2 from aos_main_cohort.py, Figure 2 from aos_fig_excess.py, Figure S1 from aos_ref_recovery_run.py and aos_ref_recovery_fig.py, § 9.6.2 from aos_fallback_synth.py, aos_fallback_realdata.py and aos_fallback_tables.py, Section S6.4 from aos_margin_macros.py and aos_excess_table.py, and the boundary calibration of Section S6 from aos_supp_threshold.py. The simulated data are drawn from fixed seeds. The runs also read the per-replicate records of the study in explore/harder_sims/out, which the repository holds: scripts/aos_main_synth.py takes its bandwidths from them, and scripts/aos_main_tables.py the Gaussian ramp and the classifiers trained once. So the repository, not the seeds alone, reproduces the runs.
Acknowledgments
Acknowledgments. The author thanks Eustasio del Barrio and Carlos Mátan for their comments after a talk on this work in Valladolid, which helped sharpen § 1 and § 5 . AI, primarily Claude Opus 5.5 and GPT 5.6 SOL, was used in developing the theory, software and numerical experiments. The author formulated the research questions, assessed the results and directed their practical implementation. The numbered results are formalized in Lean 4; the repository https://github.com/HristoInouzhe/trimmed-mmd-lean maps each to its formal statement. The author takes full responsibility for the paper.
Funding. The author was supported by the Spanish MCyT grants PID2023-148081NB-I00 and PID2024-162240NB-I00.
Supplementary Material
Code and data
The package trimmedmmd and the scripts behind every table and figure, at https://github.com/HristoInouzhe/trimmed-mmd .