Introduction
Tests of conditional independence (CI) are a basic tool of statistics [30 ] . They underpin tests of variable significance [20 ] , the evaluation of predictors for fairness [13 ] and robustness [24 ] , and constraint-based causal discovery [33 ] . In many current applications, the tested variables are text, images, or other unstructured objects, and the test is run on embeddings of those objects instead [39 , 18 , 31 a] , testing H 0 : X ⊥ ⊥ Y ∣ Z H_0 : X \perp\!\!\perp Y \mid Z H 0 : X ⊥ ⊥ Y ∣ Z by testing the surrogate hypothesis H 0 ψ : ψ X ( X ) ⊥ ⊥ ψ Y ( Y ) ∣ ψ Z ( Z ) H_0^{\psi} : \psi_X(X) \perp\!\!\perp\psi_Y(Y) \mid\psi_Z(Z) H 0 ψ : ψ X ( X ) ⊥ ⊥ ψ Y ( Y ) ∣ ψ Z ( Z ) for embeddings ψ X , ψ Y \psi_X,\psi_Y ψ X , ψ Y and ψ Z \psi_Z ψ Z .
Even a perfect test of H 0 ψ H_0^{\psi} H 0 ψ may not result in a valid test of H 0 H_0 H 0 . The problem lies not with embedding X X X or Y Y Y ; testing H 0 H_0 H 0 via a test of ψ X ( X ) ⊥ ⊥ ψ Y ( Y ) ∣ Z \psi_X(X) \perp\!\!\perp\psi_Y(Y) \mid Z ψ X ( X ) ⊥ ⊥ ψ Y ( Y ) ∣ Z is valid, though possibly less powerful than a direct test of H 0 H_0 H 0 . Embedding the conditioning variable Z Z Z , however, does not generally preserve conditional independence. In this paper, we formalize and quantify this potential loss of validity. Only the embedding of Z Z Z matters for validity, so we absorb ψ X \psi_X ψ X and ψ Y \psi_Y ψ Y into X X X and Y Y Y and write H 0 ψ H_0^{\psi} H 0 ψ for X ⊥ ⊥ Y ∣ ψ ( Z ) X \perp\!\!\perp Y \mid\psi(Z) X ⊥ ⊥ Y ∣ ψ ( Z ) , with ψ : = ψ Z \psi:= \psi_Z ψ := ψ Z .
Example 1.1. Consider an observational study of online discussions. Let Z Z Z be an original post, X X X be a reply, and Y Y Y the votes the reply receives. Whether the style of a reply is unassociated with its reception other than through the content of the post is the hypothesis X ⊥ ⊥ Y ∣ Z X \perp\!\!\perp Y \mid Z X ⊥ ⊥ Y ∣ Z . To test it, one reduces the reply to a summary such as its politeness f ( X ) f(X) f ( X ) and the votes to a score g ( Y ) g(Y) g ( Y ) , and replaces the post by an embedding ψ ( Z ) \psi(Z) ψ ( Z ) from a pretrained encoder (Figure 1 ). Suppose that the encoder represents the topic of a post well but its opinion poorly, and that the opinion influences both the politeness of the replies and their votes. Then the parts of f ( X ) f(X) f ( X ) and g ( Y ) g(Y) g ( Y ) that are not explained by ψ ( Z ) \psi(Z) ψ ( Z ) are correlated even if X ⊥ ⊥ Y ∣ Z X \perp\!\!\perp Y \mid Z X ⊥ ⊥ Y ∣ Z holds, and every consistent test on the embedded variables rejects with probability tending to one.
Figure 1. The conceptual example: the topic and the opinion of a post Z Z Z both influence its reply X X X and its reception Y Y Y , and the embedded test uses f ( X ) f(X) f ( X ) , g ( Y ) g(Y) g ( Y ) , and ψ ( Z ) \psi(Z) ψ ( Z ) . Since ψ ( Z ) \psi(Z) ψ ( Z ) represents the topic but not the opinion, the dashed path through the opinion stays open and X X X and Y Y Y are dependent given ψ ( Z ) \psi(Z) ψ ( Z ) although X ⊥ ⊥ Y ∣ Z X \perp\!\!\perp Y \mid Z X ⊥ ⊥ Y ∣ Z .
Existing embedded tests apply a standard CI test to the embedded variables and rely on the embedding being sufficient . Simnacher et al. [31 ] show that this is valid if X ⊥ ⊥ Z ∣ ψ ( Z ) X \perp\!\!\perp Z \mid\psi(Z) X ⊥ ⊥ Z ∣ ψ ( Z ) or Y ⊥ ⊥ Z ∣ ψ ( Z ) Y \perp\!\!\perp Z \mid\psi(Z) Y ⊥ ⊥ Z ∣ ψ ( Z ) (their Theorem 3) or, for tests of conditional mean independence of Y Y Y , if E [ Y ∣ Z ] = E [ Y ∣ ψ ( Z ) ] \mathbb{E}[Y \mid Z] = \mathbb{E}[Y \mid\psi(Z)] E [ Y ∣ Z ] = E [ Y ∣ ψ ( Z )] (their Theorem 14). A pretrained encoder, trained for a generic objective, has no reason to retain what Z Z Z says about X X X or Y Y Y , and Simnacher et al. [31 ] themselves consider even the mean condition implausible for learned embeddings and assess it by simulation. Nor can sufficiency be checked from the data. It is itself a conditional (mean) independence hypothesis given ψ ( Z ) \psi(Z) ψ ( Z ) , for which no test is uniformly valid with nontrivial power [30 , 21 , 20 ] ; a richer model of Z Z Z can only show that ψ ( Z ) \psi(Z) ψ ( Z ) misses part of E [ X ∣ Z ] \mathbb{E}[X \mid Z] E [ X ∣ Z ] .
We examine how embedded tests fail without strict sufficiency, and how far the failure can be contained, in two steps. First, we choose a target that requires less of the embedding. In particular, we consider a family of conditional association measures that includes the targets of commonly used CI tests. Each measure is the largest absolute correlation between residuals of transformations of X X X and of Y Y Y after adjusting for the conditioning variable, and the classes of transformations determine which departures from H 0 H_0 H 0 it captures. For the absolute correlation ρ ψ \rho_{\psi} ρ ψ of the residuals of X X X and Y Y Y after adjusting for ψ ( Z ) \psi(Z) ψ ( Z ) , it suffices that the parts of E [ X ∣ Z ] \mathbb{E}[X \mid Z] E [ X ∣ Z ] and E [ Y ∣ Z ] \mathbb{E}[Y \mid Z] E [ Y ∣ Z ] that ψ ( Z ) \psi(Z) ψ ( Z ) misses are uncorrelated, for instance because ψ ( Z ) \psi(Z) ψ ( Z ) retains one of the two. However the test has no power against dependence that leaves the residuals given Z Z Z uncorrelated.
Second, as in sensitivity analysis for unmeasured confounding [28 , 14 , 9 , 8 ] , we treat the information that ψ \psi ψ discards as an omitted variable and quantify its effect. Under H 0 H_0 H 0 , ρ ψ = ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) \rho_\psi= |\lambda|\sqrt{R_\psi^2(X)R_\psi^2(Y)} ρ ψ = ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) , where R ψ 2 ( X ) R_\psi^2(X) R ψ 2 ( X ) is the share of the residual variance of X X X given ψ ( Z ) \psi(Z) ψ ( Z ) that Z Z Z would explain and λ \lambda λ is the correlation of the two missed parts. This yields a test that is valid, whatever the correlation of the discarded parts, under a declared bound on R ψ 2 ( X ) R ψ 2 ( Y ) \sqrt{R_\psi^2(X)R_\psi^2(Y)} R ψ 2 ( X ) R ψ 2 ( Y ) . Because the discarded information is part of the observed Z Z Z , one can use data and any richer embedding to lower-bound R ψ 2 ( X ) R_\psi^2(X) R ψ 2 ( X ) and R ψ 2 ( Y ) R_\psi^2(Y) R ψ 2 ( Y ) .
Our contributions are as follows. In § 2 , we define a family of measures of conditional dependence and bound how embedding Z Z Z changes them. In § 3 , we treat the discarded information as an omitted variable and derive a test that remains valid under a declared bound on the resulting bias. In § 4 , we evaluate the bias on synthetic and real data. On text generated by a language model under an exact null hypothesis, every embedding we tried biases the plain embedded test.
Related work
CI testing and embeddings. Besides covariance measures [30 , 29 , 20 , 18 ] , CI tests use kernel mean embeddings [40 , 4 ] , the conditional law of X X X given Z Z Z [6 , 5 , 36 ] , local permutations [17 ] , or generative models [41 , 27 ] .
Simnacher et al. [31 ] , discussed above, develop CI tests for embedded text. A number of works [16 , 11 , 10 ] treat sufficiency as an untestable assumption, to be argued from domain knowledge and examined by sensitivity analysis or simulation. In our work, we quantify how a lack of sufficiency invalidates the test.
Sensitivity analysis. Sensitivity analysis bounds the bias that an unobserved confounder can cause [28 , 14 ] . Cinelli and Hazlett [9 ] parametrize it by partial R 2 R^2 R 2 values in linear regression, Chernozhukov et al. [8 ] extend the bounds to linear functionals of a nonparametric regression, and Veitch and Zaveri [38 ] apply them post hoc; Appendix § 7 .§ 1 compares our identity with these bounds. Conditioning on ψ ( Z ) \psi(Z) ψ ( Z ) is conditioning on a coarsening of the confounder, for which Ogburn and VanderWeele [22 , 23 ] give bias-attenuation results.
Notation
Let ( X , Y , Z ) ∼ P (X,Y,Z) \sim P ( X , Y , Z ) ∼ P , where X X X , Y Y Y , and Z Z Z take values in measurable spaces X \mathcal{X} X , Y \mathcal{Y} Y , and Z \mathcal{Z} Z , for example spaces of texts. We observe n n n independent copies ( X i , Y i , Z i ) (X_i,Y_i,Z_i) ( X i , Y i , Z i ) . We write E, Var, and Cov for moments under P P P , E [ U ∣ T ] \mathbb{E}[U \mid T] E [ U ∣ T ] for the conditional expectation of U U U given T T T , and U ⊥ ⊥ T ∣ S U \perp\!\!\!\perp T \mid S U ⊥ ⊥ T ∣ S for conditional independence of U U U and T T T given S S S . Equalities between random variables hold almost surely.
The hypothesis of interest is H 0 H_0 H 0 : X ⊥ ⊥ Y ∣ Z X \perp\!\!\!\perp Y \mid Z X ⊥ ⊥ Y ∣ Z . An embedding ψ : Z → V \psi:\mathcal{Z} \to\mathcal{V} ψ : Z → V , with V \mathcal{V} V a measurable space such as R d \mathbb{R}^d R d , is a fixed measurable map, pretrained on external data or fitted on a split of the sample that is not used for testing, and id \operatorname{id} id denotes the identity on Z Z Z . Every quantity below is indexed by the transformation of Z Z Z that is conditioned on. For a real-valued, square-integrable function f f f of ( X , Z ) (X,Z) ( X , Z ) and a measurable ψ \psi ψ , including ψ = id \psi= \operatorname{id} ψ = id , let
σ ψ 2 ( f ) : = E [ ( f − E [ f ∣ ψ ( Z ) ] ) 2 ] = E [ Var ( f ∣ ψ ( Z ) ) ] \sigma_{\psi}^{2}(f) := \mathbb{E}\left[(f-\mathbb{E}[f\mid\psi(Z)])^{2}\right] = \mathbb{E}[\operatorname{Var}(f\mid\psi(Z))] σ ψ 2 ( f ) := E [ ( f − E [ f ∣ ψ ( Z )] ) 2 ] = E [ Var ( f ∣ ψ ( Z ))]
be the residual variance of f = f ( X , Z ) f=f(X,Z) f = f ( X , Z ) after adjusting for ψ ( Z ) \psi(Z) ψ ( Z ) . When X X X is real-valued and f ( x , z ) = x f(x,z)=x f ( x , z ) = x , we write X X X in place of f f f , as in σ ψ 2 ( X ) \sigma_{\psi}^{2}(X) σ ψ 2 ( X ) . Throughout, when a definition or result is symmetric in ( X , f ) (X,f) ( X , f ) and ( Y , g ) (Y,g) ( Y , g ) , we state it for X X X and f f f only. All proofs are in Appendix § 6 .
Measures of conditional dependence
Definition and examples
In general, neither H 0 H_0 H 0 nor H 0 ψ H_0^{\psi} H 0 ψ implies the other. Rather than comparing the two hypotheses, we compare measures of conditional dependence given Z Z Z and given ψ ( Z ) \psi(Z) ψ ( Z ) , which vanish under H 0 H_0 H 0 and under H 0 ψ H_0^{\psi} H 0 ψ , respectively. Write P X , Z P_{X,Z} P X , Z and P Y , Z P_{Y,Z} P Y , Z for the distributions of ( X , Z ) (X,Z) ( X , Z ) and of ( Y , Z ) (Y,Z) ( Y , Z ) , and let F ⊆ L 2 ( P X , Z ) \mathcal{F}\subseteq L^{2}(P_{X,Z}) F ⊆ L 2 ( P X , Z ) and G ⊆ L 2 ( P Y , Z ) \mathcal{G}\subseteq L^{2}(P_{Y,Z}) G ⊆ L 2 ( P Y , Z ) be classes of real-valued transformations of ( X , Z ) (X,Z) ( X , Z ) and of ( Y , Z ) (Y,Z) ( Y , Z ) ; we write f f f for f ( X , Z ) f(X,Z) f ( X , Z ) . A test that conditions on ψ ( Z ) \psi(Z) ψ ( Z ) can only use transformations that depend on Z Z Z through ψ ( Z ) \psi(Z) ψ ( Z ) . We therefore let F ψ \mathcal{F}_{\psi} F ψ be the f ∈ F f\in\mathcal{F} f ∈ F for which there exists an h h h such that f ( x , z ) = h ( x , ψ ( z ) ) f(x,z)=h(x,\psi(z)) f ( x , z ) = h ( x , ψ ( z )) , and G ψ \mathcal{G}_{\psi} G ψ likewise. We remark that F id = F \mathcal{F}_{\operatorname{id}}=\mathcal{F} F id = F . If F \mathcal{F} F is a class of functions of x x x alone, such as { ( x , z ) ↦ x } \{(x,z)\mapsto x\} {( x , z ) ↦ x } , then F ψ = F \mathcal{F}_{\psi}=\mathcal{F} F ψ = F .
Definition 2.1 (Measure of conditional dependence). For f ∈ F ψ f\in\mathcal{F}_{\psi} f ∈ F ψ and g ∈ G ψ g\in\mathcal{G}_{\psi} g ∈ G ψ , let
ρ ψ ( f , g ) : = ∣ E [ Cov ( f , g ∣ ψ ( Z ) ) ] ∣ σ ψ ( f ) σ ψ ( g ) \rho_{\psi}(f,g):=\frac{\left|\mathbb{E}[\operatorname{Cov}(f,g\mid\psi(Z))]\right|}{\sigma_{\psi}(f)\,\sigma_{\psi}(g)} ρ ψ ( f , g ) := σ ψ ( f ) σ ψ ( g ) ∣ E [ Cov ( f , g ∣ ψ ( Z ))] ∣
with ρ ψ ( f , g ) : = 0 \rho_{\psi}(f,g):=0 ρ ψ ( f , g ) := 0 if σ ψ ( f ) = 0 \sigma_{\psi}(f)=0 σ ψ ( f ) = 0 or σ ψ ( g ) = 0 \sigma_{\psi}(g)=0 σ ψ ( g ) = 0 , and let ρ ψ ( F , G ) : = sup f ∈ F ψ , g ∈ G ψ ρ ψ ( f , g ) \rho_{\psi}(\mathcal{F},\mathcal{G}):=\sup_{f\in\mathcal{F}_{\psi},g\in\mathcal{G}_{\psi}}\rho_{\psi}(f,g) ρ ψ ( F , G ) := sup f ∈ F ψ , g ∈ G ψ ρ ψ ( f , g ) , with ρ ψ ( F , G ) : = 0 \rho_{\psi}(\mathcal{F},\mathcal{G}):=0 ρ ψ ( F , G ) := 0 if F ψ \mathcal{F}_{\psi} F ψ or G ψ \mathcal{G}_{\psi} G ψ is empty.
The measure ρ ψ ( f , g ) \rho_{\psi}(f,g) ρ ψ ( f , g ) is the absolute correlation of the residuals f − E [ f ∣ ψ ( Z ) ] f-\mathbb{E}[f\mid\psi(Z)] f − E [ f ∣ ψ ( Z )] and g − E [ g ∣ ψ ( Z ) ] g-\mathbb{E}[g\mid\psi(Z)] g − E [ g ∣ ψ ( Z )] . Under H 0 ψ H_0^{\psi} H 0 ψ , f ⊥ ⊥ g ∣ ψ ( Z ) f\perp\!\!\!\perp g\mid\psi(Z) f ⊥ ⊥ g ∣ ψ ( Z ) for f ∈ F ψ f\in\mathcal{F}_{\psi} f ∈ F ψ and g ∈ G ψ g\in\mathcal{G}_{\psi} g ∈ G ψ , since f f f is a function of ( X , ψ ( Z ) ) (X,\psi(Z)) ( X , ψ ( Z )) and g g g one of ( Y , ψ ( Z ) ) (Y,\psi(Z)) ( Y , ψ ( Z )) , so ρ ψ ( f , g ) = 0 \rho_{\psi}(f,g)=0 ρ ψ ( f , g ) = 0 for all f f f and g g g , and ρ ψ ( F , G ) = 0 \rho_{\psi}(\mathcal{F},\mathcal{G})=0 ρ ψ ( F , G ) = 0 for every choice of classes. The classes determine which forms of conditional dependence the measure captures, and larger classes capture more.
Example 2.2. (a) If F = L 2 ( P X , Z ) \mathcal{F}=L^{2}(P_{X,Z}) F = L 2 ( P X , Z ) and G = L 2 ( P Y , Z ) \mathcal{G}=L^{2}(P_{Y,Z}) G = L 2 ( P Y , Z ) , then ρ ψ ( F , G ) = 0 \rho_{\psi}(\mathcal{F},\mathcal{G})=0 ρ ψ ( F , G ) = 0 if and only if X ⊥ ⊥ Y ∣ ψ ( Z ) X\perp\!\!\!\perp Y\mid\psi(Z) X ⊥ ⊥ Y ∣ ψ ( Z ) .
(b) If Y Y Y is real-valued with E [ Y 2 ] < ∞ \mathbb{E}[Y^{2}]<\infty E [ Y 2 ] < ∞ , F = L 2 ( P X , Z ) \mathcal{F}=L^{2}(P_{X,Z}) F = L 2 ( P X , Z ) , and G = { ( y , z ) ↦ y } \mathcal{G}=\{(y,z)\mapsto y\} G = {( y , z ) ↦ y } , then ρ ψ ( F , G ) = 0 \rho_{\psi}(\mathcal{F},\mathcal{G})=0 ρ ψ ( F , G ) = 0 if and only if E [ Y ∣ X , ψ ( Z ) ] = E [ Y ∣ ψ ( Z ) ] \mathbb{E}[Y\mid X,\psi(Z)]=\mathbb{E}[Y\mid\psi(Z)] E [ Y ∣ X , ψ ( Z )] = E [ Y ∣ ψ ( Z )] .
(c) If X X X and Y Y Y are real-valued with max { E [ X 2 ] , E [ Y 2 ] } < ∞ \max\{\mathbb{E}[X^{2}],\mathbb{E}[Y^{2}]\}<\infty max { E [ X 2 ] , E [ Y 2 ]} < ∞ , F = { ( x , z ) ↦ x } \mathcal{F}=\{(x,z)\mapsto x\} F = {( x , z ) ↦ x } , and G = { ( y , z ) ↦ y } \mathcal{G}=\{(y,z)\mapsto y\} G = {( y , z ) ↦ y } , then ρ ψ ( F , G ) = ∣ E [ Cov ( X , Y ∣ ψ ( Z ) ) ] ∣ / ( σ ψ ( X ) σ ψ ( Y ) ) \rho_{\psi}(\mathcal{F},\mathcal{G})=\left|\mathbb{E}[\operatorname{Cov}(X,Y\mid\psi(Z))]\right|/(\sigma_{\psi}(X)\,\sigma_{\psi}(Y)) ρ ψ ( F , G ) = ∣ E [ Cov ( X , Y ∣ ψ ( Z ))] ∣ / ( σ ψ ( X ) σ ψ ( Y )) , the absolute correlation of the residuals X − E [ X ∣ ψ ( Z ) ] X-\mathbb{E}[X\mid\psi(Z)] X − E [ X ∣ ψ ( Z )] and Y − E [ Y ∣ ψ ( Z ) ] Y-\mathbb{E}[Y\mid\psi(Z)] Y − E [ Y ∣ ψ ( Z )] .
In particular, if the measure in (a) vanishes, so does that in (b), and if that in (b) vanishes, so does that in (c). Reducing a text-valued or vector-valued tested variable to a real-valued summary f ( X ) f(X) f ( X ) , such as a coordinate of an embedding, is the choice F = { ( x , z ) ↦ f ( x ) } \mathcal{F}=\{(x,z)\mapsto f(x)\} F = {( x , z ) ↦ f ( x )} . This choice will be our main focus in applications, but we develop our theory for general F , G \mathcal{F},\mathcal{G} F , G .
Coarsening the conditioning variable
For f ∈ F ψ f \in\mathcal{F}_{\psi} f ∈ F ψ , let Δ ψ ( f ) : = E [ f ∣ Z ] − E [ f ∣ ψ ( Z ) ] \Delta_{\psi}(f) := \mathbb{E}[f \mid Z] - \mathbb{E}[f \mid\psi(Z)] Δ ψ ( f ) := E [ f ∣ Z ] − E [ f ∣ ψ ( Z )] be the part of the regression of f f f on Z Z Z that the embedding does not represent. Since f − E [ f ∣ ψ ( Z ) ] = ( f − E [ f ∣ Z ] ) + Δ ψ ( f ) f - \mathbb{E}[f \mid\psi(Z)] = (f - \mathbb{E}[f \mid Z]) + \Delta_{\psi}(f) f − E [ f ∣ ψ ( Z )] = ( f − E [ f ∣ Z ]) + Δ ψ ( f ) with uncorrelated summands, σ ψ 2 ( f ) = σ i d 2 ( f ) + E [ Δ ψ ( f ) 2 ] \sigma_{\psi}^{2}(f) = \sigma_{\mathrm{id}}^{2}(f) + \mathbb{E}[\Delta_{\psi}(f)^{2}] σ ψ 2 ( f ) = σ id 2 ( f ) + E [ Δ ψ ( f ) 2 ] . Define
R ψ 2 ( f ) : = E [ Δ ψ ( f ) 2 ] σ ψ 2 ( f ) = 1 − σ i d 2 ( f ) σ ψ 2 ( f ) ∈ [ 0 , 1 ] , R_{\psi}^{2}(f) := \frac{\mathbb{E}[\Delta_{\psi}(f)^{2}]}{\sigma_{\psi}^{2}(f)} = 1 - \frac{\sigma_{\mathrm{id}}^{2}(f)}{\sigma_{\psi}^{2}(f)} \in[0,1], R ψ 2 ( f ) := σ ψ 2 ( f ) E [ Δ ψ ( f ) 2 ] = 1 − σ ψ 2 ( f ) σ id 2 ( f ) ∈ [ 0 , 1 ] ,
the partial R 2 R^{2} R 2 of f f f with respect to ψ ( Z ) \psi(Z) ψ ( Z ) . If σ ψ ( f ) = 0 \sigma_{\psi}(f) = 0 σ ψ ( f ) = 0 , then f = E [ f ∣ ψ ( Z ) ] f = \mathbb{E}[f \mid\psi(Z)] f = E [ f ∣ ψ ( Z )] , so Δ ψ ( f ) = 0 \Delta_{\psi}(f) = 0 Δ ψ ( f ) = 0 , and we set R ψ 2 ( f ) : = 0 R_{\psi}^{2}(f) := 0 R ψ 2 ( f ) := 0 . Let λ ψ ( f , g ) : = Corr ( Δ ψ ( f ) , Δ ψ ( g ) ) \lambda_{\psi}(f,g) := \operatorname{Corr}(\Delta_{\psi}(f), \Delta_{\psi}(g)) λ ψ ( f , g ) := Corr ( Δ ψ ( f ) , Δ ψ ( g )) , with λ ψ ( f , g ) : = 0 \lambda_{\psi}(f,g) := 0 λ ψ ( f , g ) := 0 under degeneracy. The following result relates ρ ψ \rho_{\psi} ρ ψ to ρ i d \rho_{\mathrm{id}} ρ id .
Theorem 2.3 (Bias bound). For all f ∈ F ψ f \in\mathcal{F}_{\psi} f ∈ F ψ and g ∈ G ψ g \in\mathcal{G}_{\psi} g ∈ G ψ ,
∣ ρ ψ ( f , g ) − ( 1 − R ψ 2 ( f ) ) ( 1 − R ψ 2 ( g ) ) ρ i d ( f , g ) ∣ ≤ ∣ λ ψ ( f , g ) ∣ R ψ 2 ( f ) R ψ 2 ( g ) . \left|\rho_{\psi}(f,g) - \sqrt{(1-R_{\psi}^{2}(f))(1-R_{\psi}^{2}(g))}\,\rho_{\mathrm{id}}(f,g)\right| \leq|\lambda_{\psi}(f,g)|\sqrt{R_{\psi}^{2}(f)R_{\psi}^{2}(g)}. ρ ψ ( f , g ) − ( 1 − R ψ 2 ( f )) ( 1 − R ψ 2 ( g )) ρ id ( f , g ) ≤ ∣ λ ψ ( f , g ) ∣ R ψ 2 ( f ) R ψ 2 ( g ) . Under H 0 H_{0} H 0 , ρ ψ ( f , g ) = ∣ λ ψ ( f , g ) ∣ R ψ 2 ( f ) R ψ 2 ( g ) \rho_{\psi}(f,g) = |\lambda_{\psi}(f,g)|\sqrt{R_{\psi}^{2}(f)R_{\psi}^{2}(g)} ρ ψ ( f , g ) = ∣ λ ψ ( f , g ) ∣ R ψ 2 ( f ) R ψ 2 ( g ) .
The factor ( 1 − R ψ 2 ( f ) ) ( 1 − R ψ 2 ( g ) ) \sqrt{(1-R_{\psi}^{2}(f))(1-R_{\psi}^{2}(g))} ( 1 − R ψ 2 ( f )) ( 1 − R ψ 2 ( g )) shrinks ρ i d ( f , g ) \rho_{\mathrm{id}}(f,g) ρ id ( f , g ) since the residuals given ψ ( Z ) \psi(Z) ψ ( Z ) have larger variance than those given Z Z Z . The right-hand side of the inequality in Theorem 2.3 is the absolute correlation of the discarded parts times the geometric mean of the two partial R 2 R^{2} R 2 values. It vanishes if the embedding discards nothing about f f f or about g g g , or if the discarded parts are uncorrelated. Taking suprema over the classes yields the following corollary.
Corollary 2.4 (Bias bound for classes). Let R ψ 2 ( F ) : = sup f ∈ F ψ R ψ 2 ( f ) R_{\psi}^{2}(\mathcal{F}) := \sup_{f \in\mathcal{F}_{\psi}} R_{\psi}^{2}(f) R ψ 2 ( F ) := sup f ∈ F ψ R ψ 2 ( f ) , with R ψ 2 ( F ) : = 0 R_{\psi}^{2}(\mathcal{F}) := 0 R ψ 2 ( F ) := 0 if F ψ \mathcal{F}_{\psi} F ψ is empty.
(i) ρ ψ ( F , G ) ≤ ρ i d ( F , G ) + R ψ 2 ( F ) R ψ 2 ( G ) \rho_{\psi}(\mathcal{F},\mathcal{G}) \leq\rho_{\mathrm{id}}(\mathcal{F},\mathcal{G}) + \sqrt{R_{\psi}^{2}(\mathcal{F})R_{\psi}^{2}(\mathcal{G})} ρ ψ ( F , G ) ≤ ρ id ( F , G ) + R ψ 2 ( F ) R ψ 2 ( G ) .
(ii) Under H 0 H_{0} H 0 ,
ρ ψ ( F , G ) = sup f ∈ F ψ , g ∈ G ψ ∣ λ ψ ( f , g ) ∣ R ψ 2 ( f ) R ψ 2 ( g ) , \rho_{\psi}(\mathcal{F},\mathcal{G}) = \sup_{f \in\mathcal{F}_{\psi},\,g \in\mathcal{G}_{\psi}} |\lambda_{\psi}(f,g)|\sqrt{R_{\psi}^{2}(f)R_{\psi}^{2}(g)}, ρ ψ ( F , G ) = f ∈ F ψ , g ∈ G ψ sup ∣ λ ψ ( f , g ) ∣ R ψ 2 ( f ) R ψ 2 ( g ) , so ρ ψ ( F , G ) = 0 \rho_{\psi}(\mathcal{F},\mathcal{G}) = 0 ρ ψ ( F , G ) = 0 if and only if λ ψ ( f , g ) = 0 \lambda_{\psi}(f,g) = 0 λ ψ ( f , g ) = 0 for all f ∈ F ψ f \in\mathcal{F}_{\psi} f ∈ F ψ and g ∈ G ψ g \in\mathcal{G}_{\psi} g ∈ G ψ .
By (i), whether or not H 0 H_{0} H 0 holds, an embedded measure exceeding R ψ 2 ( F ) R ψ 2 ( G ) \sqrt{R_{\psi}^{2}(\mathcal{F})R_{\psi}^{2}(\mathcal{G})} R ψ 2 ( F ) R ψ 2 ( G ) implies dependence given Z Z Z of at least the excess. By (ii), under H 0 H_{0} H 0 the embedding creates no dependence exactly when the discarded parts are uncorrelated for all pairs, which a vanishing partial R 2 R^{2} R 2 ensures but does not require.
Example 2.2 (continued). Under H 0 H_{0} H 0 , Corollary 2.4 (i) gives ρ ψ ( F , G ) ≤ R ψ 2 ( F ) R ψ 2 ( G ) \rho_{\psi}(\mathcal{F},\mathcal{G}) \leq\sqrt{R_{\psi}^{2}(\mathcal{F})R_{\psi}^{2}(\mathcal{G})} ρ ψ ( F , G ) ≤ R ψ 2 ( F ) R ψ 2 ( G ) . Since R ψ 2 ( F ) R_{\psi}^{2}(\mathcal{F}) R ψ 2 ( F ) is a supremum, this bound tightens from (a) to (c), which orders the three measures by what they require of the embedding. By Lemma A.1 , R ψ 2 ( L 2 ( P X , Z ) ) = 0 R_{\psi}^{2}(L^{2}(P_{X,Z})) = 0 R ψ 2 ( L 2 ( P X , Z )) = 0 if and only if X ⊥ ⊥ Z ∣ ψ ( Z ) X \perp\!\!\!\perp Z \mid\psi(Z) X ⊥ ⊥ Z ∣ ψ ( Z ) , and R ψ 2 ( { ( x , z ) ↦ x } ) = 0 R_{\psi}^{2}(\{(x,z) \mapsto x\}) = 0 R ψ 2 ({( x , z ) ↦ x }) = 0 if and only if ψ \psi ψ is mean-sufficient for X X X , that is, E [ X ∣ Z ] = E [ X ∣ ψ ( Z ) ] \mathbb{E}[X \mid Z] = \mathbb{E}[X \mid\psi(Z)] E [ X ∣ Z ] = E [ X ∣ ψ ( Z )] . Under H 0 H_{0} H 0 , the measure in (a) therefore vanishes if X ⊥ ⊥ Z ∣ ψ ( Z ) X \perp\!\!\!\perp Z \mid\psi(Z) X ⊥ ⊥ Z ∣ ψ ( Z ) or Y ⊥ ⊥ Z ∣ ψ ( Z ) Y \perp\!\!\!\perp Z \mid\psi(Z) Y ⊥ ⊥ Z ∣ ψ ( Z ) , the condition of Simnacher et al. [31 ] ; that in (b) if X ⊥ ⊥ Z ∣ ψ ( Z ) X \perp\!\!\!\perp Z \mid\psi(Z) X ⊥ ⊥ Z ∣ ψ ( Z ) or ψ \psi ψ is mean-sufficient for Y Y Y , the latter being the condition of Simnacher et al. [31 ] ; and that in (c) if ψ \psi ψ is mean-sufficient for X X X or for Y Y Y . By Corollary 2.4 (ii), these conditions are sufficient but not necessary.
The gap between these conditions can be strict, as the following example shows for the measures in Example 2.2(a) and (c).
Example 2.5 (Discarded parts and their correlation). Let Z = ( Z 1 , … , Z 4 ) Z=(Z_1,\ldots,Z_4) Z = ( Z 1 , … , Z 4 ) have independent standard normal coordinates, ψ ( Z ) = Z 1 \psi(Z)=Z_1 ψ ( Z ) = Z 1 , and
X = Z 1 + a Z 2 + Z 4 ε X , Y = Z 1 + b ( λ Z 2 + 1 − λ 2 Z 3 ) + Z 4 ε Y , \begin{aligned}
X &= Z_1+aZ_2+Z_4\varepsilon_X,\\
Y &= Z_1+b\left(\lambda Z_2+\sqrt{1-\lambda^2}Z_3\right)+Z_4\varepsilon_Y,
\end{aligned} X Y = Z 1 + a Z 2 + Z 4 ε X , = Z 1 + b ( λ Z 2 + 1 − λ 2 Z 3 ) + Z 4 ε Y , with a , b ≥ 0 a,b\ge0 a , b ≥ 0 , λ ∈ [ − 1 , 1 ] \lambda\in[-1,1] λ ∈ [ − 1 , 1 ] , and independent standard normal noise, so that H 0 H_0 H 0 holds. Given Z 1 Z_1 Z 1 , X X X and Y Y Y share the scale Z 4 Z_4 Z 4 , so Cov ( ( X − Z 1 ) 2 , ( Y − Z 1 ) 2 ∣ Z 1 ) = 2 ( 1 + a 2 b 2 λ 2 ) > 0 \operatorname{Cov}\left((X-Z_1)^2,(Y-Z_1)^2\mid Z_1\right)=2(1+a^2b^2\lambda^2)>0 Cov ( ( X − Z 1 ) 2 , ( Y − Z 1 ) 2 ∣ Z 1 ) = 2 ( 1 + a 2 b 2 λ 2 ) > 0 ; hence H 0 ψ H_0^{\psi} H 0 ψ fails and the measure in Example 2.2(a) is positive, for all a a a , b b b , and λ \lambda λ . For a = b = 0 a=b=0 a = b = 0 , ψ \psi ψ is mean-sufficient for X X X and Y Y Y although not sufficient, and the measure in Example 2.2(c) is zero. For a , b > 0 a,b>0 a , b > 0 , ψ \psi ψ is not even mean-sufficient: R ψ 2 ( X ) = a 2 / ( 1 + a 2 ) R_{\psi}^2(X)=a^2/(1+a^2) R ψ 2 ( X ) = a 2 / ( 1 + a 2 ) , R ψ 2 ( Y ) = b 2 / ( 1 + b 2 ) R_{\psi}^2(Y)=b^2/(1+b^2) R ψ 2 ( Y ) = b 2 / ( 1 + b 2 ) , and the discarded parts Δ ψ ( X ) = a Z 2 \Delta_{\psi}(X)=aZ_2 Δ ψ ( X ) = a Z 2 and Δ ψ ( Y ) = b ( λ Z 2 + 1 − λ 2 Z 3 ) \Delta_{\psi}(Y)=b(\lambda Z_2+\sqrt{1-\lambda^2}Z_3) Δ ψ ( Y ) = b ( λ Z 2 + 1 − λ 2 Z 3 ) have correlation λ \lambda λ . By Theorem 2.3 , the measure in Example 2.2(c) equals ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) |\lambda|\sqrt{R_{\psi}^2(X)R_{\psi}^2(Y)} ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) . It is zero at λ = 0 \lambda=0 λ = 0 , where the embedding misses two unrelated aspects of Z Z Z , one relevant for X X X and one for Y Y Y , and largest at ∣ λ ∣ = 1 |\lambda|=1 ∣ λ ∣ = 1 , where it misses the same aspect for both.
From now on, we consider X X X and Y Y Y that are real-valued and square integrable, possibly after reduction to summaries, and we focus on the measure in Example 2.2(c), ρ ψ : = ρ ψ ( X , Y ) \rho_{\psi}:=\rho_{\psi}(X,Y) ρ ψ := ρ ψ ( X , Y ) . Its classes are the smallest of the three, so it requires the least of the embedding: by Corollary 2.4, ρ ψ \rho_{\psi} ρ ψ vanishes under H 0 H_0 H 0 exactly when the discarded parts Δ ψ ( X ) \Delta_{\psi}(X) Δ ψ ( X ) and Δ ψ ( Y ) \Delta_{\psi}(Y) Δ ψ ( Y ) are uncorrelated, which includes the case where ψ \psi ψ is mean-sufficient for X X X or for Y Y Y , and is otherwise bounded by R ψ 2 ( X ) R ψ 2 ( Y ) \sqrt{R_{\psi}^2(X)R_{\psi}^2(Y)} R ψ 2 ( X ) R ψ 2 ( Y ) , the smallest of the bounds in Corollary 2.4(i). The disadvantage of using this measure is that it captures the fewest forms of conditional dependence: ρ i d \rho_{\mathrm{id}} ρ id can vanish although H 0 H_0 H 0 fails.
Testing with an insufficient embedding
Treating discarded information as an omitted variable
A sensitivity analysis expresses the bias caused by an omitted variable through a few interpretable sensitivity parameters and asks how large they would have to be to change a conclusion [28 , 14 , 9 ] . The information in Z Z Z that ψ \psi ψ discards acts as an omitted confounder of X X X and Y Y Y given ψ ( Z ) \psi(Z) ψ ( Z ) . It enters X X X and Y Y Y through the discarded parts Δ ψ ( X ) \Delta_{\psi}(X) Δ ψ ( X ) and Δ ψ ( Y ) \Delta_{\psi}(Y) Δ ψ ( Y ) . Let λ : = λ ψ ( X , Y ) \lambda:=\lambda_{\psi}(X,Y) λ := λ ψ ( X , Y ) be the correlation of the discarded parts. Conditioning on ψ ( Z ) \psi(Z) ψ ( Z ) instead of Z Z Z adds the covariance of the discarded parts,
E [ Cov ( X , Y ∣ ψ ( Z ) ) ] = E [ Cov ( X , Y ∣ Z ) ] + λ R ψ 2 ( X ) R ψ 2 ( Y ) σ ψ ( X ) σ ψ ( Y ) , (1) \mathbb{E}[\operatorname{Cov}(X,Y\mid\psi(Z))]=\mathbb{E}[\operatorname{Cov}(X,Y\mid Z)]+\lambda\sqrt{R_{\psi}^2(X)R_{\psi}^2(Y)}\,\sigma_{\psi}(X)\sigma_{\psi}(Y), \tag*{(1)} E [ Cov ( X , Y ∣ ψ ( Z ))] = E [ Cov ( X , Y ∣ Z )] + λ R ψ 2 ( X ) R ψ 2 ( Y ) σ ψ ( X ) σ ψ ( Y ) , (1)
which is the signed identity behind Theorem 2.3 . The partial R 2 R^2 R 2 values and λ \lambda λ are thus sensitivity parameters, and the bound R ψ 2 ( X ) R ψ 2 ( Y ) \sqrt{R_{\psi}^2(X)R_{\psi}^2(Y)} R ψ 2 ( X ) R ψ 2 ( Y ) on the bias under H 0 H_0 H 0 has the product form that is familiar from omitted variable bias in linear regression (Appendix § 7 .§ 1 ).
Whether the discarded parts are uncorrelated (Corollary 2.4(ii)) cannot be checked without estimating E [ X ∣ Z ] \mathbb{E}[X \mid Z] E [ X ∣ Z ] and E [ Y ∣ Z ] \mathbb{E}[Y \mid Z] E [ Y ∣ Z ] , which may be infeasible when only embedded variables are available.
Testing with uncorrelated discarded parts
We test H 0 H_0 H 0 through ρ ψ \rho_\psi ρ ψ . Our starting point is to apply the GCM test of Shah and Peters [30 ] with ψ ( Z ) \psi(Z) ψ ( Z ) as the conditioning variable. To perform the test, we regress X X X and Y Y Y on ψ ( Z ) \psi(Z) ψ ( Z ) and reject H 0 H_0 H 0 when the products of the residuals have a mean far from zero. By Theorem 2.3 , ρ ψ = 0 \rho_\psi=0 ρ ψ = 0 under H 0 H_0 H 0 whenever λ = 0 \lambda=0 λ = 0 , so a valid test of ρ ψ = 0 \rho_\psi=0 ρ ψ = 0 is then valid for H 0 H_0 H 0 . The test we use, which we call the residual correlation test, differs from the GCM test in two ways.
First, we use cross-fitting for the regressions; the sample is split into K K K folds, and for each observation i i i , m ^ X ( ψ ( Z i ) ) \widehat{m}_X(\psi(Z_i)) m X ( ψ ( Z i )) and m ^ Y ( ψ ( Z i ) ) \widehat{m}_Y(\psi(Z_i)) m Y ( ψ ( Z i )) are predictions of E [ X ∣ ψ ( Z ) ] \mathbb{E}[X\mid\psi(Z)] E [ X ∣ ψ ( Z )] and E [ Y ∣ ψ ( Z ) ] \mathbb{E}[Y\mid\psi(Z)] E [ Y ∣ ψ ( Z )] from regressions fitted without the fold containing i i i . With the residuals r ^ X , i : = X i − m ^ X ( ψ ( Z i ) ) \widehat{r}_{X,i}:=X_i-\widehat{m}_X(\psi(Z_i)) r X , i := X i − m X ( ψ ( Z i )) and r ^ Y , i : = Y i − m ^ Y ( ψ ( Z i ) ) \widehat{r}_{Y,i}:=Y_i-\widehat{m}_Y(\psi(Z_i)) r Y , i := Y i − m Y ( ψ ( Z i )) and R i : = r ^ X , i r ^ Y , i R_i:=\widehat{r}_{X,i}\widehat{r}_{Y,i} R i := r X , i r Y , i , the GCM statistic is
T : = n − 1 / 2 ∑ i = 1 n R i s ^ R , T:=\frac{n^{-1/2}\sum_{i=1}^{n}R_i}{\widehat{s}_R}, T := s R n − 1/2 ∑ i = 1 n R i ,
where s ^ R 2 \widehat{s}_R^2 s R 2 is the sample variance of the R i R_i R i . Cross-fitting increases computational cost, but in exchange, the asymptotic behaviour of the statistic can be controlled even when H 0 ψ H_0^\psi H 0 ψ fails, which happens under H 0 H_0 H 0 whenever the discarded parts are correlated.
Second, instead of T T T we use the sample version of the signed residual correlation ρ ψ ± : = E [ Cov ( X , Y ∣ ψ ( Z ) ) ] / ( σ ψ ( X ) σ ψ ( Y ) ) \rho_\psi^\pm:=\mathbb{E}[\operatorname{Cov}(X,Y\mid\psi(Z))]/(\sigma_\psi(X)\sigma_\psi(Y)) ρ ψ ± := E [ Cov ( X , Y ∣ ψ ( Z ))] / ( σ ψ ( X ) σ ψ ( Y )) , whose absolute value is ρ ψ \rho_\psi ρ ψ ,
ρ ^ ψ ± : = s ^ R n σ ^ ψ ( X ) σ ^ ψ ( Y ) T = 1 n ∑ i = 1 n R i σ ^ ψ ( X ) σ ^ ψ ( Y ) . (2) \widehat{\rho}_\psi^\pm:=\frac{\widehat{s}_R}{\sqrt{n}\widehat{\sigma}_\psi(X)\widehat{\sigma}_\psi(Y)}T=\frac{\frac{1}{n}\sum_{i=1}^{n}R_i}{\widehat{\sigma}_\psi(X)\widehat{\sigma}_\psi(Y)}. \tag*{(2)} ρ ψ ± := n σ ψ ( X ) σ ψ ( Y ) s R T = σ ψ ( X ) σ ψ ( Y ) n 1 ∑ i = 1 n R i . (2)
Here σ ^ ψ 2 ( X ) : = 1 n ∑ i r ^ X , i 2 \widehat{\sigma}_\psi^2(X):=\frac{1}{n}\sum_i\widehat{r}_{X,i}^2 σ ψ 2 ( X ) := n 1 ∑ i r X , i 2 and σ ^ ψ 2 ( Y ) : = 1 n ∑ i r ^ Y , i 2 \widehat{\sigma}_\psi^2(Y):=\frac{1}{n}\sum_i\widehat{r}_{Y,i}^2 σ ψ 2 ( Y ) := n 1 ∑ i r Y , i 2 are the sample residual variances. We write ρ ^ ψ : = ∣ ρ ^ ψ ± ∣ \widehat{\rho}_\psi:=|\widehat{\rho}_\psi^\pm| ρ ψ := ∣ ρ ψ ± ∣ for the sample version of ρ ψ \rho_\psi ρ ψ .
By studying the correlation, we can do the sensitivity analysis in terms of the partial R 2 R^2 R 2 values, and the tolerance in § 3.3 below can be interpreted in terms of prediction accuracy. However, this adds the requirement that σ ψ ( X ) \sigma_\psi(X) σ ψ ( X ) and σ ψ ( Y ) \sigma_\psi(Y) σ ψ ( Y ) be estimated. When ρ ψ ± ≠ 0 \rho_\psi^\pm\ne0 ρ ψ ± = 0 , their estimation errors enter at first order, which is why Assumption 3.1 asks for each mean squared error to be o P ( n − 1 / 2 ) o_P(n^{-1/2}) o P ( n − 1/2 ) rather than only their product to be o P ( n − 1 ) o_P(n^{-1}) o P ( n − 1 ) , as for the GCM (Shah and Peters [30 ] ).
Assumption 3.1. Both cross-fitted regressions have mean squared error o P ( n − 1 / 2 ) o_P(n^{-1/2}) o P ( n − 1/2 ) , that is, 1 n ∑ i = 1 n ( m ^ X ( ψ ( Z i ) ) − E [ X i ∣ ψ ( Z i ) ] ) 2 = o P ( n − 1 / 2 ) \frac{1}{n}\sum_{i=1}^{n}(\widehat{m}_X(\psi(Z_i))-\mathbb{E}[X_i\mid\psi(Z_i)])^2=o_P(n^{-1/2}) n 1 ∑ i = 1 n ( m X ( ψ ( Z i )) − E [ X i ∣ ψ ( Z i )] ) 2 = o P ( n − 1/2 ) , and likewise for Y Y Y . The residuals X − E [ X ∣ ψ ( Z ) ] X-\mathbb{E}[X\mid\psi(Z)] X − E [ X ∣ ψ ( Z )] and Y − E [ Y ∣ ψ ( Z ) ] Y-\mathbb{E}[Y\mid\psi(Z)] Y − E [ Y ∣ ψ ( Z )] have finite fourth moments and positive variances.
The assumption concerns estimation error, which vanishes as n n n grows. Define ξ X : = ( X − E [ X ∣ ψ ( Z ) ] ) / σ ψ ( X ) \xi_X:=(X-\mathbb{E}[X\mid\psi(Z)])/ \sigma_\psi(X) ξ X := ( X − E [ X ∣ ψ ( Z )]) / σ ψ ( X ) and ξ Y \xi_Y ξ Y similarly, and let
v ψ 2 : = Var ( ξ X ξ Y − ρ ψ ± 2 ( ξ X 2 + ξ Y 2 ) ) , v_\psi^2:=\operatorname{Var}\left(\xi_X\xi_Y-\frac{\rho_\psi^\pm}{2}\left(\xi_X^2+\xi_Y^2\right)\right), v ψ 2 := Var ( ξ X ξ Y − 2 ρ ψ ± ( ξ X 2 + ξ Y 2 ) ) ,
with sample version v ^ ψ 2 \widehat{v}_\psi^2 v ψ 2 (see (A.3) in Appendix § 6 .§ 3 ).
Proposition 3.2 (Asymptotic normality). Suppose that Assumption 3.1 holds and that v ψ 2 > 0 v_{\psi}^{2} > 0 v ψ 2 > 0 . Then
n ( ρ ^ ψ ± − ρ ψ ± ) v ^ ψ → N ( 0 , 1 ) \frac{\sqrt{n}\left(\hat{\rho}_{\psi}^{\pm}-\rho_{\psi}^{\pm}\right)}{\hat{v}_{\psi}} \to N(0,1) v ^ ψ n ( ρ ^ ψ ± − ρ ψ ± ) → N ( 0 , 1 ) in distribution, and v ^ ψ 2 → v ψ 2 \hat{v}_{\psi}^{2} \to v_{\psi}^{2} v ^ ψ 2 → v ψ 2 , in probability.
The residual correlation test has the p p p -value p 0 : = 2 ( 1 − Φ ( n ρ ^ ψ / v ^ ψ ) ) p_{0} := 2(1-\Phi(\sqrt{n}\hat{\rho}_{\psi}/\hat{v}_{\psi})) p 0 := 2 ( 1 − Φ ( n ρ ^ ψ / v ^ ψ )) and rejects H 0 H_{0} H 0 at level α \alpha α when p 0 < α p_{0}<\alpha p 0 < α . When ρ ψ = 0 \rho_{\psi}=0 ρ ψ = 0 , it is asymptotically equivalent to the GCM test. Under H 0 H_{0} H 0 , it has asymptotic level α \alpha α if the discarded parts are uncorrelated and rejects with probability tending to one if they are correlated (Example 2.5).
Testing under an insufficiency tolerance
If an analyst is willing to assume, before testing, that R ψ 2 ( X ) R ψ 2 ( Y ) ≤ B \sqrt{R_{\psi}^{2}(X)R_{\psi}^{2}(Y)} \le B R ψ 2 ( X ) R ψ 2 ( Y ) ≤ B for some B ≥ 0 B \ge0 B ≥ 0 , then ρ ψ ≤ B \rho_{\psi} \le B ρ ψ ≤ B under H 0 H_{0} H 0 by Corollary 2.4(ii). We call B B B an insufficiency tolerance, and call it valid if this bound holds. Like a sensitivity parameter, its validity cannot be verified from the data, but it can be phrased in terms of prediction accuracy.
Example 3.3 (An insufficiency tolerance). Suppose the analyst is willing to assume that the best prediction of X X X from the embedding, E [ X ∣ ψ ( Z ) ] \mathbb{E}[X \mid\psi(Z)] E [ X ∣ ψ ( Z )] , has a mean squared error (MSE) at most 10% larger than that of the best prediction from the text itself, E [ X ∣ Z ] \mathbb{E}[X \mid Z] E [ X ∣ Z ] , that is, σ ψ 2 ( X ) ≤ 1.1 σ i d 2 ( X ) \sigma_{\psi}^{2}(X) \le1.1\sigma_{\mathrm{id}}^{2}(X) σ ψ 2 ( X ) ≤ 1.1 σ id 2 ( X ) , and likewise for Y Y Y . Since R ψ 2 ( X ) = 1 − σ i d 2 ( X ) / σ ψ 2 ( X ) R_{\psi}^{2}(X)=1-\sigma_{\mathrm{id}}^{2}(X)/\sigma_{\psi}^{2}(X) R ψ 2 ( X ) = 1 − σ id 2 ( X ) / σ ψ 2 ( X ) , this bounds R ψ 2 ( X ) R_{\psi}^{2}(X) R ψ 2 ( X ) and R ψ 2 ( Y ) R_{\psi}^{2}(Y) R ψ 2 ( Y ) by B = 1 − 1 / 1.1 ≈ 0.091 B=1-1/1.1\approx0.091 B = 1 − 1/1.1 ≈ 0.091 . More generally, MSEs inflated by the factors 1 + δ X 1+\delta_{X} 1 + δ X and 1 + δ Y 1+\delta_{Y} 1 + δ Y give the tolerance B = δ X δ Y / ( ( 1 + δ X ) ( 1 + δ Y ) ) B=\sqrt{\delta_{X}\delta_{Y}/((1+\delta_{X})(1+\delta_{Y}))} B = δ X δ Y / (( 1 + δ X ) ( 1 + δ Y )) .
By Proposition 3.2 , ρ ^ ψ ± \hat{\rho}_{\psi}^{\pm} ρ ^ ψ ± is approximately N ( ρ ψ ± , v ψ 2 / n ) N(\rho_{\psi}^{\pm},v_{\psi}^{2}/n) N ( ρ ψ ± , v ψ 2 / n ) . For every r ≥ 0 r\ge0 r ≥ 0 , the probability that ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ exceeds r r r increases with ρ ψ \rho_{\psi} ρ ψ (Appendix § 6 .§ 4 ), so we can construct a robust test by computing the p p p -value at the least favourable point ρ ψ = B \rho_{\psi}=B ρ ψ = B ,
p B : = 2 − Φ ( n ( ρ ^ ψ − B ) v ^ ψ ) − Φ ( n ( ρ ^ ψ + B ) v ^ ψ ) , (3) p_{B}:=2-\Phi\left(\frac{\sqrt{n}(\hat{\rho}_{\psi}-B)}{\hat{v}_{\psi}}\right)-\Phi\left(\frac{\sqrt{n}(\hat{\rho}_{\psi}+B)}{\hat{v}_{\psi}}\right), \tag*{(3)} p B := 2 − Φ ( v ^ ψ n ( ρ ^ ψ − B ) ) − Φ ( v ^ ψ n ( ρ ^ ψ + B ) ) , (3)
the probability of exceeding ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ in absolute value at that point, with v ψ v_{\psi} v ψ estimated by v ^ ψ \hat{v}_{\psi} v ^ ψ . The robust test rejects H 0 H_{0} H 0 when p B < α p_{B}<\alpha p B < α ; at B = 0 B=0 B = 0 , it is the residual correlation test.
Proposition 3.4 (Asymptotic validity under the tolerance). Under the conditions of Proposition 3.2 and H 0 H_{0} H 0 , if B B B is a valid tolerance, then lim sup n → ∞ P ( p B < α ) ≤ α \limsup_{n\to\infty}P(p_{B}<\alpha)\le\alpha lim sup n → ∞ P ( p B < α ) ≤ α for every α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) , with equality iff ρ ψ = B \rho_{\psi}=B ρ ψ = B .
If the bias due to the embedding is treated as an unknown bias bounded by B B B , the robust test is the bias-aware test of Armstrong and Kolesár [2 , 3 ] , with the least favourable calibration used for partially identified parameters (Imbens and Manski [15 ] ; ); Stoye [34 ] ). It detects every alternative with ( 1 − R ψ 2 ( X ) ) ( 1 − R ψ 2 ( Y ) ) ρ i d > B + R ψ 2 ( X ) R ψ 2 ( Y ) \sqrt{(1-R_{\psi}^{2}(X))(1-R_{\psi}^{2}(Y))}\rho_{\mathrm{id}} > B+\sqrt{R_{\psi}^{2}(X)R_{\psi}^{2}(Y)} ( 1 − R ψ 2 ( X )) ( 1 − R ψ 2 ( Y )) ρ id > B + R ψ 2 ( X ) R ψ 2 ( Y ) , whatever λ \lambda λ (Corollary A.3 in Appendix § 6 .§ 5 ).
Inverting the robust test gives a robustness value, a term we take from Cinelli and Hazlett [9 ] : R V α RV_{\alpha} R V α , the smallest tolerance at which the robust test no longer rejects, is the tolerance at which p B = α p_{B}=\alpha p B = α (Appendix § 7 .§ 2 ).
Example 3.5 (Example 3.3, continued). Suppose the analyst observes ρ ^ ψ = 0.12 \hat{\rho}_{\psi}=0.12 ρ ^ ψ = 0.12 with standard error v ^ ψ / n = 0.02 \hat{v}_{\psi}/\sqrt{n}=0.02 v ^ ψ / n = 0.02 . The residual correlation test has p 0 = 2 ( 1 − Φ ( 6 ) ) < 10 − 8 p_0=2(1-\Phi(6))<10^{-8} p 0 = 2 ( 1 − Φ ( 6 )) < 1 0 − 8 and rejects. With B ≈ 0.091 B\approx0.091 B ≈ 0.091 , the robust test has p B = 2 − Φ ( 1.45 ) − Φ ( 10.55 ) ≈ 0.07 p_B=2-\Phi(1.45)-\Phi(10.55)\approx0.07 p B = 2 − Φ ( 1.45 ) − Φ ( 10.55 ) ≈ 0.07 and does not reject at level 0.05 0.05 0.05 ; it stops rejecting once the tolerance exceeds R V α ≈ 0.087 \mathrm{RV}_{\alpha}\approx0.087 RV α ≈ 0.087 .
Benchmarking with richer embeddings
Because Z Z Z is observed, the partial R 2 R^2 R 2 values have lower bounds that can be estimated from the data, without the assumption on the relative strength of observed and omitted variables that benchmarks for unmeasured confounding require [9 ] . For a second embedding ψ ′ \psi' ψ ′ , let R ψ → ψ ′ 2 ( X ) R^2_{\psi\to\psi'}(X) R ψ → ψ ′ 2 ( X ) be the share of the residual variance of X X X given ψ ( Z ) \psi(Z) ψ ( Z ) that ψ ′ ( Z ) \psi'(Z) ψ ′ ( Z ) explains, and call ρ ψ → ψ ′ : = R ψ → ψ ′ 2 ( X ) R ψ → ψ ′ 2 ( Y ) \rho_{\psi\to\psi'}:=\sqrt{R^2_{\psi\to\psi'}(X)R^2_{\psi\to\psi'}(Y)} ρ ψ → ψ ′ := R ψ → ψ ′ 2 ( X ) R ψ → ψ ′ 2 ( Y ) the insufficiency of ψ \psi ψ demonstrated by ψ ′ \psi' ψ ′ .
Proposition 3.6 (Benchmark lower bound). Suppose that σ ψ ( X ) , σ ψ ( Y ) > 0 \sigma_{\psi}(X),\sigma_{\psi}(Y)>0 σ ψ ( X ) , σ ψ ( Y ) > 0 . For every measurable ψ ′ \psi' ψ ′ , ρ ψ → ψ ′ ≤ R ψ → ψ ′ 2 ( X ) R ψ → ψ ′ 2 ( Y ) \rho_{\psi\to\psi'}\le\sqrt{R^2_{\psi\to\psi'}(X)R^2_{\psi\to\psi'}(Y)} ρ ψ → ψ ′ ≤ R ψ → ψ ′ 2 ( X ) R ψ → ψ ′ 2 ( Y ) , with equality if E [ X ∣ Z ] \mathbb{E}[X\mid Z] E [ X ∣ Z ] and E [ Y ∣ Z ] \mathbb{E}[Y\mid Z] E [ Y ∣ Z ] are functions of ( ψ ( Z ) , ψ ′ ( Z ) ) (\psi(Z),\psi'(Z)) ( ψ ( Z ) , ψ ′ ( Z )) .
Every valid tolerance is therefore at least ρ ψ → ψ ′ \rho_{\psi\to\psi'} ρ ψ → ψ ′ . Since the robust test with tolerance B B B rejects if and only if B < R V α B<\mathrm{RV}_{\alpha} B < RV α (Appendix § 7 .§ 2 ), a rejection with R V α ≤ ρ ψ → ψ ′ \mathrm{RV}_{\alpha}\le\rho_{\psi\to\psi'} RV α ≤ ρ ψ → ψ ′ could be explained by insufficiency that is demonstrably present, and a rejection with R V α > ρ ψ → ψ ′ \mathrm{RV}_{\alpha}>\rho_{\psi\to\psi'} RV α > ρ ψ → ψ ′ is robust to the demonstrated insufficiency. By Proposition 3.6 , accurate predictions of X X X and of Y Y Y from Z Z Z demonstrate all of the insufficiency. We can therefore take ψ ′ ( Z ) \psi'(Z) ψ ′ ( Z ) to be such predictions, known as prognostic scores [12 ] , fitted on a split of the sample that is not used for testing (Veitch et al., 2020). Because they are one-dimensional, their demonstrated insufficiency is estimated reliably at moderate n n n , unlike that of a richer embedding with hundreds of coordinates (Appendix C.§ 3 ). In practice, ρ ψ → ψ ′ \rho_{\psi\to\psi'} ρ ψ → ψ ′ is replaced by its estimate ρ ^ ψ → ψ ′ \hat{\rho}_{\psi\to\psi'} ρ ^ ψ → ψ ′ , or, for a strict version of the rule, by a lower confidence bound.
Experiments
We evaluate the sensitivity analysis in four settings of increasing realism: fully synthetic, semi-synthetic, LLM-generated, and real data. We fit conditional means by OLS when n ≤ dim ( ψ ( Z ) ) n\le\dim(\psi(Z)) n ≤ dim ( ψ ( Z )) , and by ridge regression otherwise.
Gaussian data
Design. We draw Z ∼ N ( 0 , I p ) Z\sim N(0,I_p) Z ∼ N ( 0 , I p ) with p = 20 p=20 p = 20 and set X = θ X T Z + ε X X=\theta_X^{\mathsf{T}}Z+\varepsilon_X X = θ X T Z + ε X and Y = θ Y T Z + ε Y Y=\theta_Y^{\mathsf{T}}Z+\varepsilon_Y Y = θ Y T Z + ε Y with independent standard normal noise, so that H 0 H_0 H 0 holds. Of the embeddings ψ q ( Z ) = ( Z 1 , … , Z q ) \psi_q(Z)=(Z_1,\ldots,Z_q) ψ q ( Z ) = ( Z 1 , … , Z q ) , ψ p \psi_p ψ p is sufficient and ψ 5 \psi_5 ψ 5 is not. The coefficients of the dropped coordinates set R ψ q 2 ( X ) = R ψ q 2 ( Y ) = 0.1 R^2_{\psi_q}(X)=R^2_{\psi_q}(Y)=0.1 R ψ q 2 ( X ) = R ψ q 2 ( Y ) = 0.1 , so the true insufficiency is R ψ q 2 ( X ) R ψ q 2 ( Y ) = 0.1 \sqrt{R^2_{\psi_q}(X)R^2_{\psi_q}(Y)}=0.1 R ψ q 2 ( X ) R ψ q 2 ( Y ) = 0.1 . The correlation λ \lambda λ of the discarded parts is the cosine of the angle between the entries of θ X \theta_X θ X and of θ Y \theta_Y θ Y on the dropped coordinates. We take them orthogonal (λ = 0 \lambda=0 λ = 0 ) or parallel (λ = 1 \lambda=1 λ = 1 ). We record the rejection rate at varying n n n under H 0 H_0 H 0 of the residual correlation test with the sufficient embedding and with the insufficient embedding for both λ \lambda λ , and of the robust test at λ = 1 \lambda= 1 λ = 1 with the tolerance equal to the true insufficiency and to half of it, the tolerance of an analyst who wrongly assumes λ ≤ 1 / 2 \lambda\le1/2 λ ≤ 1/2 .
Results. Figure 2 (left) shows the rejection rates. With the sufficient embedding, and with the insufficient embedding at λ = 0 \lambda= 0 λ = 0 , the residual correlation test is approximately valid for every n n n ; at λ = 1 \lambda= 1 λ = 1 its rejection rate rises to one. The robust test holds its level when the tolerance is set to the true insufficiency, but its rejection rate is inflated when the tolerance is set to only half of the true insufficiency. Figures D.1 and D.2 in Appendix D add the tightness of the bound, power, and the distribution of ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ and R V α \mathrm{RV}_{\alpha} RV α .
Figure 2. Rejection rate under H 0 H_0 H 0 against n n n in Experiment 1 (left, ψ = ψ 5 \psi= \psi_5 ψ = ψ 5 ) and Experiment 2 (right, ψ = E 1 \psi= E_1 ψ = E 1 ) for the residual correlation test (standard) and the robust test, run at λ = 1 \lambda= 1 λ = 1 , with the embeddings and tolerances named in the rows. Dashed cells are fitted by ridge regression, since n n n is below the dimension of ψ ( Z ) \psi(Z) ψ ( Z ) .
Real text with synthetic outcomes
Design. We repeat the Gaussian experiment with a real Z Z Z : 15,521 posts from the 20 Newsgroups corpus (Lang, [19 ] ), encoded by two sentence encoders from the Sentence-BERT family (Reimers and Gurevych, [26 ] ), E 1 E_1 E 1 with d = 384 d = 384 d = 384 and E 2 E_2 E 2 with d = 768 d = 768 d = 768 . We generate Gaussian X X X and Y Y Y from the embeddings of Z Z Z so that E 1 E_1 E 1 is insufficient with R E 1 2 ( X ) R E 1 2 ( Y ) = 0.109 \sqrt{R_{E_1}^2(X)R_{E_1}^2(Y)} = 0.109 R E 1 2 ( X ) R E 1 2 ( Y ) = 0.109 and a correlation λ \lambda λ of the discarded parts set by design, while the four generating features and the 1152-dimensional [ E 1 , E 2 ] [E_1, E_2] [ E 1 , E 2 ] are sufficient (Appendix C.6).
Results. Figure 2 (right) shows the rejection rates under H 0 H_0 H 0 for n n n from 500 to 10,000. They match Experiment 1: with ψ = E 1 \psi= E_1 ψ = E 1 , the residual correlation test stays close to its level at λ = 0 \lambda= 0 λ = 0 and rejects with certainty at λ = 1 \lambda= 1 λ = 1 , where ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ sits at the true insufficiency, and the robust test holds its level with the true insufficiency as its tolerance and not with half of it. The sufficient sets stay close to their level. Figures D.3 and D.4 in Appendix D report ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ and R V α \mathrm{RV}_{\alpha} RV α , and the power at n = 2000 n = 2000 n = 2000 .
Text generated by a local model with accessible states
Design. Using a language model, we generate text from real Z Z Z . We take 3000 posts Z i Z_i Z i from the corpus of § 4.2 and, in independent calls to Qwen3-1.7B (Qwen Team, [25 ] ), a 1.7-billion-parameter open model, generate a reader’s comment X ~ \tilde{X} X ~ on the post, written from a randomly assigned persona that acts as independent noise, and a newsletter summary Y ~ \tilde{Y} Y ~ of the post (prompts in Appendix § 10 ), so that H 0 H_0 H 0 holds exactly. The comment ends with a line labelling its own sentiment as positive, neutral or negative, which is removed before the comment is used. The tested variable X X X is a sentiment score of the comment, namely the cross-fitted prediction of its label from the E 1 E_1 E 1 embedding of the comment, and Y Y Y applies the same fitted direction to the embedding of the summary. We compare ψ \psi ψ equal to E 1 E_1 E 1 and to E 2 E_2 E 2 , the two encoders of § 4.2 , with the generator’s internal states. From its forward pass over the post we keep the mean of the hidden states over the prompt tokens at the last of its 28 layers. For a d d d -dimensional embedding, we take the first d d d principal components of this mean, and we compare it with E 1 E_1 E 1 and E 2 E_2 E 2 at the same dimension.
Since we have access to the generating model, we can get ground-truth values of the sensitivity parameters. For every post we draw the comment and the summary 20 more times from the same model, prompts and sampling settings, with the persona redrawn each time. By Proposition B.2 , these draws identify R ψ 2 ( X ) R_\psi^2(X) R ψ 2 ( X ) , R ψ 2 ( Y ) R_\psi^2(Y) R ψ 2 ( Y ) and λ \lambda λ for every embedding, hence the ground-truth insufficiency R ψ 2 ( X ) R ψ 2 ( Y ) \sqrt{R_\psi^2(X)R_\psi^2(Y)} R ψ 2 ( X ) R ψ 2 ( Y ) and the bias ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) |\lambda|\sqrt{R_\psi^2(X)R_\psi^2(Y)} ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) of Theorem 2.3 . Taking one draw of each text per post gives an exact null dataset; on 200 such datasets we record the rejection rates of the residual correlation test and of the robust test with the tolerance equal to the ground-truth insufficiency, to half of it, and to the ground-truth bias. We can also use the replicates to evaluate power under the alternative: within each post we pair the comment draw, with probability π \pi π , with the summary draw of the same sentiment rank, and otherwise with an independent draw. The probability π \pi π controls the conditional correlation ρ i d \rho_{\mathrm{id}} ρ id of X X X and Y Y Y given the post. Details are in Appendix C.7.
Results. Under H 0 H_0 H 0 , the residual correlation test (red in Figure 3 , left) rejects with every embedding. Against an unadjusted correlation of 0.516, the encoders leave ρ ^ ψ = 0.215 \hat{\rho}_\psi= 0.215 ρ ^ ψ = 0.215 with E 1 E_1 E 1 and 0.232 with E 2 E_2 E 2 . The generating model’s own states do not remove the bias either: at every dimension, from 64 to 768 principal components, they leave a residual correlation of the same size (Figure D.5 in Appendix D). Two explanations are consistent with this: the aggregated states are less informative than attention to every token, or the regressions do not recover E [ X ∣ ψ ( Z ) ] E[X \mid\psi(Z)] E [ X ∣ ψ ( Z )] at this n n n .
Figure 3. (Left): Experiment 3, rejection rate under H 0 H_0 H 0 over 200 null datasets drawn from the replicates, for the residual correlation test and for the robust test with the tolerance equal to half the true insufficiency, to the true bias ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) |\lambda|\sqrt{R_\psi^2(X)R_\psi^2(Y)} ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) and to the true insufficiency (B ∗ B^* B ∗ in the legend); ψ ( Z ) \psi(Z) ψ ( Z ) is 64 to 384 principal components of the generator’s mean hidden state over the prompt tokens at its last layer, E 1 E_1 E 1 or E 2 E_2 E 2 . (Middle): The same tests with ψ = E 1 \psi=E_1 ψ = E 1 against a range of alternatives. We plot a reference test (dashed) that conditions on the post through the unused draws. (Right): Reddit data application. For each pair of X X X (politeness rating, log length, politeness lexicon) and Y Y Y (signed log score, delta indicator) we plot the unconditional correlation ρ ^ 0 \hat{\rho}_0 ρ ^ 0 (diamonds), ρ ^ i d \hat{\rho}_{\mathrm{id}} ρ ^ id from the baseline, which conditions on the comment being replied to (squares), and ρ ^ ψ \hat{\rho}_\psi ρ ^ ψ from the embedded test with ψ = E 1 \psi=E_1 ψ = E 1 (circles), all with 95% intervals.
The discarded parts are correlated, with λ \lambda λ between 0.64 and 0.72 across embeddings. Figure 3 (left) shows the rejection rates under the null. Using a tolerance equal to the true bias (blue) gives a robust test that approximately holds the level α = 0.05 \alpha= 0.05 α = 0.05 . If we use the true insufficiency and assume λ = 1 \lambda= 1 λ = 1 , the robust test (green) is conservative and never rejects. With half the true insufficiency (orange) it rejects almost as often as the residual correlation test. The encoders E 1 E_1 E 1 and E 2 E_2 E 2 behave similarly to the generator’s own states. Figure 3 (middle) shows the corresponding power. Using the replicates, we plot a reference test that does not use an embedding but conditions on the post itself (dashed). The residual correlation test and the robust test with tolerance B ∗ / 2 B^*/2 B ∗ /2 reject throughout, but since they do not hold their level, their power means nothing. The robust test with the true bias as tolerance detects almost the same alternatives as the reference test, while the conservative test using the true insufficiency as tolerance only starts rejecting at the strongest alternatives. In conclusion, this experiment shows that a plain residual correlation test can be biased by an insufficient embedding, while the robust test with correct tolerance approximately holds its level and has power, but underestimating the tolerance leads to a biased test and overestimating it to a loss of power.
Application: style and success of replies in online discussions
Design. We return to the conceptual example of § 1 with the ChangeMyView corpus [35 , 7 ] : 3,051 posts with their discussion threads, the Reddit score of every comment, and the ‘deltas’ that the original poster awards to comments that changed their view. Every observation is a reply to a comment, and Z Z Z is the comment being replied to, with 49,050 replies to 18,743 comments (Appendix C.8). X X X is either the politeness of the reply, rated by a model on a five-point scale, or its log length. Y Y Y is the signed log score of the reply or its delta indicator. Because several replies share a Z Z Z , we can construct a baseline test that conditions on Z Z Z without a representation of it: under H 0 H_0 H 0 , the values of X X X among the replies to a comment carry no information about their values of Y Y Y , so the covariance of X X X and Y Y Y after demeaning within comments estimates E [ Cov ( X , Y ∣ Z ) ] \mathbb{E}[\operatorname{Cov}(X,Y \mid Z)] E [ Cov ( X , Y ∣ Z )] , and permuting X X X among the replies to a comment gives an exact test under exchangeability. We compare the baseline to a test that conditions on an embedding E 1 ( Z ) E_1(Z) E 1 ( Z ) of the comment, and also plot the unconditional correlation ρ ^ 0 \hat{\rho}_0 ρ ^ 0 .
Results. The embedded ρ ^ ψ \hat{\rho}_\psi ρ ^ ψ stays close to the unconditional value, because the embeddings do not fully recover the effect of the comment (Figure 3 , right, and Figure D.8 in Appendix D). The replies to a comment are replicates in the sense of Proposition B.2 , so we can recover the sensitivity parameters from variance components: the comment-level components of X X X and Y Y Y are correlated in the politeness and length pairs, with λ ^ \hat{\lambda} λ ^ between − 0.32 -0.32 − 0.32 and 0.23.
Discussion
We have highlighted the bias arising in CI tests from using embeddings of the conditioning variable. The bias of such a test is described by both the insufficiency of the embedding and the correlation of the discarded parts. We propose a robust test that controls the level if the insufficiency tolerance is correctly specified.
Our results are largely negative about testing conditional independence given an embedding. The bias bound is worst-case in λ \lambda λ , and the tolerance is in general not identified from the data. In our experiments, richer embeddings demonstrated almost none of the insufficiency, in part because the estimated benchmark loses the excess estimation error of the richer regression (Appendix C.§ 3 ). Even the generator’s own states were insufficient, and only replicates identified the sensitivity parameters. Without a tolerance justified by domain knowledge, a rejection is therefore hard to distinguish from an artifact of the embedding. Future work could investigate how to adapt the embeddings to retain more information about the tested variables, to ensure the validity of the tests, or how to construct better benchmarks for the insufficiency.
AI use statement
Generative AI tools were used for drafting and editing text and proofs and for writing and testing the experiment code. In Experiment 3 (§ 4.3 ), we used a language model to generate the synthetic texts that constitute the data; we used a decision model in the application (§ 4.4 ) to rate the politeness of the replies, and a language model to rate a subset of the replies as a check (Appendix C.8); the prompts are reported in Appendix § 10 and Appendix C.8. We have reviewed all AI-assisted work, and all mathematical statements and proofs were checked by the authors, who take responsibility for the content of this work.
Acknowledgments and Disclosure of Funding
Nikolaj Thams is supported by the Novo Nordisk Foundation (grant NNF26OC0114284). The regenerated texts of Experiment 3 were computed on the Gefion AI supercomputer, operated by the Danish Centre for AI Innovation (DCAI).
Proofs
In this section, write V : = ψ ( Z ) V := \psi(Z) V := ψ ( Z ) , which takes values in V \mathcal{V} V .
Proofs for Section 2
Since ψ \psi ψ is measurable, σ ( V ) ⊆ σ ( Z ) \sigma(V) \subseteq\sigma(Z) σ ( V ) ⊆ σ ( Z ) , and F ψ \mathcal{F}_{\psi} F ψ consists of the f ∈ F f \in\mathcal{F} f ∈ F for which f ( X , Z ) f(X,Z) f ( X , Z ) is a function of ( X , V ) (X,V) ( X , V ) . If σ ψ ( f ) = 0 \sigma_{\psi}(f)=0 σ ψ ( f ) = 0 , then f = E [ f ∣ V ] f=\mathbb{E}[f\mid V] f = E [ f ∣ V ] almost surely, so E [ Cov ( f , g ∣ V ) ] = 0 \mathbb{E}[\operatorname{Cov}(f,g\mid V)]=0 E [ Cov ( f , g ∣ V )] = 0 for every g g g and Δ ψ ( f ) = 0 \Delta_{\psi}(f)=0 Δ ψ ( f ) = 0 . The conventions ρ ψ ( f , g ) : = 0 \rho_{\psi}(f,g):=0 ρ ψ ( f , g ) := 0 and R ψ 2 ( f ) : = 0 R_{\psi}^{2}(f):=0 R ψ 2 ( f ) := 0 thus replace 0 / 0 0/0 0/0 by 0 0 0 , and every pair satisfies E [ Cov ( f , g ∣ V ) ] = 0 \mathbb{E}[\operatorname{Cov}(f,g\mid V)]=0 E [ Cov ( f , g ∣ V )] = 0 whenever ρ ψ ( f , g ) = 0 \rho_{\psi}(f,g)=0 ρ ψ ( f , g ) = 0 .
Proof of the claims in Example 2.2. (a) Here F ψ \mathcal{F}_{\psi} F ψ and G ψ \mathcal{G}_{\psi} G ψ consist of all f ∈ L 2 ( P X , Z ) f\in L^{2}(P_{X,Z}) f ∈ L 2 ( P X , Z ) for which f ( X , Z ) f(X,Z) f ( X , Z ) is a function of ( X , V ) (X,V) ( X , V ) and all g ∈ L 2 ( P Y , Z ) g\in L^{2}(P_{Y,Z}) g ∈ L 2 ( P Y , Z ) for which g ( Y , Z ) g(Y,Z) g ( Y , Z ) is a function of ( Y , V ) (Y,V) ( Y , V ) . If X ⊥ ⊥ Y ∣ V X\perp\!\!\perp Y\mid V X ⊥ ⊥ Y ∣ V , then ( X , V ) ⊥ ⊥ ( Y , V ) ∣ V (X,V)\perp\!\!\perp(Y,V)\mid V ( X , V ) ⊥ ⊥ ( Y , V ) ∣ V , so E [ f g ∣ V ] = E [ f ∣ V ] E [ g ∣ V ] \mathbb{E}[fg\mid V]=\mathbb{E}[f\mid V]\mathbb{E}[g\mid V] E [ f g ∣ V ] = E [ f ∣ V ] E [ g ∣ V ] for all f ∈ F ψ f\in\mathcal{F}_{\psi} f ∈ F ψ and g ∈ G ψ g\in\mathcal{G}_{\psi} g ∈ G ψ , every ρ ψ ( f , g ) \rho_{\psi}(f,g) ρ ψ ( f , g ) is zero, and so is the supremum. Conversely, if ρ ψ ( F , G ) = 0 \rho_{\psi}(\mathcal{F},\mathcal{G})=0 ρ ψ ( F , G ) = 0 , then every ρ ψ ( f , g ) \rho_{\psi}(f,g) ρ ψ ( f , g ) is zero, so E [ Cov ( f , g ∣ V ) ] = 0 \mathbb{E}[\operatorname{Cov}(f,g\mid V)]=0 E [ Cov ( f , g ∣ V )] = 0 for all f ∈ F ψ f\in\mathcal{F}_{\psi} f ∈ F ψ and g ∈ G ψ g\in\mathcal{G}_{\psi} g ∈ G ψ . For measurable sets A A A , B B B , and C C C , take f = 1 A ( X ) f=\mathbf{1}_{A}(X) f = 1 A ( X ) and g = 1 B ( Y ) 1 C ( V ) g=\mathbf{1}_{B}(Y)\mathbf{1}_{C}(V) g = 1 B ( Y ) 1 C ( V ) . Then 0 = E [ Cov ( f , g ∣ V ) ] = E [ 1 C ( V ) Cov ( 1 A ( X ) , 1 B ( Y ) ∣ V ) ] 0=\mathbb{E}[\operatorname{Cov}(f,g\mid V)]=\mathbb{E}[\mathbf{1}_{C}(V)\operatorname{Cov}(\mathbf{1}_{A}(X),\mathbf{1}_{B}(Y)\mid V)] 0 = E [ Cov ( f , g ∣ V )] = E [ 1 C ( V ) Cov ( 1 A ( X ) , 1 B ( Y ) ∣ V )] for all C C C , so Cov ( 1 A ( X ) , 1 B ( Y ) ∣ V ) = 0 \operatorname{Cov}(\mathbf{1}_{A}(X),\mathbf{1}_{B}(Y)\mid V)=0 Cov ( 1 A ( X ) , 1 B ( Y ) ∣ V ) = 0 almost surely, that is, P ( X ∈ A , Y ∈ B ∣ V ) = P ( X ∈ A ∣ V ) P ( Y ∈ B ∣ V ) P(X\in A,Y\in B\mid V)=P(X\in A\mid V)P(Y\in B\mid V) P ( X ∈ A , Y ∈ B ∣ V ) = P ( X ∈ A ∣ V ) P ( Y ∈ B ∣ V ) almost surely for all A A A and B B B . This is X ⊥ ⊥ Y ∣ V X\perp\!\!\perp Y\mid V X ⊥ ⊥ Y ∣ V .
(b) Let f ∈ F ψ f\in\mathcal{F}_{\psi} f ∈ F ψ . Since f − E [ f ∣ V ] f-\mathbb{E}[f\mid V] f − E [ f ∣ V ] is a function of ( X , V ) (X,V) ( X , V ) , we have by the tower property and the Cauchy–Schwarz inequality that
E [ Cov ( f , Y ∣ V ) ] 2 = E [ ( f − E [ f ∣ V ] ) ( Y − E [ Y ∣ V ] ) ] 2 = E [ ( f − E [ f ∣ V ] ) ( E [ Y ∣ X , V ] − E [ Y ∣ V ] ) ] 2 ≤ σ ψ 2 ( f ) E [ ( E [ Y ∣ X , V ] − E [ Y ∣ V ] ) 2 ] . \begin{aligned}
\mathbb{E}[\operatorname{Cov}(f,Y\mid V)]^{2}
&=\mathbb{E}[(f-\mathbb{E}[f\mid V])(Y-\mathbb{E}[Y\mid V])]^{2}\\
&=\mathbb{E}[(f-\mathbb{E}[f\mid V])(\mathbb{E}[Y\mid X,V]-\mathbb{E}[Y\mid V])]^{2}\\
&\leq\sigma_{\psi}^{2}(f)\mathbb{E}[(\mathbb{E}[Y\mid X,V]-\mathbb{E}[Y\mid V])^{2}].
\end{aligned} E [ Cov ( f , Y ∣ V ) ] 2 = E [( f − E [ f ∣ V ]) ( Y − E [ Y ∣ V ]) ] 2 = E [( f − E [ f ∣ V ]) ( E [ Y ∣ X , V ] − E [ Y ∣ V ]) ] 2 ≤ σ ψ 2 ( f ) E [( E [ Y ∣ X , V ] − E [ Y ∣ V ] ) 2 ] .
Therefore, for any f ∈ F ψ f\in\mathcal{F}_{\psi} f ∈ F ψ , we have
ρ ψ ( f , ( y , z ) ↦ y ) ≤ E [ ( E [ Y ∣ X , V ] − E [ Y ∣ V ] ) 2 ] 1 / 2 σ ψ ( Y ) . \rho_{\psi}(f,(y,z)\mapsto y)\leq\frac{\mathbb{E}\left[(\mathbb{E}[Y\mid X,V]-\mathbb{E}[Y\mid V])^{2}\right]^{1/2}}{\sigma_{\psi}(Y)}. ρ ψ ( f , ( y , z ) ↦ y ) ≤ σ ψ ( Y ) E [ ( E [ Y ∣ X , V ] − E [ Y ∣ V ] ) 2 ] 1/2 .
The function f ( x , z ) = E [ Y ∣ X = x , V = ψ ( z ) ] f(x,z)=\mathbb{E}[Y\mid X=x,V=\psi(z)] f ( x , z ) = E [ Y ∣ X = x , V = ψ ( z )] is a square-integrable function of ( x , ψ ( z ) ) (x,\psi(z)) ( x , ψ ( z )) , so it lies in F ψ \mathcal{F}_{\psi} F ψ , and it attains the upper bound, which is therefore the value of ρ ψ ( F , G ) \rho_{\psi}(\mathcal{F},\mathcal{G}) ρ ψ ( F , G ) . From this, we see that ρ ψ ( F , G ) = 0 \rho_{\psi}(\mathcal{F},\mathcal{G})=0 ρ ψ ( F , G ) = 0 if and only if E [ Y ∣ X , V ] = E [ Y ∣ V ] \mathbb{E}[Y\mid X,V]=\mathbb{E}[Y\mid V] E [ Y ∣ X , V ] = E [ Y ∣ V ] . The argument assumes σ ψ ( Y ) > 0 \sigma_{\psi}(Y)>0 σ ψ ( Y ) > 0 . If σ ψ ( Y ) = 0 \sigma_{\psi}(Y)=0 σ ψ ( Y ) = 0 , then Y = E [ Y ∣ V ] Y=\mathbb{E}[Y\mid V] Y = E [ Y ∣ V ] , so E [ Y ∣ X , V ] = E [ Y ∣ V ] \mathbb{E}[Y\mid X,V]=\mathbb{E}[Y\mid V] E [ Y ∣ X , V ] = E [ Y ∣ V ] , and the measure is zero by convention.
(c) The classes are singletons, and their elements do not depend on z z z , so F ψ = F \mathcal{F}_{\psi}=\mathcal{F} F ψ = F and G ψ = G \mathcal{G}_{\psi}=\mathcal{G} G ψ = G .
Proof of Theorem 2.3. If σ ψ ( f ) = 0 \sigma_{\psi}(f)=0 σ ψ ( f ) = 0 or σ ψ ( g ) = 0 \sigma_{\psi}(g)=0 σ ψ ( g ) = 0 , both sides of the bound are zero by convention, so let σ ψ ( f ) , σ ψ ( g ) > 0 \sigma_{\psi}(f),\sigma_{\psi}(g)>0 σ ψ ( f ) , σ ψ ( g ) > 0 . We have f − E [ f ∣ V ] = ( f − E [ f ∣ Z ] ) + Δ ψ ( f ) f-\mathbb{E}[f\mid V]=(f-\mathbb{E}[f\mid Z])+\Delta_{\psi}(f) f − E [ f ∣ V ] = ( f − E [ f ∣ Z ]) + Δ ψ ( f ) , and likewise for g g g . Since f − E [ f ∣ Z ] f-\mathbb{E}[f\mid Z] f − E [ f ∣ Z ] has conditional mean zero given Z Z Z and Δ ψ ( g ) \Delta_{\psi}(g) Δ ψ ( g ) is a function of Z Z Z , the cross terms have expectation zero, so
E [ Cov ( f , g ∣ V ) ] = E [ Cov ( f , g ∣ Z ) ] + E [ Δ ψ ( f ) Δ ψ ( g ) ] . (4) \mathbb{E}[\operatorname{Cov}(f,g\mid V)]=\mathbb{E}[\operatorname{Cov}(f,g\mid Z)]+\mathbb{E}[\Delta_{\psi}(f)\Delta_{\psi}(g)]. \tag*{(4)} E [ Cov ( f , g ∣ V )] = E [ Cov ( f , g ∣ Z )] + E [ Δ ψ ( f ) Δ ψ ( g )] . (4)
Since the discarded parts have mean zero,
E [ Δ ψ ( f ) Δ ψ ( g ) ] = λ ψ ( f , g ) R ψ 2 ( f ) R ψ 2 ( g ) σ ψ ( f ) σ ψ ( g ) . \mathbb{E}[\Delta_\psi(f)\Delta_\psi(g)] = \lambda_\psi(f,g)\sqrt{R_\psi^2(f)R_\psi^2(g)}\sigma_\psi(f)\sigma_\psi(g). E [ Δ ψ ( f ) Δ ψ ( g )] = λ ψ ( f , g ) R ψ 2 ( f ) R ψ 2 ( g ) σ ψ ( f ) σ ψ ( g ) .
Dividing by σ ψ ( f ) σ ψ ( g ) \sigma_\psi(f)\sigma_\psi(g) σ ψ ( f ) σ ψ ( g ) and using σ i d 2 ( f ) = ( 1 − R ψ 2 ( f ) ) σ ψ 2 ( f ) \sigma_{\mathrm{id}}^2(f)=(1-R_\psi^2(f))\sigma_\psi^2(f) σ id 2 ( f ) = ( 1 − R ψ 2 ( f )) σ ψ 2 ( f ) , and likewise for g g g , we have
E [ Cov ( f , g ∣ V ) ] σ ψ ( f ) σ ψ ( g ) = ( 1 − R ψ 2 ( f ) ) ( 1 − R ψ 2 ( g ) ) E [ Cov ( f , g ∣ Z ) ] σ i d ( f ) σ i d ( g ) + λ ψ ( f , g ) R ψ 2 ( f ) R ψ 2 ( g ) . \frac{\mathbb{E}[\operatorname{Cov}(f,g\mid V)]}{\sigma_\psi(f)\sigma_\psi(g)}
=
\sqrt{(1-R_\psi^2(f))(1-R_\psi^2(g))}
\frac{\mathbb{E}[\operatorname{Cov}(f,g\mid Z)]}{\sigma_{\mathrm{id}}(f)\sigma_{\mathrm{id}}(g)}
+\lambda_\psi(f,g)\sqrt{R_\psi^2(f)R_\psi^2(g)}. σ ψ ( f ) σ ψ ( g ) E [ Cov ( f , g ∣ V )] = ( 1 − R ψ 2 ( f )) ( 1 − R ψ 2 ( g )) σ id ( f ) σ id ( g ) E [ Cov ( f , g ∣ Z )] + λ ψ ( f , g ) R ψ 2 ( f ) R ψ 2 ( g ) .
where the second fraction is read as zero if σ i d ( f ) σ i d ( g ) = 0 \sigma_{\mathrm{id}}(f)\sigma_{\mathrm{id}}(g)=0 σ id ( f ) σ id ( g ) = 0 , in which case E [ Cov ( f , g ∣ Z ) ] = 0 \mathbb{E}[\operatorname{Cov}(f,g\mid Z)]=0 E [ Cov ( f , g ∣ Z )] = 0 . The two fractions have absolute values ρ ψ ( f , g ) \rho_\psi(f,g) ρ ψ ( f , g ) and ρ i d ( f , g ) \rho_{\mathrm{id}}(f,g) ρ id ( f , g ) , so the reverse triangle inequality gives the bound. Under H 0 H_0 H 0 , E [ Cov ( f , g ∣ Z ) ] = 0 \mathbb{E}[\operatorname{Cov}(f,g\mid Z)]=0 E [ Cov ( f , g ∣ Z )] = 0 , so ρ ψ ( f , g ) = ∣ λ ψ ( f , g ) ∣ R ψ 2 ( f ) R ψ 2 ( g ) \rho_\psi(f,g)=|\lambda_\psi(f,g)|\sqrt{R_\psi^2(f)R_\psi^2(g)} ρ ψ ( f , g ) = ∣ λ ψ ( f , g ) ∣ R ψ 2 ( f ) R ψ 2 ( g ) .
Proof of Corollary 2.4. If F ψ F_\psi F ψ or G ψ G_\psi G ψ is empty, all quantities are zero, so let both be nonempty. (i) Let f ∈ F ψ f\in F_\psi f ∈ F ψ and g ∈ G ψ g\in G_\psi g ∈ G ψ . Since the factor multiplying ρ i d ( f , g ) \rho_{\mathrm{id}}(f,g) ρ id ( f , g ) in Theorem 2.3 is at most one, we have
ρ ψ ( f , g ) ≤ ρ i d ( f , g ) + ∣ λ ψ ( f , g ) ∣ R ψ 2 ( f ) R ψ 2 ( g ) ≤ ρ i d ( F , G ) + R ψ 2 ( F ) R ψ 2 ( G ) . \rho_\psi(f,g)\leq\rho_{\mathrm{id}}(f,g)+|\lambda_\psi(f,g)|\sqrt{R_\psi^2(f)R_\psi^2(g)}
\leq\rho_{\mathrm{id}}(\mathcal{F},\mathcal{G})+\sqrt{R_\psi^2(\mathcal{F})R_\psi^2(\mathcal{G})}. ρ ψ ( f , g ) ≤ ρ id ( f , g ) + ∣ λ ψ ( f , g ) ∣ R ψ 2 ( f ) R ψ 2 ( g ) ≤ ρ id ( F , G ) + R ψ 2 ( F ) R ψ 2 ( G ) .
where the second inequality uses ∣ λ ψ ( f , g ) ∣ ≤ 1 |\lambda_\psi(f,g)|\leq1 ∣ λ ψ ( f , g ) ∣ ≤ 1 , R ψ 2 ( f ) ≤ R ψ 2 ( F ) R_\psi^2(f)\leq R_\psi^2(\mathcal{F}) R ψ 2 ( f ) ≤ R ψ 2 ( F ) , R ψ 2 ( g ) ≤ R ψ 2 ( G ) R_\psi^2(g)\leq R_\psi^2(\mathcal{G}) R ψ 2 ( g ) ≤ R ψ 2 ( G ) , and that ( f , g ) ∈ F × G (f,g)\in\mathcal{F}\times\mathcal{G} ( f , g ) ∈ F × G , because F ψ ⊆ F F_\psi\subseteq\mathcal{F} F ψ ⊆ F and G ψ ⊆ G G_\psi\subseteq\mathcal{G} G ψ ⊆ G . Taking the supremum over f f f and g g g gives (i).
(ii) Under H 0 H_0 H 0 , Theorem 2.3 gives ρ ψ ( f , g ) = ∣ λ ψ ( f , g ) ∣ R ψ 2 ( f ) R ψ 2 ( g ) \rho_\psi(f,g)=|\lambda_\psi(f,g)|\sqrt{R_\psi^2(f)R_\psi^2(g)} ρ ψ ( f , g ) = ∣ λ ψ ( f , g ) ∣ R ψ 2 ( f ) R ψ 2 ( g ) for all f ∈ F ψ f\in F_\psi f ∈ F ψ and g ∈ G ψ g\in G_\psi g ∈ G ψ , and taking the supremum gives the equality in (ii). The supremum is zero if and only if every term is zero. If R ψ 2 ( f ) = 0 R_\psi^2(f)=0 R ψ 2 ( f ) = 0 or R ψ 2 ( g ) = 0 R_\psi^2(g)=0 R ψ 2 ( g ) = 0 , the corresponding discarded part vanishes, and λ ψ ( f , g ) = 0 \lambda_\psi(f,g)=0 λ ψ ( f , g ) = 0 by convention. Hence every term is zero if and only if λ ψ ( f , g ) = 0 \lambda_\psi(f,g)=0 λ ψ ( f , g ) = 0 for all f f f and g g g .
Lemma A.1 (Zero partial R 2 R^2 R 2 ). (i) R ψ 2 ( L 2 ( P X , Z ) ) = 0 R_\psi^2(L^2(P_{X,Z}))=0 R ψ 2 ( L 2 ( P X , Z )) = 0 if and only if X ⊥ ⊥ Z ∣ ψ ( Z ) X\perp\!\!\!\perp Z\mid\psi(Z) X ⊥ ⊥ Z ∣ ψ ( Z ) .
(ii) For real-valued, square-integrable X X X , R ψ 2 ( { ( x , z ) ↦ x } ) = 0 R_\psi^2(\{(x,z)\mapsto x\})=0 R ψ 2 ({( x , z ) ↦ x }) = 0 if and only if E [ X ∣ Z ] = E [ X ∣ ψ ( Z ) ] \mathbb{E}[X\mid Z]=\mathbb{E}[X\mid\psi(Z)] E [ X ∣ Z ] = E [ X ∣ ψ ( Z )] .
Proof. For f ∈ F ψ f\in F_\psi f ∈ F ψ , R ψ 2 ( f ) = 0 R_\psi^2(f)=0 R ψ 2 ( f ) = 0 if and only if Δ ψ ( f ) = 0 \Delta_\psi(f)=0 Δ ψ ( f ) = 0 , that is, E [ f ∣ Z ] = E [ f ∣ V ] \mathbb{E}[f\mid Z]=\mathbb{E}[f\mid V] E [ f ∣ Z ] = E [ f ∣ V ] ; this holds by definition if σ ψ ( f ) > 0 \sigma_\psi(f)>0 σ ψ ( f ) > 0 and by convention otherwise. (i) For F = L 2 ( P X , Z ) \mathcal{F}=L^2(P_{X,Z}) F = L 2 ( P X , Z ) , F ψ F_\psi F ψ consists of the f ∈ L 2 ( P X , Z ) f\in L^2(P_{X,Z}) f ∈ L 2 ( P X , Z ) for which f ( X , Z ) f(X,Z) f ( X , Z ) is a function of ( X , V ) (X,V) ( X , V ) . If X ⊥ ⊥ Z ∣ V X\perp\!\!\!\perp Z\mid V X ⊥ ⊥ Z ∣ V , then ( X , V ) ⊥ ⊥ Z ∣ V (X,V)\perp\!\!\!\perp Z\mid V ( X , V ) ⊥ ⊥ Z ∣ V because V V V is a function of Z Z Z , so E [ f ∣ Z ] = E [ f ∣ V ] \mathbb{E}[f\mid Z]=\mathbb{E}[f\mid V] E [ f ∣ Z ] = E [ f ∣ V ] for every bounded f ∈ F ψ f\in F_\psi f ∈ F ψ , and by truncation for every square-integrable one. Conversely, if R ψ 2 ( F ) = 0 R_\psi^2(\mathcal{F})=0 R ψ 2 ( F ) = 0 , taking f = 1 A ( X ) f=1_A(X) f = 1 A ( X ) gives P ( X ∈ A ∣ Z ) = P ( X ∈ A ∣ V ) P(X\in A\mid Z)=P(X\in A\mid V) P ( X ∈ A ∣ Z ) = P ( X ∈ A ∣ V ) for every measurable A A A , which is X ⊥ ⊥ Z ∣ V X\perp\!\!\!\perp Z\mid V X ⊥ ⊥ Z ∣ V . (ii) For F = { ( x , z ) ↦ x } \mathcal{F}=\{(x,z)\mapsto x\} F = {( x , z ) ↦ x } , the condition is E [ X ∣ Z ] = E [ X ∣ V ] \mathbb{E}[X\mid Z]=\mathbb{E}[X\mid V] E [ X ∣ Z ] = E [ X ∣ V ] .
Computations for Example 2.5. Given Z Z Z , X X X and Y Y Y are independent with means Z 1 + a Z 2 Z_1+aZ_2 Z 1 + a Z 2 and Z 1 + b ( λ Z 2 + 1 − λ 2 Z 3 ) Z_1+b(\lambda Z_2+\sqrt{1-\lambda^2}Z_3) Z 1 + b ( λ Z 2 + 1 − λ 2 Z 3 ) and common variance Z 4 2 Z_4^2 Z 4 2 , so H 0 H_0 H 0 holds, while given Z 1 Z_1 Z 1 both have mean Z 1 Z_1 Z 1 . Hence Δ ψ ( X ) = a Z 2 \Delta_\psi(X)=aZ_2 Δ ψ ( X ) = a Z 2 , Δ ψ ( Y ) = b ( λ Z 2 + 1 − λ 2 Z 3 ) \Delta_\psi(Y)=b(\lambda Z_2+\sqrt{1-\lambda^2}Z_3) Δ ψ ( Y ) = b ( λ Z 2 + 1 − λ 2 Z 3 ) , σ ψ 2 ( X ) = a 2 + 1 \sigma_\psi^2(X)=a^2+1 σ ψ 2 ( X ) = a 2 + 1 , and R ψ 2 ( X ) = a 2 / ( 1 + a 2 ) R_\psi^2(X)=a^2/(1+a^2) R ψ 2 ( X ) = a 2 / ( 1 + a 2 ) , and likewise for Y Y Y . For a , b > 0 a,b>0 a , b > 0 , the discarded parts have correlation λ \lambda λ , and Theorem 2.3 gives the measure in Example 2.2(c) under H 0 H_0 H 0 . For the second moments, write X ~ : = X − Z 1 = a Z 2 + Z 4 ε X \widetilde{X} := X-Z_1 = aZ_2+Z_4\varepsilon_X X := X − Z 1 = a Z 2 + Z 4 ε X and Y ~ : = Y − Z 1 = b ( λ Z 2 + 1 − λ 2 Z 3 ) + Z 4 ε Y \widetilde{Y} := Y-Z_1 = b(\lambda Z_2+\sqrt{1-\lambda^2}Z_3)+Z_4\varepsilon_Y Y := Y − Z 1 = b ( λ Z 2 + 1 − λ 2 Z 3 ) + Z 4 ε Y , which are independent of Z 1 Z_1 Z 1 . Expanding X ~ 2 Y ~ 2 \widetilde{X}^2\widetilde{Y}^2 X 2 Y 2 , every term with a single factor ε X \varepsilon_X ε X or ε Y \varepsilon_Y ε Y has mean zero, so
E [ X ~ 2 Y ~ 2 ] = a 2 b 2 E [ Z 2 2 ( λ Z 2 + 1 − λ 2 Z 3 ) 2 ] + a 2 + b 2 + E [ Z 4 4 ] = a 2 b 2 ( 1 + 2 λ 2 ) + a 2 + b 2 + 3. \mathbb{E}[\widetilde{X}^2\widetilde{Y}^2] = a^2b^2\mathbb{E}\left[Z_2^2(\lambda Z_2+\sqrt{1-\lambda^2}Z_3)^2\right]+a^2+b^2+\mathbb{E}[Z_4^4]
= a^2b^2(1+2\lambda^2)+a^2+b^2+3. E [ X 2 Y 2 ] = a 2 b 2 E [ Z 2 2 ( λ Z 2 + 1 − λ 2 Z 3 ) 2 ] + a 2 + b 2 + E [ Z 4 4 ] = a 2 b 2 ( 1 + 2 λ 2 ) + a 2 + b 2 + 3.
while E [ X ~ 2 ] E [ Y ~ 2 ] = ( a 2 + 1 ) ( b 2 + 1 ) \mathbb{E}[\widetilde{X}^2]\mathbb{E}[\widetilde{Y}^2]=(a^2+1)(b^2+1) E [ X 2 ] E [ Y 2 ] = ( a 2 + 1 ) ( b 2 + 1 ) . Hence Cov ( ( X − Z 1 ) 2 , ( Y − Z 1 ) 2 ∣ Z 1 ) = Cov ( X ~ 2 , Y ~ 2 ) = 2 ( 1 + a 2 b 2 λ 2 ) \operatorname{Cov}((X-Z_1)^2,(Y-Z_1)^2\mid Z_1)=\operatorname{Cov}(\widetilde{X}^2,\widetilde{Y}^2)=2(1+a^2b^2\lambda^2) Cov (( X − Z 1 ) 2 , ( Y − Z 1 ) 2 ∣ Z 1 ) = Cov ( X 2 , Y 2 ) = 2 ( 1 + a 2 b 2 λ 2 ) . Thus f ( x , z ) = ( x − z 1 ) 2 f(x,z)=(x-z_1)^2 f ( x , z ) = ( x − z 1 ) 2 and g ( y , z ) = ( y − z 1 ) 2 g(y,z)=(y-z_1)^2 g ( y , z ) = ( y − z 1 ) 2 , which are functions of ( x , ψ ( z ) ) (x,\psi(z)) ( x , ψ ( z )) and of ( y , ψ ( z ) ) (y,\psi(z)) ( y , ψ ( z )) , have ρ ψ ( f , g ) > 0 \rho_\psi(f,g)>0 ρ ψ ( f , g ) > 0 , and H 0 ψ H_0^\psi H 0 ψ fails by Example 2.2(a).
Coarsening under alternatives
For f ∈ F ψ f\in\mathcal{F}_\psi f ∈ F ψ and g ∈ G ψ g\in\mathcal{G}_\psi g ∈ G ψ , the law of total covariance gives
Cov ( f , g ∣ V ) = E [ Cov ( f , g ∣ Z ) ∣ V ] + E [ Δ ψ ( f ) Δ ψ ( g ) ∣ V ] , (5) \operatorname{Cov}(f,g\mid V)=\mathbb{E}\left[\operatorname{Cov}(f,g\mid Z)\mid V\right]+\mathbb{E}\left[\Delta_\psi(f)\Delta_\psi(g)\mid V\right], \tag*{(5)} Cov ( f , g ∣ V ) = E [ Cov ( f , g ∣ Z ) ∣ V ] + E [ Δ ψ ( f ) Δ ψ ( g ) ∣ V ] , (5)
since E [ f ∣ Z ] − E [ f ∣ V ] = Δ ψ ( f ) \mathbb{E}[f\mid Z]-\mathbb{E}[f\mid V]=\Delta_\psi(f) E [ f ∣ Z ] − E [ f ∣ V ] = Δ ψ ( f ) has conditional mean zero given V V V . The second term is created by the discarded information, and the first is the dependence given Z Z Z , averaged over the values of Z Z Z that ψ \psi ψ maps to the same point. For classes of functions of x x x and of y y y alone, such as those of Example 2.2(c), only the overall average of this dependence enters the measure, and coarsening preserves it. Classes whose transformations depend on z z z weight the dependence given Z Z Z . After coarsening, they can only weight its averages over the merged values, and they lose dependence that changes sign within them.
Example A.2 (An embedding that misses an effect modifier). Let Z = ( Z 1 , Z 2 ) Z=(Z_1,Z_2) Z = ( Z 1 , Z 2 ) have independent coordinates, Z 1 Z_1 Z 1 standard normal and Z 2 Z_2 Z 2 uniform on { − 1 , 1 } \{-1,1\} { − 1 , 1 } , let ψ ( Z ) = Z 1 \psi(Z)=Z_1 ψ ( Z ) = Z 1 , and let
X = Z 1 + ε X , Y = Z 1 + Z 2 ε X + ε Y . X=Z_1+\varepsilon_X,\qquad Y=Z_1+Z_2\varepsilon_X+\varepsilon_Y. X = Z 1 + ε X , Y = Z 1 + Z 2 ε X + ε Y .
with independent standard normal noise. Given Z Z Z , the residual of X X X enters Y Y Y with slope Z 2 Z_2 Z 2 , so Cov ( X , Y ∣ Z ) = Z 2 \operatorname{Cov}(X,Y\mid Z)=Z_2 Cov ( X , Y ∣ Z ) = Z 2 changes sign with Z 2 Z_2 Z 2 . The measure of Example 2.2(c) averages it out and is zero, whereas the measure of Example 2.2(b) is 1 / 2 1/\sqrt{2} 1/ 2 , attained by f ( x , z ) = z 2 ( x − z 1 ) f(x,z)=z_2(x-z_1) f ( x , z ) = z 2 ( x − z 1 ) . Given ψ ( Z ) \psi(Z) ψ ( Z ) , the slope averages to zero, so E [ Y ∣ X , ψ ( Z ) ] = E [ Y ∣ ψ ( Z ) ] \mathbb{E}[Y\mid X,\psi(Z)]=\mathbb{E}[Y\mid\psi(Z)] E [ Y ∣ X , ψ ( Z )] = E [ Y ∣ ψ ( Z )] and both measures vanish, although H 0 ψ H_0^\psi H 0 ψ fails. For the classes of (b), R ψ 2 ( F ) = R ψ 2 ( G ) = 0 R_\psi^2(\mathcal{F})=R_\psi^2(\mathcal{G})=0 R ψ 2 ( F ) = R ψ 2 ( G ) = 0 : the measure of (b) loses the alternative only because ψ \psi ψ merges the values of Z 2 Z_2 Z 2 that reverse the dependence, whereas the measure of (c) had nothing to lose.
Computations for Example A.2. Given Z Z Z , the residuals are ε X \varepsilon_X ε X and Z 2 ε X + ε Y Z_2\varepsilon_X+\varepsilon_Y Z 2 ε X + ε Y , with covariance Z 2 Z_2 Z 2 and variances 1 1 1 and 2 2 2 , so the measure of Example 2.2(c) is ∣ E [ Z 2 ] ∣ / 2 = 0 |\mathbb{E}[Z_2]|/\sqrt{2}=0 ∣ E [ Z 2 ] ∣/ 2 = 0 . For f ∈ L 2 ( P X , Z ) f\in L^2(P_{X,Z}) f ∈ L 2 ( P X , Z ) , E [ Cov ( f , Y ∣ Z ) ] = E [ ( f − E [ f ∣ Z ] ) Z 2 ε X ] \mathbb{E}[\operatorname{Cov}(f,Y\mid Z)]=\mathbb{E}[(f-\mathbb{E}[f\mid Z])Z_2\varepsilon_X] E [ Cov ( f , Y ∣ Z )] = E [( f − E [ f ∣ Z ]) Z 2 ε X ] because ε Y \varepsilon_Y ε Y is independent of ( X , Z ) (X,Z) ( X , Z ) , so by the Cauchy–Schwarz inequality the measure of Example 2.2(b) is E [ ( Z 2 ε X ) 2 ] 1 / 2 / σ i d ( Y ) = 1 / 2 \mathbb{E}[(Z_2\varepsilon_X)^2]^{1/2}/\sigma_{\mathrm{id}}(Y)=1/\sqrt{2} E [( Z 2 ε X ) 2 ] 1/2 / σ id ( Y ) = 1/ 2 , attained by f ( x , z ) = z 2 ( x − z 1 ) f(x,z)=z_2(x-z_1) f ( x , z ) = z 2 ( x − z 1 ) . Since Z 2 Z_2 Z 2 is independent of ( Z 1 , ε X , ε Y ) (Z_1,\varepsilon_X,\varepsilon_Y) ( Z 1 , ε X , ε Y ) , E [ Y ∣ X , Z 1 ] = Z 1 + E [ Z 2 ] ε X = Z 1 = E [ Y ∣ Z 1 ] \mathbb{E}[Y\mid X,Z_1]=Z_1+\mathbb{E}[Z_2]\varepsilon_X=Z_1=\mathbb{E}[Y\mid Z_1] E [ Y ∣ X , Z 1 ] = Z 1 + E [ Z 2 ] ε X = Z 1 = E [ Y ∣ Z 1 ] , so E [ Cov ( f , Y ∣ Z 1 ) ] = 0 \mathbb{E}[\operatorname{Cov}(f,Y\mid Z_1)]=0 E [ Cov ( f , Y ∣ Z 1 )] = 0 for every f f f that is a function of ( X , Z 1 ) (X,Z_1) ( X , Z 1 ) , and both measures given ψ ( Z ) \psi(Z) ψ ( Z ) vanish. On the other hand, Var ( Y ∣ X , Z 1 ) = ( X − Z 1 ) 2 + 1 \operatorname{Var}(Y\mid X,Z_1)=(X-Z_1)^2+1 Var ( Y ∣ X , Z 1 ) = ( X − Z 1 ) 2 + 1 depends on X X X , so H 0 ψ H_0^\psi H 0 ψ fails. Finally, ( X , Z 1 ) (X,Z_1) ( X , Z 1 ) is independent of Z 2 Z_2 Z 2 , so E [ f ∣ Z ] = E [ f ∣ Z 1 ] \mathbb{E}[f\mid Z]=\mathbb{E}[f\mid Z_1] E [ f ∣ Z ] = E [ f ∣ Z 1 ] for every such f f f , and E [ Y ∣ Z ] = Z 1 = E [ Y ∣ Z 1 ] \mathbb{E}[Y\mid Z]=Z_1=\mathbb{E}[Y\mid Z_1] E [ Y ∣ Z ] = Z 1 = E [ Y ∣ Z 1 ] , so R ψ 2 ( F ) = R ψ 2 ( G ) = 0 R_\psi^2(\mathcal{F})=R_\psi^2(\mathcal{G})=0 R ψ 2 ( F ) = R ψ 2 ( G ) = 0 .
Even the measure of Example 2.2(a) can lose all dependence. Let X X X and Z Z Z be independent fair bits, Y : = X ⊕ Z Y := X \oplus Z Y := X ⊕ Z (exclusive or), and ψ \psi ψ constant. Again R ψ 2 ( F ) = R ψ 2 ( G ) = 0 R_{\psi}^{2}(\mathcal{F}) = R_{\psi}^{2}(\mathcal{G}) = 0 R ψ 2 ( F ) = R ψ 2 ( G ) = 0 , since X ⊥ ⊥ Z X \perp\!\!\!\perp Z X ⊥ ⊥ Z and Y ⊥ ⊥ Z Y \perp\!\!\!\perp Z Y ⊥ ⊥ Z , and ρ ψ ( F , G ) = 0 \rho_{\psi}(\mathcal{F},\mathcal{G}) = 0 ρ ψ ( F , G ) = 0 because X ⊥ ⊥ Y X \perp\!\!\!\perp Y X ⊥ ⊥ Y . Yet ρ i d ( F , G ) = 1 \rho_{\mathrm{id}}(\mathcal{F},\mathcal{G}) = 1 ρ id ( F , G ) = 1 , attained by f ( x , z ) = x f(x,z) = x f ( x , z ) = x and g ( y , z ) = y ( 1 − 2 z ) g(y,z) = y(1 - 2z) g ( y , z ) = y ( 1 − 2 z ) , which have the same residual X − 1 / 2 X - 1/2 X − 1/2 given Z Z Z .
Proof of Proposition 3.2
The sample version of the asymptotic variance v ψ 2 v_{\psi}^{2} v ψ 2 of § 3.2 replaces ξ X \xi_X ξ X and ξ Y \xi_Y ξ Y by ξ ^ X , i : = r ^ X , i / σ ^ ψ ( X ) \hat{\xi}_{X,i} := \hat{r}_{X,i}/\hat{\sigma}_{\psi}(X) ξ ^ X , i := r ^ X , i / σ ^ ψ ( X ) and ξ ^ Y , i : = r ^ Y , i / σ ^ ψ ( Y ) \hat{\xi}_{Y,i} := \hat{r}_{Y,i}/\hat{\sigma}_{\psi}(Y) ξ ^ Y , i := r ^ Y , i / σ ^ ψ ( Y ) , ρ ψ ± \rho_{\psi}^{\pm} ρ ψ ± by ρ ^ ψ ± \hat{\rho}_{\psi}^{\pm} ρ ^ ψ ± , and the variance by an average,
v ^ ψ 2 : = 1 n ∑ i = 1 n ( ξ ^ X , i ξ ^ Y , i − ρ ^ ψ ± 2 ( ξ ^ X , i 2 + ξ ^ Y , i 2 ) ) 2 ; (6) \hat{v}_{\psi}^{2} := \frac{1}{n}\sum_{i=1}^{n}\left(\hat{\xi}_{X,i}\hat{\xi}_{Y,i} - \frac{\hat{\rho}_{\psi}^{\pm}}{2}\left(\hat{\xi}_{X,i}^{2}+\hat{\xi}_{Y,i}^{2}\right)\right)^{2}; \tag*{(6)} v ^ ψ 2 := n 1 i = 1 ∑ n ( ξ ^ X , i ξ ^ Y , i − 2 ρ ^ ψ ± ( ξ ^ X , i 2 + ξ ^ Y , i 2 ) ) 2 ; (6)
the summands have average zero, since 1 n ∑ i ξ ^ X , i ξ ^ Y , i = ρ ^ ψ ± \frac{1}{n}\sum_i\hat{\xi}_{X,i}\hat{\xi}_{Y,i}=\hat{\rho}_{\psi}^{\pm} n 1 ∑ i ξ ^ X , i ξ ^ Y , i = ρ ^ ψ ± and 1 n ∑ i ξ ^ X , i 2 = 1 n ∑ i ξ ^ Y , i 2 = 1 \frac{1}{n}\sum_i\hat{\xi}_{X,i}^{2}=\frac{1}{n}\sum_i\hat{\xi}_{Y,i}^{2}=1 n 1 ∑ i ξ ^ X , i 2 = n 1 ∑ i ξ ^ Y , i 2 = 1 .
Proof. The number of folds K K K is fixed, and I k I_k I k denotes the set of indices in fold k k k ; for i ∈ I k i \in I_k i ∈ I k , m ^ X ( ψ ( Z i ) ) \hat{m}_X(\psi(Z_i)) m ^ X ( ψ ( Z i )) is the prediction at ψ ( Z i ) \psi(Z_i) ψ ( Z i ) of a regression fitted on the observations outside fold k k k , and likewise for Y Y Y . Write
r X , i : = X i − E [ X i ∣ ψ ( Z i ) ] , e X , i : = m ^ X ( ψ ( Z i ) ) − E [ X i ∣ ψ ( Z i ) ] , M X : = 1 n ∑ i = 1 n e X , i 2 . r_{X,i}:=X_i-\mathbb{E}[X_i\mid\psi(Z_i)],\qquad e_{X,i}:=\hat{m}_X(\psi(Z_i))-\mathbb{E}[X_i\mid\psi(Z_i)],\qquad M_X:=\frac{1}{n}\sum_{i=1}^{n}e_{X,i}^{2}. r X , i := X i − E [ X i ∣ ψ ( Z i )] , e X , i := m ^ X ( ψ ( Z i )) − E [ X i ∣ ψ ( Z i )] , M X := n 1 i = 1 ∑ n e X , i 2 .
so that r ^ X , i = r X , i − e X , i \hat{r}_{X,i}=r_{X,i}-e_{X,i} r ^ X , i = r X , i − e X , i and, by Assumption 3.1 , M X = o P ( n − 1 / 2 ) M_X=o_P(n^{-1/2}) M X = o P ( n − 1/2 ) ; define r Y , i r_{Y,i} r Y , i , e Y , i e_{Y,i} e Y , i , and M Y M_Y M Y likewise. Then ξ X , i = r X , i / σ ψ ( X ) \xi_{X,i}=r_{X,i}/\sigma_{\psi}(X) ξ X , i = r X , i / σ ψ ( X ) and ξ Y , i = r Y , i / σ ψ ( Y ) \xi_{Y,i}=r_{Y,i}/\sigma_{\psi}(Y) ξ Y , i = r Y , i / σ ψ ( Y ) are the standardized residuals of observation i i i , σ ψ 2 ( X ) = E [ r X , i 2 ] \sigma_{\psi}^{2}(X)=\mathbb{E}[r_{X,i}^{2}] σ ψ 2 ( X ) = E [ r X , i 2 ] , and κ ψ : = E [ Cov ( X , Y ∣ ψ ( Z ) ) ] = E [ r X , i r Y , i ] \kappa_{\psi}:=\mathbb{E}[\operatorname{Cov}(X,Y\mid\psi(Z))]=\mathbb{E}[r_{X,i}r_{Y,i}] κ ψ := E [ Cov ( X , Y ∣ ψ ( Z ))] = E [ r X , i r Y , i ] , so that ρ ψ ± = κ ψ / ( σ ψ ( X ) σ ψ ( Y ) ) \rho_{\psi}^{\pm}=\kappa_{\psi}/(\sigma_{\psi}(X)\sigma_{\psi}(Y)) ρ ψ ± = κ ψ / ( σ ψ ( X ) σ ψ ( Y )) . By (2) , ρ ^ ψ ± = κ ^ ψ / ( σ ^ ψ ( X ) σ ^ ψ ( Y ) ) \hat{\rho}_{\psi}^{\pm}=\hat{\kappa}_{\psi}/(\hat{\sigma}_{\psi}(X)\hat{\sigma}_{\psi}(Y)) ρ ^ ψ ± = κ ^ ψ / ( σ ^ ψ ( X ) σ ^ ψ ( Y )) with κ ^ ψ : = 1 n ∑ i R i \hat{\kappa}_{\psi}:=\frac{1}{n}\sum_i R_i κ ^ ψ := n 1 ∑ i R i .
We first show two bounds on the estimation errors. Since ∑ i a i 4 ≤ ( ∑ i a i 2 ) 2 \sum_i a_i^4\leq(\sum_i a_i^2)^2 ∑ i a i 4 ≤ ( ∑ i a i 2 ) 2 for a i ≥ 0 a_i\geq0 a i ≥ 0 ,
1 n ∑ i = 1 n e X , i 4 ≤ n M X 2 = o P ( 1 ) , (7) \frac{1}{n}\sum_{i=1}^{n}e_{X,i}^{4}\leq nM_X^2=o_P(1), \tag*{(7)} n 1 i = 1 ∑ n e X , i 4 ≤ n M X 2 = o P ( 1 ) , (7)
and likewise for Y Y Y . Next, we show that
1 n ∑ i = 1 n r X , i e Y , i = o P ( 1 ) , (8) \frac{1}{\sqrt{n}}\sum_{i=1}^{n}r_{X,i}e_{Y,i}=o_P(1), \tag*{(8)} n 1 i = 1 ∑ n r X , i e Y , i = o P ( 1 ) , (8)
and that the same holds with r Y , i e X , i r_{Y,i}e_{X,i} r Y , i e X , i , r X , i e X , i r_{X,i}e_{X,i} r X , i e X , i , or r Y , i e Y , i r_{Y,i}e_{Y,i} r Y , i e Y , i in place of r X , i e Y , i r_{X,i}e_{Y,i} r X , i e Y , i ; the four proofs are identical. Fix k k k , let S k : = n − 1 / 2 ∑ i ∈ I k r X , i e Y , i S_k:=n^{-1/2}\sum_{i\in I_k}r_{X,i}e_{Y,i} S k := n − 1/2 ∑ i ∈ I k r X , i e Y , i , and let G k \mathcal{G}_k G k be the σ \sigma σ -algebra generated by the observations outside fold k k k and by ψ ( Z i ) \psi(Z_i) ψ ( Z i ) , i ∈ I k i\in I_k i ∈ I k . Each e Y , i e_{Y,i} e Y , i with i ∈ I k i\in I_k i ∈ I k is G k \mathcal{G}_k G k -measurable, and since the observations are independent, the r X , i r_{X,i} r X , i with i ∈ I k i\in I_k i ∈ I k are conditionally independent given G k \mathcal{G}_k G k , with E [ r X , i ∣ G k ] = E [ r X , i ∣ ψ ( Z i ) ] = 0 \mathbb{E}[r_{X,i}\mid\mathcal{G}_k]=\mathbb{E}[r_{X,i}\mid\psi(Z_i)]=0 E [ r X , i ∣ G k ] = E [ r X , i ∣ ψ ( Z i )] = 0 . Hence E [ S k ∣ G k ] = 0 \mathbb{E}[S_k\mid\mathcal{G}_k]=0 E [ S k ∣ G k ] = 0 and, by the Cauchy–Schwarz inequality,
E [ S k 2 ∣ G k ] = 1 n ∑ i ∈ I k E [ r X , i 2 ∣ ψ ( Z i ) ] e Y , i 2 ≤ ( 1 n ∑ i = 1 n E [ r X , i 2 ∣ ψ ( Z i ) ] 2 ) 1 / 2 ( 1 n ∑ i = 1 n e Y , i 4 ) 1 / 2 . \mathbb{E}[S_k^2\mid\mathcal{G}_k]=\frac{1}{n}\sum_{i\in I_k}\mathbb{E}[r_{X,i}^2\mid\psi(Z_i)]e_{Y,i}^2\leq\left(\frac{1}{n}\sum_{i=1}^{n}\mathbb{E}[r_{X,i}^2\mid\psi(Z_i)]^2\right)^{1/2}\left(\frac{1}{n}\sum_{i=1}^{n}e_{Y,i}^4\right)^{1/2}. E [ S k 2 ∣ G k ] = n 1 i ∈ I k ∑ E [ r X , i 2 ∣ ψ ( Z i )] e Y , i 2 ≤ ( n 1 i = 1 ∑ n E [ r X , i 2 ∣ ψ ( Z i ) ] 2 ) 1/2 ( n 1 i = 1 ∑ n e Y , i 4 ) 1/2 .
The first factor is bounded in probability by Markov’s inequality, since E [ ( E [ r X , i 2 ∣ ψ ( Z i ) ] ) 2 ] ≤ E [ r X , i 4 ] < ∞ \mathbb{E}[(\mathbb{E}[r_{X,i}^{2}\mid\psi(Z_i)])^{2}] \leq\mathbb{E}[r_{X,i}^{4}] < \infty E [( E [ r X , i 2 ∣ ψ ( Z i )] ) 2 ] ≤ E [ r X , i 4 ] < ∞ by Jensen’s inequality, and the second is o P ( 1 ) o_P(1) o P ( 1 ) by (A.4). For ϵ > 0 \epsilon> 0 ϵ > 0 , Chebyshev’s inequality conditionally on G k \mathcal{G}_k G k gives P ( ∣ S k ∣ > ϵ ) ≤ E [ min { 1 , ϵ − 2 E [ S k 2 ∣ G k ] } ] → 0 \mathbb{P}(|S_k| > \epsilon) \leq\mathbb{E}[\min\{1,\epsilon^{-2}\mathbb{E}[S_k^2\mid\mathcal{G}_k]\}] \to0 P ( ∣ S k ∣ > ϵ ) ≤ E [ min { 1 , ϵ − 2 E [ S k 2 ∣ G k ]}] → 0 by bounded convergence, and summing over the K K K folds gives (A.5). This is the argument of Shah and Peters [30 ] for the GCM, with conditioning on the other folds in place of H 0 H_0 H 0 .
Next, we linearize ρ ^ ψ ± \hat{\rho}^{\pm}_{\psi} ρ ^ ψ ± . Expanding r ^ X , i r ^ Y , i = r X , i r Y , i − r X , i e Y , i − r Y , i e X , i + e X , i e Y , i \hat{r}_{X,i}\hat{r}_{Y,i}=r_{X,i}r_{Y,i}-r_{X,i}e_{Y,i}-r_{Y,i}e_{X,i}+e_{X,i}e_{Y,i} r ^ X , i r ^ Y , i = r X , i r Y , i − r X , i e Y , i − r Y , i e X , i + e X , i e Y , i gives
κ ^ ψ = 1 n ∑ i = 1 n r X , i r Y , i + o P ( n − 1 / 2 ) , \hat{\kappa}_{\psi}=\frac{1}{n}\sum_{i=1}^{n}r_{X,i}r_{Y,i}+o_P(n^{-1/2}), κ ^ ψ = n 1 i = 1 ∑ n r X , i r Y , i + o P ( n − 1/2 ) ,
because 1 n ∑ i r X , i e Y , i \frac{1}{n}\sum_i r_{X,i}e_{Y,i} n 1 ∑ i r X , i e Y , i and 1 n ∑ i r Y , i e X , i \frac{1}{n}\sum_i r_{Y,i}e_{X,i} n 1 ∑ i r Y , i e X , i are o P ( n − 1 / 2 ) o_P(n^{-1/2}) o P ( n − 1/2 ) by (A.5) and, as for the GCM [30 ] , ∣ 1 n ∑ i e X , i e Y , i ∣ ≤ ( M X M Y ) 1 / 2 = o P ( n − 1 / 2 ) \left|\frac{1}{n}\sum_i e_{X,i}e_{Y,i}\right|\leq(M_XM_Y)^{1/2}=o_P(n^{-1/2}) n 1 ∑ i e X , i e Y , i ≤ ( M X M Y ) 1/2 = o P ( n − 1/2 ) by the Cauchy–Schwarz inequality. Similarly, expanding r ^ X , i 2 = r X , i 2 − 2 r X , i e X , i + e X , i 2 \hat{r}_{X,i}^{2}=r_{X,i}^{2}-2r_{X,i}e_{X,i}+e_{X,i}^{2} r ^ X , i 2 = r X , i 2 − 2 r X , i e X , i + e X , i 2 gives
σ ^ ψ 2 ( X ) = 1 n ∑ i = 1 n r X , i 2 − 2 n ∑ i = 1 n r X , i e X , i + M X = 1 n ∑ i = 1 n r X , i 2 + o P ( n − 1 / 2 ) , \hat{\sigma}_{\psi}^{2}(X)=\frac{1}{n}\sum_{i=1}^{n}r_{X,i}^{2}-\frac{2}{n}\sum_{i=1}^{n}r_{X,i}e_{X,i}+M_X=\frac{1}{n}\sum_{i=1}^{n}r_{X,i}^{2}+o_P(n^{-1/2}), σ ^ ψ 2 ( X ) = n 1 i = 1 ∑ n r X , i 2 − n 2 i = 1 ∑ n r X , i e X , i + M X = n 1 i = 1 ∑ n r X , i 2 + o P ( n − 1/2 ) ,
since the middle term is o P ( n − 1 / 2 ) o_P(n^{-1/2}) o P ( n − 1/2 ) by (A.5) and M X = o P ( n − 1 / 2 ) M_X=o_P(n^{-1/2}) M X = o P ( n − 1/2 ) , and likewise for Y Y Y .
The vectors ( r X , i r Y , i , r X , i 2 , r Y , i 2 ) (r_{X,i}r_{Y,i},r_{X,i}^{2},r_{Y,i}^{2}) ( r X , i r Y , i , r X , i 2 , r Y , i 2 ) are independent and identically distributed with mean θ : = ( κ ψ , σ ψ 2 ( X ) , σ ψ 2 ( Y ) ) \theta:= (\kappa_{\psi},\sigma_{\psi}^{2}(X),\sigma_{\psi}^{2}(Y)) θ := ( κ ψ , σ ψ 2 ( X ) , σ ψ 2 ( Y )) and, by the fourth moments in Assumption 3.1 , a finite covariance matrix. By the central limit theorem, n ( ( κ ^ ψ , σ ^ ψ 2 ( X ) , σ ^ ψ 2 ( Y ) ) − θ ) \sqrt{n}((\hat{\kappa}_{\psi},\hat{\sigma}_{\psi}^{2}(X),\hat{\sigma}_{\psi}^{2}(Y))-\theta) n (( κ ^ ψ , σ ^ ψ 2 ( X ) , σ ^ ψ 2 ( Y )) − θ ) therefore converges in distribution to a normal distribution with mean zero and the covariance matrix of these vectors; in particular, the three estimates are consistent, and σ ^ ψ 2 ( X ) \hat{\sigma}_{\psi}^{2}(X) σ ^ ψ 2 ( X ) and σ ^ ψ 2 ( Y ) \hat{\sigma}_{\psi}^{2}(Y) σ ^ ψ 2 ( Y ) are positive with probability tending to one. The map g ( a , b , c ) : = a / b c g(a,b,c):=a/\sqrt{bc} g ( a , b , c ) := a / b c is continuously differentiable at θ \theta θ , since the variances are positive, with gradient ∇ g ( θ ) = ( 1 / ( σ ψ ( X ) σ ψ ( Y ) ) , − ρ ψ ± / ( 2 σ ψ 2 ( X ) ) , − ρ ψ ± / ( 2 σ ψ 2 ( Y ) ) ) \nabla g(\theta)=(1/(\sigma_{\psi}(X)\sigma_{\psi}(Y)),-\rho_{\psi}^{\pm}/(2\sigma_{\psi}^{2}(X)),-\rho_{\psi}^{\pm}/(2\sigma_{\psi}^{2}(Y))) ∇ g ( θ ) = ( 1/ ( σ ψ ( X ) σ ψ ( Y )) , − ρ ψ ± / ( 2 σ ψ 2 ( X )) , − ρ ψ ± / ( 2 σ ψ 2 ( Y ))) , ρ ^ ψ ± = g ( κ ^ ψ , σ ^ ψ 2 ( X ) , σ ^ ψ 2 ( Y ) ) \hat{\rho}_{\psi}^{\pm}=g(\hat{\kappa}_{\psi},\hat{\sigma}_{\psi}^{2}(X),\hat{\sigma}_{\psi}^{2}(Y)) ρ ^ ψ ± = g ( κ ^ ψ , σ ^ ψ 2 ( X ) , σ ^ ψ 2 ( Y )) and ρ ψ ± = g ( θ ) \rho_{\psi}^{\pm}=g(\theta) ρ ψ ± = g ( θ ) . The delta method gives
n ( ρ ^ ψ ± − ρ ψ ± ) → N ( 0 , Var ( ∇ g ( θ ) T ( r X , i r Y , i , r X , i 2 , r Y , i 2 ) ) ) = N ( 0 , v ψ 2 ) \sqrt{n}(\hat{\rho}_{\psi}^{\pm}-\rho_{\psi}^{\pm})\to N\left(0,\operatorname{Var}\left(\nabla g(\theta)^{\mathsf{T}}(r_{X,i}r_{Y,i},r_{X,i}^{2},r_{Y,i}^{2})\right)\right)=N(0,v_{\psi}^{2}) n ( ρ ^ ψ ± − ρ ψ ± ) → N ( 0 , Var ( ∇ g ( θ ) T ( r X , i r Y , i , r X , i 2 , r Y , i 2 ) ) ) = N ( 0 , v ψ 2 )
in distribution, since ∇ g ( θ ) T ( r X , i r Y , i , r X , i 2 , r Y , i 2 ) = ξ X , i ξ Y , i − ρ ψ ± 2 ( ξ X , i 2 + ξ Y , i 2 ) \nabla g(\theta)^{\mathsf{T}}(r_{X,i}r_{Y,i},r_{X,i}^{2},r_{Y,i}^{2})=\xi_{X,i}\xi_{Y,i}-\frac{\rho_{\psi}^{\pm}}{2}(\xi_{X,i}^{2}+\xi_{Y,i}^{2}) ∇ g ( θ ) T ( r X , i r Y , i , r X , i 2 , r Y , i 2 ) = ξ X , i ξ Y , i − 2 ρ ψ ± ( ξ X , i 2 + ξ Y , i 2 ) .
It remains to show that v ^ ψ 2 → v ψ 2 \hat{v}_{\psi}^{2}\to v_{\psi}^{2} v ^ ψ 2 → v ψ 2 in probability. Let
η i : = ξ X , i ξ Y , i − ρ ψ ± 2 ( ξ X , i 2 + ξ Y , i 2 ) , η ^ i : = ξ ^ X , i ξ ^ Y , i − ρ ^ ψ ± 2 ( ξ ^ X , i 2 + ξ ^ Y , i 2 ) , \eta_i:=\xi_{X,i}\xi_{Y,i}-\frac{\rho_{\psi}^{\pm}}{2}(\xi_{X,i}^{2}+\xi_{Y,i}^{2}),\qquad\hat{\eta}_i:=\hat{\xi}_{X,i}\hat{\xi}_{Y,i}-\frac{\hat{\rho}_{\psi}^{\pm}}{2}(\hat{\xi}_{X,i}^{2}+\hat{\xi}_{Y,i}^{2}), η i := ξ X , i ξ Y , i − 2 ρ ψ ± ( ξ X , i 2 + ξ Y , i 2 ) , η ^ i := ξ ^ X , i ξ ^ Y , i − 2 ρ ^ ψ ± ( ξ ^ X , i 2 + ξ ^ Y , i 2 ) ,
so that v ^ ψ 2 = 1 n ∑ i η ^ i 2 \hat{v}_{\psi}^{2}=\frac{1}{n}\sum_i\hat{\eta}_i^2 v ^ ψ 2 = n 1 ∑ i η ^ i 2 by (A.3). Since E [ ξ X , i ξ Y , i ] = ρ ψ ± \mathbb{E}[\xi_{X,i}\xi_{Y,i}]=\rho_{\psi}^{\pm} E [ ξ X , i ξ Y , i ] = ρ ψ ± and E [ ξ X , i 2 ] = E [ ξ Y , i 2 ] = 1 \mathbb{E}[\xi_{X,i}^{2}]=\mathbb{E}[\xi_{Y,i}^{2}]=1 E [ ξ X , i 2 ] = E [ ξ Y , i 2 ] = 1 , η i \eta_i η i has mean zero, and its variance is v ψ 2 v_{\psi}^{2} v ψ 2 , by definition, so 1 n ∑ i η i 2 → v ψ 2 \frac{1}{n}\sum_i\eta_i^2\to v_{\psi}^{2} n 1 ∑ i η i 2 → v ψ 2 in probability by the law of large numbers. By the reverse triangle inequality, ∣ v ^ ψ − ( 1 n ∑ i η i 2 ) 1 / 2 ∣ ≤ ( 1 n ∑ i ( η ^ i − η i ) 2 ) 1 / 2 \left|\hat{v}_{\psi}-\left(\frac{1}{n}\sum_i\eta_i^2\right)^{1/2}\right|\leq\left(\frac{1}{n}\sum_i(\hat{\eta}_i-\eta_i)^2\right)^{1/2} v ^ ψ − ( n 1 ∑ i η i 2 ) 1/2 ≤ ( n 1 ∑ i ( η ^ i − η i ) 2 ) 1/2 , so it suffices to show that 1 n ∑ i ( η ^ i − η i ) 2 = o P ( 1 ) \frac{1}{n}\sum_i(\hat{\eta}_i-\eta_i)^2=o_P(1) n 1 ∑ i ( η ^ i − η i ) 2 = o P ( 1 ) . Let δ X , i : = ξ ^ X , i − ξ X , i = r X , i ( 1 / σ ^ ψ ( X ) − 1 / σ ψ ( X ) ) − e X , i / σ ^ ψ ( X ) \delta_{X,i}:=\hat{\xi}_{X,i}-\xi_{X,i}=r_{X,i}\left(1/\hat{\sigma}_{\psi}(X)-1/\sigma_{\psi}(X)\right)-e_{X,i}/\hat{\sigma}_{\psi}(X) δ X , i := ξ ^ X , i − ξ X , i = r X , i ( 1/ σ ^ ψ ( X ) − 1/ σ ψ ( X ) ) − e X , i / σ ^ ψ ( X ) . Since σ ^ ψ ( X ) → σ ψ ( X ) > 0 \hat{\sigma}_{\psi}(X)\to\sigma_{\psi}(X)>0 σ ^ ψ ( X ) → σ ψ ( X ) > 0 in probability and 1 n ∑ i r X , i 4 \frac{1}{n}\sum_i r_{X,i}^{4} n 1 ∑ i r X , i 4 is bounded in probability, (A.4) gives
1 n ∑ i = 1 n δ X , i 4 ≤ 8 ( 1 σ ^ ψ ( X ) − 1 σ ψ ( X ) ) 4 1 n ∑ i = 1 n r X , i 4 + 8 σ ^ ψ 4 ( X ) 1 n ∑ i = 1 n e X , i 4 = o P ( 1 ) , \frac{1}{n}\sum_{i=1}^{n}\delta_{X,i}^{4}\leq8\left(\frac{1}{\hat{\sigma}_{\psi}(X)}-\frac{1}{\sigma_{\psi}(X)}\right)^{4}\frac{1}{n}\sum_{i=1}^{n}r_{X,i}^{4}+\frac{8}{\hat{\sigma}_{\psi}^{4}(X)}\frac{1}{n}\sum_{i=1}^{n}e_{X,i}^{4}=o_P(1), n 1 i = 1 ∑ n δ X , i 4 ≤ 8 ( σ ^ ψ ( X ) 1 − σ ψ ( X ) 1 ) 4 n 1 i = 1 ∑ n r X , i 4 + σ ^ ψ 4 ( X ) 8 n 1 i = 1 ∑ n e X , i 4 = o P ( 1 ) ,
and likewise for δ Y , i : = ξ ^ Y , i − ξ Y , i \delta_{Y,i} := \hat{\xi}_{Y,i} - \xi_{Y,i} δ Y , i := ξ ^ Y , i − ξ Y , i . Now
η ^ i − η i = δ X , i ξ Y , i + ξ X , i δ Y , i + δ X , i δ Y , i − ρ ^ ψ + 2 ( 2 ξ X , i δ X , i + δ X , i 2 + 2 ξ Y , i δ Y , i + δ Y , i 2 ) − ρ ^ ψ + − ρ ψ + 2 ( ξ X , i 2 + ξ Y , i 2 ) . \hat{\eta}_i - \eta_i = \delta_{X,i}\xi_{Y,i} + \xi_{X,i}\delta_{Y,i} + \delta_{X,i}\delta_{Y,i} - \frac{\hat{\rho}_{\psi}^{+}}{2}\left(2\xi_{X,i}\delta_{X,i} + \delta_{X,i}^{2} + 2\xi_{Y,i}\delta_{Y,i} + \delta_{Y,i}^{2}\right) - \frac{\hat{\rho}_{\psi}^{+} - \rho_{\psi}^{+}}{2}\left(\xi_{X,i}^{2} + \xi_{Y,i}^{2}\right). η ^ i − η i = δ X , i ξ Y , i + ξ X , i δ Y , i + δ X , i δ Y , i − 2 ρ ^ ψ + ( 2 ξ X , i δ X , i + δ X , i 2 + 2 ξ Y , i δ Y , i + δ Y , i 2 ) − 2 ρ ^ ψ + − ρ ψ + ( ξ X , i 2 + ξ Y , i 2 ) .
Since ( ∑ j = 1 m a j ) 2 ≤ m ∑ j = 1 m a j 2 \left(\sum_{j=1}^{m} a_j\right)^2 \leq m\sum_{j=1}^{m} a_j^2 ( ∑ j = 1 m a j ) 2 ≤ m ∑ j = 1 m a j 2 , it suffices that the average of the square of each term is o P ( 1 ) o_P(1) o P ( 1 ) . For the terms with a δ \delta δ , this follows from the Cauchy–Schwarz inequality, for instance 1 n ∑ i δ X , i 2 δ Y , i 2 ≤ ( 1 n ∑ i δ X , i 4 ) 1 / 2 ( 1 n ∑ i δ Y , i 4 ) 1 / 2 \frac{1}{n}\sum_i\delta_{X,i}^2\delta_{Y,i}^2 \leq\left(\frac{1}{n}\sum_i\delta_{X,i}^4\right)^{1/2}\left(\frac{1}{n}\sum_i\delta_{Y,i}^4\right)^{1/2} n 1 ∑ i δ X , i 2 δ Y , i 2 ≤ ( n 1 ∑ i δ X , i 4 ) 1/2 ( n 1 ∑ i δ Y , i 4 ) 1/2 , since 1 n ∑ i ξ X , i 4 \frac{1}{n}\sum_i\xi_{X,i}^4 n 1 ∑ i ξ X , i 4 and 1 n ∑ i ξ Y , i 4 \frac{1}{n}\sum_i\xi_{Y,i}^4 n 1 ∑ i ξ Y , i 4 are bounded in probability and ρ ^ ψ + \hat{\rho}_{\psi}^{+} ρ ^ ψ + is consistent. For the last term, it follows from ρ ^ ψ + − ρ ψ + = o P ( 1 ) \hat{\rho}_{\psi}^{+} - \rho_{\psi}^{+} = o_P(1) ρ ^ ψ + − ρ ψ + = o P ( 1 ) . Hence v ^ ψ 2 → v ψ 2 \hat{v}_{\psi}^{2} \to v_{\psi}^{2} v ^ ψ 2 → v ψ 2 in probability.
Finally, since v ψ 2 > 0 v_{\psi}^{2} > 0 v ψ 2 > 0 , Slutsky’s lemma gives n ( ρ ^ ψ + − ρ ψ + ) / v ^ ψ → N ( 0 , 1 ) \sqrt{n}(\hat{\rho}_{\psi}^{+} - \rho_{\psi}^{+})/\hat{v}_{\psi} \to N(0,1) n ( ρ ^ ψ + − ρ ψ + ) / v ^ ψ → N ( 0 , 1 ) in distribution.
Proof of Proposition 3.4
The construction of p B p_B p B in § 3.3 rests on the following fact. If W ∼ N ( μ , 1 ) W \sim N(\mu,1) W ∼ N ( μ , 1 ) , then for every r ≥ 0 r \geq0 r ≥ 0 ,
P ( ∣ W ∣ > r ) = 2 − Φ ( r − μ ) − Φ ( r + μ ) , P(|W| > r) = 2 - \Phi(r-\mu) - \Phi(r+\mu), P ( ∣ W ∣ > r ) = 2 − Φ ( r − μ ) − Φ ( r + μ ) ,
which is even in μ \mu μ and nondecreasing in ∣ μ ∣ |\mu| ∣ μ ∣ : for μ ≥ 0 \mu\geq0 μ ≥ 0 , its derivative with respect to μ \mu μ is φ ( r − μ ) − φ ( r + μ ) ≥ 0 \varphi(r-\mu) - \varphi(r+\mu) \geq0 φ ( r − μ ) − φ ( r + μ ) ≥ 0 , where φ \varphi φ is the standard normal density, because ∣ r − μ ∣ ≤ r + μ |r-\mu| \leq r+\mu ∣ r − μ ∣ ≤ r + μ , with strict inequality if r , μ > 0 r,\mu> 0 r , μ > 0 . With r = n ρ ^ ψ / v ^ ψ r = \sqrt{n}\hat{\rho}_{\psi}/\hat{v}_{\psi} r = n ρ ^ ψ / v ^ ψ and μ = n B / v ^ ψ \mu= \sqrt{n}B/\hat{v}_{\psi} μ = n B / v ^ ψ , it equals p B p_B p B in (3) .
Proof. By Proposition 3.2 , T n : = n ( ρ ^ ψ ± − ρ ψ ± ) / v ^ ψ T_n := \sqrt{n}(\hat{\rho}_{\psi}^{\pm} - \rho_{\psi}^{\pm})/\hat{v}_{\psi} T n := n ( ρ ^ ψ ± − ρ ψ ± ) / v ^ ψ converges in distribution to a standard normal random variable, and v ^ ψ → v ψ > 0 \hat{v}_{\psi} \to v_{\psi} > 0 v ^ ψ → v ψ > 0 in probability; hence ρ ^ ψ ± → ρ ψ ± \hat{\rho}_{\psi}^{\pm} \to\rho_{\psi}^{\pm} ρ ^ ψ ± → ρ ψ ± and ρ ^ ψ → ρ ψ \hat{\rho}_{\psi} \to\rho_{\psi} ρ ^ ψ → ρ ψ in probability. Under H 0 H_0 H 0 and a valid tolerance, ρ ψ ≤ B \rho_{\psi} \leq B ρ ψ ≤ B by Corollary 2.4(ii). We consider three cases.
If ρ ψ < B \rho_{\psi} < B ρ ψ < B , then ( ρ ^ ψ − B ) / v ^ ψ → ( ρ ψ − B ) / v ψ < 0 (\hat{\rho}_{\psi}-B)/\hat{v}_{\psi} \to(\rho_{\psi}-B)/v_{\psi} < 0 ( ρ ^ ψ − B ) / v ^ ψ → ( ρ ψ − B ) / v ψ < 0 in probability, so n ( ρ ^ ψ − B ) / v ^ ψ → − ∞ \sqrt{n}(\hat{\rho}_{\psi}-B)/\hat{v}_{\psi} \to-\infty n ( ρ ^ ψ − B ) / v ^ ψ → − ∞ in probability. Since p B ≥ 1 − Φ ( n ( ρ ^ ψ − B ) / v ^ ψ ) p_B \geq1-\Phi\left(\sqrt{n}(\hat{\rho}_{\psi}-B)/\hat{v}_{\psi}\right) p B ≥ 1 − Φ ( n ( ρ ^ ψ − B ) / v ^ ψ ) , p B → 1 p_B \to1 p B → 1 in probability, and P ( p B < α ) → 0 P(p_B < \alpha) \to0 P ( p B < α ) → 0 .
If ρ ψ = B = 0 \rho_{\psi} = B = 0 ρ ψ = B = 0 , then n ρ ^ ψ / v ^ ψ = ∣ T n ∣ \sqrt{n}\hat{\rho}_{\psi}/\hat{v}_{\psi} = |T_n| n ρ ^ ψ / v ^ ψ = ∣ T n ∣ , so p B = p 0 = 2 ( 1 − Φ ( ∣ T n ∣ ) ) p_B = p_0 = 2(1-\Phi(|T_n|)) p B = p 0 = 2 ( 1 − Φ ( ∣ T n ∣ )) is the two-sided normal p p p -value of T n T_n T n . By the continuous mapping theorem, p 0 p_0 p 0 converges in distribution to the uniform distribution on ( 0 , 1 ) (0,1) ( 0 , 1 ) , and P ( p B < α ) → α P(p_B < \alpha) \to\alpha P ( p B < α ) → α .
If ρ ψ = B > 0 \rho_{\psi} = B > 0 ρ ψ = B > 0 , we may take ρ ψ ± = B \rho_{\psi}^{\pm} = B ρ ψ ± = B , since replacing X X X by − X -X − X changes the signs of ρ ψ ± \rho_{\psi}^{\pm} ρ ψ ± and ρ ^ ψ ± \hat{\rho}_{\psi}^{\pm} ρ ^ ψ ± but leaves ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ , v ^ ψ \hat{v}_{\psi} v ^ ψ , and p B p_B p B unchanged. On the event ρ ^ ψ > 0 \hat{\rho}_{\psi} > 0 ρ ^ ψ > 0 , whose probability tends to one, ρ ^ ψ = ρ ^ ψ + \hat{\rho}_{\psi} = \hat{\rho}_{\psi}^{+} ρ ^ ψ = ρ ^ ψ + , and (3) reads
p B = 1 − Φ ( T n ) + 1 − Φ ( n ( ρ ^ ψ + + B ) v ^ ψ ) . p_B = 1 - \Phi(T_n) + 1 - \Phi\left(\frac{\sqrt{n}(\hat{\rho}_{\psi}^{+} + B)}{\hat{v}_{\psi}}\right). p B = 1 − Φ ( T n ) + 1 − Φ ( v ^ ψ n ( ρ ^ ψ + + B ) ) .
The second term tends to zero in probability, because ( ρ ^ ψ + + B ) / v ^ ψ → 2 B / v ψ > 0 (\hat{\rho}_{\psi}^{+} + B)/\hat{v}_{\psi} \to2B/v_{\psi} > 0 ( ρ ^ ψ + + B ) / v ^ ψ → 2 B / v ψ > 0 in probability. The first term is the one-sided normal p p p -value of T n T_n T n , so, by the continuous mapping theorem and Slutsky’s lemma, p B p_B p B converges in distribution to the uniform distribution on ( 0 , 1 ) (0,1) ( 0 , 1 ) , and P ( p B < α ) → α P(p_B < \alpha) \to\alpha P ( p B < α ) → α .
In each case, P ( p B < α ) P(p_B < \alpha) P ( p B < α ) converges to a limit that is at most α \alpha α , with equality if and only if ρ ψ = B \rho_\psi= B ρ ψ = B .
Consistency of the robust test
Corollary A.3 (Consistency of the robust test). Suppose that Assumption 3.1 holds and that v ψ 2 > 0 v_\psi^2 > 0 v ψ 2 > 0 . If
( 1 − R ψ 2 ( X ) ) ( 1 − R ψ 2 ( Y ) ) ρ i d > B + R ψ 2 ( X ) R ψ 2 ( Y ) , \sqrt{(1-R_\psi^2(X))(1-R_\psi^2(Y))}\,\rho_{\mathrm{id}} > B + \sqrt{R_\psi^2(X)R_\psi^2(Y)}, ( 1 − R ψ 2 ( X )) ( 1 − R ψ 2 ( Y )) ρ id > B + R ψ 2 ( X ) R ψ 2 ( Y ) , then P ( p B < α ) → 1 P(p_B < \alpha) \to1 P ( p B < α ) → 1 for every α ∈ ( 0 , 1 ) \alpha\in(0,1) α ∈ ( 0 , 1 ) .
Proof. By Theorem 2.3 and ∣ λ ∣ ≤ 1 \lvert\lambda\rvert\le1 ∣ λ ∣ ≤ 1 ,
ρ ψ ≥ ( 1 − R ψ 2 ( X ) ) ( 1 − R ψ 2 ( Y ) ) ρ i d − R ψ 2 ( X ) R ψ 2 ( Y ) > B . \rho_\psi\ge\sqrt{(1-R_\psi^2(X))(1-R_\psi^2(Y))}\,\rho_{\mathrm{id}}-\sqrt{R_\psi^2(X)R_\psi^2(Y)} > B. ρ ψ ≥ ( 1 − R ψ 2 ( X )) ( 1 − R ψ 2 ( Y )) ρ id − R ψ 2 ( X ) R ψ 2 ( Y ) > B .
By Proposition 3.2 , ρ ^ ψ → ρ ψ \hat{\rho}_\psi\to\rho_\psi ρ ^ ψ → ρ ψ and v ^ ψ → v ψ > 0 \hat{v}_\psi\to v_\psi> 0 v ^ ψ → v ψ > 0 in probability, so ( ρ ^ ψ − B ) / v ^ ψ → ( ρ ψ − B ) / v ψ > 0 (\hat{\rho}_\psi-B)/\hat{v}_\psi\to(\rho_\psi-B)/v_\psi> 0 ( ρ ^ ψ − B ) / v ^ ψ → ( ρ ψ − B ) / v ψ > 0 in probability and n ( ρ ^ ψ − B ) / v ^ ψ → ∞ \sqrt{n}(\hat{\rho}_\psi-B)/\hat{v}_\psi\to\infty n ( ρ ^ ψ − B ) / v ^ ψ → ∞ in probability. Since p B ≤ 2 ( 1 − Φ ( n ( ρ ^ ψ − B ) / v ^ ψ ) ) p_B \le2(1-\Phi(\sqrt{n}(\hat{\rho}_\psi-B)/\hat{v}_\psi)) p B ≤ 2 ( 1 − Φ ( n ( ρ ^ ψ − B ) / v ^ ψ )) , it follows that P ( p B < α ) → 1 P(p_B < \alpha) \to1 P ( p B < α ) → 1 .
Proof of Proposition 3.6
Proof. Write σ ( ψ , ψ ′ ) 2 ( X ) \sigma^2_{(\psi,\psi')}(X) σ ( ψ , ψ ′ ) 2 ( X ) for the residual variance of X X X given the embedding ( ψ , ψ ′ ) (\psi,\psi') ( ψ , ψ ′ ) , so that R ψ → ψ ′ 2 ( X ) = 1 − σ ( ψ , ψ ′ ) 2 ( X ) / σ ψ 2 ( X ) R^2_{\psi\to\psi'}(X)=1-\sigma^2_{(\psi,\psi')}(X)/\sigma_\psi^2(X) R ψ → ψ ′ 2 ( X ) = 1 − σ ( ψ , ψ ′ ) 2 ( X ) / σ ψ 2 ( X ) . Since E [ X ∣ ψ ( Z ) , ψ ′ ( Z ) ] \mathbb{E}[X\mid\psi(Z),\psi'(Z)] E [ X ∣ ψ ( Z ) , ψ ′ ( Z )] minimizes the mean squared error among square-integrable functions of ( ψ ( Z ) , ψ ′ ( Z ) ) (\psi(Z),\psi'(Z)) ( ψ ( Z ) , ψ ′ ( Z )) , which include E [ X ∣ ψ ( Z ) ] \mathbb{E}[X\mid\psi(Z)] E [ X ∣ ψ ( Z )] , we have σ ( ψ , ψ ′ ) 2 ( X ) ≤ σ ψ 2 ( X ) \sigma^2_{(\psi,\psi')}(X)\le\sigma_\psi^2(X) σ ( ψ , ψ ′ ) 2 ( X ) ≤ σ ψ 2 ( X ) , and likewise σ i d 2 ( X ) ≤ σ ( ψ , ψ ′ ) 2 ( X ) \sigma_{\mathrm{id}}^2(X)\le\sigma^2_{(\psi,\psi')}(X) σ id 2 ( X ) ≤ σ ( ψ , ψ ′ ) 2 ( X ) . Dividing by σ ψ 2 ( X ) \sigma_\psi^2(X) σ ψ 2 ( X ) gives 0 ≤ R ψ → ψ ′ 2 ( X ) ≤ 1 − σ i d 2 ( X ) / σ ψ 2 ( X ) = R ψ 2 ( X ) 0\le R^2_{\psi\to\psi'}(X)\le1-\sigma_{\mathrm{id}}^2(X)/\sigma_\psi^2(X)=R_\psi^2(X) 0 ≤ R ψ → ψ ′ 2 ( X ) ≤ 1 − σ id 2 ( X ) / σ ψ 2 ( X ) = R ψ 2 ( X ) , and likewise for Y Y Y ; multiplying the two bounds gives ρ ψ → ψ ′ ≤ R ψ 2 ( X ) R ψ 2 ( Y ) \rho_{\psi\to\psi'}\le\sqrt{R_\psi^2(X)R_\psi^2(Y)} ρ ψ → ψ ′ ≤ R ψ 2 ( X ) R ψ 2 ( Y ) . If E [ X ∣ Z ] \mathbb{E}[X\mid Z] E [ X ∣ Z ] is a function of ( ψ ( Z ) , ψ ′ ( Z ) ) (\psi(Z),\psi'(Z)) ( ψ ( Z ) , ψ ′ ( Z )) , then E [ X ∣ ψ ( Z ) , ψ ′ ( Z ) ] = E [ E [ X ∣ Z ] ∣ ψ ( Z ) , ψ ′ ( Z ) ] = E [ X ∣ Z ] \mathbb{E}[X\mid\psi(Z),\psi'(Z)]=\mathbb{E}[\mathbb{E}[X\mid Z]\mid\psi(Z),\psi'(Z)]=\mathbb{E}[X\mid Z] E [ X ∣ ψ ( Z ) , ψ ′ ( Z )] = E [ E [ X ∣ Z ] ∣ ψ ( Z ) , ψ ′ ( Z )] = E [ X ∣ Z ] , so σ ( ψ , ψ ′ ) 2 ( X ) = σ i d 2 ( X ) \sigma^2_{(\psi,\psi')}(X)=\sigma_{\mathrm{id}}^2(X) σ ( ψ , ψ ′ ) 2 ( X ) = σ id 2 ( X ) and R ψ → ψ ′ 2 ( X ) = R ψ 2 ( X ) R^2_{\psi\to\psi'}(X)=R_\psi^2(X) R ψ → ψ ′ 2 ( X ) = R ψ 2 ( X ) . If the same holds for Y Y Y , the bound is an equality.
Sensitivity parameters and extensions
Relation to omitted variable bias
Cinelli and Hazlett [9 ] write the omitted variable bias of a regression coefficient in a linear model as the geometric mean of two partial R 2 R^2 R 2 values times a scale factor, and build robustness values and benchmarks on it. The bound of Theorem 2.3 has the same product form, but it concerns the residual correlation ρ ψ \rho_\psi ρ ψ , so it is scale-free, and it assumes no linear model: R ψ 2 ( X ) R_\psi^2(X) R ψ 2 ( X ) and R ψ 2 ( Y ) R_\psi^2(Y) R ψ 2 ( Y ) compare residual variances around conditional expectations, and (1) holds for every distribution.
Chernozhukov et al. [8 ] bound the omitted variable bias of linear functionals of a regression function. Their Theorem 1 writes the bias as E [ ( g s − g ) ( α s − α ) ] \mathbb{E}[(g_s-g)(\alpha_s-\alpha)] E [( g s − g ) ( α s − α )] , the covariance of the errors in the regression and in its Riesz representer when the omitted variables are dropped, and their Corollary 1 bounds it through nonparametric partial R 2 R^2 R 2 values. The expected conditional covariance E [ Cov ( X , Y ∣ ψ ( Z ) ) ] = E [ ( X − E [ X ∣ ψ ( Z ) ] ) Y ] \mathbb{E}[\operatorname{Cov}(X,Y\mid\psi(Z))]=\mathbb{E}[(X-\mathbb{E}[X\mid\psi(Z)])Y] E [ Cov ( X , Y ∣ ψ ( Z ))] = E [( X − E [ X ∣ ψ ( Z )]) Y ] is a linear functional of the regression E [ Y ∣ X , ψ ( Z ) ] \mathbb{E}[Y \mid X,\psi(Z)] E [ Y ∣ X , ψ ( Z )] with representer X − E [ X ∣ ψ ( Z ) ] X-\mathbb{E}[X \mid\psi(Z)] X − E [ X ∣ ψ ( Z )] . The long versions condition on Z Z Z , so the representer error is Δ ψ ( X ) \Delta_\psi(X) Δ ψ ( X ) , and under H 0 H_0 H 0 the long functional is zero and the regression error is E [ Y ∣ X , ψ ( Z ) ] − E [ Y ∣ Z ] \mathbb{E}[Y \mid X,\psi(Z)]-\mathbb{E}[Y \mid Z] E [ Y ∣ X , ψ ( Z )] − E [ Y ∣ Z ] . Their identity and (1) thus describe the same bias, but (1) splits it symmetrically into Δ ψ ( X ) \Delta_\psi(X) Δ ψ ( X ) and Δ ψ ( Y ) \Delta_\psi(Y) Δ ψ ( Y ) , and the Y Y Y -side term does not involve X X X . This is what makes R ψ 2 ( X ) R_\psi^2(X) R ψ 2 ( X ) and R ψ 2 ( Y ) R_\psi^2(Y) R ψ 2 ( Y ) the natural sensitivity parameters; each is a correlation ratio, the kind of nonparametric partial R 2 R^2 R 2 used in their Corollary 1.
Robustness values
Definition B.1 (Robustness value). *For a level α \alpha α , R V α \mathrm{RV}_\alpha RV α is the smallest tolerance B ≥ 0 B \ge0 B ≥ 0 at which the robust test does not reject. That is, R V α : = 0 \mathrm{RV}_\alpha:= 0 RV α := 0 if p 0 ≥ α p_0 \ge\alpha p 0 ≥ α , and otherwise R V α \mathrm{RV}_\alpha RV α is the unique B B B with p B = α p_B = \alpha p B = α .
By the fact at the start of Appendix § 6 .§ 4 , with μ = n B / v ^ ψ \mu= \sqrt{n}B/\widehat{v}_\psi μ = n B / v ψ , p B p_B p B is nondecreasing in B B B , and strictly increasing if ρ ^ ψ > 0 \widehat{\rho}_\psi> 0 ρ ψ > 0 . It is also continuous in B B B and tends to 1 as B → ∞ B \to\infty B → ∞ . If p 0 < α p_0 < \alpha p 0 < α , then ρ ^ ψ > 0 \widehat{\rho}_\psi> 0 ρ ψ > 0 , so exactly one B B B has p B = α p_B = \alpha p B = α . In both cases, the robust test with tolerance B B B rejects if and only if B < R V α B < \mathrm{RV}_\alpha B < RV α .
Identification with replicates
The sensitivity parameters involve E [ X ∣ Z ] \mathbb{E}[X \mid Z] E [ X ∣ Z ] and E [ Y ∣ Z ] \mathbb{E}[Y \mid Z] E [ Y ∣ Z ] , which cannot be estimated directly from a text-valued Z Z Z , but they are identified when conditionally independent replicates are available, as in the application, where several replies share a Z Z Z , and in Experiment 3, where the generating model can be sampled. 20 regenerated comments and summaries per post identify the three parameters for every embedding (§ 4.3 ).
Proposition B.2 (Identification with replicates). Let X ′ X' X ′ be square integrable and conditionally independent of ( X , Y ) (X,Y) ( X , Y ) given Z Z Z , with the same conditional law given Z Z Z as X X X . Then Cov ( X , X ′ ) = Var ( E [ X ∣ Z ] ) \operatorname{Cov}(X,X')=\operatorname{Var}(\mathbb{E}[X \mid Z]) Cov ( X , X ′ ) = Var ( E [ X ∣ Z ]) , so that σ i d 2 ( X ) = Var ( X ) − Cov ( X , X ′ ) \sigma_{\mathrm{id}}^2(X)=\operatorname{Var}(X)-\operatorname{Cov}(X,X') σ id 2 ( X ) = Var ( X ) − Cov ( X , X ′ ) , E [ Δ ψ ( X ) 2 ] = Cov ( X , X ′ ) − Var ( E [ X ∣ ψ ( Z ) ] ) \mathbb{E}[\Delta_\psi(X)^2]=\operatorname{Cov}(X,X')-\operatorname{Var}(\mathbb{E}[X \mid\psi(Z)]) E [ Δ ψ ( X ) 2 ] = Cov ( X , X ′ ) − Var ( E [ X ∣ ψ ( Z )]) , and R ψ 2 ( X ) R_\psi^2(X) R ψ 2 ( X ) are identified from the joint law of ( X , X ′ , ψ ( Z ) ) (X,X',\psi(Z)) ( X , X ′ , ψ ( Z )) . If Y ′ Y' Y ′ is such a replicate of Y Y Y , conditionally independent of X X X given Z Z Z , then Cov ( X , Y ′ ) = Cov ( E [ X ∣ Z ] , E [ Y ∣ Z ] ) \operatorname{Cov}(X,Y')=\operatorname{Cov}(\mathbb{E}[X \mid Z],\mathbb{E}[Y \mid Z]) Cov ( X , Y ′ ) = Cov ( E [ X ∣ Z ] , E [ Y ∣ Z ]) , so that Cov ( Δ ψ ( X ) , Δ ψ ( Y ) ) = Cov ( X , Y ′ ) − Cov ( E [ X ∣ ψ ( Z ) ] , E [ Y ∣ ψ ( Z ) ] ) \operatorname{Cov}(\Delta_\psi(X),\Delta_\psi(Y))=\operatorname{Cov}(X,Y')-\operatorname{Cov}(\mathbb{E}[X \mid\psi(Z)],\mathbb{E}[Y \mid\psi(Z)]) Cov ( Δ ψ ( X ) , Δ ψ ( Y )) = Cov ( X , Y ′ ) − Cov ( E [ X ∣ ψ ( Z )] , E [ Y ∣ ψ ( Z )]) and λ \lambda λ are identified.
Proof. E [ X X ′ ] = E [ E [ X ∣ Z ] E [ X ′ ∣ Z ] ] = E [ ( E [ X ∣ Z ] ) 2 ] \mathbb{E}[XX'] = \mathbb{E}[\mathbb{E}[X \mid Z]\mathbb{E}[X' \mid Z]] = \mathbb{E}[(\mathbb{E}[X \mid Z])^2] E [ X X ′ ] = E [ E [ X ∣ Z ] E [ X ′ ∣ Z ]] = E [( E [ X ∣ Z ] ) 2 ] by conditional independence and equality of the conditional laws; subtracting E [ X ] E [ X ′ ] = ( E [ X ] ) 2 \mathbb{E}[X]\mathbb{E}[X'] = (\mathbb{E}[X])^2 E [ X ] E [ X ′ ] = ( E [ X ] ) 2 gives the first claim. Since E [ X ∣ Z ] = E [ X ∣ ψ ( Z ) ] + Δ ψ ( X ) \mathbb{E}[X \mid Z] = \mathbb{E}[X \mid\psi(Z)] + \Delta_\psi(X) E [ X ∣ Z ] = E [ X ∣ ψ ( Z )] + Δ ψ ( X ) with E [ Δ ψ ( X ) ∣ ψ ( Z ) ] = 0 \mathbb{E}[\Delta_\psi(X) \mid\psi(Z)] = 0 E [ Δ ψ ( X ) ∣ ψ ( Z )] = 0 , Var ( E [ X ∣ Z ] ) = Var ( E [ X ∣ ψ ( Z ) ] ) + E [ Δ ψ ( X ) 2 ] \operatorname{Var}(\mathbb{E}[X \mid Z]) = \operatorname{Var}(\mathbb{E}[X \mid\psi(Z)]) + \mathbb{E}[\Delta_\psi(X)^2] Var ( E [ X ∣ Z ]) = Var ( E [ X ∣ ψ ( Z )]) + E [ Δ ψ ( X ) 2 ] , and Var ( X ) = σ i d 2 ( X ) + Var ( E [ X ∣ Z ] ) \operatorname{Var}(X) = \sigma_{\mathrm{id}}^2(X) + \operatorname{Var}(\mathbb{E}[X \mid Z]) Var ( X ) = σ id 2 ( X ) + Var ( E [ X ∣ Z ]) . For Y ′ Y' Y ′ , E [ X Y ′ ] = E [ E [ X ∣ Z ] E [ Y ∣ Z ] ] \mathbb{E}[XY'] = \mathbb{E}[\mathbb{E}[X \mid Z]\mathbb{E}[Y \mid Z]] E [ X Y ′ ] = E [ E [ X ∣ Z ] E [ Y ∣ Z ]] , and the same decomposition gives Cov ( E [ X ∣ Z ] , E [ Y ∣ Z ] ) = Cov ( E [ X ∣ ψ ( Z ) ] , E [ Y ∣ ψ ( Z ) ] ) + Cov ( Δ ψ ( X ) , Δ ψ ( Y ) ) \operatorname{Cov}(\mathbb{E}[X \mid Z],\mathbb{E}[Y \mid Z]) = \operatorname{Cov}(\mathbb{E}[X \mid\psi(Z)],\mathbb{E}[Y \mid\psi(Z)]) + \operatorname{Cov}(\Delta_\psi(X),\Delta_\psi(Y)) Cov ( E [ X ∣ Z ] , E [ Y ∣ Z ]) = Cov ( E [ X ∣ ψ ( Z )] , E [ Y ∣ ψ ( Z )]) + Cov ( Δ ψ ( X ) , Δ ψ ( Y )) .
Second embeddings ψ ′ \psi' ψ ′ that depend on Z Z Z and on independent noise U U U , such as a replicate X ′ X' X ′ or the mean of several, are covered by Proposition 3.6 after replacing Z Z Z by ( Z , U ) (Z,U) ( Z , U ) . Since U U U is independent of ( X , Y , Z ) (X,Y,Z) ( X , Y , Z ) , the hypothesis H 0 H_0 H 0 , the conditional means given Z Z Z , and hence Δ ψ ( X ) \Delta_\psi(X) Δ ψ ( X ) , Δ ψ ( Y ) \Delta_\psi(Y) Δ ψ ( Y ) , R ψ 2 ( X ) R_\psi^2(X) R ψ 2 ( X ) , and R ψ 2 ( Y ) R_\psi^2(Y) R ψ 2 ( Y ) are unchanged.
Implementation details
Algorithm 1 summarizes the procedure of § 3 . The rest of this appendix describes the regressions and the details of each experiment.
Algorithm 1 Sensitivity analysis for an embedded conditional independence test
Require: Observations ( X i , Y i ) i ≤ n (X_i,Y_i)_{i\le n} ( X i , Y i ) i ≤ n , embeddings ψ ( Z i ) \psi(Z_i) ψ ( Z i ) and ψ ′ ( Z i ) \psi'(Z_i) ψ ′ ( Z i ) , number of folds K K K , level α \alpha α , optional tolerance B B B .
Cross-fit regressions of X X X and Y Y Y on ψ ( Z ) \psi(Z) ψ ( Z ) ; form residuals r ^ X , i , r ^ Y , i \hat r_{X,i},\hat r_{Y,i} r ^ X , i , r ^ Y , i .
Compute ρ ^ ψ ± \hat\rho_\psi^{\pm} ρ ^ ψ ± by (2) and ρ ^ ψ = ∣ ρ ^ ψ ± ∣ \hat\rho_\psi= |\hat\rho_\psi^{\pm}| ρ ^ ψ = ∣ ρ ^ ψ ± ∣ , v ^ ψ \hat v_\psi v ^ ψ by (A.3), the p p p -value p 0 p_0 p 0 of § 3.2 , and R V α \mathrm{RV}_\alpha RV α of Definition B.1.
Cross-fit regressions of X X X and Y Y Y on ( ψ ( Z ) , ψ ′ ( Z ) ) (\psi(Z),\psi'(Z)) ( ψ ( Z ) , ψ ′ ( Z )) ; compute R ^ ψ → ψ ′ 2 ( X ) \hat R^2_{\psi\to\psi'}(X) R ^ ψ → ψ ′ 2 ( X ) , R ^ ψ → ψ ′ 2 ( Y ) \hat R^2_{\psi\to\psi'}(Y) R ^ ψ → ψ ′ 2 ( Y ) and ρ ^ ψ → ψ ′ \hat\rho_{\psi\to\psi'} ρ ^ ψ → ψ ′ (§ 3.4 ).
If a tolerance B B B is given, reject H 0 H_0 H 0 if p B < α p_B < \alpha p B < α , with p B p_B p B from (3) .
Ensure: p 0 p_0 p 0 , R V α \mathrm{RV}_\alpha RV α , ρ ^ ψ → ψ ′ \hat\rho_{\psi\to\psi'} ρ ^ ψ → ψ ′ , and the robust decision.
Regressions and cross-fitting
All conditional means are estimated with K = 5 K = 5 K = 5 folds. The regressions on ψ ( Z ) \psi(Z) ψ ( Z ) and on ( ψ ( Z ) , ψ ′ ( Z ) ) (\psi(Z),\psi'(Z)) ( ψ ( Z ) , ψ ′ ( Z )) use the same folds, and inputs are standardized on the training folds. In Experiments 1 and 2, we use least squares when every training fold has at least as many rows as the conditioning set has coordinates, which on the grids of both experiments is the condition n ≥ d n \ge d n ≥ d , and ridge regression with the penalty chosen by leave-one-out cross-validation otherwise; the two regressions of a benchmark use the procedure of the richer set. In Experiment 1 every regression is therefore least squares, and in Experiment 2 only the 1152-dimensional set at n < 2,000 n < 2{,}000 n < 2 , 000 is fitted by ridge regression. In Experiment 3 and in the application, every regression is least squares, and we report an embedding only if every training fold has at least 2.5 times as many rows as the embedding has coordinates.
Each procedure has a drawback. The estimation variance of least squares near n = d n = d n = d , of order d / ( n t r a i n − d ) d/(n_{\mathrm{train}}-d) d / ( n train − d ) , is not captured by the standard error of Proposition 3.2 , and the residual correlation test then loses its level even when the discarded parts are uncorrelated. With ψ = E 1 \psi= E_1 ψ = E 1 and λ = 0 \lambda= 0 λ = 0 in Experiment 2, the rejection rate under H 0 H_0 H 0 is 0.51 at n = 500 n = 500 n = 500 , where the training folds hold 400 rows for 384 coordinates, and 0.22 at n = 1000 n = 1000 n = 1000 , against 0.07 to 0.10 from n = 2000 n = 2000 n = 2000 on. Ridge regression has no such variance, but a penalty chosen for prediction shrinks the fitted means and can leave correlated parts of the discarded information in both residuals. On the sufficient 1152-dimensional set of Experiment 2 it rejects at rate 0.73 at n = 10,000 n = 10{,}000 n = 10 , 000 , where ρ ^ ψ = 0.026 \hat\rho_\psi= 0.026 ρ ^ ψ = 0.026 , which is why we use least squares wherever n ≥ d n \ge d n ≥ d . The sentiment direction of Experiment 3 and the prognostic score of the application are ridge predictions; they define variables and are not regressions of the test.
Standard errors and p p p -values
The standard error of ρ ^ ψ ± \hat\rho_\psi^{\pm} ρ ^ ψ ± is v ^ ψ / n \hat v_\psi/\sqrt{n} v ^ ψ / n , with v ^ ψ 2 \hat v_\psi^2 v ^ ψ 2 from (A.3). Where rows are clustered, as in the application, the estimated influence function is summed within clusters. The p p p -values p 0 p_0 p 0 and p B p_B p B of § 3.2 and § 3.3 use this standard error, and R V α \mathrm{RV}_\alpha RV α is computed by bisection.
Demonstrated insufficiency
We estimate R ψ → ψ ′ 2 ( X ) R^2_{\psi\to\psi'}(X) R ψ → ψ ′ 2 ( X ) by one minus the ratio of the cross-fitted mean squared error of the regression on ( ψ ( Z ) , ψ ′ ( Z ) ) (\psi(Z),\psi'(Z)) ( ψ ( Z ) , ψ ′ ( Z )) to that of the regression on ψ ( Z ) \psi(Z) ψ ( Z ) , truncated at zero, with the same folds for both regressions. Each cross-fitted mean squared error is the residual variance plus the mean squared estimation error of its regression. To leading order, the estimate is therefore R ψ → ψ ′ 2 ( X ) R^2_{\psi\to\psi'}(X) R ψ → ψ ′ 2 ( X ) minus the excess estimation error of the richer regression over the base regression, relative to σ ψ 2 ( X ) \sigma^2_{\psi}(X) σ ψ 2 ( X ) , and the truncated estimate is zero unless R ψ → ψ ′ 2 ( X ) R^2_{\psi\to\psi'}(X) R ψ → ψ ′ 2 ( X ) exceeds this excess, which is of order d ′ / n d'/n d ′ / n for least squares with d ′ d' d ′ added coordinates. A one-dimensional prognostic score adds almost no estimation error, which is why it demonstrates insufficiency more reliably than a richer embedding (§ 3.4 ). In Experiment 2, the 768 coordinates of E 2 E_2 E 2 demonstrate none of an insufficiency that they explain in full (Appendix D).
Corpus and encoders
The 20 Newsgroups posts have headers, footers and quoted text removed. We drop posts with fewer than 30 words and cut longer posts at 300 words, leaving 15,521 posts. E 1 E_1 E 1 is all-MiniLM-L6-v2 (d = 384 d = 384 d = 384 ) and E 2 E_2 E 2 is all-mpnet-base-v2 (d = 768 d = 768 d = 768 ), both used through the sentence-transformers library (Reimers and Gurevych, [26 ] ) with default pooling and a window of 256 word pieces.
Experiment 1
Let θ X , q : p \theta_{X,q:p} θ X , q : p and θ Y , q : p \theta_{Y,q:p} θ Y , q : p be the coefficients of the dropped coordinates Z q : p Z_{q:p} Z q : p . Then Δ ψ q ( X ) = θ X , q : p T Z q : p \Delta_{\psi_q}(X) = \theta_{X,q:p}^{\mathsf{T}}Z_{q:p} Δ ψ q ( X ) = θ X , q : p T Z q : p , R ψ q 2 ( X ) = ∥ θ X , q : p ∥ 2 / ( ∥ θ X , q : p ∥ 2 + 1 ) R^2_{\psi_q}(X) = \lVert\theta_{X,q:p}\rVert^2/(\lVert\theta_{X,q:p}\rVert^2 + 1) R ψ q 2 ( X ) = ∥ θ X , q : p ∥ 2 / (∥ θ X , q : p ∥ 2 + 1 ) , and λ \lambda λ is the cosine of the angle between θ X , q : p \theta_{X,q:p} θ X , q : p and θ Y , q : p \theta_{Y,q:p} θ Y , q : p . We set R ψ q 2 ( X ) = R ψ q 2 ( Y ) = 0.1 R^2_{\psi_q}(X) = R^2_{\psi_q}(Y) = 0.1 R ψ q 2 ( X ) = R ψ q 2 ( Y ) = 0.1 , so that R ψ q 2 ( X ) R ψ q 2 ( Y ) = 0.1 \sqrt{R^2_{\psi_q}(X)R^2_{\psi_q}(Y)} = 0.1 R ψ q 2 ( X ) R ψ q 2 ( Y ) = 0.1 , and repeat every configuration 500 times. The power experiment uses n = 1000 n = 1000 n = 1000 , the sufficient embedding and the alternative Y = θ Y T Z + γ X + ε Y Y = \theta_Y^{\mathsf{T}}Z + \gamma X + \varepsilon_Y Y = θ Y T Z + γ X + ε Y .
Experiment 2
The outcomes are
X = h X + c g 1 + ε X , Y = h Y + c ( λ g 1 + 1 − λ 2 g 2 ) + ε Y . \begin{aligned}
X &= h_X + c g_1 + \varepsilon_X, \qquad Y = h_Y + c\left(\lambda g_1 + \sqrt{1-\lambda^2}\,g_2\right) + \varepsilon_Y.
\end{aligned} X = h X + c g 1 + ε X , Y = h Y + c ( λ g 1 + 1 − λ 2 g 2 ) + ε Y .
with independent standard normal ε X , ε Y \varepsilon_X,\varepsilon_Y ε X , ε Y . Here h X h_X h X and h Y h_Y h Y are the standardized first two principal components of E 1 ( Z ) E_1(Z) E 1 ( Z ) , which E 1 E_1 E 1 captures fully. The features g 1 g_1 g 1 and g 2 g_2 g 2 are standardized projections on two random directions of the residual of the standardized E 2 ( Z ) E_2(Z) E 2 ( Z ) after a least squares regression on E 1 ( Z ) E_1(Z) E 1 ( Z ) over the corpus, with g 2 g_2 g 2 orthogonalized against g 1 g_1 g 1 . Both are linear functions of [ E 1 ( Z ) , E 2 ( Z ) ] [E_1(Z), E_2(Z)] [ E 1 ( Z ) , E 2 ( Z )] and uncorrelated with E 1 ( Z ) E_1(Z) E 1 ( Z ) , so E 1 E_1 E 1 captures none of them and E 2 E_2 E 2 demonstrates all of the insufficiency of E 1 E_1 E 1 . The constant c = r 2 / ( 1 − r 2 ) c = \sqrt{r^2/(1-r^2)} c = r 2 / ( 1 − r 2 ) with r 2 = 0.1 r^2 = 0.1 r 2 = 0.1 sets R E 1 2 ( X ) ≈ R E 1 2 ( Y ) ≈ 0.109 R^2_{E_1}(X) \approx R^2_{E_1}(Y) \approx0.109 R E 1 2 ( X ) ≈ R E 1 2 ( Y ) ≈ 0.109 and ρ E 1 ≈ 0.109 \rho_{E_1} \approx0.109 ρ E 1 ≈ 0.109 at λ = 1 \lambda= 1 λ = 1 . Under the alternative, Y Y Y receives an additional term γ X \gamma X γ X . The population values of R E 1 2 ( X ) R^2_{E_1}(X) R E 1 2 ( X ) , R E 1 2 ( Y ) R^2_{E_1}(Y) R E 1 2 ( Y ) , ρ E 1 \rho_{E_1} ρ E 1 and the benchmark are computed by cross-fitted least squares on 8000 posts; the partial R 2 R^2 R 2 is 0.109 rather than 0.1 because the cross-fitted regression on the 384 coordinates of E 1 ( Z ) E_1(Z) E 1 ( Z ) leaves an estimation error of order d / n d/n d / n in the residual. The oracle tolerance of the robust test in Figure 2 is this cross-fitted value, so it includes the estimation error of a least squares regression at n = 8000 n = 8000 n = 8000 ; the design value under the exact linear projection is 0.1. The population benchmark of E 2 E_2 E 2 is 0.109, the full insufficiency, because E [ X ∣ Z ] E[X \mid Z] E [ X ∣ Z ] and E [ Y ∣ Z ] E[Y \mid Z] E [ Y ∣ Z ] are linear in [ E 1 ( Z ) , E 2 ( Z ) ] [E_1(Z), E_2(Z)] [ E 1 ( Z ) , E 2 ( Z )] ; its estimate uses the 1152-dimensional set and follows that set’s regression rule. The rejection rates under H 0 H_0 H 0 use 500 (200 for the high-dimensional encoder) draws of the outcomes per configuration, the sensitivity analysis 100 draws, and the power curves, at n = 2000 n = 2000 n = 2000 , 100 draws. Kernel ridge regression with a Gaussian kernel in place of least squares gives the same picture for ψ = E 1 \psi= E_1 ψ = E 1 (population R E 1 2 ( X ) = 0.095 R^2_{E_1}(X) = 0.095 R E 1 2 ( X ) = 0.095 , benchmark 0.092) and inflates the level of the 1152-dimensional set, as ridge regression does.
Experiment 3
The generator is Qwen3-1.7B ([25 ] ) (bfloat16, Hugging Face transformers on a laptop GPU) with the system prompt and the two instructions of Appendix § 10 , the persona drawn per post with a fixed seed, sampling at temperature 1 with nucleus probability 0.95 and at most 160 new tokens, and the model’s thinking mode disabled. The comment ends with a line in which it labels its own sentiment as positive, neutral or negative (coded +1, 0, −1), which we parse and remove before the comment is used; all but one of the 3000 comments carried a label, and that one is dropped. The label is the target of a cross-fitted ridge regression on the E 1 E_1 E 1 embedding of the comment, and its out-of-fold predictions on the E 1 E_1 E 1 embeddings of the comment and of the summary are X X X and Y Y Y . The direction is cross-fitted with the same five folds as the residual regressions, so the comments of a fold enter, through the direction, the values of X X X and Y Y Y in the other folds; for a ridge direction at n = 3000 n = 3000 n = 3000 this leakage is small. Both encoders read the first 256 word pieces of a post, and only 2.9% of the posts are longer.
The hidden states come from a forward pass over the summary prompt, which contains the post and a fixed instruction and nothing else, in batches of ten posts in a fixed order, since left padding changes the states slightly. The four embeddings are the mean over the prompt tokens and the state at the last prompt token, each at the output of the last layer and of layer 14 of 28; principal components are fitted on the 3000 posts. By the rule above, every embedding of at most 960 coordinates is reported, and the 1152- and 2048-dimensional ones are not.
We drew the replicates with vLLM, with the same bfloat16 weights, prompts, sampling settings and label parsing, and the persona redrawn per draw: 20 comments and 20 summaries for each of the 3000 posts, 120,000 texts in all. 2,997 posts have all draws complete and a labelled observed comment. The regenerated comments match the observed ones in length, label frequencies and the share written in the first person, so the two runs sample the same law. The analysis follows Proposition B.2 . Var ( E [ X ∣ Z ] ) \operatorname{Var}(\mathbb{E}[X \mid Z]) Var ( E [ X ∣ Z ]) and Cov ( E [ X ∣ Z ] , E [ Y ∣ Z ] ) \operatorname{Cov}(\mathbb{E}[X \mid Z],\mathbb{E}[Y \mid Z]) Cov ( E [ X ∣ Z ] , E [ Y ∣ Z ]) are the between-post components of a balanced one-way analysis of variance over the draws. Var ( E [ X ∣ ψ ( Z ) ] ) \operatorname{Var}(\mathbb{E}[X \mid\psi(Z)]) Var ( E [ X ∣ ψ ( Z )]) is estimated by the sample covariance of the cross-fitted prediction m ^ X ( ψ ( Z i ) ) \hat{m}_X(\psi(Z_i)) m ^ X ( ψ ( Z i )) with X i X_i X i , which, unlike the cross-fitted mean squared error, is not inflated by the estimation error of the regression, and Cov ( E [ X ∣ ψ ( Z ) ] , E [ Y ∣ ψ ( Z ) ] ) \operatorname{Cov}(\mathbb{E}[X \mid\psi(Z)],\mathbb{E}[Y \mid\psi(Z)]) Cov ( E [ X ∣ ψ ( Z )] , E [ Y ∣ ψ ( Z )]) by the average of the two cross covariances of a prediction with the other variable. Then σ ψ 2 ( X ) = Var ( X ) − Var ( E [ X ∣ ψ ( Z ) ] ) \sigma_\psi^2(X)=\operatorname{Var}(X)-\operatorname{Var}(\mathbb{E}[X \mid\psi(Z)]) σ ψ 2 ( X ) = Var ( X ) − Var ( E [ X ∣ ψ ( Z )]) gives R ψ 2 ( X ) R_\psi^2(X) R ψ 2 ( X ) , R ψ 2 ( Y ) R_\psi^2(Y) R ψ 2 ( Y ) , λ \lambda λ and the true insufficiency, with 95% percentile intervals from 200 bootstrap samples of posts. Each null dataset takes one comment draw and one summary draw per post, independently, is scored with the sentiment direction of the observed data, and is tested exactly like the observed data. Figure D.6 in Appendix D compares ρ ^ ψ \hat{\rho}_\psi ρ ^ ψ on these datasets with the prediction and the bound of Theorem 2.3 for every embedding.
The alternatives re-pair the draws within each post. With probability π \pi π , a comment draw is paired with the summary draw whose rank among the 20 summary draws of the post equals its own rank among the comment draws, and otherwise with an independent draw. Only the pairing changes, so every quantity identified above is unchanged, and the conditional covariance given the post is π \pi π times that of the sorted draws. Hence π \pi π sets ρ i d \rho_{\mathrm{id}} ρ id exactly, up to 0.84 at π = 1 \pi=1 π = 1 , and the induced dependence is positive, the direction of the bias here. By Theorem 2.3 , the residual correlation with E 1 E_1 E 1 is 0.47 ρ i d + 0.218 0.47\rho_{\mathrm{id}}+0.218 0.47 ρ id + 0.218 , and the mean of ρ ^ ψ \hat{\rho}_\psi ρ ^ ψ over the 200 datasets per value follows this line to within 0.01. The reference test residualizes X X X and Y Y Y on the means of the draws of the post that the dataset does not use. Under H 0 H_0 H 0 these means are independent of the dataset given the post, and their error enters the residual variances, so the reference approximates the test with the post observed. Figure D.7 in Appendix D shows the rejection rates for E 1 E_1 E 1 , E 2 E_2 E 2 and the generator’s state.
Application
From the 3,051 conversations of the ChangeMyView corpus we keep every reply whose parent is a comment rather than the post, written by neither the original poster, a bot, nor the author of the parent, not deleted, of at least twenty words and with a score; the parent must not be deleted and must have at least five words. We keep the earliest reply per user and parent, at most 8 replies per parent (sampled at random with a fixed seed), and parents with at least two such replies. This gives 49,050 rows under 18,743 parent comments in 2,653 posts, 2.6 rows per parent on average. Z Z Z is the parent comment, of median length 78 words; 16% of the parents are top-level replies to the post and the rest lie deeper in the thread. Scores are Reddit scores at collection time, and Y = sign ( s ) log ( 1 + ∣ s ∣ ) Y=\operatorname{sign}(s)\log(1+\lvert s\rvert) Y = sign ( s ) log ( 1 + ∣ s ∣) for a score s s s . The delta indicator marks the comment that a delta was awarded to, the ancestor of the DeltaBot confirmation written by the awarded user (1.4% of the rows). Besides the politeness rating and the log length, we use as X X X a lexicon score, politeness markers minus hostile markers per hundred words.
Politeness is rated by Jev [37 ] , a decision model that answers a rubric question with a probability-weighted score instead of generating text. The reply is passed as the state, the instruction is “Rate the politeness of this online comment. Judge tone and courtesy only, not the opinion expressed.”, and the five levels of the rubric are rude or hostile, somewhat impolite or curt, neutral, polite, and very polite and courteous, coded 1 to 5, so that the score is continuous (median 2.57, standard deviation 0.76). All 49,050 replies were rated in twelve minutes at a cost of 1.0 USD. As a check, 4,728 of the replies were also rated by Claude Haiku 4.5 [1 ] at temperature 0, with the system prompt “You rate the politeness of online comments for a research dataset. Judge tone and courtesy only, not the opinion expressed. Answer with a single digit.” and the user prompt “Comment: <<<[reply]>>> Rate the politeness of this comment from 1 (rude or hostile) to 5 (very polite and courteous). Answer with a single digit.” The two ratings have correlation 0.80 (rank correlation 0.79). The rounded score agrees exactly in 45% of the cases and within one point in 97%, and its mean rises from 1.21 to 4.21 across the five levels of the other rating, so the two scales differ by a shift of about half a point and not in order.
The embeddings of Z Z Z are E 1 E_1 E 1 and E 2 E_2 E 2 of the parent comment, which fits into the 256 wordpiece window for 84% of the parents; its surface statistics S S S (length, sentence count, character classes, mean word length and presence of a URL) and 300 TF-IDF singular directions L L L ; its metadata M M M (log length, signed log score, whether the original poster wrote it, depth, log number of replies, whether it quotes its parent, presence of a URL); the E 1 E_1 E 1 embedding P P P of the post it belongs to; combinations of these with E 1 E_1 E 1 ; and the prognostic score, the cross-fitted ridge predictions of X X X and of Y Y Y from [ L , S , M ] [L,S,M] [ L , S , M ] . Folds are grouped by post, and standard errors sum the influence function within posts. The baseline demeans and permutes X X X within parents. The variance components are unbiased analysis-of-variance estimates for unbalanced groups with parents as groups, and λ ^ \hat{\lambda} λ ^ is the between-parent covariance of the two variables divided by the product of their between-parent standard deviations.
Computation
Experiments 1 and 2 run on a laptop, in minutes and in about one hour, respectively. The generation of Experiment 3 took about 3.4 hours on the laptop’s GPU and the hidden states ten minutes; the replicates took five minutes on one H100 GPU.
Licenses
Qwen3-1.7B and the two sentence encoders are released under the Apache 2.0 license. The 20 Newsgroups corpus and the ChangeMyView corpus of ConvoKit are distributed by their creators for research use without a stated license. The ratings by Jev and Claude Haiku 4.5 were obtained through the providers’ commercial APIs under their terms of use.
Experiment 1. Figure D.1 plots ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ under H 0 H_0 H 0 against R ψ 2 ( X ) R ψ 2 ( Y ) \sqrt{R_{\psi}^{2}(X)R_{\psi}^{2}(Y)} R ψ 2 ( X ) R ψ 2 ( Y ) for five values of λ \lambda λ . The points lie on the lines λ R ψ 2 ( X ) R ψ 2 ( Y ) \lambda\sqrt{R_{\psi}^{2}(X)R_{\psi}^{2}(Y)} λ R ψ 2 ( X ) R ψ 2 ( Y ) of (1) , and the bound is attained at λ = 1 \lambda=1 λ = 1 . Figure D.2 (left) shows the power at n = 1000 n=1000 n = 1000 with the sufficient embedding. The power curve of the robust test is that of the residual correlation test shifted to the right by roughly B B B , as Corollary A.3 predicts: at γ = 0.1 \gamma=0.1 γ = 0.1 , the residual correlation test has power 0.90 and the robust test with B = 0.1 B=0.1 B = 0.1 has power 0.04. Figure D.2 (right) shows ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ and R V α RV_{\alpha} R V α under H 0 H_0 H 0 with the insufficient embedding at λ = 1 \lambda= 1 λ = 1 . The statistic ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ is centred at ρ ψ q = 0.1 \rho_{\psi q} = 0.1 ρ ψ q = 0.1 , and R V α \mathrm{RV}_{\alpha} RV α lies below this population value in 95% of the runs.
Figure D.1. Experiment 1, ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ under H 0 H_0 H 0 against R ψ 2 ( X ) R ψ 2 ( Y ) \sqrt{R_{\psi}^{2}(X)R_{\psi}^{2}(Y)} R ψ 2 ( X ) R ψ 2 ( Y ) for five values of λ \lambda λ . Solid lines are λ R ψ 2 ( X ) R ψ 2 ( Y ) \lambda\sqrt{R_{\psi}^{2}(X)R_{\psi}^{2}(Y)} λ R ψ 2 ( X ) R ψ 2 ( Y ) , the value under H 0 H_0 H 0 by (1) ; the dashed line is the bound.
Figure D.2. Experiment 1. Left: power at n = 1000 n = 1000 n = 1000 against the effect size γ \gamma γ of the alternative Y = θ Y T Z + γ X + ε Y Y = \theta_Y^{\mathsf{T}}Z + \gamma X + \varepsilon_Y Y = θ Y T Z + γ X + ε Y , with the sufficient embedding, for the residual correlation test and for the robust test with tolerances B ∈ { 0.05 , 0.1 , 0.2 } B \in\{0.05, 0.1, 0.2\} B ∈ { 0.05 , 0.1 , 0.2 } . Right: ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ (labelled R V = ∣ ρ ^ ∣ \mathrm{RV} = |\hat{\rho}| RV = ∣ ρ ^ ∣ in the legend, the robustness value of the point estimate) and R V α \mathrm{RV}_{\alpha} RV α against n n n under H 0 H_0 H 0 with the insufficient embedding at λ = 1 \lambda= 1 λ = 1 ; the dashed line is the population value ρ ψ q = 0.1 \rho_{\psi q} = 0.1 ρ ψ q = 0.1 .
Experiment 2. Figure D.3 shows the sensitivity analysis with ψ = E 1 \psi= E_1 ψ = E 1 and λ = 1 \lambda= 1 λ = 1 . The median of ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ is 0.118 at n = 500 n = 500 n = 500 and 0.103 at n = 10,000 n = 10{,}000 n = 10 , 000 , against the oracle bound 0.109, and the median R V α \mathrm{RV}_{\alpha} RV α rises from 0.039 to 0.087. The insufficiency of E 1 E_1 E 1 demonstrated by E 2 E_2 E 2 has population value 0.109, all of the truth, but its estimate has median 0.000 at every n n n : the excess estimation variance of the 768 added coordinates dominates the increment (Appendix C.§ 3 ). Figure D.4 shows the power at n = 2000 n = 2000 n = 2000 . At λ = 1 \lambda= 1 λ = 1 , the robust test with the oracle tolerance approximately holds its level (0.08 against 0.96 for the residual correlation test) and loses power at small effects.
Figure D.3. Experiment 2, ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ (median and interquartile range; labelled RV = ∣ ρ ^ ∣ |\hat{\rho}| ∣ ρ ^ ∣ in the legend), median R V α \mathrm{RV}_{\alpha} RV α , and the estimated benchmark ρ ^ E 1 → E 2 \hat{\rho}_{E_1\to E_2} ρ ^ E 1 → E 2 against n n n with ψ = E 1 \psi= E_1 ψ = E 1 and λ = 1 \lambda= 1 λ = 1 . The dashed line is the oracle bound, which equals the population benchmark.
Experiment 3. Figure D.5 shows ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ under H 0 H_0 H 0 for the four embeddings of the generator’s state against their dimension, together with the true insufficiency of each, and the rejection rates of the tests for the mean and the last-token state at the last layer. Figure D.6 checks the identity of Theorem 2.3 . For every embedding, the mean of ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ over the 200 null datasets lies within 0.006 of the prediction ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) |\lambda|\sqrt{R_{\psi}^{2}(X)R_{\psi}^{2}(Y)} ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) identified from the replicates, and below the bound R ψ 2 ( X ) R ψ 2 ( Y ) \sqrt{R_{\psi}^{2}(X)R_{\psi}^{2}(Y)} R ψ 2 ( X ) R ψ 2 ( Y ) , since λ \lambda λ lies between 0.64 and 0.72. Figure D.7 shows the rejection rates against the coupled alternatives for E 1 E_1 E 1 , E 2 E_2 E 2 and 384 principal components of the mean state at the last layer; the three embeddings give the same picture.
Application. Figure D.8 shows politeness and log length against score under every embedding of the comment being replied to. In both pairs, every embedded ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ lies between the unconditional correlation and the baseline, and closer to the former; for politeness, the embedded values range from 0.062 to 0.072 against a baseline of 0.094. The insufficiency of E 1 E_1 E 1 that any other embedding demonstrates is at most 0.024 over the six pairs. The baseline estimates ρ i d \rho_{\mathrm{id}} ρ id directly, so the gap to it is the bias of the embedded test. For E 1 E_1 E 1 , the identity (1) with ρ i d \rho_{\mathrm{id}} ρ id from the baseline and R E 1 2 ( X ) R_{E_1}^{2}(X) R E 1 2 ( X ) , R E 1 2 ( Y ) R_{E_1}^{2}(Y) R E 1 2 ( Y ) and λ \lambda λ from the variance components predicts ρ E 1 = 0.072 \rho_{E_1} = 0.072 ρ E 1 = 0.072 for politeness and 0.093 for log length, against measured values of 0.072 and 0.091.
Figure D.4. Experiment 2, power at n = 2000 n = 2000 n = 2000 against the effect size γ \gamma γ with ψ = E 1 \psi= E_1 ψ = E 1 , for the residual correlation test and for the robust test with tolerance equal to the oracle bound. Left: λ = 0 \lambda= 0 λ = 0 , where E 1 E_1 E 1 is insufficient but the residual correlation test is unbiased. Right: λ = 1 \lambda= 1 λ = 1 , where the residual correlation test rejects at rate 0.96 under H 0 H_0 H 0 .
Figure D.5. Experiment 3, the four embeddings of the generator’s state. Left: ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ under H 0 H_0 H 0 with 95% intervals against the dimension of ψ ( Z ) \psi(Z) ψ ( Z ) , for the principal components of the generator’s states (mean over the prompt tokens and last prompt token, at the last and the middle layer), for E 1 E_1 E 1 and E 2 E_2 E 2 , and the unadjusted correlation (dotted); hollow markers are the true insufficiency R ψ 2 ( X ) R ψ 2 ( Y ) \sqrt{R_{\psi}^{2}(X)R_{\psi}^{2}(Y)} R ψ 2 ( X ) R ψ 2 ( Y ) of each embedding, identified from the replicates. Right: rejection rate under H 0 H_0 H 0 over 200 null datasets drawn from the replicates, for the residual correlation test and for the robust test with the tolerance equal to half the true insufficiency, to the true bias ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) |\lambda|\sqrt{R_{\psi}^{2}(X)R_{\psi}^{2}(Y)} ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) and to the true insufficiency (B ∗ B^{*} B ∗ in the legend), for the mean and the last-token state at the last layer. All regressions are least squares.
Figure D.6. Experiment 3, identification check. For every embedding ψ \psi ψ , ρ ^ ψ \hat{\rho}_{\psi} ρ ^ ψ under H 0 H_0 H 0 (mean over the 200 null datasets, with twice its standard deviation) against the prediction ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) |\lambda|\sqrt{R_{\psi}^{2}(X)R_{\psi}^{2}(Y)} ∣ λ ∣ R ψ 2 ( X ) R ψ 2 ( Y ) of Theorem 2.3 (filled) and the bound R ψ 2 ( X ) R ψ 2 ( Y ) \sqrt{R_{\psi}^{2}(X)R_{\psi}^{2}(Y)} R ψ 2 ( X ) R ψ 2 ( Y ) (hollow), both identified from the replicates; the line is the diagonal. Every filled marker lies on the diagonal, to within 0.006, and every hollow marker to its right.
Figure D.7. Experiment 3, rejection rates against the coupled alternatives for ψ = E 1 \psi=E_1 ψ = E 1 , E 2 E_2 E 2 and 384 principal components of the generator’s mean state at the last layer, by the conditional correlation ρ i d \rho_{\mathrm{id}} ρ id of comment and summary given the post, over 200 datasets per value: the residual correlation test, the robust test with the tolerance equal to half the true insufficiency, to the true bias and to the true insufficiency (B ∗ B^{*} B ∗ in the legend), and the reference test that conditions on the post through the unused draws (Appendix C.7).
!Two-panel plot of application, politeness against score and log length against score. Left panel: X = politeness, Y = score; right panel: X = log length, Y = score. The x-axis categories are E1, E2, [E1, E2], S, M, L, P, [E1, M], [E1, P], [E1, L], prog., and [E1, prog.]. The y-axis is ρ ^ \hat{\rho} ρ ^ . Legend: stratified reference ρ ^ i d \hat{\rho}_{id} ρ ^ i d , no conditioning ρ 0 \rho_0 ρ 0 , ρ ^ E 1 → ψ ′ \hat{\rho}_{E_1\to\psi'} ρ ^ E 1 → ψ ′ , and embedded ρ ^ ψ \hat{\rho}_\psi ρ ^ ψ . bbox=0.20,0.32,0.86,0.55
Figure D.8. Application, politeness against score (left) and log length against score (right) under every embedding of the comment being replied to: E 1 E_1 E 1 , E 2 E_2 E 2 , [ E 1 , E 2 ] [E_1, E_2] [ E 1 , E 2 ] , the surface statistics S S S , the metadata M M M , the TF-IDF directions L L L , the post embedding P P P , combinations with E 1 E_1 E 1 , and the prognostic score. Circles: ρ ^ ψ \hat{\rho}_\psi ρ ^ ψ with 95% intervals; squares: the insufficiency of E 1 E_1 E 1 demonstrated by the added embedding, ρ ^ E 1 → ψ ′ \hat{\rho}_{E_1\to\psi'} ρ ^ E 1 → ψ ′ ; line and band: the baseline with its 95% interval; dotted: the unconditional correlation.
Language model prompts
Every call in Experiment 3 uses the system prompt below and one of the two instructions, with the post inserted in place of {Z}. The comment instruction inserts one of three personas, drawn uniformly at random per post: “who tends to be critical and skeptical”, “who tends to be appreciative and enthusiastic”, or “who is matter-of-fact and reserved”. The two calls for a post share nothing but the model weights, so X i ⊥ ⊥ Y i ∣ Z i X_i \perp\!\!\!\perp Y_i \mid Z_i X i ⊥ ⊥ Y i ∣ Z i holds conditional on the model (Remark C.1 ). The sampling settings are in Appendix C.7.
System prompt. You write short pieces of text for a research dataset on online discussions. Follow the instructions exactly. Write in natural, varied English. Output plain text only: no preamble, no headings, no quotation marks around the whole answer.
Comment. Below is a post from an online discussion forum. POST: <<< {Z} >>> Write a reader comment of 2-3 sentences reacting to this post, as a forum member {PERSONA} would. Then, on a new final line, write exactly one of the words POSITIVE, NEGATIVE or NEUTRAL to label the overall sentiment of your comment.
Summary. Below is a post from an online discussion forum. POST: <<< {Z} >>> Write a 2-3 sentence summary of this post for a newsletter that digests forum discussions. Output only the summary.
The label line is removed from the comment before embedding. Of the 2,999 comments with a label, 1815 report a positive, 1140 a negative and 44 a neutral sentiment.