Introduction
Machine learning models often face distribution shift: labelled training samples come from a source distribution, while predictions are required under a different target distribution. This mismatch complicates reliable evaluation, particularly in scientific domains where observations are collected along spatial transects, temporal monitoring campaigns, or clustered sampling schemes [21 ] . Specifically, under covariate shift , the conditional response law remains unchanged, while the marginal covariate distribution changes. In ecological and geospatial modelling, spatial transects and temporal monitoring campaigns produce structured observations, while uneven sampling may leave labelled source data systematically unrepresentative of the deployment region [10 ] .
A standard approach to estimating target risk from labelled source samples and unlabelled target covariates is to reweight source losses by the ratio of target to source covariate densities [23 , 25 ] . Estimating this ratio can be unstable when overlap is poor, source observations are sparse in high-ratio regions, or the ratio model is misspecified [11 ] . Kernel Mean Matching (KMM) provides an alternative to explicit density-ratio estimation: it computes source weights that align the empirical source and target kernel mean embeddings in a reproducing kernel Hilbert space (RKHS) [8 , 7 , 22 ] .
Despite KMM’s practical success, its standard finite-sample theory relies on independent observations (Yu and Szepesvári, 2012). This assumption is routinely violated in real-world settings characterized by temporal persistence, spatial autocorrelation, environmental gradients, or cluster sampling. For these dependent regimes, treating the data as independent leads to overconfidence, as the nominal sample size substantially overstates the true amount of statistical information.
This paper develops a dependent-sampling foundation for KMM risk-estimation guarantees. The guiding principle of our approach is that the standard i.i.d. proof structure remains valid if standard concentration inequalities are replaced by their dependent counterparts, substituting the nominal sample size n n n with an effective sample size n e f f n_{\mathrm{eff}} n eff . Although n e f f n_{\mathrm{eff}} n eff is a long-standing cornerstone for diagnosing correlation in Markov Chain Monte Carlo [9 , 28 ] , bounding weight degradation in importance sampling [13 ] , and estimating spatial degrees of freedom [3 ] , our work formally integrates this concept into non-parametric RKHS generalization bounds [6 ] for domain adaptation. This allows us to derive risk-estimation bounds under covariate shift and non-i.i.d. sampling that decompose the distinct roles of distribution overlap, data dependence, and function smoothness. Furthermore, our theoretical analysis reveals an important underlying tradeoff: smoother target or loss functions have lower statistical complexity, but when evaluated along a correlated covariate sequence, they preserve more dependence, which inherently reduces the effective sample size.
Specifically, our main contributions are as follows:
We formulate an effective-concentration condition, based on a Bernstein inequality for strongly β \beta β -mixing sequences, under which the classical finite-sample KMM guarantee naturally extends to dependent data.
We explicitly decompose the generalization bottleneck into three components: independent noise, density-ratio overlap, and dependent sampling-sequence persistence.
We characterize how covariate dependence and response smoothness determine effective sample size, deriving a closed-form GP-induced n e f f n_{\mathrm{eff}} n eff that yields a practical dependence correction for KMM risk estimation.
We validate the GP-induced effective-size mechanism in controlled synthetic experiments and evaluate the resulting confidence correction on three real-world monitoring datasets, where it consistently reduces empirical undercoverage relative to the i.i.d. interval.
Related Work
Kernel Mean Matching (KMM) was originally introduced as a non-parametric approach to correct for sample selection bias and covariate shift [8 , 7 ] . More broadly, learning and evaluation under covariate shift are typically addressed via importance-weighted likelihoods, cross-validation schemes, and adapted risk estimators [23 , 25 , 11 ] . The foundational finite-sample analysis by Yu and Szepesvári (2012) demonstrates that KMM effectively bounds the target expectation error, provided the regression function lies within the RKHS and the source and target samples are independent. Our theoretical analysis adopts a similar proof structure but generalises it by replacing standard independent concentration steps with effective concentration inequalities for dependent data.
Dependence is ubiquitous in environmental and geospatial data, where nearby observations in space or time often carry substantially less independent information than their nominal sample size suggests. Ignoring this structure can lead to overly optimistic evaluation and confidence estimates, motivating dependence-aware validation and transfer procedures [21 ] (Koldsbasayeva and Zaytsev 2025). Recent work has also investigated KMM directly under spatial distribution shift, showing empirically that dependence and source–target mismatch can jointly affect transfer-risk estimation [22 ] . Our contribution complements this empirical line of work by providing a finite-sample analysis of how dependent sampling modifies the KMM risk-estimation guarantee and by making the resulting loss of information explicit through an effective sample size.
The dependent-data component of our framework builds upon concentration inequalities for strongly mixing processes [19 , 20 , 2 ] , specifically leveraging a Bernstein bound for geometrically β \beta β -mixing sequences [15 ] . We translate these bounds into an effective sample size (n e f f n_{\mathrm{eff}} n eff ) perspective, creating a bridge to other fields where data dependence is a central challenge. For instance, in Markov Chain Monte Carlo (MCMC), n e f f n_{\mathrm{eff}} n eff is the canonical diagnostic for chain convergence [9 , 28 ] . While the MCMC literature has explored multivariate ESS for finite-dimensional outputs [27 ] , our work extends this concept by defining effective sample sizes for infinite-dimensional RKHS embeddings. Furthermore, KMM shares conceptual roots with Importance Sampling (IS), where weight degradation due to distribution discrepancy is actively quantified via ESS [13 ] ; in our KMM bound, the domain overlap penalty B B B formally captures this identical discrepancy bottleneck.
Finally, Gaussian-process models provide a convenient probabilistic framework for relating dependence in the inputs to dependence in a smooth response function [18 , 24 ] . We use this connection to obtain an explicit, model-based effective sample size for KMM risk estimation. Rather than treating n e f f n_{\mathrm{eff}} n eff as an abstract concentration parameter, the GP construction expresses it in terms of the correlation structure of the covariates and the smoothness scale of the response. This provides a practical link between the dependent-data concentration analy-
sis and the confidence correction evaluated in our experiments.
tbl:1 summarizes our positioning relative to this diverse theoretical landscape.
Theory
Problem Setup
Consider a labelled source sequence { ( X i t r , Y i t r ) } i = 1 n t r \{(X_i^{\mathrm{tr}},Y_i^{\mathrm{tr}})\}_{i=1}^{n_{\mathrm{tr}}} {( X i tr , Y i tr ) } i = 1 n tr with joint distribution P t r P_{\mathrm{tr}} P tr over X × Y \mathcal{X}\times\mathcal{Y} X × Y , having covariate marginal P t r X P_{\mathrm{tr}}^{X} P tr X , and an unlabeled target sequence { X j t e } j = 1 n t e \{X_j^{\mathrm{te}}\}_{j=1}^{n_{\mathrm{te}}} { X j te } j = 1 n te with marginal P t e P_{\mathrm{te}} P te over X ⊂ R d \mathcal{X}\subset\mathbb{R}^{d} X ⊂ R d . The covariate space X \mathcal{X} X is compact and measurable, and responses are normalized to Y ∈ [ 0 , 1 ] Y\in[0,1] Y ∈ [ 0 , 1 ] .
Assumption 1 (Covariate Shift). The conditional response law is invariant across domains: P t r ( d y ∣ x ) = P t e ( d y ∣ x ) P_{\mathrm{tr}}(dy\mid x)=P_{\mathrm{te}}(dy\mid x) P tr ( d y ∣ x ) = P te ( d y ∣ x ) .
Under Assumption 1, we define the invariant regression function m ( x ) : = E [ Y ∣ X = x ] m(x):=\mathbb{E}[Y\mid X=x] m ( x ) := E [ Y ∣ X = x ] . Our objective is to estimate the target expectation μ t e : = E P t e [ Y ] = ∫ X m ( x ) P t e ( d x ) \mu_{\mathrm{te}}:=\mathbb{E}_{P_{\mathrm{te}}}[Y]=\int_{\mathcal{X}}m(x)\,P_{\mathrm{te}}(dx) μ te := E P te [ Y ] = ∫ X m ( x ) P te ( d x ) .
Assumption 2 (Conditionally Independent Residuals). Conditional on all observed covariates ( X t r , X t e ) (X^{\mathrm{tr}},X^{\mathrm{te}}) ( X tr , X te ) , the residual errors ϵ i = Y i t r − m ( X i t r ) \epsilon_i=Y_i^{\mathrm{tr}}-m(X_i^{\mathrm{tr}}) ϵ i = Y i tr − m ( X i tr ) are mutually independent, mean-zero random variables.
Remark 1 (Scope of Residual Independence). Assumption 2 isolates the structural challenge of covariate shift from idiosyncratic label noise. It allows us to prove Theorem 1 at the nominal parametric rate. While this is a standard theoretical abstraction in non-parametric regression under dependent designs [2 ] (Yu and Szepesvári 2012), real-world spatial datasets may contain unobserved confounders causing the residuals to exhibit their own autocorrelation.
Assumption 3 (Bounded Density Ratio and Compact Support). The covariate space X ⊂ R d \mathcal{X}\subset\mathbb{R}^{d} X ⊂ R d is compact and measurable. The derivative ω ∗ ( x ) = ( d P t e / d P t r X ) ( x ) \omega^{*}(x)=\left(dP_{\mathrm{te}}/dP_{\mathrm{tr}}^{X}\right)(x) ω ∗ ( x ) = ( d P te / d P tr X ) ( x ) exists and satisfies 0 ≤ ω ∗ ( x ) ≤ B < ∞ 0\leq\omega^{*}(x)\leq B<\infty 0 ≤ ω ∗ ( x ) ≤ B < ∞ for all x ∈ X x\in\mathcal{X} x ∈ X .
Assumption 4 (Moderate-Deviation Sample Size). For a given failure probability δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , the source sample size n t r n_{\mathrm{tr}} n tr is sufficiently large relative to the sequence mixing rate to satisfy the moderate-deviation condition:
n t r ( log n t r ) 4 ≥ B 2 K 2 2 2 K 1 σ v , ∞ 2 log 6 δ , (1) \frac{n_{\mathrm{tr}}}{(\log n_{\mathrm{tr}})^{4}}\geq\frac{B^{2}K_{2}^{2}}{2K_{1}\sigma_{v,\infty}^{2}}\log\frac{6}{\delta}, \tag*{(1)} ( log n tr ) 4 n tr ≥ 2 K 1 σ v , ∞ 2 B 2 K 2 2 log δ 6 , (1)
where K 1 , K 2 > 0 K_{1},K_{2}>0 K 1 , K 2 > 0 and σ v , ∞ 2 \sigma_{v,\infty}^{2} σ v , ∞ 2 are defined in Appendix B.
Main Dependent KMM Bound
Kernel Mean Matching (KMM). Let H \mathcal{H} H be an RKHS equipped with a feature map Φ : X → H \Phi:\mathcal{X}\to\mathcal{H} Φ : X → H , and assume the features are uniformly bounded: sup x ∈ X ∥ Φ ( x ) ∥ H ≤ C \sup_{x\in\mathcal{X}}\|\Phi(x)\|_{\mathcal{H}}\leq C sup x ∈ X ∥Φ ( x ) ∥ H ≤ C . Rather than explicitly estimating ω ∗ ( x ) \omega^{*}(x) ω ∗ ( x ) , KMM [8 ] (Yu and Szepesvári 2012) computes weights w ^ = ( w ^ 1 , … , w ^ n t r ) T \widehat{\mathbf{w}}=(\widehat{w}_{1},\ldots,\widehat{w}_{n_{\mathrm{tr}}})^{\mathsf{T}} w = ( w 1 , … , w n tr ) T aligning the empirical RKHS means μ ^ Φ t r ( w ) : = 1 n t r ∑ i = 1 n t r w i Φ ( X i t r ) \widehat{\mu}_{\Phi}^{\mathrm{tr}}(\mathbf{w}):=\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}w_i\Phi(X_i^{\mathrm{tr}}) μ Φ tr ( w ) := n tr 1 ∑ i = 1 n tr w i Φ ( X i tr ) and μ ^ Φ t e : = 1 n t e ∑ j = 1 n t e Φ ( X j t e ) \widehat{\mu}_{\Phi}^{\mathrm{te}}:=\frac{1}{n_{\mathrm{te}}}\sum_{j=1}^{n_{\mathrm{te}}}\Phi(X_j^{\mathrm{te}}) μ Φ te := n te 1 ∑ j = 1 n te Φ ( X j te ) :
w ^ = arg min w ∈ [ 0 , B ] n t r ∥ μ ^ Φ t r ( w ) − μ ^ Φ t e ∥ H . (2) \widehat{\mathbf{w}}=\underset{\mathbf{w}\in[0,B]^{n_{\mathrm{tr}}}}{\operatorname{arg\,min}}\left\|\widehat{\mu}_{\Phi}^{\mathrm{tr}}(\mathbf{w})-\widehat{\mu}_{\Phi}^{\mathrm{te}}\right\|_{\mathcal{H}}. \tag*{(2)} w = w ∈ [ 0 , B ] n tr arg min μ Φ tr ( w ) − μ Φ te H . (2)
The reweighted target mean estimator is then given by:
μ ^ K M M = 1 n t r ∑ i = 1 n t r w ^ i Y i t r . (3) \widehat{\mu}_{\mathrm{KMM}}=\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}\widehat{w}_{i}Y_i^{\mathrm{tr}}. \tag*{(3)} μ KMM = n tr 1 i = 1 ∑ n tr w i Y i tr . (3)
For Y Y Y being a loss function we obtain a risk estimate.
The classical KMM guarantee (Yu and Szepesvári, 2012) relies on Hoeffding bounds for independent samples. To adapt this to dependent sampling, we distill the Bernstein inequality for geometrically β \beta β -mixing processes [15 ] into a deviation-independent effective sample size n e f f t r n_{\mathrm{eff}}^{\mathrm{tr}} n eff tr (detailed in Appendix B). To control the empirical RKHS feature-matching error, we apply Berbee's coupling [1 ] and Pinelis' inequality [17 ] to derive a Hilbert-space concentration bound governed by a blocked effective sample size n e f f , R K H S n_{\mathrm{eff,RKHS}} n eff , RKHS (derived in Appendix C). As a result, we decompose the KMM target estimation error into three distinct operational components.
Theorem 1 (Non-Asymptotic Dependent KMM Bound). *Suppose Assumptions 1–3 hold, and Assumption 4 is satisfied for a given failure probability δ ∈ \delta\in δ ∈
(0, 1). Assume the source and target covariate sequences are strictly stationary and geometrically β \beta β -mixing. Let the invariant regression function satisfy m ∈ H m \in\mathcal{H} m ∈ H , and let v ( x ) = ω ∗ ( x ) m ( x ) v(\mathbf{x}) = \omega^{*}(\mathbf{x})m(\mathbf{x}) v ( x ) = ω ∗ ( x ) m ( x ) have a long-run variance proxy σ v , ∞ 2 \sigma^{2}_{v,\infty} σ v , ∞ 2 .
Then, with probability at least 1 − δ 1-\delta 1 − δ :
∣ μ ^ K M M − μ t e ∣ ≤ B log ( 6 / δ ) 2 n t r + B log ( 6 / δ ) 2 n e f f t r + O ( ∥ m ∥ H ( B n e f f , R K H S t r + 1 n e f f , R K H S t e ) ) , (4) \left|\hat{\mu}_{\mathrm{KMM}}-\mu_{\mathrm{te}}\right| \le B\sqrt{\frac{\log(6/\delta)}{2n_{\mathrm{tr}}}} + B\sqrt{\frac{\log(6/\delta)}{2n_{\mathrm{eff}}^{\mathrm{tr}}}} + \mathcal{O}\left(\lVert m\rVert_{\mathcal{H}}\left(\frac{B}{\sqrt{n_{\mathrm{eff,RKHS}}^{\mathrm{tr}}}}+\frac{1}{\sqrt{n_{\mathrm{eff,RKHS}}^{\mathrm{te}}}}\right)\right), \tag*{(4)} ∣ μ ^ KMM − μ te ∣ ≤ B 2 n tr log ( 6/ δ ) + B 2 n eff tr log ( 6/ δ ) + O ∥ m ∥ H n eff , RKHS tr B + n eff , RKHS te 1 , (4)
where n e f f t r n_{\mathrm{eff}}^{\mathrm{tr}} n eff tr is the scalar effective sample size evaluated for v ( X ) v(\mathbf{X}) v ( X ) derived in Appendix § 8 . The quantities n e f f , R K H S t r n_{\mathrm{eff,RKHS}}^{\mathrm{tr}} n eff , RKHS tr and n e f f , R K H S t e n_{\mathrm{eff,RKHS}}^{\mathrm{te}} n eff , RKHS te scale as O ( n / log n ) \mathcal{O}(n/\log n) O ( n / log n ) and denote the RKHS effective sample sizes arising from the geometric blocking penalty. The exact non-asymptotic constants for E M M D \mathcal{E}_{\mathrm{MMD}} E MMD are detailed in Appendix § 10 . If the sample size is too small to satisfy Assumption 4, the bound remains valid by substituting the deviation-dependent effective sample size n e f f t r ( t ) n_{\mathrm{eff}}^{\mathrm{tr}}(t) n eff tr ( t ) shown in Appendix § 8 .
Interpretation and The Bottleneck of Dependence. Theorem 1 isolates the three fundamental challenges of risk estimation under covariate shift. This decomposition reveals how these error terms interact under strong data dependence (n e f f t r ≪ n t r n_{\mathrm{eff}}^{\mathrm{tr}} \ll n_{\mathrm{tr}} n eff tr ≪ n tr ):
Independent Noise (E n o i s e \mathcal{E}_{\mathrm{noise}} E noise ): From Assumption 2, the conditionally independent idiosyncratic label noise concentrates at nominal rate O ( 1 / n t r ) \mathcal{O}(1/\sqrt{n_{\mathrm{tr}}}) O ( 1/ n tr ) . Under strong spatial or temporal dependence, this noise averages out rapidly and becomes statistically negligible compared to the other terms.
Dependent Sampling Bottleneck (E s h i f t \mathcal{E}_{\mathrm{shift}} E shift ): The error of evaluating the true density ratio over correlated covariates is penalized. Because the sampling process repeatedly observes similar regions of the covariate space, this term scales with the deflated effective sample size O ( 1 / n e f f t r ) \mathcal{O}(1/\sqrt{n_{\mathrm{eff}}^{\mathrm{tr}}}) O ( 1/ n eff tr ) . When n e f f t r ≪ n t r n_{\mathrm{eff}}^{\mathrm{tr}} \ll n_{\mathrm{tr}} n eff tr ≪ n tr , E s h i f t \mathcal{E}_{\mathrm{shift}} E shift completely dominates E n o i s e \mathcal{E}_{\mathrm{noise}} E noise , making sequence persistence the primary bottleneck of scalar generalization.
RKHS Matching (E M M D \mathcal{E}_{\mathrm{MMD}} E MMD ) and Overlap Penalty (B B B ): The feature-matching error decays at the blocked rate governed by the exact RKHS effective sample sizes. While this worst-case blocking penalty appears mathematically less severe than the scalar long-run variance deflation, both scalar terms (E n o i s e \mathcal{E}_{\mathrm{noise}} E noise and E s h i f t \mathcal{E}_{\mathrm{shift}} E shift ) are multiplicatively scaled by B B B . Poor source-target overlap (manifested as large B B B ) quadratically inflates the required effective sample size.
Application to Risk Estimation While Theorem 1 is formulated for a general bounded scalar response Y ∈ [ 0 , 1 ] Y \in[0,1] Y ∈ [ 0 , 1 ] , its primary operational application is target risk evaluation. Specifically, let g : X → Y p r e d g:\mathcal{X}\to\mathcal{Y}_{\mathrm{pred}} g : X → Y pred be a fixed hypothesis, and ℓ : Y p r e d × Y → [ 0 , 1 ] \ell:\mathcal{Y}_{\mathrm{pred}}\times\mathcal{Y}\to[0,1] ℓ : Y pred × Y → [ 0 , 1 ] be a bounded loss function. By setting the response to the sample loss Y i t r = ℓ ( g ( X i t r ) , Y i t r , l a b e l ) Y_i^{\mathrm{tr}}=\ell(g(X_i^{\mathrm{tr}}),Y_i^{\mathrm{tr,label}}) Y i tr = ℓ ( g ( X i tr ) , Y i tr , label ) , the true target risk is given by R t e ( g ) : = E P t e [ ℓ ( g ( X ) , Y l a b e l ) ] R_{\mathrm{te}}(g):=\mathbb{E}_{P_{\mathrm{te}}}[\ell(g(\mathbf{X}),Y^{\mathrm{label}})] R te ( g ) := E P te [ ℓ ( g ( X ) , Y label )] , and its reweighted KMM estimate is R ^ K M M ( g ) : = 1 n t r ∑ i = 1 n t r ω ^ i Y i t r \hat{R}_{\mathrm{KMM}}(g):=\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}\hat{\omega}_iY_i^{\mathrm{tr}} R ^ KMM ( g ) := n tr 1 ∑ i = 1 n tr ω ^ i Y i tr . Under Assumption 1, the invariant regression function represents the conditional risk surface m ℓ ( x ) : = E [ ℓ ( g ( X ) , Y l a b e l ) ∣ X = x ] m_{\ell}(\mathbf{x}):=\mathbb{E}[\ell(g(\mathbf{X}),Y^{\mathrm{label}})\mid\mathbf{X}=\mathbf{x}] m ℓ ( x ) := E [ ℓ ( g ( X ) , Y label ) ∣ X = x ] . Assuming m ℓ ∈ H m_{\ell}\in\mathcal{H} m ℓ ∈ H , Theorem 1 directly bounds the risk generalization error ∣ R ^ K M M ( g ) − R t e ( g ) ∣ \left|\hat{R}_{\mathrm{KMM}}(g)-R_{\mathrm{te}}(g)\right| R ^ KMM ( g ) − R te ( g ) by substituting ∥ m ∥ H ← ∥ m ℓ ∥ H \lVert m\rVert_{\mathcal{H}}\leftarrow\lVert m_{\ell}\rVert_{\mathcal{H}} ∥ m ∥ H ← ∥ m ℓ ∥ H . For uniform convergence guarantees over entire hypothesis classes via Block Rademacher complexity, we refer to Appendix § 12 .
From Theory to Practice: A Generative Surrogate. Theorem 1 establishes that under spatial or temporal dependence, KMM generalisation is governed by sequence persistence through n e f f t r n_{\mathrm{eff}}^{\mathrm{tr}} n eff tr . However, as a worst-case non-asymptotic bound, it presents practical limitations: it depends on unobservable mixing constants (K 1 , K 2 K_1,K_2 K 1 , K 2 ), and its reliance on the RKHS norm ∥ m ∥ H \lVert m\rVert_{\mathcal{H}} ∥ m ∥ H obscures how the smoothness of the regression function governs effective sample size deflation.
To make these abstract mixing rates practically computable, we introduce a Gaussian Process (GP) covariance surrogate that yields a computable, closed-form effective sample size n e f f G P ( h ) n_{\mathrm{eff}}^{\mathrm{GP}}(h) n eff GP ( h ) .
Separating Overlap, Dependence, and Smoothness via GP Modeling
Following core insights of Theorem 1, we want to analyze how the smoothness of the conditional loss surface mathematically dictates the effective sample size. By modeling the loss as a GP, we derive a closed-form effective sample size n e f f G P ( h ) n_{\mathrm{eff}}^{\mathrm{GP}}(h) n eff GP ( h ) that calibrates practical confidence intervals.
Gaussian Surrogate and Sequence Autocorrelation. In Theorem 1, sequence persistence depends on the composite function v ( X ) = ω ∗ ( X ) m ℓ ( X ) v(\mathbf{X})=\omega^{*}(\mathbf{X})m_{\ell}(\mathbf{X}) v ( X ) = ω ∗ ( X ) m ℓ ( X ) . In practice, we decouple the global density ratio ω ∗ \omega^{*} ω ∗ from the sequence autocorrelation of the loss surface. Specifically, the scale of ω ∗ \omega^{*} ω ∗ is directly captured by the empirical squared weights w ^ i 2 \hat{w}_i^2 w ^ i 2 in the numerator of the variance estimator. Meanwhile, the autocorrelation across lags is driven by the smoothness of the conditional loss m ℓ ( x ) = E [ ℓ ( g ( X ) , Y l a b e l ) ∣ X = x ] m_\ell(\mathbf{x}) = \mathbb{E}[\ell(g(\mathbf{X}), Y_{\mathrm{label}}) \mid\mathbf{X} = \mathbf{x}] m ℓ ( x ) = E [ ℓ ( g ( X ) , Y label ) ∣ X = x ]
While ∥ m ℓ ∥ H \|m_\ell\|_{\mathcal{H}} ∥ m ℓ ∥ H bounds the deterministic worst-case complexity in Theorem 1, we model the latent variation of this conditional risk surface via a zero-mean stationary GP surrogate u ∼ G P ( 0 , k h ) u \sim\mathcal{GP}(0, k_h) u ∼ G P ( 0 , k h ) to extract a computable, data-driven length-scale h h h : m ℓ ( x ) = u ( x ) m_\ell(\mathbf{x}) = u(\mathbf{x}) m ℓ ( x ) = u ( x ) . To evaluate sequence covariances analytically, we model local feature variations as stationary Gaussian X t ∼ N ( μ , σ x 2 I d ) \mathbf{X}_t \sim\mathcal{N}(\boldsymbol{\mu}, \sigma_x^2 \mathbf{I}_d) X t ∼ N ( μ , σ x 2 I d ) with formal truncation to the compact domain X \mathcal{X} X to preserve Assumption 3. As detailed in Appendix § 11 we evaluated it with spatial or temporal correlation r k = Corr ( ( X s ) l , ( X s + k ) l ) r_k = \operatorname{Corr}((X_s)_l, (X_{s+k})_l) r k = Corr (( X s ) l , ( X s + k ) l ) .
For the squared-exponential (SE) kernel k h ( x , x ′ ) = σ u 2 exp ( − ∥ x − x ′ ∥ 2 / 2 h 2 ) k_h(\mathbf{x}, \mathbf{x}') = \sigma_u^2 \exp(-\|\mathbf{x} - \mathbf{x}'\|^2/2h^2) k h ( x , x ′ ) = σ u 2 exp ( − ∥ x − x ′ ∥ 2 /2 h 2 ) , we define the ratio of input spread to function smoothness as a h = 2 σ x 2 / h 2 a_h = 2\sigma_x^2/h^2 a h = 2 σ x 2 / h 2 . Marginalizing over the covariate distribution yields the exact prior-averaged sequence autocorrelation in closed form:
ρ ˉ u ( k ) = ( 1 + a h { 1 − r k } ) − d / 2 − ( 1 + a h ) − d / 2 1 − ( 1 + a h ) − d / 2 . (5) \bar{\rho}_u(k) = \frac{(1+a_h\{1-r_k\})^{-d/2}-(1+a_h)^{-d/2}}{1-(1+a_h)^{-d/2}}. \tag*{(5)} ρ ˉ u ( k ) = 1 − ( 1 + a h ) − d /2 ( 1 + a h { 1 − r k } ) − d /2 − ( 1 + a h ) − d /2 . (5)
Full derivations, along with the corresponding expressions for rough Matérn kernels, are provided in Appendix § 11 .
The resulting GP-induced finite-sample effective sample size is thus:
n e f f G P ( h ) = n t r 1 + 2 ∑ k = 1 n t r − 1 ( 1 − k n t r ) ρ ˉ u ( k ) . (6) n_{\mathrm{eff}}^{\mathrm{GP}}(h) = \frac{n_{\mathrm{tr}}}{1+2\sum_{k=1}^{n_{\mathrm{tr}}-1}\left(1-\frac{k}{n_{\mathrm{tr}}}\right)\bar{\rho}_u(k)}. \tag*{(6)} n eff GP ( h ) = 1 + 2 ∑ k = 1 n tr − 1 ( 1 − n tr k ) ρ ˉ u ( k ) n tr . (6)
The Smoothness-Dependence Tradeoff. Equation (6) exposes a bandwidth tradeoff that is absent in standard i.i.d. estimations. For smooth functions (h ≫ σ x h \gg\sigma_x h ≫ σ x , so that a h ≪ 1 a_h \ll1 a h ≪ 1 ), Taylor expansion of (5) shows that the sequence autocorrelation inherits the persistence of the raw covariates: ρ ˉ u ( k ) = r k + O ( a h ) \bar{\rho}_u(k) = r_k + O(a_h) ρ ˉ u ( k ) = r k + O ( a h ) , which severely deflates n e f f G P n_{\mathrm{eff}}^{\mathrm{GP}} n eff GP . Conversely, rough functions (a h ≫ 1 a_h \gg1 a h ≫ 1 ) decorrelate rapidly across lags.
Importantly, this does not imply that rough functions are statistically preferable. It highlights a tension within Theorem 1: increasing smoothness reduces the hypothesis complexity ∥ m ℓ ∥ H \|m_\ell\|_{\mathcal{H}} ∥ m ℓ ∥ H , tightening the RKHS feature-matching error E M M D \mathcal{E}_{\mathrm{MMD}} E MMD . But inflates sequence persistence, penalizing the effective sample size and amplifying the dependent sampling error (E s h i f t \mathcal{E}_{\mathrm{shift}} E shift ).
Practical Confidence Calibration: The GP-Calibrated Variance Radius. By substituting the abstract theoretical scale n e f f t r n_{\mathrm{eff}}^{\mathrm{tr}} n eff tr in Theorem 1 with our computable GP-realization n e f f G P ( h ℓ ) n_{\mathrm{eff}}^{\mathrm{GP}}(h_\ell) n eff GP ( h ℓ ) , we obtain a theoretically grounded, practically evaluable measure of sampling variance. The loss length-scale h ℓ h_\ell h ℓ is directly estimated from the source data via empirical variogram fitting without requiring access to target labels.
Guided by this substitution, we construct an asymptotic Wald-type confidence interval. Because the target sample size n t e n_{\mathrm{te}} n te governs the feature-matching discrepancy E M M D \mathcal{E}_{\mathrm{MMD}} E MMD —which acts as a lower-order bias under stable optimization—the dominant sampling variability is isolated entirely within the reweighted source labels. Consequently, the practical confidence radius evaluates the empirical loss variance scaled by the source persistence:
r ^ e f f = z 1 − α / 2 Var ^ [ w ^ i ( Y i t r − R ^ K M M ( g ) ) ] n e f f G P ( h ℓ ) . (7) \hat{r}_{\mathrm{eff}} = z_{1-\alpha/2}\sqrt{\frac{\widehat{\operatorname{Var}}\left[\hat{w}_i(Y_i^{\mathrm{tr}}-\hat{R}_{\mathrm{KMM}}(g))\right]}{n_{\mathrm{eff}}^{\mathrm{GP}}(h_\ell)}}. \tag*{(7)} r ^ eff = z 1 − α /2 n eff GP ( h ℓ ) Var [ w ^ i ( Y i tr − R ^ KMM ( g )) ] . (7)
where z 1 − α / 2 = Φ − 1 ( 1 − α / 2 ) z_{1-\alpha/2} = \Phi^{-1}(1-\alpha/2) z 1 − α /2 = Φ − 1 ( 1 − α /2 ) denotes the standard normal quantile (z 0.975 ≈ 1.96 z_{0.975} \approx1.96 z 0.975 ≈ 1.96 for the nominal 95% level).
This interval treats the estimated weights w ^ \hat{\mathbf{w}} w ^ as fixed post-optimization, a standard asymptotic approximation in importance weighting. The GP-based effective sample size adjusts the variance estimate for dependence propagated through the conditional loss surface. In settings with additional residual dependence beyond that represented by the covariates, this correction may partially absorb the resulting variance inflation, but it does not remove the conditional-independence requirement of Assumption 2 from the finite-sample guarantee. We evaluate the resulting practical interval empirically in § 4 .
Experiments
We design our experiments to isolate and evaluate the three fundamental effects highlighted by our theory: covariate shift through distribution overlap, data dependence through effective sample size, and function smoothness through GP-induced loss autocorrelation. We validate our approach on controlled synthetic data and benchmark it against other corrections.
Artificial Data
Experimental Setup and Objectives We evaluate our dependent KMM framework on synthetic environments where ground-truth target expectations are analytically known. Covariates X t \mathbf{X}_t X t are generated as continuous dependent sequences with correlation length ℓ x \ell_x ℓ x under covariate shift (μ t r ≠ μ t e \boldsymbol{\mu}_{\mathrm{tr}} \ne\boldsymbol{\mu}_{\mathrm{te}} μ tr = μ te ). We evaluate both a matched Gaussian Process response surface f 0 ∼ G P ( 0 , k h ) f_0 \sim\mathcal{GP}(0,k_h) f 0 ∼ G P ( 0 , k h ) and a deterministic misspecified harmonic surface. We benchmark our GP-calibrated confidence radius against unweighted estimation, classical i.i.d. KMM (Nominal n n n ), raw-covariate correction (Input n e f f n_{\mathrm{eff}} n eff ), Block-Bootstrap, and theoretical Oracle baselines. Complete generative specifications, solver configurations, and extensive ablation grids are detailed in Appendices G.1–G.5.
Evaluation Metrics
Since KMM-based variance estimators share identical weights, yielding identical point estimates, detailed in Appendix G.2, we focus exclusively on confidence interval quantification. We evaluate nominal 0.95 Coverage , considered valid if ≥ 0.925 \geq0.925 ≥ 0.925 over N = 300 N = 300 N = 300 trials, interval Radius (half-width), and the Winkler Score (WS; [29 ] ), an additional scoring rule penalizing both excessive width and undercoverage.
We first verify whether the closed-form n e f f G P ( h ) n_{\mathrm{eff}}^{\mathrm{GP}}(h) n eff GP ( h ) from (6) accurately predicts empirical sample-mean variance. As shown in Figure 1 , the variance-based empirical n e f f n_{\mathrm{eff}} n eff tracks our analytical prediction along the identity line across matched GP realizations. Because the target loss typically has a different characteristic length-scale than the raw response Y Y Y , the formula automatically yields estimand-specific effective sample sizes without refitting KMM weights. Validation on misspecified deterministic surfaces is provided in Appendix G.3.
Figure 1. Validation of the GP-induced effective sample size. The variance-based empirical n e f f n_{\mathrm{eff}} n eff aligns with our closed-form prediction (diagonal line) for both Target Y Y Y (point estimation) and Risk (loss evaluation) across matched GP realizations.
Table 2 : Confidence Interval Calibration under Dependent Sampling. Coverage and interval radius for target-mean and target-risk estimation. Asterisks (*) indicate significant empirical undercoverage below the nominal 0.95 level (< 0.925). Bold denotes the best valid practical estimator.
Table 2.
The Smoothness-Dependence Trade-off
Table 2 benchmarks confidence interval calibration. Applying KMM with nominal i.i.d. variance leads to severe overconfidence, failing on both Target Y Y Y (0.917*) and Target Risk (0.853*). While Block-Bootstrap achieves valid coverage, it yields an excessively wide
radius on Target Y Y Y (0.4538 vs. 0.1380) and requires expensive resampling.
These results empirically confirm the theoretical trade-off established in § 3.3 . While naive Input n e f f n_{\mathrm{eff}} n eff safely restores coverage, it conservatively assumes worst-case sequence persistence (ρ ˉ u ( k ) ≈ r k \bar{\rho}_u(k) \approx r_k ρ ˉ u ( k ) ≈ r k ), yielding unnecessarily wide intervals. In contrast, any response surface with finite length-scale decorrelates faster than raw input coordinates (ρ ˉ u ( k ) ≤ r k \bar{\rho}_u(k) \leq r_k ρ ˉ u ( k ) ≤ r k ). By analytically incorporating functional smoothness, our GP n e f f n_{\mathrm{eff}} n eff shrinks the confidence radius by 18.6% for Target Y Y Y and 20.0% for Target Risk relative to Input n e f f n_{\mathrm{eff}} n eff , providing the sharpest confidence bounds that maintain valid coverage and minimal WS (Table 6 ).
Table 6 : Full Benchmark Results including Point Estimation and Winkler Score. Point estimates (MAE) are identical for Nominal n n n , Block-Bootstrap, Input n e f f n_{\mathrm{eff}} n eff , GP n e f f n_{\mathrm{eff}} n eff , and the Strict Bound, as they rely on the exact same KMM weights. An asterisk (∗ \ast ∗ ) indicates empirical undercoverage significantly below the nominal 0.95 level (< 0.925 < 0.925 < 0.925 ). Winkler Score (WS, lower is better) penalizes both interval width and undercoverage. Bold highlights the best valid practical estimator (tightest radius and lowest WS while maintaining valid coverage). Strict Thm 1 and Oracle methods are excluded from best-method highlighting.
Table 6.
Finally, while the non-asymptotic bound (Theorem 1) strictly guarantees coverage, its worst-case geometric penalty yields impractically wide intervals (Radius > 5.1 > 5.1 > 5.1 ), highlighting the necessity of our GP surrogate for empirical practice.
Sample-Size Scaling of Error Bounds
Theorem 1 dictates that valid KMM intervals must scale with n e f f n_{\mathrm{eff}} n eff rather than nominal n n n . Table 3 tracks risk interval radius across n ∈ { 48 , 64 , 128 , 256 } n \in\{48, 64, 128, 256\} n ∈ { 48 , 64 , 128 , 256 } (full sweep across n ∈ { 32 , … , 256 } n \in\{32, \ldots, 256\} n ∈ { 32 , … , 256 } in Table 7 ).
Table 3. Sample-Size Scaling of Target Risk Intervals. Nominal intervals systematically under-cover across all sample sizes. Asterisks (*) indicate significant undercoverage below nominal 0.95 (< 0.925). Bold denotes the best valid practical estimator.
Table 7. Sample-size scaling of Target Risk intervals (n ∈ { 32 , … , 256 } n \in\{32, \ldots, 256\} n ∈ { 32 , … , 256 } ). Bold highlights the best valid practical estimator (tightest radius and lowest Winkler Score among methods maintaining valid coverage). Asterisks (∗ {}^{*} ∗ ) indicate significant empirical undercoverage below the nominal 0.95 level (< 0.925 < 0.925 < 0.925 ). Strict Thm 1 is excluded from best-method highlighting due to worst-case conservatism.
Nominal n n n fails across all evaluated sample sizes reaching only 0.913* coverage even at n = 256 n = 256 n = 256 . It confirms that sample size alone cannot cure dependence-induced underconfidence. Notably, in small-sample regimes such as n = 48 n = 48 n = 48 , Input n e f f n_{\mathrm{eff}} n eff also exhibits undercoverage (0.910*), whereas GP n e f f n_{\mathrm{eff}} n eff reliably maintains nominal coverage (0.943). Across all sample sizes, GP n e f f n_{\mathrm{eff}} n eff consistently achieves ≈ 21 % \approx21\% ≈ 21% narrower intervals than Input n e f f n_{\mathrm{eff}} n eff , confirming the scalability of the surrogate across data regimes.
Robustness to Misspecification We evaluate the framework when modeling assumptions are violated. As detailed in Appendix § 13 , the calibration ratio is robust across 2D grids varying dependence length ℓ x \ell_x ℓ x and loss smoothness h h h (Appendix § 13 .§ 4 ), maintaining valid coverage across sweeps over sample size n n n , ℓ x \ell_x ℓ x , h h h , and clipping bound B B B (Appendix § 13 .§ 5 ). In addition, the method preserves valid coverage under non-differentiable Matérn-1/2 paths (Appendix § 13 .6) and non-stationary correlation structures (Appendix § 13 .7).
Real Data
Controlled Overlap on Real Covariates Before evaluating real-world monitoring data, we isolate the role of source–target overlap using a semi-synthetic stress test on California Housing covariates (detailed with Figure 5 and Table 13 in Appendix § 14 .§ 1 ). By constructing source and target distributions via exponential tilting, we demonstrate a fundamental overlap–stability trade-off: KMM successfully controls target-mean error under moderate shift, but its bounded weights cannot fully reproduce the density ratio under severe overlap loss. Bounding weights limits variance amplification but leaves residual bias when adequate overlap requires more extreme weights. Appendix § 14 .§ 1 (Figure 6 ) further illustrates the bias–variance trade-off induced by the clipping bound B B B .
Figure 5. Controlled Overlap Stress Test on California Housing Covariates. Increasing γ \gamma γ progressively separates source and target distributions. Left: Oracle and KMM weight ESS decrease as overlap deteriorates. Right: KMM controls target-mean error under moderate shift, but its bounded weights cannot fully reproduce the density ratio under severe overlap loss. Weight ESS measures weight concentration and is distinct from the dependence-induced n e f f n_{\mathrm{eff}} n eff . Error bars show one standard error across 100 repetitions.
Semi-Synthetic Overlap Stress Test on California Housing Covariates. Increasing γ \gamma γ separates source and target distributions. ESS denotes weight effective sample size (ESSw _w w ), not the dependence-induced n e f f n_{\mathrm{eff}} n eff . MAE is computed over 100 repetitions.
Table 13.
Figure 6. Effect of the KMM clipping bound B B B under deteriorating overlap. Increasing B B B allows KMM to achieve better source–target balance and reduces residual estimation bias, but at the cost of increasingly concentrated weights and lower weight ESS. When the population density-ratio bound B ∗ B^{*} B ∗ is moderate (γ = 1 \gamma= 1 γ = 1 ), the results stabilize once B B B reaches B ∗ B^{*} B ∗ . Under severe overlap loss (γ = 2 , 3 \gamma= 2, 3 γ = 2 , 3 ), B ∗ B^{*} B ∗ is much larger than the considered clipping levels, exposing a pronounced balance–stability trade-off. Weight ESS here measures weight concentration and is distinct from the dependence-induced n e f f n_{\mathrm{eff}} n eff used elsewhere in the paper.
Three-Domain Real-Data Benchmark We next evaluate KMM in three real-data monitoring domains: NOAA weather stations Menne et al. [14 ] , PM2.5 _{2.5} 2.5 monitoring stations Chen [4 ] , and EPA ozone monitoring stations U.S. Environmental Protection Agency (2026). Unlike the matched synthetic experiments, these observational datasets do not provide known population expectations or guarantee the strict covariate-shift assumption. We therefore treat them as empirical stress tests rather than finite-sample theorem verification.
NOAA and EPA Ozone evaluate spatial transfer across disjoint monitoring stations, while PM2.5 _{2.5} 2.5 evaluates temporal transfer (training on 2013–2014, evaluating on 2015–2016). In all experiments, a random-forest predictor is trained separately and frozen before evaluation. Target outcomes are used only for final scoring. While KMM improves point estimation in several domains (full point estimation comparisons, including unweighted and logistic importance weighting baselines, are reported in Table 14 , Appendix § 14 .§ 2 ), our primary focus remains on evaluating confidence interval calibration under data dependence.
Table 14. Point Estimation on the Three-Domain Real-Data Benchmark. Mean Absolute Error (MAE) is reported for target response mean μ T = E T [ Y ] \mu_T = \mathbb{E}_T[Y] μ T = E T [ Y ] and squared-error risk R T ( f ) = E T [ ( Y − f ( X ) ) 2 ] R_T(f) = \mathbb{E}_T[(Y - f(X))^2] R T ( f ) = E T [( Y − f ( X ) ) 2 ] . Bold indicates the lowest MAE within each dataset–estimand pair.
GP-Based Dependence Correction We evaluate the proposed GP-derived effective sample size directly on these real dependent sequences. For each task, the KMM point estimate is held fixed, and only the variance calculation is modified: the classical interval uses the nominal source size (Nominal n n n ), whereas our interval replaces n n n with n e f f G P n_{\mathrm{eff}}^{\mathrm{GP}} n eff GP estimated from the source data. To evaluate finite-sample coverage rigorously, we utilize a rolling-window protocol over 250 independent trials, extracting contiguous sequences of length n n n from the source stations. Target outcomes are revealed only after all intervals have been fixed. Full details of the experimental protocol, data splits, and grid-search hyperparameter selection are provided in Appendix § 14 .§ 3 .
Across all three domains, replacing the nominal sample size with the GP-derived effective sample size increases empirical coverage relative to the nominal i.i.d. KMM interval (Table 4 ). For target-mean estimation, GP n e f f n_{\mathrm{eff}} n eff reaches the prespecified 0.92 reference level for PM2.5 _{2.5} 2.5 (0.924) and EPA Ozone (0.968), while remaining below it for NOAA (0.908). In all three cases, the GP intervals are narrower than those obtained using Input n e f f n_{\mathrm{eff}} n eff .
Table 4. Confidence Interval Calibration under Dependent Sampling on Real Datasets. Empirical coverage and interval radius for target-mean and target-risk estimation. Asterisks (*) indicate significant empirical undercoverage below the relaxed nominal 0.92 level. Bold denotes the best valid practical estimator (tightest radius among methods with valid coverage).
For target-risk estimation, the results are more mixed. For GP n e f f n_{\mathrm{eff}} n eff reaches the reference level for PM2.5 _{2.5} 2.5 (0.944), but coverage remains below the reference level for EPA Ozone (0.884) and NOAA (0.712). Nevertheless, it improves substantially over the corresponding nominal intervals (0.744 and 0.504, respectively). For EPA Ozone, this increase in coverage is obtained with a smaller radius than Input n e f f n_{\mathrm{eff}} n eff (0.0031 versus 0.0056); the corresponding Winkler scores are 0.0081 and 0.0114.
These results illustrate the coverage–width trade-off between the two dependence corrections. Input n e f f n_{\mathrm{eff}} n eff is generally more conservative, whereas GP n e f f n_{\mathrm{eff}} n eff produces narrower intervals but does not uniformly attain the reference coverage level. The discrepancy is most pronounced for NOAA target-risk estimation.
Because these are observational transfer tasks, departures from the covariate-shift and residual-independence assumptions may contribute to the remaining errors, together with limited source–target overlap and finite target references. We therefore interpret the experiment as an empirical stress test of the dependence correction rather than as verification of finite-sample coverage guarantees. In particular, dependence correction changes the confidence interval assigned to correlated sampling but does not correct systematic transfer bias.
Conclusion and Limitations
We develop a finite-sample analysis of Kernel Mean Matching under dependent sampling. The resulting risk bounds replace nominal sample sizes by effective sample sizes and separate three sources of difficulty: dependence, source–target overlap, and residual RKHS mean-matching error. This extends the usual i.i.d. analysis of KMM to settings in which source and target observations are spatially or temporally dependent.
A key implication is that the effective sample size relevant for risk estimation is not determined by the input sequence alone. It depends on the function of the data being averaged. We make this dependence explicit through a GP surrogate that propagates input correlation through functional smoothness, yielding a closed-form, estimand-dependent approximation to n e f f n_{\mathrm{eff}} n eff . This distinction also clarifies the role of overlap: dependence correction changes the confidence associated with correlated sampling, but cannot compensate for insufficient source–target overlap.
Limitations and Future Work. Our main analysis assumes stationary dependence and focuses on risk estimation for a fixed predictor. Appendix F provides a uniform extension over hypothesis classes using Block Rademacher Complexity, while a fuller treatment of model selection and training under dependence remains open. The practical GP approximation additionally relies on estimating the input dependence structure and the functional length scale, and therefore inherits errors from these estimates and from misspecification of the GP surrogate. Extending the framework to nonstationary and more general dependence structures, and developing data-driven procedures for selecting the KMM kernel bandwidth and clipping level B B B , are natural directions for future work.
AI use statement
In this work, we used generative AI tools for editing and formatting the manuscript to ensure clarity and adherence to the conference guidelines. We have not used generative AI tools for the derivation of mathematical proofs, generation of experimental results, or code writing. We have reviewed all AI-assisted text modifications line by line. We take responsibility for the final content of this work, including text, claims, and artifacts.
CHECKLIST
For all models and algorithms presented, check if you include: (a) A clear description of the mathematical setting, assumptions, algorithm, and/or model. [Yes] (b) An analysis of the properties and complexity (time, space, sample size) of any algorithm. [Yes] (c) (Optional) Anonymized source code, with specification of all dependencies, including external libraries. [Yes] Available at Anonymous GitHub.
For any theoretical claim, check if you include: (a) Statements of the full set of assumptions of all theoretical results. [Yes] (b) Complete proofs of all theoretical results. [Yes] (c) Clear explanations of any assumptions. [Yes]
For all figures and tables that present empirical results, check if you include: (a) The code, data, and instructions needed to reproduce the main experimental results (either in the supplemental material or as a URL). [Yes] (b) All the training details (e.g., data splits, hyperparameters, how they were chosen). [Yes] (c) A clear definition of the specific measure or statistics and error bars (e.g., with respect to the random seed after running experiments multiple times). [Yes] (d) A description of the computing infrastructure used. (e.g., type of GPUs, internal cluster, or cloud provider). [Yes]
If you are using existing assets (e.g., code, data, models) or curating/releasing new assets, check if you include: (a) Citations of the creator If your work uses existing assets. [Yes] (b) The license information of the assets, if applicable. [Not Applicable] (c) New assets either in the supplemental material or as a URL, if applicable. [Not Applicable] (d) Information about consent from data providers/curators. [Not Applicable] (e) Discussion of sensible content if applicable, e.g., personally identifiable information or offensive content. [Not Applicable]
If you used crowdsourcing or conducted research with human subjects, check if you include: (a) The full text of instructions given to participants and screenshots. [Not Applicable] (b) Descriptions of potential participant risks, with links to Institutional Review Board (IRB) approvals if applicable. [Not Applicable] (c) The estimated hourly wage paid to participants and the total amount spent on participant compensation. [Not Applicable]
Taxonomy of Effective Sample Sizes
Throughout our theoretical analysis, we encounter different forms of the effective sample size n e f f n_{\mathrm{eff}} n eff , depending on whether we bound scalar averages, infinite-dimensional RKHS embeddings, or evaluate specific Gaussian Process realisations. Table 5 summarises these quantities to help navigate the proofs.
Table 5. Taxonomy of effective sample sizes used in the analysis.
Scalar Effective Concentration from β \beta β -Mixing (Proof of Lemma 1)
Lemma 1 (Scalar Concentration under β \beta β -Mixing). Let f : X → [ a , b ] f : \mathcal{X} \to[a,b] f : X → [ a , b ] with A = b − a A=b-a A = b − a . Assume the strictly stationary sequence { X i } i = 1 n \{X_i\}_{i=1}^{n} { X i } i = 1 n is geometrically β \beta β -mixing with coefficients β ( k ) ≤ c 1 exp ( − c 2 k ) \beta(k) \le c_1\exp(-c_2k) β ( k ) ≤ c 1 exp ( − c 2 k ) at lag k ≥ 1 k \ge1 k ≥ 1 (c 1 , c 2 > 0 c_1,c_2 > 0 c 1 , c 2 > 0 ), and has long-run variance proxy σ f , ∞ 2 = Var ( f ( X 1 ) ) + 2 ∑ k = 1 ∞ ∣ Cov ( f ( X 1 ) , f ( X 1 + k ) ) ∣ \sigma_{f,\infty}^{2} = \operatorname{Var}(f(X_1)) + 2\sum_{k=1}^{\infty} \left|\operatorname{Cov}(f(X_1),f(X_{1+k}))\right| σ f , ∞ 2 = Var ( f ( X 1 )) + 2 ∑ k = 1 ∞ ∣ Cov ( f ( X 1 ) , f ( X 1 + k )) ∣ . There exist constants K 1 , K 2 > 0 K_1,K_2 > 0 K 1 , K 2 > 0 , depending only on c 1 c_1 c 1 and c 2 c_2 c 2 , such that for any deviation t t t in the moderate regime (Definition 1 in Appendix § 8 ):
P ( ∣ 1 n ∑ i = 1 n f ( X i ) − E [ f ( X ) ] ∣ ≥ t ) ≤ 2 exp ( − 2 n e f f t 2 A 2 ) , (8) \mathbb{P}\left(\left|\frac{1}{n}\sum_{i=1}^{n}f(X_i)-\mathbb{E}[f(X)]\right|\ge t\right)\le2\exp\left(-\frac{2n_{\mathrm{eff}}t^2}{A^2}\right), \tag*{(8)} P ( n 1 i = 1 ∑ n f ( X i ) − E [ f ( X )] ≥ t ) ≤ 2 exp ( − A 2 2 n eff t 2 ) , (8) where the effective sample size is given by:
n e f f = K 1 n A 2 4 ( σ f , ∞ 2 + A 2 / n ) . (9) n_{\mathrm{eff}}=\frac{K_1nA^2}{4\left(\sigma_{f,\infty}^{2}+A^2/n\right)}. \tag*{(9)} n eff = 4 ( σ f , ∞ 2 + A 2 / n ) K 1 n A 2 . (9)
For general deviations outside the moderate regime, the deviation-dependent n e f f ( t ) n_{\mathrm{eff}}(t) n eff ( t ) derived in (15) applies.
In this section, we provide the full algebraic details of Lemma 1, showing how the Merlevède–Peligrad–Rio Bernstein inequality transforms into a Hoeffding-style effective concentration bound.
Formal Definition of β \beta β -Mixing. Let { X i } i ∈ Z \{X_i\}_{i\in\mathbb{Z}} { X i } i ∈ Z be a strictly stationary sequence on a probability space ( Ω , A , P ) (\Omega,\mathcal{A},\mathbb{P}) ( Ω , A , P ) . Let F − ∞ 0 = σ ( … , X 0 ) \mathcal{F}_{-\infty}^{0}=\sigma(\ldots,X_0) F − ∞ 0 = σ ( … , X 0 ) and F k ∞ = σ ( X k , X k + 1 , … ) \mathcal{F}_{k}^{\infty}=\sigma(X_k,X_{k+1},\ldots) F k ∞ = σ ( X k , X k + 1 , … ) denote the past and future σ \sigma σ -algebras separated by a time lag k ≥ 1 k\ge1 k ≥ 1 . The β \beta β -mixing coefficient at lag k k k is defined by:
β ( k ) : = E [ sup B ∈ F k ∞ ∣ P ( B ∣ F − ∞ 0 ) − P ( B ) ∣ ] . (10) \beta(k):=\mathbb{E}\left[\sup_{B\in\mathcal{F}_{k}^{\infty}}\left|\mathbb{P}(B\mid\mathcal{F}_{-\infty}^{0})-\mathbb{P}(B)\right|\right]. \tag*{(10)} β ( k ) := E [ B ∈ F k ∞ sup P ( B ∣ F − ∞ 0 ) − P ( B ) ] . (10)
The sequence is geometrically β \beta β -mixing if there exist constants c 1 , c 2 > 0 c_1,c_2 > 0 c 1 , c 2 > 0 such that β ( k ) ≤ c 1 exp ( − c 2 k ) \beta(k) \le c_1 \exp(-c_2k) β ( k ) ≤ c 1 exp ( − c 2 k ) for all k ≥ 1 k \ge1 k ≥ 1 .
Theorem 2 (Merlevède–Peligrad–Rio Bernstein Inequality [15 ] ). Let { U i } i = 1 n \{U_i\}_{i=1}^n { U i } i = 1 n be a centered, strictly stationary sequence with ∣ U i ∣ ≤ A |U_i| \le A ∣ U i ∣ ≤ A almost surely. Assume the sequence is geometrically β \beta β -mixing with coefficients β ( k ) ≤ c 1 exp ( − c 2 k ) \beta(k) \le c_1 \exp(-c_2k) β ( k ) ≤ c 1 exp ( − c 2 k ) for k ≥ 1 k \ge1 k ≥ 1 . (Note: Merlevède et al. [15 ] prove this inequality under the weaker α \alpha α -mixing condition, which applies directly since α ( k ) ≤ 1 2 β ( k ) \alpha(k) \le\frac{1}{2}\beta(k) α ( k ) ≤ 2 1 β ( k ) .) Let the long-run variance proxy be defined as:
σ ∞ 2 = Var ( U 1 ) + 2 ∑ k = 1 ∞ ∣ Cov ( U 1 , U 1 + k ) ∣ . \sigma^2_{\infty} = \operatorname{Var}(U_1) + 2\sum_{k=1}^{\infty} \left|\operatorname{Cov}(U_1,U_{1+k})\right|. σ ∞ 2 = Var ( U 1 ) + 2 k = 1 ∑ ∞ ∣ Cov ( U 1 , U 1 + k ) ∣ . Then there exist constants K 1 , K 2 > 0 K_1,K_2 > 0 K 1 , K 2 > 0 , depending only on c 1 c_1 c 1 and c 2 c_2 c 2 , such that for all t > 0 t > 0 t > 0 :
P ( ∣ ∑ i = 1 n U i ∣ ≥ t ) ≤ 2 exp ( − K 1 t 2 n σ ∞ 2 + A 2 + K 2 A t ( log n ) 2 ) . (11) \mathbb{P}\left(\left|\sum_{i=1}^{n} U_i\right| \ge t\right) \le2\exp\left(-\frac{K_1t^2}{n\sigma^2_{\infty}+A^2+K_2At(\log n)^2}\right). \tag*{(11)} P ( i = 1 ∑ n U i ≥ t ) ≤ 2 exp ( − n σ ∞ 2 + A 2 + K 2 A t ( log n ) 2 K 1 t 2 ) . (11)
Definition 1 (Moderate-Deviation Regime). Let K 2 > 0 K_2 > 0 K 2 > 0 be the mixing constant from Theorem 2. A deviation threshold t > 0 t > 0 t > 0 is said to fall within the moderate-deviation regime if:
t ≤ σ f , ∞ 2 A K 2 ( log n ) 2 . (12) t \le\frac{\sigma^2_{f,\infty}}{AK_2(\log n)^2}. \tag*{(12)} t ≤ A K 2 ( log n ) 2 σ f , ∞ 2 . (12)
Proof of Lemma 1. Define the centered variables U i = f ( X i ) − E [ f ( X ) ] U_i = f(X_i) - \mathbb{E}[f(X)] U i = f ( X i ) − E [ f ( X )] . Since f f f takes values in [ a , b ] [a,b] [ a , b ] , the sequence { U i } \{U_i\} { U i } is strictly stationary, centered, and bounded by A = b − a A = b-a A = b − a . Applying Theorem 2 with the scaled deviation x = n t x = nt x = n t , we obtain:
P ( ∣ 1 n ∑ i = 1 n U i ∣ ≥ t ) = P ( ∣ ∑ i = 1 n U i ∣ ≥ n t ) ≤ 2 exp ( − K 1 ( n t ) 2 n σ f , ∞ 2 + A 2 + K 2 A ( n t ) ( log n ) 2 ) . (13) \mathbb{P}\left(\left|\frac{1}{n}\sum_{i=1}^{n} U_i\right| \ge t\right) = \mathbb{P}\left(\left|\sum_{i=1}^{n} U_i\right| \ge nt\right) \le2\exp\left(-\frac{K_1(nt)^2}{n\sigma^2_{f,\infty}+A^2+K_2A(nt)(\log n)^2}\right). \tag*{(13)} P ( n 1 i = 1 ∑ n U i ≥ t ) = P ( i = 1 ∑ n U i ≥ n t ) ≤ 2 exp ( − n σ f , ∞ 2 + A 2 + K 2 A ( n t ) ( log n ) 2 K 1 ( n t ) 2 ) . (13)
Dividing both the numerator and the denominator of the exponent by n n n gives:
2 exp ( − K 1 n t 2 σ f , ∞ 2 + A 2 / n + K 2 A t ( log n ) 2 ) . (14) 2\exp\left(-\frac{K_1nt^2}{\sigma^2_{f,\infty}+A^2/n+K_2At(\log n)^2}\right). \tag*{(14)} 2 exp ( − σ f , ∞ 2 + A 2 / n + K 2 A t ( log n ) 2 K 1 n t 2 ) . (14)
Equating this exponent with the standard Hoeffding form − 2 n e f f ( t ) t 2 / A 2 -2n_{\mathrm{eff}}(t)t^2/A^2 − 2 n eff ( t ) t 2 / A 2 yields the deviation-dependent effective sample size:
n e f f ( t ) = K 1 n A 2 2 ( σ f , ∞ 2 + A 2 / n + K 2 A t ( log n ) 2 ) . (15) n_{\mathrm{eff}}(t) = \frac{K_1nA^2}{2\left(\sigma^2_{f,\infty}+A^2/n+K_2At(\log n)^2\right)}. \tag*{(15)} n eff ( t ) = 2 ( σ f , ∞ 2 + A 2 / n + K 2 A t ( log n ) 2 ) K 1 n A 2 . (15)
Now, under the moderate-deviation regime (Definition 1), the logarithmic dependence penalty is bounded by the long-run variance:
K 2 A t ( log n ) 2 ≤ σ f , ∞ 2 . (16) K_2At(\log n)^2 \le\sigma^2_{f,\infty}. \tag*{(16)} K 2 A t ( log n ) 2 ≤ σ f , ∞ 2 . (16)
Substituting this upper bound into the denominator of n e f f ( t ) n_{\mathrm{eff}}(t) n eff ( t ) , we obtain:
σ f , ∞ 2 + A 2 / n + K 2 A t ( log n ) 2 ≤ 2 σ f , ∞ 2 + A 2 / n ≤ 2 ( σ f , ∞ 2 + A 2 / n ) . (17) \sigma^2_{f,\infty}+A^2/n+K_2At(\log n)^2 \le2\sigma^2_{f,\infty}+A^2/n \le2\left(\sigma^2_{f,\infty}+A^2/n\right). \tag*{(17)} σ f , ∞ 2 + A 2 / n + K 2 A t ( log n ) 2 ≤ 2 σ f , ∞ 2 + A 2 / n ≤ 2 ( σ f , ∞ 2 + A 2 / n ) . (17)
Replacing the denominator with this upper bound yields the deviation-independent effective sample size:
n e f f = K 1 n A 2 4 ( σ f , ∞ 2 + A 2 / n ) . (18) n_{\mathrm{eff}} = \frac{K_1nA^2}{4\left(\sigma^2_{f,\infty}+A^2/n\right)}. \tag*{(18)} n eff = 4 ( σ f , ∞ 2 + A 2 / n ) K 1 n A 2 . (18)
which completes the proof.
Hilbert-Valued Concentration via Blocking (Proof of Lemma 2)
Lemma 2 (Hilbert Concentration via Blocking). Let { Z i } i = 1 n \{Z_i\}_{i=1}^{n} { Z i } i = 1 n be a centered, strictly stationary sequence in a separable Hilbert space H \mathcal{H} H with ∥ Z i ∥ H ≤ R \lVert Z_i\rVert_{\mathcal{H}} \le R ∥ Z i ∥ H ≤ R almost surely, and β \beta β -mixing coefficients satisfying β ( k ) ≤ c 1 exp ( − c 2 k ) \beta(k) \le c_1 \exp(-c_2 k) β ( k ) ≤ c 1 exp ( − c 2 k ) at lag k ≥ 1 k \ge1 k ≥ 1 (c 1 , c 2 > 0 c_1, c_2 > 0 c 1 , c 2 > 0 ). Then there exists a constant K H > 0 K_{\mathcal{H}} > 0 K H > 0 , depending only on c 1 c_1 c 1 and c 2 c_2 c 2 , such that for all δ ∈ ( 0 , 1 ) \delta\in(0,1) δ ∈ ( 0 , 1 ) , with probability at least 1 − δ 1-\delta 1 − δ :
∥ 1 n ∑ i = 1 n Z i ∥ H ≤ K H R ( log n + log ( 1 / δ ) ) log ( 8 / δ ) n . \left\lVert\frac{1}{n}\sum_{i=1}^{n} Z_i \right\rVert_{\mathcal{H}} \le K_{\mathcal{H}}R\sqrt{\frac{(\log n+\log(1/\delta))\log(8/\delta)}{n}}. n 1 i = 1 ∑ n Z i H ≤ K H R n ( log n + log ( 1/ δ )) log ( 8/ δ ) .
In this section, we provide the full proof of the Hilbert-space concentration bound for geometrically β \beta β -mixing sequences. The proof relies on the blocking technique and Berbee’s coupling, decoupling the dependent sequence into approximately independent blocks.
Proof of Lemma 2. Fix a block length q ≥ 1 q \ge1 q ≥ 1 . We partition the sequence of length n n n into alternating blocks of size q q q :
I j = { ( 2 j − 2 ) q + 1 , … , ( 2 j − 1 ) q } , J j = { ( 2 j − 1 ) q + 1 , … , 2 j q } , (19) I_j = \{(2j-2)q+1,\ldots,(2j-1)q\}, \qquad J_j = \{(2j-1)q+1,\ldots,2jq\}, \tag*{(19)} I j = {( 2 j − 2 ) q + 1 , … , ( 2 j − 1 ) q } , J j = {( 2 j − 1 ) q + 1 , … , 2 j q } , (19)
for j = 1 , … , L j=1,\ldots,L j = 1 , … , L , where L = ⌊ n / ( 2 q ) ⌋ L=\lfloor n/(2q)\rfloor L = ⌊ n / ( 2 q )⌋ . The remaining observations (at most 2 q 2q 2 q ) contribute at most 2 q R / n 2qR/n 2 q R / n to the norm of the empirical average, which can be safely absorbed into the universal constants of the final bound.
Define the sum over the odd blocks as S j = ∑ i ∈ I j Z i S_j=\sum_{i\in I_j}Z_i S j = ∑ i ∈ I j Z i . By the almost sure boundedness of Z i Z_i Z i , we have ∥ S j ∥ H ≤ q R \lVert S_j\rVert_{\mathcal{H}}\le qR ∥ S j ∥ H ≤ q R .
Because the original sequence is β \beta β -mixing, we can apply Berbee’s coupling lemma (Berbee, [1 ] ) sequentially to the blocks. This guarantees the existence of a sequence of independent block copies S 1 ∗ , … , S L ∗ S_1^*,\ldots,S_L^* S 1 ∗ , … , S L ∗ , where each S j ∗ S_j^* S j ∗ has the exact same marginal distribution as S j S_j S j , such that the probability of the coupled sequence differing from the original sequence is strictly bounded by the sum of the mixing coefficients:
P ( ∃ j : S j ≠ S j ∗ ) ≤ L β ( q ) . (20) \mathbb{P}\left(\exists j:S_j\ne S_j^*\right)\le L\beta(q). \tag*{(20)} P ( ∃ j : S j = S j ∗ ) ≤ L β ( q ) . (20)
Therefore, we can bound the tail probability of the original odd block sums using their independent copies:
P ( ∥ ∑ j = 1 L S j ∥ H ≥ t ) ≤ P ( ∥ ∑ j = 1 L S j ∗ ∥ H ≥ t ) + L β ( q ) . (21) \mathbb{P}\left(\left\lVert\sum_{j=1}^{L}S_j\right\rVert_{\mathcal{H}}\ge t\right)\le\mathbb{P}\left(\left\lVert\sum_{j=1}^{L}S_j^*\right\rVert_{\mathcal{H}}\ge t\right)+L\beta(q). \tag*{(21)} P j = 1 ∑ L S j H ≥ t ≤ P j = 1 ∑ L S j ∗ H ≥ t + L β ( q ) . (21)
Since the original variables are centered (E [ Z i ] = 0 \mathbb{E}[Z_i]=0 E [ Z i ] = 0 ), the independent block variables S j ∗ S_j^* S j ∗ are also centered. They are independent, Hilbert-valued, and strictly bounded by q R qR q R . We can therefore apply Pinelis’ Hoeffding inequality for Hilbert spaces (Pinelis, [17 ] ):
P ( ∥ ∑ j = 1 L S j ∗ ∥ H ≥ t ) ≤ 2 exp ( − t 2 2 L q 2 R 2 ) . (22) \mathbb{P}\left(\left\lVert\sum_{j=1}^{L}S_j^*\right\rVert_{\mathcal{H}}\ge t\right)\le2\exp\left(-\frac{t^2}{2Lq^2R^2}\right). \tag*{(22)} P j = 1 ∑ L S j ∗ H ≥ t ≤ 2 exp ( − 2 L q 2 R 2 t 2 ) . (22)
We apply the exact same blocking and coupling argument to the even blocks J j J_j J j . Since ∑ i = 1 n Z i \sum_{i=1}^{n}Z_i ∑ i = 1 n Z i is bounded by the sum of the odd and even block sequences via the triangle inequality, we apply a union bound over these two sequences evaluated at the threshold t / 2 t/2 t /2 . Combining these estimates yields:
P ( ∥ ∑ i = 1 n Z i ∥ H ≥ t ) ≤ 4 exp ( − t 2 K L q 2 R 2 ) + 2 L β ( q ) , (23) \mathbb{P}\left(\left\lVert\sum_{i=1}^{n}Z_i\right\rVert_{\mathcal{H}}\ge t\right)\le4\exp\left(-\frac{t^2}{KLq^2R^2}\right)+2L\beta(q), \tag*{(23)} P ( i = 1 ∑ n Z i H ≥ t ) ≤ 4 exp ( − K L q 2 R 2 t 2 ) + 2 L β ( q ) , (23)
for some universal constant $K>0.
Using L = ⌊ n / ( 2 q ) ⌋ ≥ n / ( 4 q ) L=\lfloor n/(2q)\rfloor\ge n/(4q) L = ⌊ n / ( 2 q )⌋ ≥ n / ( 4 q ) , the exponent scales as t 2 / ( K n q R 2 ) t^2/(KnqR^2) t 2 / ( K n q R 2 ) . To balance the exponential term with the mixing penalty 2 L β ( q ) 2L\beta(q) 2 L β ( q ) , we utilise the assumption that the sequence is geometrically β \beta β -mixing. We select the block size q q q to grow logarithmically with n n n and 1 / δ 1/\delta 1/ δ :
q = ⌈ log n + log ( 2 c 1 / δ ) c 2 ⌉ . (24) q=\left\lceil\frac{\log n+\log(2c_1/\delta)}{c_2}\right\rceil. \tag*{(24)} q = ⌈ c 2 log n + log ( 2 c 1 / δ ) ⌉ . (24)
With this choice of q q q , the mixing penalty becomes negligible, 2 L β ( q ) ≤ δ / 2 2L\beta(q)\le\delta/2 2 L β ( q ) ≤ δ /2 . Setting the exponential term in (23) to be at most δ / 2 \delta/2 δ /2 and solving for t t t yields the desired bound:
∥ ∑ i = 1 n Z i ∥ H ≤ K H n R ( log n + log ( 1 / δ ) ) log ( 8 / δ ) n . (25) \left\|\sum_{i=1}^{n} Z_i\right\|_{\mathcal{H}}\le K_H nR\sqrt{\frac{(\log n+\log(1/\delta))\log(8/\delta)}{n}}. \tag*{(25)} i = 1 ∑ n Z i H ≤ K H n R n ( log n + log ( 1/ δ )) log ( 8/ δ ) . (25)
Dividing by n n n finishes the proof of Lemma 2.
Proof of the Main KMM Bound (Theorem 1)
Proof. Let ω i ∗ = ω ∗ ( X i t r ) \omega_i^*=\omega^*(X_i^{\mathrm{tr}}) ω i ∗ = ω ∗ ( X i tr ) . We decompose the estimation error of μ ^ K M M \hat{\mu}_{\mathrm{KMM}} μ ^ KMM into three distinct operational terms. This decomposition provides: Term 1 captures the conditional variance of the labels, Term 2 captures the generalization of the optimal density ratio over the dependent covariate sequence, and Term 3 captures the empirical RKHS feature-matching error.
μ ^ K M M − μ t e = 1 n t r ∑ i = 1 n t r w ^ i ( Y i t r − m ( X i t r ) ) ⏟ Term 1: Conditional Residual Noise (26) \hat{\mu}_{\mathrm{KMM}}-\mu_{\mathrm{te}}=
\underbrace{\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}\hat{w}_i(Y_i^{\mathrm{tr}}-m(X_i^{\mathrm{tr}}))}_{\text{Term 1: Conditional Residual Noise}} \tag*{(26)} μ ^ KMM − μ te = Term 1: Conditional Residual Noise n tr 1 i = 1 ∑ n tr w ^ i ( Y i tr − m ( X i tr )) (26)
+ ( 1 n t r ∑ i = 1 n t r ω i ∗ m ( X i t r ) − μ t e ) ⏟ Term 2: True-Ratio Generalization (27) +\underbrace{\left(\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}\omega_i^*m(X_i^{\mathrm{tr}})-\mu_{\mathrm{te}}\right)}_{\text{Term 2: True-Ratio Generalization}} \tag*{(27)} + Term 2: True-Ratio Generalization ( n tr 1 i = 1 ∑ n tr ω i ∗ m ( X i tr ) − μ te ) (27)
+ 1 n t r ∑ i = 1 n t r ( w ^ i − ω i ∗ ) m ( X i t r ) ⏟ Term 3: RKHS Feature Matching Error . (28) +\underbrace{\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}(\hat{w}_i-\omega_i^*)m(X_i^{\mathrm{tr}})}_{\text{Term 3: RKHS Feature Matching Error}}. \tag*{(28)} + Term 3: RKHS Feature Matching Error n tr 1 i = 1 ∑ n tr ( w ^ i − ω i ∗ ) m ( X i tr ) . (28)
Term 1 (Conditional Residual Noise): Under Assumption 2, the residual errors ϵ i = Y i t r − m ( X i t r ) \epsilon_i=Y_i^{\mathrm{tr}}-m(X_i^{\mathrm{tr}}) ϵ i = Y i tr − m ( X i tr ) are conditionally independent given all observed covariates ( X t r , X t e ) (X^{\mathrm{tr}},X^{\mathrm{te}}) ( X tr , X te ) , with mean zero. Since Y i t r ∈ [ 0 , 1 ] Y_i^{\mathrm{tr}}\in[0,1] Y i tr ∈ [ 0 , 1 ] and m ( X i t r ) ∈ [ 0 , 1 ] m(X_i^{\mathrm{tr}})\in[0,1] m ( X i tr ) ∈ [ 0 , 1 ] , each residual ϵ i \epsilon_i ϵ i is supported on the interval [ − m ( X i t r ) , 1 − m ( X i t r ) ] [-m(X_i^{\mathrm{tr}}),1-m(X_i^{\mathrm{tr}})] [ − m ( X i tr ) , 1 − m ( X i tr )] , whose length is ( 1 − m ( X i t r ) ) − ( − m ( X i t r ) ) = 1 (1-m(X_i^{\mathrm{tr}}))-(-m(X_i^{\mathrm{tr}}))=1 ( 1 − m ( X i tr )) − ( − m ( X i tr )) = 1 .
Because the weights w ^ i \hat{w}_i w ^ i are measurable with respect to the covariates ( X t r , X t e ) (X^{\mathrm{tr}},X^{\mathrm{te}}) ( X tr , X te ) and satisfy 0 ≤ w ^ i ≤ B 0\le\hat{w}_i\le B 0 ≤ w ^ i ≤ B , they act as fixed constants when conditioning on the features. Applying Hoeffding’s inequality to the sum of independent, bounded variables ∑ i = 1 n t r w ^ i ϵ i \sum_{i=1}^{n_{\mathrm{tr}}}\hat{w}_i\epsilon_i ∑ i = 1 n tr w ^ i ϵ i conditional on X t r , X t e X^{\mathrm{tr}},X^{\mathrm{te}} X tr , X te , the effective variance factor is bounded by:
∑ i = 1 n t r w ^ i 2 ⋅ 1 2 ≤ n t r B 2 . \sum_{i=1}^{n_{\mathrm{tr}}}\hat{w}_i^2\cdot1^2\le n_{\mathrm{tr}}B^2. i = 1 ∑ n tr w ^ i 2 ⋅ 1 2 ≤ n tr B 2 .
Consequently, for any t > 0 t>0 t > 0 ,
P ( ∣ 1 n t r ∑ i = 1 n t r w ^ i ϵ i ∣ ≥ t ∣ X t r , X t e ) ≤ 2 exp ( − 2 ( n t r t ) 2 n t r B 2 ) = 2 exp ( − 2 n t r t 2 B 2 ) . \mathbb{P}\left(\left.\left|\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}\hat{w}_i\epsilon_i\right|\ge t\right|X^{\mathrm{tr}},X^{\mathrm{te}}\right)\le2\exp\left(-\frac{2(n_{\mathrm{tr}}t)^2}{n_{\mathrm{tr}}B^2}\right)=2\exp\left(-\frac{2n_{\mathrm{tr}}t^2}{B^2}\right). P ( n tr 1 i = 1 ∑ n tr w ^ i ϵ i ≥ t X tr , X te ) ≤ 2 exp ( − n tr B 2 2 ( n tr t ) 2 ) = 2 exp ( − B 2 2 n tr t 2 ) .
Setting this probability to δ / 3 \delta/3 δ /3 , we obtain that with probability at least 1 − δ / 3 1-\delta/3 1 − δ /3 :
∣ 1 n t r ∑ i = 1 n t r w ^ i ( Y i t r − m ( X i t r ) ) ∣ ≤ B 1 2 n t r log 6 δ . (29) \left|\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}\hat{w}_i(Y_i^{\mathrm{tr}}-m(X_i^{\mathrm{tr}}))\right|\le B\sqrt{\frac{1}{2n_{\mathrm{tr}}}\log\frac{6}{\delta}}. \tag*{(29)} n tr 1 i = 1 ∑ n tr w ^ i ( Y i tr − m ( X i tr )) ≤ B 2 n tr 1 log δ 6 . (29)
Notice that because the label noise is conditionally independent, Term 1 concentrates with the nominal sample size n t r n_{\mathrm{tr}} n tr , entirely unaffected by covariate persistence.
Term 2 (True-Ratio Generalization): For (27) , define the function v ( x ) = ω ∗ ( x ) m ( x ) v(x) = \omega^*(x)m(x) v ( x ) = ω ∗ ( x ) m ( x ) . Since 0 ≤ m ( x ) ≤ 1 0 \le m(x) \le1 0 ≤ m ( x ) ≤ 1 and 0 ≤ ω ∗ ( x ) ≤ B 0 \le\omega^*(x) \le B 0 ≤ ω ∗ ( x ) ≤ B , v ( x ) v(x) v ( x ) takes values in [ 0 , B ] [0,B] [ 0 , B ] with range A = B A = B A = B . Under covariate shift (Assumption 1 and 3), E P t r [ v ( X ) ] = ∫ X ω ∗ ( x ) m ( x ) P t r ( d x ) = ∫ X m ( x ) P t e ( d x ) = μ t e \mathbb{E}_{P_{\mathrm{tr}}}[v(X)] = \int_{\mathcal{X}} \omega^*(x)m(x)P_{\mathrm{tr}}(dx) = \int_{\mathcal{X}} m(x)P_{\mathrm{te}}(dx) = \mu_{\mathrm{te}} E P tr [ v ( X )] = ∫ X ω ∗ ( x ) m ( x ) P tr ( d x ) = ∫ X m ( x ) P te ( d x ) = μ te .
Applying Lemma 1 with confidence level δ / 3 \delta/3 δ /3 to the geometrically β \beta β -mixing sequence { X i t r } \{X_i^{\mathrm{tr}}\} { X i tr } , the deviation threshold is
t = B log ( 6 / δ ) 2 n e f f t r ≤ 2 ( σ v , ∞ 2 + B 2 / n t r ) log ( 6 / δ ) K 1 n t r . t = B\sqrt{\frac{\log(6/\delta)}{2n_{\mathrm{eff}}^{\mathrm{tr}}}} \le\sqrt{\frac{2(\sigma_{v,\infty}^2+B^2/n_{\mathrm{tr}})\log(6/\delta)}{K_1n_{\mathrm{tr}}}}. t = B 2 n eff tr log ( 6/ δ ) ≤ K 1 n tr 2 ( σ v , ∞ 2 + B 2 / n tr ) log ( 6/ δ ) .
The burn-in condition (1) guarantees that t t t satisfies the moderate-deviation regime of Definition 1 (t ≤ σ v , ∞ 2 B K 2 ( log n t r ) 2 t \le\frac{\sigma_{v,\infty}^2}{BK_2(\log n_{\mathrm{tr}})^2} t ≤ B K 2 ( l o g n tr ) 2 σ v , ∞ 2 ). Consequently, with probability at least 1 − δ / 3 1-\delta/3 1 − δ /3 :
∣ 1 n t r ∑ i = 1 n t r ω i ∗ m ( X i t r ) − μ t e ∣ ≤ B 1 2 n e f f t r log 6 δ . (30) \left|\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}\omega_i^*m(X_i^{\mathrm{tr}})-\mu_{\mathrm{te}}\right|
\le B\sqrt{\frac{1}{2n_{\mathrm{eff}}^{\mathrm{tr}}}\log\frac{6}{\delta}}. \tag*{(30)} n tr 1 i = 1 ∑ n tr ω i ∗ m ( X i tr ) − μ te ≤ B 2 n eff tr 1 log δ 6 . (30)
Term 3 (RKHS Feature Matching Error): For (28) , since m ∈ H m \in\mathcal{H} m ∈ H , the reproducing property gives m ( x ) = ⟨ m , Φ ( x ) ⟩ H m(x)=\langle m,\Phi(x)\rangle_{\mathcal{H}} m ( x ) = ⟨ m , Φ ( x ) ⟩ H . Applying Cauchy–Schwarz, the triangle inequality, and the optimality of w ^ \hat{\mathbf{w}} w ^ in the KMM objective (2) (observing that ω ∗ = ( ω ∗ ( X 1 t r ) , … , ω ∗ ( X n t r t r ) ) ⊤ ∈ [ 0 , B ] n t r \boldsymbol{\omega}^*=(\omega^*(X_1^{\mathrm{tr}}),\ldots,\omega^*(X_{n_{\mathrm{tr}}}^{\mathrm{tr}}))^\top\in[0,B]^{n_{\mathrm{tr}}} ω ∗ = ( ω ∗ ( X 1 tr ) , … , ω ∗ ( X n tr tr ) ) ⊤ ∈ [ 0 , B ] n tr is a feasible candidate):
∣ 1 n t r ∑ i = 1 n t r ( w ^ i − ω i ∗ ) m ( X i t r ) ∣ = ∣ ⟨ m , 1 n t r ∑ i = 1 n t r ( w ^ i − ω i ∗ ) Φ ( X i t r ) ⟩ H ∣ ≤ ∥ m ∥ H ∥ 1 n t r ∑ i = 1 n t r ( w ^ i − ω i ∗ ) Φ ( X i t r ) ∥ H ≤ ∥ m ∥ H ( ∥ μ ^ Φ t r ( w ^ ) − μ ^ Φ t e ∥ H + ∥ μ ^ Φ t r ( ω ∗ ) − μ ^ Φ t e ∥ H ) ≤ 2 ∥ m ∥ H ∥ 1 n t r ∑ i = 1 n t r ω i ∗ Φ ( X i t r ) − 1 n t e ∑ j = 1 n t e Φ ( X j t e ) ∥ H . (31) \begin{aligned}
\left|\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}(\hat{w}_i-\omega_i^*)m(X_i^{\mathrm{tr}})\right|
&=\left|\left\langle m,\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}(\hat{w}_i-\omega_i^*)\Phi(X_i^{\mathrm{tr}})\right\rangle_{\mathcal{H}}\right|\\
&\le\|m\|_{\mathcal{H}}\left\|\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}(\hat{w}_i-\omega_i^*)\Phi(X_i^{\mathrm{tr}})\right\|_{\mathcal{H}}\\
&\le\|m\|_{\mathcal{H}}\left(\|\hat{\mu}_{\Phi}^{\mathrm{tr}}(\hat{\mathbf{w}})-\hat{\mu}_{\Phi}^{\mathrm{te}}\|_{\mathcal{H}}+\|\hat{\mu}_{\Phi}^{\mathrm{tr}}(\boldsymbol{\omega}^*)-\hat{\mu}_{\Phi}^{\mathrm{te}}\|_{\mathcal{H}}\right)\\
&\le2\|m\|_{\mathcal{H}}\left\|\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}\omega_i^*\Phi(X_i^{\mathrm{tr}})-\frac{1}{n_{\mathrm{te}}}\sum_{j=1}^{n_{\mathrm{te}}}\Phi(X_j^{\mathrm{te}})\right\|_{\mathcal{H}}. \tag*{(31)}
\end{aligned} n tr 1 i = 1 ∑ n tr ( w ^ i − ω i ∗ ) m ( X i tr ) = ⟨ m , n tr 1 i = 1 ∑ n tr ( w ^ i − ω i ∗ ) Φ ( X i tr ) ⟩ H ≤ ∥ m ∥ H n tr 1 i = 1 ∑ n tr ( w ^ i − ω i ∗ ) Φ ( X i tr ) H ≤ ∥ m ∥ H ( ∥ μ ^ Φ tr ( w ^ ) − μ ^ Φ te ∥ H + ∥ μ ^ Φ tr ( ω ∗ ) − μ ^ Φ te ∥ H ) ≤ 2∥ m ∥ H n tr 1 i = 1 ∑ n tr ω i ∗ Φ ( X i tr ) − n te 1 j = 1 ∑ n te Φ ( X j te ) H . (31)
Centering both empirical embeddings around the population target mean embedding μ Φ = E P t e [ Φ ( X ) ] = E P t r [ ω ∗ ( X ) Φ ( X ) ] \mu_{\Phi}=\mathbb{E}_{P_{\mathrm{te}}}[\Phi(X)]=\mathbb{E}_{P_{\mathrm{tr}}}[\omega^*(X)\Phi(X)] μ Φ = E P te [ Φ ( X )] = E P tr [ ω ∗ ( X ) Φ ( X )] , we decompose:
∥ 1 n t r ∑ i = 1 n t r ω i ∗ Φ ( X i t r ) − 1 n t e ∑ j = 1 n t e Φ ( X j t e ) ∥ H ≤ ∥ 1 n t r ∑ i = 1 n t r Z i t r ∥ H + ∥ 1 n t e ∑ j = 1 n t e Z j t e ∥ H , (32) \left\|\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}\omega_i^*\Phi(X_i^{\mathrm{tr}})-\frac{1}{n_{\mathrm{te}}}\sum_{j=1}^{n_{\mathrm{te}}}\Phi(X_j^{\mathrm{te}})\right\|_{\mathcal{H}}
\le\left\|\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}Z_i^{\mathrm{tr}}\right\|_{\mathcal{H}}+\left\|\frac{1}{n_{\mathrm{te}}}\sum_{j=1}^{n_{\mathrm{te}}}Z_j^{\mathrm{te}}\right\|_{\mathcal{H}}, \tag*{(32)} n tr 1 i = 1 ∑ n tr ω i ∗ Φ ( X i tr ) − n te 1 j = 1 ∑ n te Φ ( X j te ) H ≤ n tr 1 i = 1 ∑ n tr Z i tr H + n te 1 j = 1 ∑ n te Z j te H , (32)
where Z i t r = ω ∗ ( X i t r ) Φ ( X i t r ) − μ Φ Z_i^{\mathrm{tr}}=\omega^*(X_i^{\mathrm{tr}})\Phi(X_i^{\mathrm{tr}})-\mu_{\Phi} Z i tr = ω ∗ ( X i tr ) Φ ( X i tr ) − μ Φ and Z j t e = Φ ( X j t e ) − μ Φ Z_j^{\mathrm{te}}=\Phi(X_j^{\mathrm{te}})-\mu_{\Phi} Z j te = Φ ( X j te ) − μ Φ .
As established in the main text, ∥ Φ ( x ) ∥ H ≤ C \|\Phi(x)\|_{\mathcal{H}}\le C ∥Φ ( x ) ∥ H ≤ C . Hence ∥ μ Φ ∥ H ≤ C \|\mu_{\Phi}\|_{\mathcal{H}}\le C ∥ μ Φ ∥ H ≤ C , giving the uniform bounds:
∥ Z i t r ∥ H ≤ ∥ ω ∗ ( X i t r ) Φ ( X i t r ) ∥ H + ∥ μ Φ ∥ H ≤ B C + C ≤ 2 B C , \|Z_i^{\mathrm{tr}}\|_{\mathcal{H}}\le\|\omega^*(X_i^{\mathrm{tr}})\Phi(X_i^{\mathrm{tr}})\|_{\mathcal{H}}+\|\mu_{\Phi}\|_{\mathcal{H}}\le BC+C\le2BC, ∥ Z i tr ∥ H ≤ ∥ ω ∗ ( X i tr ) Φ ( X i tr ) ∥ H + ∥ μ Φ ∥ H ≤ B C + C ≤ 2 B C ,
where the final inequality holds since B = sup x ω ∗ ( x ) ≥ 1 B=\sup_x\omega^*(x)\ge1 B = sup x ω ∗ ( x ) ≥ 1 for any valid density ratio. For the target sequence, ∥ Z j t e ∥ H ≤ 2 C \|Z_j^{\mathrm{te}}\|_{\mathcal{H}}\le2C ∥ Z j te ∥ H ≤ 2 C . Applying Lemma 2 separately to the source sequence with R = 2 B C R=2BC R = 2 B C at confidence level δ / 6 \delta/6 δ /6 , and to the target sequence with R = 2 C R=2C R = 2 C at confidence level δ / 6 \delta/6 δ /6 , each bound holds with probability at least 1 − δ / 6 1-\delta/6 1 − δ /6 . By a union bound, with probability at least 1 − δ / 3 1-\delta/3 1 − δ /3 :
∥ 1 n t r ∑ i = 1 n t r ω i ∗ Φ ( X i t r ) − 1 n t e ∑ j = 1 n t e Φ ( X j t e ) ∥ H ≤ C Δ M M D ( δ ) , (33) \left\|\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}\omega_i^*\Phi(X_i^{\mathrm{tr}})-\frac{1}{n_{\mathrm{te}}}\sum_{j=1}^{n_{\mathrm{te}}}\Phi(X_j^{\mathrm{te}})\right\|_{\mathcal{H}}\le C\Delta_{\mathrm{MMD}}(\delta), \tag*{(33)} n tr 1 i = 1 ∑ n tr ω i ∗ Φ ( X i tr ) − n te 1 j = 1 ∑ n te Φ ( X j te ) H ≤ C Δ MMD ( δ ) , (33)
where the empirical RKHS feature-matching discrepancy Δ M M D ( δ ) \Delta_{\mathrm{MMD}}(\delta) Δ MMD ( δ ) is given in closed form by:
Δ M M D ( δ ) : = K H log 48 δ [ B log n t r + log ( 6 / δ ) n t r + log n t e + log ( 6 / δ ) n t e ] , (34) \Delta_{\mathrm{MMD}}(\delta):=K_H\sqrt{\log\frac{48}{\delta}}\left[B\sqrt{\frac{\log n_{\mathrm{tr}}+\log(6/\delta)}{n_{\mathrm{tr}}}}+\sqrt{\frac{\log n_{\mathrm{te}}+\log(6/\delta)}{n_{\mathrm{te}}}}\right], \tag*{(34)} Δ MMD ( δ ) := K H log δ 48 B n tr log n tr + log ( 6/ δ ) + n te log n te + log ( 6/ δ ) , (34)
with the blocking constant K H > 0 K_H>0 K H > 0 from Lemma 2.
For interpretability and physical intuition in the main text (Theorem 1), we abstract this exact non-asymptotic bound by defining the RKHS effective sample sizes as:
n e f f , R K H S t r : = n t r log n t r + log ( 6 / δ ) , and n e f f , R K H S t e : = n t e log n t e + log ( 6 / δ ) . (35) n_{\mathrm{eff,RKHS}}^{\mathrm{tr}}:=\frac{n_{\mathrm{tr}}}{\log n_{\mathrm{tr}}+\log(6/\delta)},\qquad\text{and}\qquad n_{\mathrm{eff,RKHS}}^{\mathrm{te}}:=\frac{n_{\mathrm{te}}}{\log n_{\mathrm{te}}+\log(6/\delta)}. \tag*{(35)} n eff , RKHS tr := log n tr + log ( 6/ δ ) n tr , and n eff , RKHS te := log n te + log ( 6/ δ ) n te . (35)
This definition allows us to express the MMD error conceptually as Δ M M D ( δ ) ∝ B n e f f , R K H S t r + 1 n e f f , R K H S t e \Delta_{\mathrm{MMD}}(\delta) \propto\frac{B}{\sqrt{n_{\mathrm{eff,RKHS}}^{\mathrm{tr}}}}+\frac{1}{\sqrt{n_{\mathrm{eff,RKHS}}^{\mathrm{te}}}} Δ MMD ( δ ) ∝ n eff , RKHS tr B + n eff , RKHS te 1 . This formulation explicitly exposes how data dependence deflates the effective sample size for infinite-dimensional embeddings via the geometric blocking penalty, and reintroduces the target sequence sample size (n t e n_{\mathrm{te}} n te ) into the final theoretical guarantee.
Substituting (34) into (31) yields:
∣ 1 n t r ∑ i = 1 n t r ( w ^ i − ω i ∗ ) m ( X i t r ) ∣ ≤ 2 C ∥ m ∥ H Δ M M D ( δ ) . (36) \left|\frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}(\hat{w}_i-\omega_i^*)m(\mathbf{X}_i^{\mathrm{tr}})\right|\leq2C\|m\|_{\mathcal{H}}\Delta_{\mathrm{MMD}}(\delta). \tag*{(36)} n tr 1 i = 1 ∑ n tr ( w ^ i − ω i ∗ ) m ( X i tr ) ≤ 2 C ∥ m ∥ H Δ MMD ( δ ) . (36)
Final Synthesis (Proof of Theorem 1): Finally, we assemble the complete bound. We apply a union bound across the three failure events associated with Term 1 (29) , Term 2 (30) , and Term 3 (36) . Since each event fails with probability at most δ / 3 \delta/3 δ /3 , their intersection holds with probability at least 1 − δ 1-\delta 1 − δ .
By applying the triangle inequality to the initial decomposition, the absolute estimation error is strictly bounded by the sum of these three non-asymptotic components:
∣ μ ^ K M M − μ t e ∣ ≤ B log ( 6 / δ ) 2 n t r + B log ( 6 / δ ) n e f f t r + 2 C K H log 48 δ ∥ m ∥ H ( B n e f f , R K H S t r + 1 n e f f , R K H S t e ) . (37) \left|\hat{\mu}_{\mathrm{KMM}}-\mu_{\mathrm{te}}\right|\leq B\sqrt{\frac{\log(6/\delta)}{2n_{\mathrm{tr}}}}+B\sqrt{\frac{\log(6/\delta)}{n_{\mathrm{eff}}^{\mathrm{tr}}}}+2CK_{\mathcal{H}}\sqrt{\log\frac{48}{\delta}}\|m\|_{\mathcal{H}}\left(\frac{B}{\sqrt{n_{\mathrm{eff,RKHS}}^{\mathrm{tr}}}}+\frac{1}{\sqrt{n_{\mathrm{eff,RKHS}}^{\mathrm{te}}}}\right). \tag*{(37)} ∣ μ ^ KMM − μ te ∣ ≤ B 2 n tr log ( 6/ δ ) + B n eff tr log ( 6/ δ ) + 2 C K H log δ 48 ∥ m ∥ H n eff , RKHS tr B + n eff , RKHS te 1 . (37)
By abstracting the absolute universal constants (2 C 2C 2 C and K H K_{\mathcal{H}} K H ) and the logarithmic confidence factor (log ( 48 / δ ) \sqrt{\log(48/\delta)} log ( 48/ δ ) ) into the asymptotic O ( ⋅ ) O(\cdot) O ( ⋅ ) notation, we exactly recover the generalized statement of Theorem 1 presented in the main text. This completes the proof. □
Gaussian Process Effective Sample Size Derivations
This appendix provides the rigorous mathematical derivations for the Gaussian Process (GP) effective sample size introduced in § 3.3 . We first establish the general marginalised covariance for a GP evaluated over correlated inputs. To mathematically formalise the fundamental smoothness trade-off, we then derive exact closed-form expressions and asymptotic limits for two contrasting covariance families: the infinitely smooth Squared-Exponential (SE) kernel and the rough Matérn-1/2 (Exponential) kernel. Finally, we contrast these stochastic realisations with the asymptotic behaviour of a general fixed deterministic function.
Marginalized Covariance for GP Realizations (Squared-Exponential Case)
Suppose u u u is a realization of a zero-mean GP with a squared-exponential covariance k h ( x , x ′ ) = σ u 2 exp ( − ∥ x − x ′ ∥ 2 / 2 h 2 ) k_h(\mathbf{x},\mathbf{x}')=\sigma_u^2\exp(-\|\mathbf{x}-\mathbf{x}'\|^2/2h^2) k h ( x , x ′ ) = σ u 2 exp ( − ∥ x − x ′ ∥ 2 /2 h 2 ) . To maintain theoretical consistency with the compact domain X \mathcal{X} X (Assumption 1), we formally assume the Gaussian inputs are truncated to a sufficiently large compact bounding box. Following standard truncation arguments in GP learning theory [24 ] , the exponentially small probability mass lost in the tails ensures our analytical moments hold up to a negligible approximation error.
If the covariates are drawn from a stationary GP X s ∼ N ( μ , σ x 2 I d ) \mathbf{X}_s\sim\mathcal{N}(\boldsymbol{\mu},\sigma_x^2\mathbf{I}_d) X s ∼ N ( μ , σ x 2 I d ) , the difference between two inputs is strictly Gaussian:
X s − X t ∼ N ( 0 , 2 σ x 2 { 1 − r ( ∥ s − t ∥ ) } I d ) . (38) \mathbf{X}_s-\mathbf{X}_t\sim\mathcal{N}\left(\mathbf{0},2\sigma_x^2\{1-r(\|\mathbf{s}-\mathbf{t}\|)\}\mathbf{I}_d\right). \tag*{(38)} X s − X t ∼ N ( 0 , 2 σ x 2 { 1 − r ( ∥ s − t ∥ )} I d ) . (38)
Integrating over the distribution of the d d d -dimensional inputs, the prior-averaged kernel covariance becomes:
E X [ k h ( X s , X t ) ] = σ u 2 det ( I d + 2 σ x 2 { 1 − r ( ∥ s − t ∥ ) } h 2 I d ) − 1 / 2 . (39) \mathbb{E}_{\mathbf{X}}\left[k_h(\mathbf{X}_s,\mathbf{X}_t)\right]=\sigma_u^2\det\left(\mathbf{I}_d+\frac{2\sigma_x^2\{1-r(\|\mathbf{s}-\mathbf{t}\|)\}}{h^2}\mathbf{I}_d\right)^{-1/2}. \tag*{(39)} E X [ k h ( X s , X t ) ] = σ u 2 det ( I d + h 2 2 σ x 2 { 1 − r ( ∥ s − t ∥ )} I d ) − 1/2 . (39)
Subtracting the independent-input baseline gives the exact covariance of the centred process:
γ ˉ u ( s , t ) = σ u 2 [ det ( I d + 2 σ x 2 { 1 − r ( ∥ s − t ∥ ) } h 2 I d ) − 1 / 2 − det ( I d + 2 σ x 2 h 2 I d ) − 1 / 2 ] . (40) \bar{\gamma}_{u}(s,t)=\sigma_u^2\left[\det\left(\mathbf{I}_d+\frac{2\sigma_x^2\{1-r(\lVert s-t\rVert)\}}{h^2}\mathbf{I}_d\right)^{-1/2}-\det\left(\mathbf{I}_d+\frac{2\sigma_x^2}{h^2}\mathbf{I}_d\right)^{-1/2}\right]. \tag*{(40)} γ ˉ u ( s , t ) = σ u 2 [ det ( I d + h 2 2 σ x 2 { 1 − r (∥ s − t ∥)} I d ) − 1/2 − det ( I d + h 2 2 σ x 2 I d ) − 1/2 ] . (40)
Letting a h = 2 σ x 2 / h 2 a_h=2\sigma_x^2/h^2 a h = 2 σ x 2 / h 2 and r k = r ( k ) = exp ( − k 2 / 2 ℓ x 2 ) r_k=r(k)=\exp(-k^2/2\ell_x^2) r k = r ( k ) = exp ( − k 2 /2 ℓ x 2 ) , the determinant simplifies to ( 1 + a h { 1 − r k } ) d (1+a_h\{1-r_k\})^d ( 1 + a h { 1 − r k } ) d . Consequently, the autocorrelation function in R d \mathbb{R}^d R d takes the exact closed form:
ρ ˉ u ( k ) = ( 1 + a h { 1 − r k } ) − d / 2 − ( 1 + a h ) − d / 2 1 − ( 1 + a h ) − d / 2 . (41) \bar{\rho}_u(k)=\frac{(1+a_h\{1-r_k\})^{-d/2}-(1+a_h)^{-d/2}}{1-(1+a_h)^{-d/2}}. \tag*{(41)} ρ ˉ u ( k ) = 1 − ( 1 + a h ) − d /2 ( 1 + a h { 1 − r k } ) − d /2 − ( 1 + a h ) − d /2 . (41)
Defining κ h , d = ( 1 + a h ) − d / 2 \kappa_{h,d}=(1+a_h)^{-d/2} κ h , d = ( 1 + a h ) − d /2 , the infinite autocorrelation sum becomes:
S ˉ ( a h , ℓ x , d ) = ∑ k = 1 ∞ ρ ˉ u ( k ) = ∑ k = 1 ∞ ( 1 + a h ( 1 − r k ) ) − d / 2 − κ h , d 1 − κ h , d . (42) \bar{S}(a_h,\ell_x,d)=\sum_{k=1}^{\infty}\bar{\rho}_u(k)=\sum_{k=1}^{\infty}\frac{(1+a_h(1-r_k))^{-d/2}-\kappa_{h,d}}{1-\kappa_{h,d}}. \tag*{(42)} S ˉ ( a h , ℓ x , d ) = k = 1 ∑ ∞ ρ ˉ u ( k ) = k = 1 ∑ ∞ 1 − κ h , d ( 1 + a h ( 1 − r k ) ) − d /2 − κ h , d . (42)
Short-Range Dependence Limit (ℓ x ≪ 1 \ell_x\ll1 ℓ x ≪ 1 ): The first lag dominates the sum. Using a first-order expansion, we find:
S ˉ ( a h , ℓ x ) = L ( a h ) exp ( − 1 2 ℓ x 2 ) + O ( exp ( − 1 ℓ x 2 ) ) , where L ( a h ) = 1 + a h + 1 2 ( 1 + a h ) . (43) \bar{S}(a_h,\ell_x)=L(a_h)\exp\left(-\frac{1}{2\ell_x^2}\right)+\mathcal{O}\left(\exp\left(-\frac{1}{\ell_x^2}\right)\right),\qquad\text{where }L(a_h)=\frac{\sqrt{1+a_h}+1}{2(1+a_h)}. \tag*{(43)} S ˉ ( a h , ℓ x ) = L ( a h ) exp ( − 2 ℓ x 2 1 ) + O ( exp ( − ℓ x 2 1 ) ) , where L ( a h ) = 2 ( 1 + a h ) 1 + a h + 1 . (43)
Long-Range Dependence Limit (ℓ x ≫ 1 \ell_x\gg1 ℓ x ≫ 1 ): The sum is approximated by the integral via the Euler-Maclaurin formula:
S ˉ ( a h , ℓ x ) = ℓ x C d ( a h ) − 1 2 + O ( ℓ x − 1 ) , (44) \bar{S}(a_h,\ell_x)=\ell_x C_d(a_h)-\frac{1}{2}+\mathcal{O}(\ell_x^{-1}), \tag*{(44)} S ˉ ( a h , ℓ x ) = ℓ x C d ( a h ) − 2 1 + O ( ℓ x − 1 ) , (44)
where the constant C d ( a h ) C_d(a_h) C d ( a h ) explicitly captures the GP smoothness effect:
C d ( a h ) = ∫ 0 ∞ ( 1 + a h { 1 − exp ( − u 2 / 2 ) } ) − d / 2 − ( 1 + a h ) − d / 2 1 − ( 1 + a h ) − d / 2 d u . (45) C_d(a_h)=\int_0^\infty\frac{(1+a_h\{1-\exp(-u^2/2)\})^{-d/2}-(1+a_h)^{-d/2}}{1-(1+a_h)^{-d/2}}\,du. \tag*{(45)} C d ( a h ) = ∫ 0 ∞ 1 − ( 1 + a h ) − d /2 ( 1 + a h { 1 − exp ( − u 2 /2 )} ) − d /2 − ( 1 + a h ) − d /2 d u . (45)
Analyzing C d ( a h ) C_d(a_h) C d ( a h ) yields two sub-regimes: 1. If a h ≪ 1 a_h\ll1 a h ≪ 1 (Smooth GP), Taylor expansion yields C d ( a h ) = π 2 − 3 a h 4 ( π 2 − π 2 ) + O ( a h 2 ) C_d(a_h)=\sqrt{\frac{\pi}{2}}-\frac{3a_h}{4}\left(\sqrt{\frac{\pi}{2}}-\frac{\sqrt{\pi}}{2}\right)+\mathcal{O}(a_h^2) C d ( a h ) = 2 π − 4 3 a h ( 2 π − 2 π ) + O ( a h 2 ) . 2. If a h ≫ 1 a_h\gg1 a h ≫ 1 (Rough GP), asymptotic analysis yields C d ( a h ) = log a h 2 a h + O ( a h − 1 / 2 ) C_d(a_h)=\frac{\log a_h}{\sqrt{2a_h}}+\mathcal{O}(a_h^{-1/2}) C d ( a h ) = 2 a h l o g a h + O ( a h − 1/2 ) .
Effective Sample Size for the Matérn Kernel Family (e.g., Exponential Kernel)
To demonstrate that our effective sample size framework seamlessly extends beyond the infinitely smooth Squared-Exponential (SE) kernel, we analyse the Matérn family of covariance functions. The Matérn class is governed by a smoothness parameter ν > 0 \nu>0 ν > 0 . As ν → ∞ \nu\to\infty ν → ∞ , it recovers the SE kernel. However, for finite ν \nu ν , the functions are rougher (only ⌊ ν − 0.5 ⌋ \lfloor\nu-0.5\rfloor ⌊ ν − 0.5 ⌋ times mean-square differentiable).
A widely used instantiation is the Matérn-1/2 kernel, which corresponds to the Exponential (or Laplace) covariance function: k 1 / 2 ( x , x ′ ) = σ u 2 exp ( − ∥ x − x ′ ∥ / h ) k_{1/2}(x,x')=\sigma_u^2\exp(-\lVert x-x'\rVert/h) k 1/2 ( x , x ′ ) = σ u 2 exp ( − ∥ x − x ′ ∥ / h ) . This models rough, non-differentiable processes.
For scalar inputs (d = 1 d=1 d = 1 ), we can derive an exact analytical closed form for the marginalised covariance, similar to the SE case. As established in (40) , the difference between two inputs is Δ X = X s − X t ∼ N ( 0 , s k 2 ) \Delta X=X_s-X_t\sim\mathcal{N}(0,s_k^2) Δ X = X s − X t ∼ N ( 0 , s k 2 ) , where the variance is s k 2 = 2 σ x 2 { 1 − r ( k ) } s_k^2=2\sigma_x^2\{1-r(k)\} s k 2 = 2 σ x 2 { 1 − r ( k )} . The prior-averaged kernel covariance requires evaluating the Gaussian integral over the absolute value:
E X [ k 1 / 2 ( X s , X t ) ] = ∫ − ∞ ∞ σ u 2 exp ( − ∣ x ∣ h ) 1 2 π s k 2 exp ( − x 2 2 s k 2 ) d x . (46) \mathbb{E}_{X}[k_{1/2}(X_s,X_t)]=\int_{-\infty}^{\infty}\sigma_u^2\exp\left(-\frac{|x|}{h}\right)\frac{1}{\sqrt{2\pi s_k^2}}\exp\left(-\frac{x^2}{2s_k^2}\right)\,dx. \tag*{(46)} E X [ k 1/2 ( X s , X t )] = ∫ − ∞ ∞ σ u 2 exp ( − h ∣ x ∣ ) 2 π s k 2 1 exp ( − 2 s k 2 x 2 ) d x . (46)
By completing the square in the exponent and exploiting the symmetry of the Gaussian distribution, this integral evaluates exactly to:
E X [ k 1 / 2 ( X s , X t ) ] = σ u 2 exp ( s k 2 2 h 2 ) erfc ( s k 2 h ) . (47) \mathbb{E}_{X}[k_{1/2}(X_s,X_t)]=\sigma_u^2\exp\left(\frac{s_k^2}{2h^2}\right)\operatorname{erfc}\left(\frac{s_k}{\sqrt{2}h}\right). \tag*{(47)} E X [ k 1/2 ( X s , X t )] = σ u 2 exp ( 2 h 2 s k 2 ) erfc ( 2 h s k ) . (47)
where erfc ( z ) = 2 π ∫ z ∞ e − t 2 d t \operatorname{erfc}(z) = \frac{2}{\sqrt{\pi}} \int_z^\infty e^{-t^2}\,\mathrm{d}t erfc ( z ) = π 2 ∫ z ∞ e − t 2 d t is the complementary error function.
To express the induced autocorrelation ρ ˉ u ( k ) \bar{\rho}_u(k) ρ ˉ u ( k ) , let γ k = s k 2 h = σ x ℓ h 1 − r k \gamma_k = \frac{s_k}{\sqrt{2h}} = \frac{\sigma_x}{\ell_h}\sqrt{1-r_k} γ k = 2 h s k = ℓ h σ x 1 − r k , and let γ ∞ = σ x ℓ h \gamma_\infty= \frac{\sigma_x}{\ell_h} γ ∞ = ℓ h σ x denote the independent-input baseline limit. The exact centered autocorrelation for the Exponential GP is:
ρ ˉ u , E x p ( k ) = exp ( γ k 2 ) erfc ( γ k ) − exp ( γ ∞ 2 ) erfc ( γ ∞ ) 1 − exp ( γ ∞ 2 ) erfc ( γ ∞ ) . (48) \bar{\rho}_{u,\mathrm{Exp}}(k) = \frac{\exp(\gamma_k^2)\operatorname{erfc}(\gamma_k)-\exp(\gamma_\infty^2)\operatorname{erfc}(\gamma_\infty)}{1-\exp(\gamma_\infty^2)\operatorname{erfc}(\gamma_\infty)}. \tag*{(48)} ρ ˉ u , Exp ( k ) = 1 − exp ( γ ∞ 2 ) erfc ( γ ∞ ) exp ( γ k 2 ) erfc ( γ k ) − exp ( γ ∞ 2 ) erfc ( γ ∞ ) . (48)
Asymptotic Smoothness Trade-off. This closed-form derivation mathematically formalizes the smoothness trade-off. For large input deviations relative to the length-scale (γ k ≫ 1 \gamma_k \gg1 γ k ≫ 1 ), the complementary error function admits the strict asymptotic expansion:
exp ( γ k 2 ) erfc ( γ k ) = 1 γ k π ( 1 − O ( γ k − 2 ) ) . (49) \exp(\gamma_k^2)\operatorname{erfc}(\gamma_k) = \frac{1}{\gamma_k\sqrt{\pi}}\left(1-O(\gamma_k^{-2})\right). \tag*{(49)} exp ( γ k 2 ) erfc ( γ k ) = γ k π 1 ( 1 − O ( γ k − 2 ) ) . (49)
Although single-lag autocorrelations for both kernels asymptotically scale as O ( 1 / γ k ) O(1/\gamma_k) O ( 1/ γ k ) for large input deviations (since a h { 1 − r k } = 2 γ k 2 a_h\{1-r_k\}=2\gamma_k^2 a h { 1 − r k } = 2 γ k 2 , yielding ( 1 + 2 γ k 2 ) − 1 / 2 = 1 2 γ k ( 1 − O ( γ k − 2 ) ) (1+2\gamma_k^2)^{-1/2}=\frac{1}{\sqrt{2}\gamma_k}(1-O(\gamma_k^{-2})) ( 1 + 2 γ k 2 ) − 1/2 = 2 γ k 1 ( 1 − O ( γ k − 2 )) for the SE model), their cumulative persistence sums behave fundamentally differently across lags. Because the SE kernel models an infinitely differentiable process, its spectral density decays super-exponentially; in the continuum limit, this parabolic smoothness near zero lag produces an extended cumulative dependence with an additional logarithmic enhancement C d ( a h ) = log a h 2 a h + O ( a h − 1 / 2 ) C_d(a_h)=\frac{\log a_h}{\sqrt{2a_h}}+O(a_h^{-1/2}) C d ( a h ) = 2 a h l o g a h + O ( a h − 1/2 ) . Conversely, the non-differentiable Matérn-1/2 process introduces high-frequency roughness that enforces faster sequence decorrelation across neighboring points, eliminating this logarithmic inflation and resulting in a smaller infinite sum S ˉ \bar{S} S ˉ and a larger, more favorable effective sample size.
Asymptotic Analysis of the GP Effective Sample Size for Fixed Functions
To contextualise the GP realisation results, consider a general fixed deterministic function evaluated over the same spatio-temporal data. Suppose the covariates are generated by a stationary Gaussian process X s ∼ N ( μ , σ x 2 I d ) \mathbf{X}_s \sim\mathcal{N}(\boldsymbol{\mu},\sigma_x^2\mathbf{I}_d) X s ∼ N ( μ , σ x 2 I d ) with spatial/temporal covariance:
Cov ( X s , X t ) = σ x 2 I d exp ( − ∥ s − t ∥ 2 2 ℓ x 2 ) , \operatorname{Cov}(\mathbf{X}_s,\mathbf{X}_t)=\sigma_x^2\mathbf{I}_d\exp\left(-\frac{\lVert s-t\rVert^2}{2\ell_x^2}\right), Cov ( X s , X t ) = σ x 2 I d exp ( − 2 ℓ x 2 ∥ s − t ∥ 2 ) ,
where ℓ x \ell_x ℓ x determines the persistence length. Assuming f f f is continuously differentiable with bounded second derivatives, a first-order Taylor expansion around the mean μ \boldsymbol{\mu} μ yields the leading term:
Cov ( f ( X s ) , f ( X t ) ) = σ x 2 ∥ ∇ f ( μ ) ∥ 2 r ( ∥ s − t ∥ ) + O ( σ x 4 ) . \operatorname{Cov}(f(\mathbf{X}_s),f(\mathbf{X}_t))=\sigma_x^2\lVert\nabla f(\boldsymbol{\mu})\rVert^2r(\lVert s-t\rVert)+O(\sigma_x^4). Cov ( f ( X s ) , f ( X t )) = σ x 2 ∥ ∇ f ( μ ) ∥ 2 r (∥ s − t ∥) + O ( σ x 4 ) .
Consequently, the leading term of the function’s autocorrelation strictly matches the input correlation up to higher-order residuals: ρ f ( k ) = r ( k ) + O ( σ x 2 ) \rho_f(k)=r(k)+O(\sigma_x^2) ρ f ( k ) = r ( k ) + O ( σ x 2 ) .
For a squared-exponential input autocorrelation, the infinite autocorrelation sum is explicitly given by the Jacobi theta function ϑ 3 \vartheta_3 ϑ 3 :
S ( ℓ x ) = ∑ k = 1 ∞ exp ( − k 2 2 ℓ x 2 ) = 1 2 [ ϑ 3 ( 0 , exp { − 1 2 ℓ x 2 } ) − 1 ] . S(\ell_x)=\sum_{k=1}^{\infty}\exp\left(-\frac{k^2}{2\ell_x^2}\right)=\frac{1}{2}\left[\vartheta_3\left(0,\exp\left\{-\frac{1}{2\ell_x^2}\right\}\right)-1\right]. S ( ℓ x ) = k = 1 ∑ ∞ exp ( − 2 ℓ x 2 k 2 ) = 2 1 [ ϑ 3 ( 0 , exp { − 2 ℓ x 2 1 } ) − 1 ] .
Therefore, the exact asymptotic effective sample size is expressed as:
n e f f ( ℓ x ) = n 1 + 2 S ( ℓ x ) = n ϑ 3 ( 0 , exp { − 1 / ( 2 ℓ x 2 ) } ) . n_{\mathrm{eff}}(\ell_x)=\frac{n}{1+2S(\ell_x)}=\frac{n}{\vartheta_3\left(0,\exp\left\{-1/(2\ell_x^2)\right\}\right)}. n eff ( ℓ x ) = 1 + 2 S ( ℓ x ) n = ϑ 3 ( 0 , exp { − 1/ ( 2 ℓ x 2 ) } ) n .
In the short-range limit (ℓ x → 0 \ell_x\to0 ℓ x → 0 ), the first lag dominates, yielding n e f f = n ( 1 − O ( exp ( − 1 / 2 ℓ x 2 ) ) ) n_{\mathrm{eff}}=n(1-O(\exp(-1/2\ell_x^2))) n eff = n ( 1 − O ( exp ( − 1/2 ℓ x 2 ))) . Conversely, under long-range dependence (ℓ x → ∞ \ell_x\to\infty ℓ x → ∞ ), approximating the sum with an integral via the Euler-Maclaurin formula gives 1 + 2 S ( ℓ x ) = 2 π ℓ x + O ( 1 ) 1+2S(\ell_x)=\sqrt{2\pi}\ell_x+O(1) 1 + 2 S ( ℓ x ) = 2 π ℓ x + O ( 1 ) . Thus, the effective sample size scales asymptotically as n e f f ( ℓ x ) = n 2 π ℓ x + O ( 1 ) n_{\mathrm{eff}}(\ell_x)=\frac{n}{\sqrt{2\pi}\ell_x+O(1)} n eff ( ℓ x ) = 2 π ℓ x + O ( 1 ) n .
Extension to Hypothesis Classes via Empirical Processes
While Theorem 1 provides a pointwise guarantee for a fixed regression function m m m or a fixed loss ℓ \ell ℓ , evaluating a data-dependent learned predictor requires a simultaneous uniform guarantee over a hypothesis class F \mathcal{F} F . For independent data, this is governed by standard Rademacher complexity. For dependent β \beta β -mixing sequences, applying a naive substitution n ⇝ n e f f n \leadsto n_{\mathrm{eff}} n ⇝ n eff is theoretically insufficient. Instead, uniform convergence must be established using Block Rademacher Complexity ([16 , 12 ] ).
Following the blocking construction from Lemma 2, we partition the sequence into alternating blocks of size q q q , with L = ⌊ n / ( 2 q ) ⌋ L = \lfloor n/(2q)\rfloor L = ⌊ n / ( 2 q )⌋ . By Berbee’s coupling lemma, we decouple the dependent blocks into an independent block sequence B 1 ∗ , … , B L ∗ B_1^*, \ldots, B_L^* B 1 ∗ , … , B L ∗ , where each block contains q q q observations: B j ∗ = ( X j , 1 ∗ , … , X j , q ∗ ) B_j^* = (X_{j,1}^*, \ldots, X_{j,q}^*) B j ∗ = ( X j , 1 ∗ , … , X j , q ∗ ) . The empirical Block Rademacher Complexity of F \mathcal{F} F is defined as:
R L ( F , q ) = 1 L E σ [ sup f ∈ F ∑ j = 1 L σ j ( 1 q ∑ k = 1 q f ( X j , k ∗ ) ) ] (50) \mathfrak{R}_L(\mathcal{F},q) = \frac{1}{L}\mathbb{E}_{\sigma}\left[\sup_{f\in\mathcal{F}}\sum_{j=1}^{L}\sigma_j\left(\frac{1}{q}\sum_{k=1}^{q}f(X_{j,k}^*)\right)\right] \tag*{(50)} R L ( F , q ) = L 1 E σ [ f ∈ F sup j = 1 ∑ L σ j ( q 1 k = 1 ∑ q f ( X j , k ∗ ) ) ] (50)
where σ 1 , … , σ L \sigma_1,\ldots,\sigma_L σ 1 , … , σ L are independent Rademacher variables.
Applying McDiarmid’s inequality to the coupled independent blocks and accounting for odd and even sub-sequences via the triangle inequality, the uniform deviation over F \mathcal{F} F is bounded with probability at least 1 − δ 1-\delta 1 − δ by:
sup f ∈ F ∣ 1 n ∑ i = 1 n f ( X i ) − E [ f ( X ) ] ∣ ≤ 2 R L ( F , q ) + 3 A log ( 4 / δ ) 2 L + 2 L β ( q ) , (51) \sup_{f\in\mathcal{F}}\left|\frac{1}{n}\sum_{i=1}^{n}f(X_i)-\mathbb{E}[f(X)]\right|
\leq2\mathfrak{R}_L(\mathcal{F},q)+3A\sqrt{\frac{\log(4/\delta)}{2L}}+2L\beta(q), \tag*{(51)} f ∈ F sup n 1 i = 1 ∑ n f ( X i ) − E [ f ( X )] ≤ 2 R L ( F , q ) + 3 A 2 L log ( 4/ δ ) + 2 L β ( q ) , (51)
where A = sup f ∈ F ( sup x f ( x ) − inf x f ( x ) ) A=\sup_{f\in\mathcal{F}}(\sup_x f(x)-\inf_x f(x)) A = sup f ∈ F ( sup x f ( x ) − inf x f ( x )) denotes the uniform bound on the function range. By choosing the block size to satisfy q = ⌈ log n + log ( 4 c 1 / δ ) c 2 ⌉ q=\left\lceil\frac{\log n+\log(4c_1/\delta)}{c_2}\right\rceil q = ⌈ c 2 l o g n + l o g ( 4 c 1 / δ ) ⌉ , the mixing penalty becomes negligible: 2 L β ( q ) ≤ δ / 2 2L\beta(q)\leq\delta/2 2 L β ( q ) ≤ δ /2 . The number of effective independent blocks L = ⌊ n / ( 2 q ) ⌋ = O ( n / log n ) L=\lfloor n/(2q)\rfloor=O(n/\log n) L = ⌊ n / ( 2 q )⌋ = O ( n / log n ) then governs the sample-complexity geometry of the uniform bound.
Application to RKHS and GP Function Classes. For an RKHS ball F R = { f ∈ H : ∥ f ∥ H ≤ R } \mathcal{F}_R=\{f\in\mathcal{H}:\|f\|_{\mathcal{H}}\leq R\} F R = { f ∈ H : ∥ f ∥ H ≤ R } with a kernel bounded by C 2 C^2 C 2 , let Φ ˉ j = 1 q ∑ k = 1 q Φ ( X j , k ∗ ) \bar{\Phi}_j=\frac{1}{q}\sum_{k=1}^{q}\Phi(X_{j,k}^*) Φ ˉ j = q 1 ∑ k = 1 q Φ ( X j , k ∗ ) be the block feature mean of the j j j -th block. Since ∥ Φ ( x ) ∥ H ≤ C \|\Phi(x)\|_{\mathcal{H}}\leq C ∥Φ ( x ) ∥ H ≤ C , it follows that ∥ Φ ˉ j ∥ H ≤ C \|\bar{\Phi}_j\|_{\mathcal{H}}\leq C ∥ Φ ˉ j ∥ H ≤ C . By Cauchy-Schwarz, the block Rademacher complexity evaluates cleanly to:
R L ( F R , q ) = 1 L E σ [ sup ∥ f ∥ H ≤ R ⟨ f , ∑ j = 1 L σ j Φ ˉ j ⟩ H ] ≤ R L E σ ∥ ∑ j = 1 L σ j Φ ˉ j ∥ H ≤ R C L . (52) \mathfrak{R}_L(\mathcal{F}_R,q)=\frac{1}{L}\mathbb{E}_{\sigma}\left[\sup_{\|f\|_{\mathcal{H}}\leq R}\left\langle f,\sum_{j=1}^{L}\sigma_j\bar{\Phi}_j\right\rangle_{\mathcal{H}}\right]\leq\frac{R}{L}\mathbb{E}_{\sigma}\left\|\sum_{j=1}^{L}\sigma_j\bar{\Phi}_j\right\|_{\mathcal{H}}\leq\frac{RC}{\sqrt{L}}. \tag*{(52)} R L ( F R , q ) = L 1 E σ ∥ f ∥ H ≤ R sup ⟨ f , j = 1 ∑ L σ j Φ ˉ j ⟩ H ≤ L R E σ j = 1 ∑ L σ j Φ ˉ j H ≤ L R C . (52)
Notice that replacing the nominal sample size n n n with the effective number of blocks L = O ( n / log n ) L=O(n/\log n) L = O ( n / log n ) inflates the statistical complexity, mirroring the effective sample size deflation observed in our pointwise bounds.
This formulation mathematically connects KMM risk estimation with empirical process theory under dependent sampling. While the block size q q q is determined entirely by the physical mixing rate of the covariate process { X t } \{X_t\} { X t } , functional smoothness directly controls the complexity radius R = ∥ f ∥ H R=\|f\|_{\mathcal{H}} R = ∥ f ∥ H : smoother function classes enforce smaller RKHS norms, thereby substantially reducing the complexity numerator R L \mathfrak{R}_L R L . However, as established in § 3.3 , smoother functions simultaneously retain more intra-sequence autocorrelation, deflating the pointwise variance-based n e f f n_{\mathrm{eff}} n eff . Across both pointwise and uniform bounds, the density-ratio overlap penalty B B B remains an irreducible multiplicative scale, confirming that neither hypothesis smoothness nor complex empirical-process machinery can bypass severe support mismatch.
Artificial Data Experimental Results and Implementation Details
This section provides a comprehensive breakdown of the synthetic experimental setups, expanded empirical validations, and rigorous robustness stress tests that were omitted from the main text due to space constraints. We first detail the exact data-generating processes, followed by the validation of the Target Y Y Y effective sample size. We then present full-page heatmaps of our theoretical calibration and conclude with extensive ablations over hyperparameters, non-differentiable functional families, and non-stationary correlation structures.
Detailed Synthetic Experimental Setup
To thoroughly evaluate the statistical properties of our dependent KMM framework, we construct a highly controlled synthetic environment where ground-truth expectations, density ratios, and effective sample sizes are analytically tractable.
Data-Generating Process for Covariates We generate continuous covariate sequences X t ∈ R X_t \in\mathbb{R} X t ∈ R for our 1D benchmark sweeps and hyperparameter ablations (extended to X t ∈ R 2 X_t \in\mathbb{R}^2 X t ∈ R 2 for the 2D spatial calibration heatmaps in Appendix § 13 .§ 4 ). To simulate temporal or spatial persistence, source covariates are sampled along a stationary Gaussian trajectory:
X t t r = μ t r + τ t r ξ t , where ξ ∼ N ( 0 , Σ ) . (53) X_t^{\mathrm{tr}} = \mu_{\mathrm{tr}} + \tau_{\mathrm{tr}}\xi_t,\quad\text{where}\quad\xi\sim\mathcal{N}(0,\boldsymbol{\Sigma}). \tag*{(53)} X t tr = μ tr + τ tr ξ t , where ξ ∼ N ( 0 , Σ ) . (53)
The covariance matrix Σ ∈ R n t r × n t r \boldsymbol{\Sigma} \in\mathbb{R}^{n_{\mathrm{tr}}\times n_{\mathrm{tr}}} Σ ∈ R n tr × n tr enforces a Squared-Exponential (RBF) autocorrelation structure across sequence indices:
Cov ( ξ s , ξ t ) = σ 0 2 exp ( − ∣ s − t ∣ 2 2 ℓ x 2 ) . (54) \operatorname{Cov}(\xi_s,\xi_t) = \sigma_0^2 \exp\left(-\frac{|s-t|^2}{2\ell_x^2}\right). \tag*{(54)} Cov ( ξ s , ξ t ) = σ 0 2 exp ( − 2 ℓ x 2 ∣ s − t ∣ 2 ) . (54)
Here, ℓ x \ell_x ℓ x dictates the input correlation length and σ 0 2 = 1.0 \sigma_0^2 = 1.0 σ 0 2 = 1.0 is the baseline variance. Target covariates X t t e X_t^{\mathrm{te}} X t te are sampled under covariate shift with marginal mean μ t e \mu_{\mathrm{te}} μ te . In our baseline benchmark sweeps, we set default sample sizes n t r = n t e = 96 n_{\mathrm{tr}} = n_{\mathrm{te}} = 96 n tr = n te = 96 , shift parameters μ t r = 0.0 \mu_{\mathrm{tr}} = 0.0 μ tr = 0.0 , μ t e = 0.85 \mu_{\mathrm{te}} = 0.85 μ te = 0.85 , scaling factors τ t r = τ t e = 1.0 \tau_{\mathrm{tr}} = \tau_{\mathrm{te}} = 1.0 τ tr = τ te = 1.0 , and default sequence correlation length ℓ x = 3.0 \ell_x = 3.0 ℓ x = 3.0 .
Response Surfaces and Estimands To evaluate the GP-induced smoothness correction, the true response is tested under two distinct structural environments:
Matched GP Realization: The raw response f r a w f_{\mathrm{raw}} f raw is synthesized via Random Fourier Features (using 512 Fourier basis functions) matching a stationary Gaussian Process with length-scale h h h (h = 1.5 h = 1.5 h = 1.5 by default). To enforce realistic bounded support, the function is passed through a non-linear activation:
f 0 ( x ) = 0.5 + 0.4 tanh ( 0.9 x + f r a w ( x ) ) . (55) f_0(x) = 0.5 + 0.4\tanh(0.9x + f_{\mathrm{raw}}(x)). \tag*{(55)} f 0 ( x ) = 0.5 + 0.4 tanh ( 0.9 x + f raw ( x )) . (55)
Observed targets include additive Gaussian noise Y = clip ( f 0 ( X ) + ϵ , 0 , 1 ) Y = \operatorname{clip}(f_0(X) + \epsilon, 0, 1) Y = clip ( f 0 ( X ) + ϵ , 0 , 1 ) with ϵ ∼ N ( 0 , σ ϵ 2 ) \epsilon\sim\mathcal{N}(0,\sigma_\epsilon^2) ϵ ∼ N ( 0 , σ ϵ 2 ) and noise level σ ϵ = 0.04 \sigma_\epsilon= 0.04 σ ϵ = 0.04 .
Deterministic Misspecified Surface: To verify robustness outside GP priors, we also evaluate a fixed deterministic harmonic function f 0 ( x ) = sin ( ω x 1 ) + 0.5 cos ( 2 ω x 2 ) f_0(\mathbf{x}) = \sin(\omega x_1) + 0.5\cos(2\omega x_2) f 0 ( x ) = sin ( ω x 1 ) + 0.5 cos ( 2 ω x 2 ) with spatial frequency ω ∈ [ 0.5 , 3.0 ] \omega\in[0.5, 3.0] ω ∈ [ 0.5 , 3.0 ] .
For target mean estimation, we evaluate the raw response Y Y Y . For target risk estimation, we utilize a fixed, imperfect predictor g ( x ) = 0.65 f 0 ( x ) + 0.15 g(x) = 0.65f_0(x) + 0.15 g ( x ) = 0.65 f 0 ( x ) + 0.15 and evaluate the squared loss ℓ ( g ( x ) , y ) = ( g ( x ) − y ) 2 \ell(g(x),y) = (g(x)-y)^2 ℓ ( g ( x ) , y ) = ( g ( x ) − y ) 2 .
Ground-truth target expectations θ Y = E P t e [ Y ] \theta_Y = \mathbb{E}_{P_{\mathrm{te}}}[Y] θ Y = E P te [ Y ] and θ R i s k = E P t e [ ℓ ( g ( X ) , Y ) ] \theta_{\mathrm{Risk}} = \mathbb{E}_{P_{\mathrm{te}}}[\ell(g(X),Y)] θ Risk = E P te [ ℓ ( g ( X ) , Y )] are computed via high-precision Monte Carlo integration over 150,000 independent target samples drawn from P t e P_{\mathrm{te}} P te .
KMM Optimization and Variogram Calibration Kernel Mean Matching weights w ∈ R n t r \mathbf{w} \in\mathbb{R}^{n_{\mathrm{tr}}} w ∈ R n tr are estimated by solving the quadratic program:
min w 1 2 w T ( K s s + λ I ) w − κ T w s.t. 0 ≤ w i ≤ B , ∑ i = 1 n t r w i = n t r . (56) \min_{\mathbf{w}}\ \frac{1}{2}\mathbf{w}^{\mathsf{T}}(\mathbf{K}_{ss}+\lambda\mathbf{I})\mathbf{w}-\boldsymbol{\kappa}^{\mathsf{T}}\mathbf{w}
\quad\text{s.t.}\quad0\leq w_i\leq B,\qquad\sum_{i=1}^{n_{\mathrm{tr}}}w_i=n_{\mathrm{tr}}. \tag*{(56)} w min 2 1 w T ( K ss + λ I ) w − κ T w s.t. 0 ≤ w i ≤ B , i = 1 ∑ n tr w i = n tr . (56)
where κ i = n t r n t e ∑ j = 1 n t e k ( X i t r , X j t e ) \kappa_i = \frac{n_{\mathrm{tr}}}{n_{\mathrm{te}}}\sum_{j=1}^{n_{\mathrm{te}}} k(X_i^{\mathrm{tr}},X_j^{\mathrm{te}}) κ i = n te n tr ∑ j = 1 n te k ( X i tr , X j te ) . We utilize an RBF kernel k ( x , x ′ ) = exp ( − ( x − x ′ ) 2 / ( 2 σ 2 ) ) k(x,x') = \exp(-(x-x')^2/(2\sigma^2)) k ( x , x ′ ) = exp ( − ( x − x ′ ) 2 / ( 2 σ 2 )) with bandwidth σ = 1.0 \sigma= 1.0 σ = 1.0 , ridge regularization λ = 10 − 4 \lambda= 10^{-4} λ = 1 0 − 4 , and default clipping bound B = 15.0 B = 15.0 B = 15.0 . The optimization problem is solved using the interior-point solver in cvxopt.
To isolate confidence radius calibration from empirical variogram estimation noise during finite sweeps, the functional length-scales h Y h_Y h Y and h ℓ h_\ell h ℓ are pre-calibrated via empirical variogram regression over an independent calibration pool of 2,500 source observations. All Monte Carlo sweeps are conducted over N = 300 N = 300 N = 300 independent trials initialized with random seed 42.
Baseline Formulations and Implementation For robust benchmarking, we compare our proposed GP-calibrated KMM radius against multiple standard estimators:
Unweighted: Direct sample average over source data 1 n t r ∑ i = 1 n t r Y i t r \frac{1}{n_{\mathrm{tr}}}\sum_{i=1}^{n_{\mathrm{tr}}}Y_i^{\mathrm{tr}} n tr 1 ∑ i = 1 n tr Y i tr , which ignores covariate shift.
Nominal n n n : The classical i.i.d. KMM confidence interval, which weights samples via KMM but uses the nominal sample size n t r n_{\mathrm{tr}} n tr in Wald’s variance estimator.
Input n e f f n_{\mathrm{eff}} n eff : A dependence correction that penalizes variance using the raw input autocorrelation r k r_k r k : n e f f ( ℓ x ) = n t r / [ 1 + 2 ∑ k = 1 n t r − 1 ( 1 − k / n t r ) r k ] n_{\mathrm{eff}}(\ell_x)=n_{\mathrm{tr}}/[1+2\sum_{k=1}^{n_{\mathrm{tr}}-1}(1-k/n_{\mathrm{tr}})r_k] n eff ( ℓ x ) = n tr / [ 1 + 2 ∑ k = 1 n tr − 1 ( 1 − k / n tr ) r k ] , ignoring functional smoothness.
Block-Bootstrap: A moving-block bootstrap with block length q = ⌈ n t r 1 / 3 ⌉ q=\lceil n_{\mathrm{tr}}^{1/3}\rceil q = ⌈ n tr 1/3 ⌉ (q = 6 q=6 q = 6 at default n = 96 n=96 n = 96 ) using 200 bootstrap resamples.
Strict Bound (Theorem 1): The non-asymptotic concentration bound evaluating the conservative radius B log ( 6 / α ) / ( 2 n e f f G P ) B\sqrt{\log(6/\alpha)/(2n_{\mathrm{eff}}^{\mathrm{GP}})} B log ( 6/ α ) / ( 2 n eff GP ) .
Oracle IW: Importance weighting using the true analytical density ratio w ∗ ( x ) = p t e ( x ) / p t r ( x ) w^*(x)=p_{\mathrm{te}}(x)/p_{\mathrm{tr}}(x) w ∗ ( x ) = p te ( x ) / p tr ( x ) .
Oracle i.i.d.: Target mean and risk evaluated directly on independent target samples drawn from P t e P_{\mathrm{te}} P te .
Extended Evaluation Metrics and Full Benchmark Results
In § 4 , we focused on Coverage and Radius to evaluate the confidence intervals, as point estimates are identical across all KMM-based variance estimators. Table 6 provides the complete set of evaluation metrics, including Mean Absolute Error (MAE) for point estimation and the Winkler Score (WS) for comprehensive interval evaluation.
The Winkler Score [29 ] is a proper scoring rule for prediction intervals that rewards narrow intervals but heavily penalizes intervals that fail to cover the true value. For a nominal 1 − α 1-\alpha 1 − α confidence interval [ L , U ] [L,U] [ L , U ] (where α = 0.05 \alpha=0.05 α = 0.05 ) and a true target value y y y , it is defined as:
W S = ( U − L ) + 2 α ( L − y ) I ( y < L ) + 2 α ( y − U ) I ( y > U ) . (57) \mathrm{WS}=(U-L)+\frac{2}{\alpha}(L-y)I(y<L)+\frac{2}{\alpha}(y-U)I(y>U). \tag*{(57)} WS = ( U − L ) + α 2 ( L − y ) I ( y < L ) + α 2 ( y − U ) I ( y > U ) . (57)
Lower WS indicates better interval calibration. As shown in Table 6 , while the Strict Bound (Theorem 1) guarantees full coverage, its massive worst-case width results in a severely degraded WS (> 10.0 >10.0 > 10.0 ). Similarly, while Input n e f f n_{\mathrm{eff}} n eff is valid, it produces unnecessarily wide intervals (WS: 0.339 for Y Y Y ; 0.031 for Risk). Our proposed GP n e f f n_{\mathrm{eff}} n eff provides the optimal balance, achieving the lowest WS (0.276 for Y Y Y ; 0.026 for Risk) among valid estimators by analytically incorporating functional decorrelation.
Validation under Deterministic Misspecification
In the main text (Figure 1 ), we demonstrated that our closed-form GP effective sample size formula accurately matches empirical variance when the underlying response surface is drawn from a matched Gaussian Process.
To verify that this theoretical result is robust and not merely an artifact of Gaussian assumptions, Figure 2 presents the validation on a deterministic harmonic surface f 0 ( x ) = sin ( ω x 1 ) + 0.5 cos ( 2 ω x 2 ) f_0(\mathbf{x})=\sin(\omega x_1)+0.5\cos(2\omega x_2) f 0 ( x ) = sin ( ω x 1 ) + 0.5 cos ( 2 ω x 2 ) . Despite the absence of a stochastic GP prior generating the labels, the empirical variance-based n e f f n_{\mathrm{eff}} n eff for both Target Y Y Y and Risk evaluation remains tightly concentrated along the diagonal identity line. This indicates that the GP surrogate can remain informative beyond the matched GP setting, although its accuracy varies with the dependence and functional regimes considered below.
Figure 2. Validation under Deterministic Misspecification. Empirical variance-based n e f f n_{\mathrm{eff}} n eff vs. our predicted n e f f G P n_{\mathrm{eff}}^{\mathrm{GP}} n eff GP for both Target Y Y Y and Risk when evaluated on a deterministic, non-GP harmonic surface. The surrogate formula remains highly predictive.
Effective Sample Size Heatmaps
To ensure that the excellent calibration observed in our scatter plots is not an artifact of a specific, ”lucky” hyperparameter combination, we evaluate the ratio of the empirical effective sample size to our predicted effective sample size: n e f f e m p / n e f f G P ( h ) n_{\mathrm{eff}}^{\mathrm{emp}}/n_{\mathrm{eff}}^{\mathrm{GP}}(h) n eff emp / n eff GP ( h ) . A ratio of exactly 1.0 indicates perfect theoretical calibration.
We compute this ratio across a dense, two-dimensional grid varying both the input dependence ℓ x ∈ [ 0.5 , 4.0 ] \ell_x \in[0.5, 4.0] ℓ x ∈ [ 0.5 , 4.0 ] and the functional complexity parameters (h ∈ [ 0.5 , 4.0 ] h \in[0.5, 4.0] h ∈ [ 0.5 , 4.0 ] for GP realizations, and spatial frequency ω ∈ [ 0.5 , 3.0 ] \omega\in[0.5, 3.0] ω ∈ [ 0.5 , 3.0 ] for deterministic surfaces).
Figure 3 and Figure 4 display these heatmaps across the full parameter grids. The empirical to-predicted ratio is mostly within approximately [ 0.7 , 1.25 ] [0.7, 1.25] [ 0.7 , 1.25 ] , although larger deviations occur in some strong-dependence and smooth-function regimes. Ratios below one indicate that the closed-form approximation overestimates the empirical effective sample size in these settings. Overall, the results show that the GP approximation tracks the empirical effective sample size across a broad range of regimes, while also identifying conditions under which its calibration deteriorates.
Figure 3. GP Realizations (Full Grid). Ratio of the empirical to predicted n e f f n_{\mathrm{eff}} n eff across diverse GP length-scales (h h h ) and input dependencies (ℓ x \ell_x ℓ x ). Ratios near 1.0 indicate close calibration. The approximation tracks the empirical effective sample size across much of the grid, with larger deviations in some strong-dependence and smooth-function regimes.
Figure 4. Deterministic Misspecification (Full Grid). Ratio of the empirical to predicted n e f f n_{\mathrm{eff}} n eff when the true function is a deterministic harmonic surface with varying frequency ω \omega ω . The GP surrogate remains informative beyond the matched stochastic-GP setting, although its calibration varies across dependence and frequency regimes.
Hyperparameters Ablations
To further dissect the behavior of the GP-induced effective sample size, we evaluate the KMM confidence intervals across comprehensive sweeps of sample size (n n n , Table 7 ), input dependence severity (ℓ x \ell_x ℓ x ), functional smoothness (h h h ), and maximum clipping bounds (B B B ). Across all ablations, we report interval coverage, interval radius, and the Winkler Score (WS).
We evaluate interval calibration using the Winkler Score (WS; detailed in Appendix § 13 .§ 2 ), which penalizes intervals that are either overly wide or fail to cover the target.
To evaluate validity, we track empirical coverage over N = 300 N = 300 N = 300 independent Monte Carlo repetitions. For nominal 0.95 intervals, the binomial two-sigma lower bound is approximately 0.95 − 1.96 0.95 × 0.05 / 300 ≈ 0.925 0.95 - 1.96\sqrt{0.95 \times0.05/300} \approx0.925 0.95 − 1.96 0.95 × 0.05/300 ≈ 0.925 . We flag any coverage falling below this threshold with an asterisk (*) as statistically significant undercoverage.
Sample Size on Risk (n n n , Table 7 ): Nominal n n n fails across all evaluated sample sizes (collapsing to 0.647 at n = 32 n = 32 n = 32 and reaching only 0.913* at n = 256 n = 256 n = 256 ), demonstrating that sample size alone cannot cure dependence-induced undercoverage. At n = 32 n = 32 n = 32 , finite-sample estimation violates the moderate-deviation burn-in threshold n / ( log n ) 4 ≥ const n/(\log n)^4 \geq\operatorname{const} n / ( log n ) 4 ≥ const (Theorem 1), exhibiting expected transient undercoverage (0.850). Across all operational regimes (n ≥ 48 n \geq48 n ≥ 48 ), GP n e f f n_{\mathrm{eff}} n eff reliably maintains nominal coverage (≥ 0.943 \geq0.943 ≥ 0.943 , reaching 0.997 at n = 256 n = 256 n = 256 ) while consistently yielding the sharpest valid intervals and superior Winkler Scores (up to 21% narrower radius than Input n e f f n_{\mathrm{eff}} n eff ).
Input Dependence on Risk (ℓ x \ell_x ℓ x , Table 8 ): As correlation length scales from ℓ x = 1.5 \ell_x = 1.5 ℓ x = 1.5 to 6.0, raw covariate autocorrelation intensifies and Nominal n n n fails across all configurations (dropping to 0.767* coverage at ℓ x = 4.0 \ell_x = 4.0 ℓ x = 4.0 and remaining undercovered throughout). In contrast, GP n e f f n_{\mathrm{eff}} n eff dynamically adapts to sequence persistence. Across all moderate-to-strong dependence regimes (ℓ x ≥ 2.0 \ell_x \geq2.0 ℓ x ≥ 2.0 ), GP n e f f n_{\mathrm{eff}} n eff achieves robust valid coverage (≥ 0.947 \geq0.947 ≥ 0.947 ) while consistently yielding approximately 21% narrower intervals and superior Winkler Scores compared to the overly conservative Input n e f f n_{\mathrm{eff}} n eff . At weak dependence (ℓ x = 1.5 \ell_x = 1.5 ℓ x = 1.5 ), where decorrelation is fast and empirical estimation adds relative noise, GP n e f f n_{\mathrm{eff}} n eff exhibits a minor coverage dip (0.923*), making Input n e f f n_{\mathrm{eff}} n eff the preferred valid estimator (0.953), though GP n e f f n_{\mathrm{eff}} n eff still achieves the lowest Winkler Score (0.0159).
Table 8. Hyperparameter Ablation: Input Dependence (ℓ x ∈ [ 1.5 , 6.0 ] \ell_x \in[1.5, 6.0] ℓ x ∈ [ 1.5 , 6.0 ] ) on Target Risk. Asterisks (*) indicate significant empirical undercoverage below the nominal 0.95 level (< 0.925). Bold highlights the best valid practical estimator (tightest radius and lowest Winkler Score among methods maintaining valid coverage). Strict Thm 1 is excluded from best-method highlighting due to worst-case conservatism.
Functional Smoothness on Risk (h h h , Table 9 ): This sweep empirically validates the Smoothness-Dependence Tradeoff (§ 3.3 ). Because naive Input n e f f n_{\mathrm{eff}} n eff accounts for raw coordinate autocorrelation, it produces an entirely static variance correction that ignores response smoothness, yielding overly conservative intervals. Meanwhile, Nominal n n n fails across all bandwidths (consistently under-covering below 0.918*, dropping to 0.827*). In stark contrast, GP n e f f n_{\mathrm{eff}} n eff dynamically adapts to the functional length-scale h h h , identifying that the error surface decorrelates faster than raw inputs. Consequently, GP n e f f n_{\mathrm{eff}} n eff dominates across all evaluated length-scales, maintaining robust coverage (≥ 0.970 \geq0.970 ≥ 0.970 ) while shrinking the confidence radius by 17% to 28% and achieving substantially lower Winkler Scores.
Table 9. Hyperparameter Ablation: Functional Smoothness (h ∈ [ 1.0 , 3.0 ] h \in[1.0, 3.0] h ∈ [ 1.0 , 3.0 ] ) on Target Risk. Asterisks (*) indicate significant empirical undercoverage below the nominal 0.95 level (< 0.925 < 0.925 < 0.925 ). Bold highlights the best valid practical estimator (tightest radius and lowest Winkler Score among methods maintaining valid coverage).
Clipping Bound on Risk (B B B , Table 10 ): The clipping parameter B B B dictates the maximum allowable importance weight in KMM, controlling the bias-variance trade-off under domain overlap. As B B B scales from 5.0 to 30.0, Nominal n n n fails across all thresholds (dropping to 0.780* at B = 5.0 B = 5.0 B = 5.0 and 0.790* at B = 30.0 B = 30.0 B = 30.0 ). In contrast, GP n e f f n_{\mathrm{eff}} n eff demonstrates complete stability across all bounds, preserving a consistent variance penalty regardless of the clipping level. This empirically confirms the theoretical separation of density-ratio overlap (B B B ) from sequence persistence in Theorem 1. Across the entire sweep, GP n e f f n_{\mathrm{eff}} n eff maintains robust valid coverage (≥ 0.947 \geq0.947 ≥ 0.947 , reaching 0.980) while consistently shrinking interval radius by approximately 21% and yielding substantially lower Winkler Scores than Input n e f f n_{\mathrm{eff}} n eff .
Table 10. Hyperparameter Ablation: Clipping Bound (B ∈ [ 5.0 , 30.0 ] B \in[5.0, 30.0] B ∈ [ 5.0 , 30.0 ] ) on Target Risk. Asterisks (*) indicate significant empirical undercoverage below the nominal 0.95 level (< 0.925). Bold highlights the best valid practical estimator (tightest radius and lowest Winkler Score among methods maintaining valid coverage).
Kernel Family and Roughness Ablation (Matérn Processes)
The derivation of our closed-form GP n e f f n_{\mathrm{eff}} n eff formula relies on a Squared-Exponential (RBF) covariance assumption, which models an infinitely differentiable process. A theoretical concern is whether applying this RBF-derived correction yields overly optimistic (under-covered) intervals if the true underlying data-generating process is physically rough or non-differentiable (e.g., admitting a Matérn covariance structure).
To stress-test this, we evaluate KMM over data generated from exact spectral Matérn realizations. The Matérn family is parameterized by a smoothness parameter ν \nu ν . While ν → ∞ \nu\to\infty ν → ∞ recovers the RBF kernel, smaller values (ν = 5 / 2 , 3 / 2 , 1 / 2 \nu= 5/2, 3/2, 1/2 ν = 5/2 , 3/2 , 1/2 ) yield increasingly rough, non-differentiable processes. Matérn-1/2, for example, represents a continuous but nowhere-differentiable path (equivalent to an Exponential covariance). In this experiment, our GP n e f f n_{\mathrm{eff}} n eff estimator continues to assume an RBF geometry, deliberately inducing a smoothness misspecification.
Table 11 demonstrates the robustness of the RBF-derived surrogate evaluated over Target Risk. Across all Matérn kernels, GP n e f f n_{\mathrm{eff}} n eff maintains substantially lower Winkler Scores and tighter intervals than the conservative
Table 11. Kernel Type Ablation (Roughness Stress Test) on Target Risk.
Input n e f f n_{\mathrm{eff}} n eff . For Matérn-5/2, the empirical coverage of our method dips slightly to 0.913. However, the theoretical benchmark Oracle i.i.d. (which evaluates risk on genuinely independent target samples) drops to an identical 0.917. This confirms that this mild degradation reflects the inherent sample complexity of evaluating small samples on this specific manifold, rather than a failure of the effective sample size approximation.
Even on the extremely rough, nowhere-differentiable Matérn-1/2 process, our misspecified RBF formula maintains robust valid coverage (0.993) while shrinking the confidence radius by approximately 27% relative to the raw input correction.
Table 11 : Kernel Type Ablation (Roughness Stress Test) on Target Risk. Asterisks (*) denote significant empirical undercoverage below the nominal 0.95 level (< 0.925). GP n e f f n_{\mathrm{eff}} n eff maintains valid interval coverage even when the true generating process is non-differentiable, consistently outperforming Input n e f f n_{\mathrm{eff}} n eff in Winkler Score (WS). Note that the slight undercoverage on Matérn-5/2 is matched by the Oracle i.i.d. benchmark, indicating inherent finite-sample variance rather than a failure of the GP correction.
Robustness to Non-Stationary Covariates
A core structural assumption in standard mixing theory is the strict stationarity of the covariate sampling process X t X_t X t . In realistic ecological or spatio-temporal monitoring, however, the effective correlation length ℓ x ( t ) \ell_x(t) ℓ x ( t ) frequently fluctuates due to non-uniform sampling velocity, terrain transitions, or seasonal variations.
To stress-test our framework against structural non-stationarity, we evaluate KMM over covariate sequences generated via a non-stationary Gibbs covariance kernel [5 ] . The Gibbs kernel generalizes the stationary RBF covariance by allowing the local correlation length ℓ x ( t ) \ell_x(t) ℓ x ( t ) to vary continuously across sequence indices:
Cov ( X s , X t ) = σ 0 2 2 ℓ x ( s ) ℓ x ( t ) ℓ x ( s ) 2 + ℓ x ( t ) 2 exp ( − ∣ s − t ∣ 2 ℓ x ( s ) 2 + ℓ x ( t ) 2 ) . (58) \operatorname{Cov}(X_s, X_t) = \sigma_0^2 \sqrt{\frac{2\ell_x(s)\ell_x(t)}{\ell_x(s)^2+\ell_x(t)^2}} \exp\left(-\frac{|s-t|^2}{\ell_x(s)^2+\ell_x(t)^2}\right). \tag*{(58)} Cov ( X s , X t ) = σ 0 2 ℓ x ( s ) 2 + ℓ x ( t ) 2 2 ℓ x ( s ) ℓ x ( t ) exp ( − ℓ x ( s ) 2 + ℓ x ( t ) 2 ∣ s − t ∣ 2 ) . (58)
We evaluate three sampling regimes with sample size n t r = 128 n_{\mathrm{tr}} = 128 n tr = 128 :
Stationary Baseline: Fixed persistence length ℓ x ( t ) ≡ 2.5 \ell_x(t) \equiv2.5 ℓ x ( t ) ≡ 2.5 .
Abrupt Switch: A sharp structural regime break where the sequence abruptly shifts from dense oversampling (ℓ x = 0.5 \ell_x = 0.5 ℓ x = 0.5 for t ≤ n t r / 2 t \le n_{\mathrm{tr}}/2 t ≤ n tr /2 ) to long-range persistent dependence (ℓ x = 4.5 \ell_x = 4.5 ℓ x = 4.5 for t > n t r / 2 t > n_{\mathrm{tr}}/2 t > n tr /2 ), with sequence average ℓ ˉ x = 2.5 \bar{\ell}_x = 2.5 ℓ ˉ x = 2.5 .
Smooth Wave: A continuous harmonic oscillation simulating periodic variations in sampling density: ℓ x ( t ) = 2.5 + 2.0 sin ( 2 π t / n t r ) \ell_x(t) = 2.5 + 2.0\sin(2\pi t/n_{\mathrm{tr}}) ℓ x ( t ) = 2.5 + 2.0 sin ( 2 π t / n tr ) , with average ℓ ˉ x = 2.5 \bar{\ell}_x = 2.5 ℓ ˉ x = 2.5 .
Throughout all non-stationary trials, our estimator deliberately remains blind to the time-varying profile ℓ x ( t ) \ell_x(t) ℓ x ( t ) , simply plugging the sequence average ℓ ˉ x = 2.5 \bar{\ell}_x = 2.5 ℓ ˉ x = 2.5 into the stationary GP n e f f n_{\mathrm{eff}} n eff formula.
As reported in Table 12 , because KMM evaluates risk as a trajectory-wide integral, local fluctuations in dependence length are safely bounded by the sequence-averaged length scale. While Nominal n n n systematically under-covers on Target Risk across all configurations (collapsing to 0.880 ∗ 0.880^{*} 0.88 0 ∗ under abrupt switches), our GP n e f f n_{\mathrm{eff}} n eff maintains robust valid coverage (≥ 0.983 \ge0.983 ≥ 0.983 ) across both stationary and non-stationary profiles. Furthermore, GP n e f f n_{\mathrm{eff}} n eff achieves a 17.5% tighter confidence radius and superior Winkler Scores compared to the overly conservative Input n e f f n_{\mathrm{eff}} n eff , confirming that the proposed correction remains safe even when strict stationarity is violated.
Table 12. Robustness to Non-Stationary Covariates on Target Risk. Asterisks (∗ ^{*} ∗ ) indicate significant empirical undercoverage below the nominal 0.95 level (< 0.925 < 0.925 < 0.925 ). Covariates are generated via a non-stationary Gibbs kernel with mean dependence ℓ ˉ x = 2.5 \bar{\ell}_x = 2.5 ℓ ˉ x = 2.5 . Plugging the trajectory-average correlation length into our stationary formula maintains valid coverage (≥ 0.983 \ge0.983 ≥ 0.983 ) and yields the lowest Winkler Score (WS) among valid estimators across all non-stationary regimes.
Real Data Experiments Details
Semi-Synthetic Overlap Stress Test on California Housing
The controlled synthetic experiments isolate dependence and evaluate the dependence-induced effective sample size developed in the main text. We use a separate semi-synthetic experiment to isolate a different component of the problem: deterioration of source–target overlap. Real covariates and geographic coordinates are retained from the California Housing dataset, while outcomes are generated from a known conditional mechanism shared by source and target. This allows overlap to be varied without simultaneously introducing conditional shift.
Let q 0 ( x ) q_0(x) q 0 ( x ) denote the empirical distribution over the California Housing covariates. We define a standardized overlap score:
g ( x ) = std ( 0.75 X M e d I n c + 0.45 X L a t i t u d e + 0.25 X A v e R o o m s ) , g(x) = \operatorname{std}(0.75X_{\mathrm{MedInc}} + 0.45X_{\mathrm{Latitude}} + 0.25X_{\mathrm{AveRooms}}), g ( x ) = std ( 0.75 X MedInc + 0.45 X Latitude + 0.25 X AveRooms ) ,
which is truncated to [ − 3 , 3 ] [-3, 3] [ − 3 , 3 ] . Source and target distributions are constructed by symmetric exponential tilting:
q S ( γ ) ( x ) ∝ q 0 ( x ) exp { − γ g ( x ) / 2 } , q T ( γ ) ( x ) ∝ q 0 ( x ) exp { + γ g ( x ) / 2 } . (59) q_S^{(\gamma)}(x) \propto q_0(x)\exp\{-\gamma g(x)/2\}, \qquad q_T^{(\gamma)}(x) \propto q_0(x)\exp\{+\gamma g(x)/2\}. \tag*{(59)} q S ( γ ) ( x ) ∝ q 0 ( x ) exp { − γ g ( x ) /2 } , q T ( γ ) ( x ) ∝ q 0 ( x ) exp { + γ g ( x ) /2 } . (59)
Consequently,
q T ( γ ) ( x ) q S ( γ ) ( x ) ∝ exp { γ g ( x ) } , (60) \frac{q_{T}^{(\gamma)}(x)}{q_{S}^{(\gamma)}(x)} \propto\exp\{\gamma g(x)\}, \tag*{(60)} q S ( γ ) ( x ) q T ( γ ) ( x ) ∝ exp { γ g ( x )} , (60)
so the population density ratio is analytically known.
We consider shift severities γ ∈ { 0 , 0.5 , 1 , 1.5 , 2 , 3 } \gamma\in\{0, 0.5, 1, 1.5, 2, 3\} γ ∈ { 0 , 0.5 , 1 , 1.5 , 2 , 3 } . At γ = 0 \gamma= 0 γ = 0 , source and target coincide; increasing γ \gamma γ progressively reduces overlap. For each value of γ \gamma γ , we draw n S = n T = 256 n_{S} = n_{T} = 256 n S = n T = 256 observations independently with replacement from the corresponding tilted empirical distributions. Results are averaged over 100 repetitions.
Let the standardized California Housing predictors be denoted by X X X . We construct:
μ ( X ) = 0.2 + 0.6 σ { η ( X ) } , \mu(X) = 0.2 + 0.6\,\sigma\{\eta(X)\}, μ ( X ) = 0.2 + 0.6 σ { η ( X )} ,
where σ \sigma σ is the logistic function and
η ( X ) = 0.75 X M e d I n c + 0.25 sin ( X H o u s e A g e ) + 0.20 tanh ( X A v e R o o m s ) − 0.15 tanh ( X A v e O c c u p ) + 0.20 sin ( X L a t i t u d e ) + 0.20 cos ( X L o n g i t u d e ) + 0.12 X M e d I n c X A v e R o o m s . (61) \begin{aligned}
\eta(X) ={}& 0.75X_{\mathrm{MedInc}} + 0.25\sin(X_{\mathrm{HouseAge}}) + 0.20\tanh(X_{\mathrm{AveRooms}}) \\
&- 0.15\tanh(X_{\mathrm{AveOccup}}) + 0.20\sin(X_{\mathrm{Latitude}}) + 0.20\cos(X_{\mathrm{Longitude}}) \\
&+ 0.12X_{\mathrm{MedInc}}X_{\mathrm{AveRooms}}. \tag*{(61)}
\end{aligned} η ( X ) = 0.75 X MedInc + 0.25 sin ( X HouseAge ) + 0.20 tanh ( X AveRooms ) − 0.15 tanh ( X AveOccup ) + 0.20 sin ( X Latitude ) + 0.20 cos ( X Longitude ) + 0.12 X MedInc X AveRooms . (61)
The observed response is
Y ( s ) = μ ( X ( s ) ) + ε ( s ) , Y(s) = \mu(X(s)) + \varepsilon(s), Y ( s ) = μ ( X ( s )) + ε ( s ) ,
where ε ( s ) \varepsilon(s) ε ( s ) is a bounded spatial random field generated using random Fourier features:
ε ( s ) = 0.12 tanh { Z ( s ) } . \varepsilon(s) = 0.12\tanh\{Z(s)\}. ε ( s ) = 0.12 tanh { Z ( s )} .
The Fourier coefficients are independently sampled from symmetric zero-mean Gaussian distributions in each repetition. Hence the residual process has zero expectation across realizations and is spatially correlated within a realization. Since μ ( X ) ∈ [ 0.2 , 0.8 ] \mu(X) \in[0.2, 0.8] μ ( X ) ∈ [ 0.2 , 0.8 ] and ε ( s ) ∈ [ − 0.12 , 0.12 ] \varepsilon(s) \in[-0.12, 0.12] ε ( s ) ∈ [ − 0.12 , 0.12 ] , the response remains bounded in [ 0.08 , 0.92 ] [0.08, 0.92] [ 0.08 , 0.92 ] by construction. Across the final experiment, the realized response range was [ 0.091 , 0.917 ] [0.091, 0.917] [ 0.091 , 0.917 ] .
The same conditional mechanism is used for source and target for all γ \gamma γ . Thus, the experiment changes covariate overlap while keeping the conditional response mechanism invariant. The target estimand is the population target mean:
μ T ( γ ) = ∑ x q T ( γ ) ( x ) μ ( x ) , (62) \mu_{T}^{(\gamma)} = \sum_x q_{T}^{(\gamma)}(x)\mu(x), \tag*{(62)} μ T ( γ ) = x ∑ q T ( γ ) ( x ) μ ( x ) , (62)
which is known from the semi-synthetic construction.
Estimators and KMM Configuration We compare three estimators: the unweighted source mean, self-normalized oracle importance weighting using the known ratio in Eq. (60) , and KMM using source and unlabeled target covariates. The KMM weights satisfy:
0 ≤ w i ≤ B , ∑ i = 1 n S w i = n S , 0 \le w_i \le B,\qquad\sum_{i=1}^{n_S} w_i = n_S, 0 ≤ w i ≤ B , i = 1 ∑ n S w i = n S ,
with clipping bound B = 10 B = 10 B = 10 . We use an RBF kernel with bandwidth h = 8 h = 8 h = 8 and ridge regularization λ = 10 − 2 \lambda= 10^{-2} λ = 1 0 − 2 .
These KMM hyperparameters were selected in a separate no-shift sanity check at γ = 0 \gamma= 0 γ = 0 , using only covariate balance and weight stability and without using outcomes. We evaluated h ∈ { 1 , 2 , 4 , 8 } h \in\{1, 2, 4, 8\} h ∈ { 1 , 2 , 4 , 8 } and λ ∈ { 10 − 4 , 10 − 3 , 10 − 2 } \lambda\in\{10^{-4}, 10^{-3}, 10^{-2}\} λ ∈ { 1 0 − 4 , 1 0 − 3 , 1 0 − 2 } . The selected configuration gave mean weight ESS 215.9 out of 256, mean maximum weight 3.16, no weights at the upper bound, and reduced empirical M M D 2 \mathrm{MMD}^{2} MMD 2 from 5.81 × 10 − 4 5.81 \times10^{-4} 5.81 × 1 0 − 4 to 2.1 × 10 − 5 2.1 \times10^{-5} 2.1 × 1 0 − 5 in the sanity experiment.
Overlap and Weight Diagnostics We quantify empirical source–target discrepancy using M M D 2 \mathrm{MMD}^{2} MMD 2 and weight concentration using:
E S S w = ( ∑ i w i ) 2 ∑ i w i 2 . (63) \mathrm{ESS}_{w} = \frac{\left(\sum_i w_i\right)^2}{\sum_i w_i^2}. \tag*{(63)} ESS w = ∑ i w i 2 ( ∑ i w i ) 2 . (63)
This quantity is a diagnostic of importance-weight concentration and is distinct from the dependence-induced effective sample size n e f f n_{\mathrm{eff}} n eff central to our theoretical results.
Results and Discussion The construction produces the intended progressive deterioration in overlap (Figure 5 and Table 13 ). Mean empirical MMD2 ^2 2 increases from 0.0007 at γ = 0 \gamma= 0 γ = 0 to 0.1549 at γ = 3 \gamma= 3 γ = 3 , while oracle weight ESS falls from 256 to 9.8. KMM weight ESS similarly decreases from 218.3 to 26.3. Across all replicates, γ \gamma γ is strongly positively associated with MMD2 ^2 2 (Spearman ρ = 0.986 \rho= 0.986 ρ = 0.986 ) and negatively associated with both oracle and KMM weight ESS (ρ = − 0.937 \rho= -0.937 ρ = − 0.937 and − 0.975 -0.975 − 0.975 , respectively).
At γ = 0 \gamma= 0 γ = 0 , all three estimators have essentially identical error: MAE is 0.0380 for the unweighted and oracle estimators and 0.0381 for KMM. This confirms that weighting does not introduce unnecessary distortion when source and target coincide.
As overlap deteriorates, the unweighted estimator rapidly degrades, whereas reweighting substantially reduces target-mean error. At γ = 2 \gamma= 2 γ = 2 , for example, MAE is 0.1634 without weighting, 0.0653 with oracle weighting, and 0.0460 with KMM, yielding an MAE reduction of approximately 72% relative to the unweighted baseline.
The severe-overlap regime illustrates the limitation of interpreting weight ESS as a measure of successful transfer. At γ = 3 \gamma= 3 γ = 3 , the mean maximum oracle weight is 92.8 and oracle weight ESS falls to 9.8. KMM is constrained by B = 10 B = 10 B = 10 and consequently retains a larger ESS of 26.3. Nevertheless, its MAE is 0.1260, compared with 0.1013 for oracle weighting. The larger KMM ESS reflects more stable weight concentration, not better approximation of the target density ratio. Bounding the weights limits variance amplification but can leave residual reweighting bias when adequate overlap would require more extreme weights. Consistent with this pattern, KMM weight ESS is negatively associated with KMM absolute error across replicates (Spearman ρ = − 0.391 \rho= -0.391 ρ = − 0.391 ), but this association does not imply that larger ESS alone guarantees smaller target error.
The Role of Clipping Bound B B B in Theorem 1 The sweep exposes a direct balance–stability trade-off. When γ = 0 \gamma= 0 γ = 0 , B ∗ = 1 B^{*} = 1 B ∗ = 1 and increasing the admissible weight bound has essentially no effect. At γ = 1 \gamma= 1 γ = 1 , the empirical results similarly stabilize once B B B approaches B ∗ ≈ 19.85 B^{*} \approx19.85 B ∗ ≈ 19.85 .
Under stronger overlap loss, however, the required population ratio becomes much larger than the weight bounds considered. At γ = 2 \gamma= 2 γ = 2 , increasing B B B from 5 to 20 reduces postweighting M M D 2 \mathrm{MMD}^{2} MMD 2 from 0.0162 to 0.0047 and reduces bias magnitude from 0.0611 to 0.0013. This improvement in balance is accompanied by a decrease in weight ESS from 52.1 to 15.1. Increasing B B B further provides little additional RMSE improvement, illustrating the finite-sample bias–variance trade-off induced by the weight constraint (Figure 6 ).
The same phenomenon is more pronounced at γ = 3 \gamma= 3 γ = 3 , where B ∗ = 4739.9 B^{*} = 4739.9 B ∗ = 4739.9 and even B = 100 B = 100 B = 100 represents only approximately 2.1% of the population ratio bound. Increasing B B B from 5 to 100 reduces post-weighting M M D 2 \mathrm{MMD}^{2} MMD 2 from 0.0768 to 0.0288 and bias magnitude from 0.1533 to 0.0465, while weight ESS falls from 51.8 to 4.0. Thus, a larger weight ESS does not by itself indicate successful target correction: restrictive bounds can retain a comparatively large ESS precisely because they prevent the weights required to remove source–target imbalance.
These results clarify that the bounded-density-ratio assumption in Theorem 1 is substantive rather than merely technical. When B < B ∗ ( γ ) B < B^{*}(\gamma) B < B ∗ ( γ ) , the admissible KMM weights cannot represent the population density ratio, leaving residual RKHS imbalance. Relaxing the bound reduces this imbalance and its associated bias, but simultaneously increases weight concentration and sampling variability.
Three-Domain Real-Data Benchmark: Point Estimation
In § 4.6 , our primary focus is on confidence interval calibration under data dependence. For completeness, Table 14 reports point estimation metrics across the three real-data monitoring domains: NOAA weather stations, PM2.5 _{2.5} 2.5 monitoring stations, and EPA ozone monitoring stations.
We compare the unweighted source mean, logistic importance weighting (Log-IW), and KMM for two distinct estimands:
Target Response Mean: μ T = E T [ Y ] \mu_{T} = \mathbb{E}_{T}[Y] μ T = E T [ Y ] .
Prediction Squared-Error Risk: R T ( f ) = E T [ ( Y − f ( X ) ) 2 ] R_{T}(f) = \mathbb{E}_{T}[(Y - f(X))^{2}] R T ( f ) = E T [( Y − f ( X ) ) 2 ] for the frozen random-forest predictor f f f .
Datasets and response scaling. All responses are clipped and normalized to [ 0 , 1 ] [0,1] [ 0 , 1 ] ; consequently, the reported errors are in normalized units, not physical units. NOAA uses daily station observations from 2025, with response Y = clip ( ( T M A X + 30 ) / 80 , 0 , 1 ) Y = \operatorname{clip}((\mathrm{TMAX}+30)/80,0,1) Y = clip (( TMAX + 30 ) /80 , 0 , 1 ) , where TMAX is measured in degrees Celsius. Predictors are minimum temperature, precipitation, and sine/cosine encodings of day of year. The Beijing PM2.5 _{2.5} 2.5 dataset uses Y = clip ( P M 2.5 / 500 , 0 , 1 ) Y = \operatorname{clip}(\mathrm{PM}_{2.5}/500,0,1) Y = clip ( PM 2.5 /500 , 0 , 1 ) , with concentration measured in μ g / m 3 \mu\mathrm{g}/\mathrm{m}^{3} μ g / m 3 . Predictors are temperature, pressure, dew point, rainfall, wind speed, SO2 _{2} 2 , NO2 _{2} 2 , CO, O3 _{3} 3 , and sine/cosine encodings of day of year. EPA Ozone uses 2022 daily measurements of parameter 44201: the daily maximum eight-hour ozone concentration, normalized as Y = clip ( O 3 / 0.2 , 0 , 1 ) Y = \operatorname{clip}(O_3/0.2, 0, 1) Y = clip ( O 3 /0.2 , 0 , 1 ) , with ozone in ppm. Temperature and wind measurements are joined by monitoring-site identifier and calendar date; predictors are temperature, wind speed, and sine/cosine encodings of day of year.
Predictor and weighting methods. The random forest is trained separately from the evaluation tasks and frozen thereafter. It uses 100 trees, a minimum leaf size of 10, all predictors as candidate features, and random seed 20261005. Missing predictor values are handled by median imputation in the prediction pipeline, and predictions are clipped to [ 0 , 1 ] [0, 1] [ 0 , 1 ] . KMM uses an RBF kernel with a pooled source–target, covariate-only standardization and median-distance bandwidth. Weights satisfy 0 ≤ w i ≤ 10 0 \le w_i \le10 0 ≤ w i ≤ 10 and ∑ i w i = n \sum_i w_i = n ∑ i w i = n . Logistic importance weighting estimates density ratios by classifying source versus target covariates; ratios are upper-capped at 10 and self-normalized for point estimation. Target outcomes are not used to train the predictor or fit the importance weights.
Point-estimation versus confidence interval tasks. The point-estimation results in Table 14 utilize a fundamentally different task construction compared to the rolling-window interval evaluation detailed later. Specifically, point estimation is computed over full-series or full-quarter transfers: 141 NOAA transfer tasks, 48 PM2.5 _{2.5} 2.5 station–quarter tasks, and 50 EPA Ozone full-series transfer tasks. For PM2.5 _{2.5} 2.5 , the predictor is trained on 2013–2014 data, with source observations drawn from 2015 and target observations from the corresponding quarters of 2016. In contrast, the confidence interval evaluation (described in Appendix § 14 .§ 3 ) relies on a strict rolling-window protocol over 250 independent trials of fixed length n n n . Therefore, the point-estimation errors reported here reflect the overall performance on broad transfer tasks and do not directly correspond to the specific 250 finite-sample segments utilized in the interval calibration experiments.
Evaluation reference. Population target means and risks are unknown. For evaluation, they are replaced by the empirical response mean and empirical squared-error risk on the held-out target sample. MAE is the unweighted average of task-level absolute estimation errors. Target outcomes are accessed only for final scoring. Tasks can share stations and evaluation periods, so task counts do not represent independent Monte Carlo repetitions.
Discussion of Point Estimation Results. As shown in Table 14 , KMM achieves the lowest target-mean MAE across all three domains, reducing the unweighted error from 0.0503 to 0.0379 for NOAA, from 0.0208 to 0.0155 for PM2.5 _{2.5} 2.5 , and from 0.0290 to 0.0239 for EPA Ozone. However, the pattern differs for prediction risk: Logistic-IW achieves the lowest risk MAE across all three domains, while KMM does not consistently outperform the unweighted baseline. These results highlight that achieving improved covariate balance does not guarantee uniform improvements in point estimation across all observational transfer tasks.
Three-Domain Real-Data Benchmark: Confidence Interval Protocol
The interval calibration experiment addresses a distinct question: how accounting for dependent data generation alters interval coverage and width around a fixed KMM estimate. GP-based intervals improve empirical coverage relative to nominal intervals, although coverage remains below the nominal 95% level for NOAA and EPA Ozone. We therefore interpret these results as a real-data stress test of the dependence correction rather than as verification of the theorem’s assumptions or finite-sample coverage guarantees.
Rolling-Window Evaluation Protocol. For the confidence interval calibration experiment in § 4.6 , we adopted a rigorous Monte Carlo rolling-window protocol to ensure statistically robust coverage estimates. For NOAA and EPA Ozone, the data is partitioned into disjoint sets of predictor-training stations, source stations, and held-out target stations (fixed using data-split seed 20261005).
Over 250 independent Monte Carlo repetitions (initialized with random seed 42), the evaluation procedure randomly selects a source station and extracts a contiguous time-series window of specific size n n n . The unlabelled target sample is constructed by uniformly sampling up to 1000 observations from the respective target station pool. The KMM weights are optimized on this pair, and the empirical autocorrelations r k r_k r k alongside the functional length-scale h h h are estimated directly from the source window. All confidence intervals are completely fixed before the target outcomes are revealed for final scoring. These are conditional plug-in intervals that treat fitted weights as fixed; they do not separately propagate weight estimation variance or sampling variability in the finite-target reference.
Real-Data Hyperparameter Selection and Configurations. Because the target mean response Y Y Y and the target loss surface L L L exhibit different functional smoothness profiles, their optimal balance-variance trade-offs occur at different KMM clipping bounds B B B . To rigorously benchmark the estimators and report the tightest valid intervals, we evaluated a comprehensive grid over the source sample size n ∈ { 96 , 128 , 192 , 256 } n \in\{96, 128, 192, 256\} n ∈ { 96 , 128 , 192 , 256 } and clipping bound B ∈ { 10.0 , 15.0 , 20.0 } B \in\{10.0, 15.0, 20.0\} B ∈ { 10.0 , 15.0 , 20.0 } .
The representative configurations reported in the main text (Table 4 ) were selected to maximize valid coverage while minimizing the Winkler Score. Given the presence of unobserved confounders and structural non-stationarity in real-world geospatial data, we relaxed the strict validity threshold slightly to 0.920. The optimal configurations are as follows:
PM2.5 _{2.5} 2.5 : Target Mean was evaluated at n = 128 n = 128 n = 128 , B = 20.0 B = 20.0 B = 20.0 ; Target Risk at n = 128 n = 128 n = 128 , B = 15.0 B = 15.0 B = 15.0 .
EPA Ozone: Target Mean was evaluated at n = 256 n = 256 n = 256 , B = 15.0 B = 15.0 B = 15.0 ; Target Risk at n = 256 n = 256 n = 256 , B = 20.0 B = 20.0 B = 20.0 .
NOAA: Both estimands required the maximum sample capacity due to extreme spatial shift, evaluated at n = 256 n = 256 n = 256 , B = 20.0 B = 20.0 B = 20.0 .