Size Control for Conditional Stochastic Dominance
Suppose we want to test whether one outcome distribution stochastically dominates another at a specified covariate value. Under the conditions below, the outcomes whose covariates are closest to that value converge jointly to independent draws from the two target conditional distributions. The number of selected observations stays fixed, giving a finite-sample limit experiment. Bugni, Canay, and Kim (2025) construct a one-sided Kolmogorov–Smirnov test from these observations and use a critical value computed from independent uniforms. We need to show that this critical value keeps the limiting rejection probability at or below the nominal level for every distribution satisfying the dominance null, including when the outcome distributions differ or have atoms.
The proof has two parts. In the limit experiment, a quantile representation bounds the null statistic by the statistic computed from uniforms. We then couple the selected observations with the limit vector and show that all pairwise inequalities and ties agree with probability approaching one. A small perturbation of tied outcomes can change a rank statistic by a fixed amount, so weak convergence alone is insufficient. Even with continuous outcomes, the reference statistic is discrete when the selected sample sizes are fixed. The rejection probability may therefore be below the nominal level.
1. The test and its finite-sample limit experiment
Observe two independent samples,
with i.i.d. observations within each sample. The outcomes and covariates are real-valued, and the covariate distributions may differ between samples. Write
Fix a target covariate value \(z_0\). We abbreviate \(F_Y(t\mid z_0),F_X(t\mid z_0)\) as \(F_Y(t),F_X(t)\). The null hypothesis is
With larger outcomes preferred, this says that \(Y\) stochastically dominates \(X\) at \(z_0\). A positive difference \(F_Y(t)-F_X(t)\) at any threshold contradicts the null.
Select the \(q_y\) outcomes from the \(Y\)-sample and the \(q_x\) outcomes from the \(X\)-sample whose covariates are closest to \(z_0\). The positive integers \(q_y\) and \(q_x\) stay fixed as both original sample sizes grow. Resolve equal covariate distances by the original observation order, as in the companion post. Let
The brackets order observations by the distance of their covariates from \(z_0\), not by the outcomes themselves.
Form the empirical cdfs
and use the one-sided KS statistic
Large values indicate a violation of dominance.
Under the support and continuity assumptions stated below, the nearest-observation construction gives
where all coordinates of \(S\) are independent, the first \(q_y\) have cdf \(F_Y\), and the remaining \(q_x\) have cdf \(F_X\). As the original sample sizes grow, the selected covariates get closer to the target. The limiting comparison still uses only \(q\) outcomes.
The empirical cdfs are therefore still random in the limit. They generally do not converge in probability to \(F_Y\) and \(F_X\) when \(q_y\) and \(q_x\) are fixed. The critical value must be based on the statistic's distribution with this fixed number of observations.
Fix a nominal level \(\alpha\in(0,1)\). Let \(U_1,\ldots,U_q\) be independent \(U(0,1)\) variables. Split them into groups of sizes \(q_y\) and \(q_x\), and compute the same statistic \(T(U)\). Using the companion post's notation, define
The test rejects when
The critical value depends only on \(q_y,q_x\) and \(\alpha\), not on the observed outcomes.
Theorem 1. Suppose every neighborhood of \(z_0\) has positive covariate probability in each sample. Suppose also that, for \(a\in\{Y,X\}\),
within the corresponding covariate support, and that each target conditional cdf has only finitely many discontinuities. Then, for every fixed data-generating distribution satisfying \(H_0\),
where
The bound \(\bar\alpha\) is attained in the limit experiment whenever \(F_Y=F_X\) is continuous.
This statement combines Theorems 2 and 4 of the paper's November 19, 2025 version. The convergence of rejection probabilities, stronger than the stated limsup bound in its Theorem 2, follows from the proof in Appendix A.1.
The assumption requires continuity in the conditioning value \(z\), uniformly over outcome thresholds \(t\). The outcome cdfs may have jumps, provided there are finitely many. This includes continuous distributions, distributions with finite support, and mixed distributions with finitely many atoms.
The asymptotic statement holds for each fixed data-generating distribution. If \(\mathcal P_0\) denotes the null class, this does not imply
To prove this stronger result, we would need a bound on the approximation error that holds uniformly over the null class.
2. Why the uniform statistic bounds the dominance null
First consider the limit experiment \(S\). Its observations have the target conditional distributions. We need to bound the distribution of \(T(S)\) for every pair \(F_Y,F_X\) satisfying the null.
For \(a\in\{Y,X\}\), define the generalized quantile function
Using the independent uniforms introduced above, construct
Each coordinate of this copy of the limit vector \(S\) uses its own independent uniform. We can therefore compare its statistic with that of \(U\) for each realization of the uniforms. The quantile transformation also works for distributions with atoms; it does not require \(F_Y(S_j)\) to be uniform for \(j\leq q_y\).
Write
The identity
gives the empirical cdfs of the coupled sample:
Under the null, for every threshold and every realization of the uniforms,
The inequality follows because \(F_Y(t)\leq F_X(t)\) and \(A\) is nondecreasing. Taking suprema,
Thus, on this probability space,
It follows that
This bound for independent target draws uses only the dominance inequality. It holds for arbitrary outcome cdfs, including cdfs with infinitely many atoms, and does not require exchangeability. We use the continuity and finite-atom assumptions in Theorem 1 to prove that the selected sample's rejection probability converges to that of the limit test.
If \(F_Y=F_X=F\), the first inequality becomes equality. If \(F\) is continuous, its range contains every \(u\in(0,1)\), so taking the supremum over \(F(t)\) gives the same value as taking it over all probability thresholds. Therefore,
Remark. In the coupling argument, continuity of the common outcome cdf suffices for equality of the outcome and uniform statistics. Strict monotonicity of \(F\) is not assumed.
With a common distribution containing atoms, the cdf skips intervals of probability values. The process \(A(u)-B(u)\) may attain its maximum inside one of those intervals, where it cannot be evaluated as \(A(F(t))-B(F(t))\). The supremum over all \(u\) can then exceed the statistic computed from the outcomes, making the test conservative.
Enlarging the set of thresholds over which we take a supremum can only increase its value. For an integrated statistic, we would also have to compare the integration measures and weights. The paper shows that tests using uniform critical values with Cramér–von Mises or Anderson–Darling statistics can overreject with discrete outcomes. A statistic's dependence on ranks alone does not imply the required bound. See Appendix C.2.
3. From the limit experiment to the selected observations
We have bounded the rejection probability for \(T(S)\). The test uses \(T(S_n)\), so we still need to prove convergence of rejection probabilities.
Weak convergence \(S_n\Rightarrow S\) alone is insufficient when the limit vector can contain ties. For example, with one observation in each group,
For every \(n\), the \(Y\)-observation is smaller than the \(X\)-observation, giving \(T(S_n)=1\). At the limit both observations enter their empirical cdfs together, giving \(T(S)=0\). The observations converge in value while the statistic does not.
We use a second coupling to compare strict inequalities and ties in the selected vector and its limit. By the almost-sure representation theorem, there are vectors \(\widetilde S_n,\widetilde S\) on a common probability space such that
The representation preserves the joint law of each vector, including dependence among the selected observations and independence among the limit coordinates. It need not share a probability space with the uniform coupling in Section 2.
For any pair with unequal limit values, convergence eventually preserves their order. Tied limit coordinates require an additional argument: approaching an atom does not guarantee that the approximating observation equals that atom.
For example, let \(V=d\) almost surely and \(V_n=d+1/n\). Then \(V_n\to V\), but \(V_n\neq d\) for every \(n\). In this example,
Here the unit jump moves away from \(d\). Uniform cdf convergence rules out such a shift, however small its distance.
The conditional-cdf assumption implies uniform cdf convergence for each selected observation. Consider a selected \(Y\)-observation and let \(Z^Y_{n,[j]}\) denote its covariate. Conditional on the covariates, its cdf is \(F_Y(\,\cdot\mid Z^Y_{n,[j]})\). Hence
and
The selected covariate converges in probability to \(z_0\). The expression inside the expectation then converges to zero in probability. It is bounded by one, so its expectation tends to zero. The same argument applies to every selected \(X\)-coordinate. Since the coupling leaves the marginal distributions unchanged, these bounds also hold for the corresponding coordinates of \(\widetilde S_n\) and \(\widetilde S\).
These two convergence conditions imply that, when a limit coordinate equals an atom, its approximating coordinate equals the same atom with probability tending to one. To prove this, suppose
For any fixed \(d\) and \(\varepsilon>0\),
On the event \(V=d\), failure to equal \(d\) means either that \(V_n\) is at least \(\varepsilon\) away or that it lies in the punctured neighborhood of \(d\).
We can bound the second probability using the cdfs and their left limits. Write \(F(x-)=\lim_{t\uparrow x}F(t)\). The uniform cdf bound also holds at these left limits, so
For fixed \(\varepsilon\), the convergence assumptions therefore imply
As \(\varepsilon\downarrow0\), the punctured neighborhoods decrease to the empty set. Their probability tends to zero even if \(P(V=d)>0\). Thus
This argument at a fixed atom appears in Lemma 6 of the paper and is applied to the selected coordinates in Lemma 3. Apply it to each coordinate of the coupled vectors. There are finitely many atoms and selected observations, so a union bound shows that, with probability tending to one, every coordinate whose limit is an atom equals that atom.
Two independent limit coordinates can be equal with positive probability only at a common atom. Indeed, for independent limit coordinates \(V,W\),
where the sum is over common atoms. The coordinates may have different distributions. Independence is essential here: dependent continuous variables can coincide with positive probability.
On the event that two limit coordinates are unequal, the indicator of an order mismatch tends to zero almost surely. By bounded convergence, the probability of an order mismatch on this event tends to zero. Together with the preceding result for ties, a union bound over the finitely many pairs gives
On this event, the vectors have the same ordered groups of tied observations and the same group labels within each tie. At a value shared by \(m_y\) observations from the first group and \(m_x\) from the second, the empirical-cdf difference changes by \(m_y/q_y-m_x/q_x\) in a single step. Arbitrarily ordering observations within that tie could insert intermediate values the empirical-cdf difference never takes. The two empirical-cdf differences therefore take the same successive values, so
In particular, for any fixed critical value \(c\),
Rejection probabilities therefore converge even when the limiting statistic equals the critical value with positive probability. Together with the quantile bound, this proves Theorem 1.
4. Permutation critical values and discrete rejection probabilities
We can also compute the uniform reference distribution by counting label orders. The independent uniforms have no ties almost surely, and all
arrangements of the \(Y\)- and \(X\)-labels in increasing outcome order are equally likely.
For any fixed pooled sample without ties, uniformly permuting its labels produces these same arrangements with the same probabilities. Since the statistic depends only on the ordered labels, its permutation distribution equals the distribution of \(T(U)\). The two critical values are equal.
In the limit experiment, continuous \(F_Y,F_X\) imply that the independent coordinates have no ties. The two distributions need not be equal: under dominance, the quantile bound controls the rejection probability, and permuting the labels gives the same critical value.
Continuity of the target cdfs alone does not rule out ties in a finite selected sample. Under the assumptions of Theorem 1, Section 3 shows that the selected sample has no ties with probability tending to one when the limit has none. The permutation and uniform critical values therefore agree with probability tending to one, so the two tests have the same limiting rejection probability.
Ties change this calculation. If \(q_y=q_x=1\) and both outcomes equal \(d\), every permutation has statistic zero. With two independent continuous uniforms, however,
At level \(0.1\), the uniform critical value is one, whereas the tied-sample permutation critical value is zero. Neither test rejects the tied sample, so the different critical values do not show that either test overrejects. The bound above applies to the uniform critical value. The cited version of the paper leaves the validity of permutation tests under general discrete dominance nulls unresolved.
Even without ties, the reference statistic is discrete because only finitely many label orders are possible. For \(q_y=q_x=2\), reading a \(Y\)-label in increasing outcome order raises the empirical-cdf difference by \(1/2\); reading an \(X\)-label lowers it by \(1/2\). The statistic is the largest partial sum, including zero.
| Increasing label order | Partial sums | \(T\) |
|---|---|---|
| \(YYXX\) | \(1/2,1,1/2,0\) | \(1\) |
| \(YXYX\) | \(1/2,0,1/2,0\) | \(1/2\) |
| \(YXXY\) | \(1/2,0,-1/2,0\) | \(1/2\) |
| \(XYYX\) | \(-1/2,0,1/2,0\) | \(1/2\) |
| \(XYXY\) | \(-1/2,0,-1/2,0\) | \(0\) |
| \(XXYY\) | \(-1/2,-1,-1/2,0\) | \(0\) |
Each row has probability \(1/6\), so
At nominal level \(\alpha=0.2\), the critical value is \(1/2\), and the test rejects with probability \(1/6\). At level \(\alpha=0.1\), the critical value is one, and the test cannot reject.
Thus, continuous outcomes do not imply a continuous reference distribution. The rejection probability can be below \(\alpha\) for three reasons. A strict dominance inequality can reduce the statistic relative to the equality case. Atoms can make the inequality between the outcome and uniform statistics strict. Even under a common continuous distribution, we may have \(\bar\alpha<\alpha\) because the reference statistic has discrete support.
The reference probabilities can be computed exactly for any choice of sample sizes. After reading \(i\) \(Y\)-labels and \(j\) \(X\)-labels, the empirical-cdf difference is
For \(c\geq0\), let \(N_c(i,j)\) count label paths reaching \((i,j)\) whose partial differences never exceed \(c\). Set \(N_c(0,0)=1\), assign zero to counts with negative indices, and use
at every other grid point with \(0\leq i\leq q_y\) and \(0\leq j\leq q_x\).
A path reaches \((i,j)\) by appending either a \(Y\)-label or an \(X\)-label. The indicator excludes paths that cross the boundary at the new point. Consequently,
For \(q_y=q_x=2\), the counts at \(c=0\) and \(c=1/2\) are two and five, giving the probabilities in the table. We can use these counts to find the smallest critical value satisfying the cdf inequality, without simulation.
In the limit experiment, randomizing at the critical value gives rejection probability exactly \(\alpha\) when \(F_Y=F_X\) is continuous. Set \(c=c_\alpha\). Reject whenever \(T>c\); when \(T=c\), use an independent random draw to reject with probability
Because \(T(U)\) has finite support and \(\alpha\in(0,1)\), the critical value has positive probability. Its quantile definition gives
so \(0\leq\gamma\leq1\). For the example with \(\alpha=0.2\),
Conditional on the statistic, this rule rejects with probability zero below \(c\), \(\gamma\) at \(c\), and one above it. This is a nondecreasing function of the statistic, so the quantile coupling bounds the rejection probability by \(\alpha\) under every null distribution in the limit experiment. By Section 3, the rejection probability for the selected observations converges to that of the limit test. Tied outcomes still enter their empirical cdfs together. The nonrandomized test in Theorem 1 uses only strict rejection.
5. Sample sizes and power
For some small sample sizes, the test cannot reject at the chosen level. The event \(T(U)=1\) occurs precisely when every \(Y\)-observation precedes every \(X\)-observation in increasing outcome order. There is one such label sequence, so
If
the critical value is one and the nonrandomized test cannot reject any sample. This remains true as the original sample sizes grow if \(q_y\) and \(q_x\) stay fixed.
Consider again the example with four observations. Suppose the alternative target distributions place every \(Y\)-outcome below every \(X\)-outcome. Then \(T(S)=1\) with probability one. With \(q_y=q_x=2\), the test in the limit experiment has power one at level \(0.2\), but power zero at level \(0.1\), because the critical value at level \(0.1\) is also one. Under the regularity conditions of Theorem 1, the power based on selected observations converges to these values. At level \(0.1\), rejection is impossible for every original sample size.
Suppose the regularity assumptions of Theorem 1 hold and \(H_0\) is false. The argument in Section 3 does not use the dominance inequality, so it gives
with \(S\) now drawn from the alternative target distributions. This limiting power can lie strictly between zero and one. As the original sample grows, the selected covariates get closer to \(z_0\), but the number of observations used in the test stays fixed.
If \(q_y\) and \(q_x\) grow, we need to bound both the distances of the selected covariates from the target and the resulting distributional approximation error. The paper studies this case under stronger assumptions in Section 4.2 and Appendix C.1; both posts here concern fixed selected sample sizes.