Manuscript Offprint
arXiv:2610.13625Kernel-based External Validity of Experimental Studies
Abstract
The external validity of a study is the extent to which its findings generalize to unseen experimental conditions, such as datasets. We formalize the results of a study together with its research question, and define external validity as the probability that two independent and same-sized replications of the study produce results whose maximum mean discrepancy (MMD) is below a given tolerance. This approach, centered on the choice of a space of results and of an appropriate reproducing kernel for the MMD, is flexible enough to be deployed on multiple different types of results and research questions. Additionally, we establish an asymptotic power-law relation between the size of a study and the quantiles of the MMD, which we use to estimate the desired size of an externally valid study from a small-scale preliminary study. We deploy our framework to rankings with ties and discuss kernels suited to different research questions. Experiments on existing case studies and on a simulated newly designed study illustrate the applicability of the framework. We release our code as part of the genexpy Python module.
1 INTRODUCTION
Assessing the quality of an experimental study is a multi-faceted problem and depends on many independent aspects. Among these, its scope should be properly defined (Boulesteix et al., 2015; Bouthillier et al., 2021), its documentation should allow for independent reproducibility studies (Baker, 2016; Peng, 2011; Raff, 2021, 2023), its results should be sensibly analyzed to assess their significance (Benavoli et al., 2017; Corani et al., 2017; Demšar, 2006) and should be valid for a population extending beyond the original sample (Liao et al., 2021). External validity, which is sometimes referred to as reproducibility, replicability, or generalizability, is this last component.
Gerhard Neumann
Karlsruhe Institute of Technology
A study is deemed externally valid if repeating it under comparable experimental conditions, and in the absence of systematic changes to its design, yields similar results (National Academies of Sciences, Engineering, and Medicine, 2019; Findley et al., 2021; Pineau et al., 2021). External validity is assessed through the sign- and effect-generalization of a treatment on a numeric response in causal inference (Campbell, 1957; Egami and Hartman, 2023), psychology (Open Science Collaboration, 2015; Klein et al., 2018; Patil et al., 2016; Verhagen and Wagenmakers, 2014), economics (Camerer et al., 2016), the social sciences (Delios et al., 2022; Camerer et al., 2018), medicine (DerSimonian and Laird, 1986), human-AI interaction (Vaccaro et al., 2024), and chain-of-thought reasoning (Sprague et al., 2025). Generalizability theory (Cronbach et al., 1963; Brennan, 1992) quantifies the contribution of covariates to the variance of a numeric response.
It is well documented that significant findings often fail to hold beyond the study that produced them. In machine learning (ML) specifically, the results of experimental studies are well known to vary substantially with design choices (Boulesteix et al., 2017; Gundersen et al., 2022; Van Mechelen et al., 2023; Lu et al., 2023; Qin et al., 2023; McElfresh et al., 2022; Wainberg et al., 2016), be it an insufficient number of datasets (Dehghani et al., 2021; Alvarez et al., 2022; Boulesteix et al., 2015) or differences in hyperparameter tuning (Bouthillier et al., 2021), initialization seed (Gundersen et al., 2023), hardware (Zhuang et al., 2022), minor perturbations in the data (Alzahrani et al., 2024), or the inclusion of additional competitors (Zhang and Hardt, 2024). We refer to Liao et al. (2021) for a broader discussion. This motivates the search for alternative methods to assess the external validity of findings that are not restricted to numeric responses and apply to other types of data, such as rankings.
A natural tool for this purpose is the maximum mean discrepancy (MMD), which compares distributions by mapping them into an appropriate repro-ducing kernel Hilbert space (RKHS). Successful applications include testing (Gretton et al., 2012; Fernandez and Gretton, 2019; Liu et al., 2020; Wynne and Duncan, 2022; Chevyrev and Oberhauser, 2022; Schrab et al., 2023; Zhou et al., 2025b; Chatalic et al., 2026), generative modeling (Dziugaite et al., 2015; Li et al., 2015b; Sutherland et al., 2017; Li et al., 2017; Zhou et al., 2025a), quantization (Arbel et al., 2019; Gladin et al., 2024; Belhadji et al., 2026), subspace selection (Cribeiro-Ramallo et al., 2025), robust regression (Alquier and Gerber, 2024), learning world models (Balestriero and LeCun, 2025; Zimmermann et al., 2025), model selection (Brück et al., 2025), and online change detection (Li et al., 2015a, 2019; Kalinke et al., 2025; Kalinke and Gavioli-Akilagun, 2025). At the core of the MMD's flexibility are reproducing kernels, which have been defined on a variety of domains, including strings and graphs (Borgwardt et al., 2006; O'Bray et al., 2022), Riemannian manifolds (Cheng and Xie, 2024), Hilbert spaces (Wynne and Duncan, 2022), time series and stochastic processes (Chwialkowski et al., 2014; Laumann et al., 2021; Chevyrev and Oberhauser, 2022), persistence diagrams (Kwitt et al., 2015), and (partial) rankings (Mania et al., 2018; Lomeli et al., 2019). Rankings are particularly prominent in the analysis of experimental results, especially in non-parametric tests and procedures (Demšar, 2006; Benavoli et al., 2017). This work aims at applying the MMD to the issue of lack of external validity.
Our core contribution is a novel take on the problem of assessing the external validity of an experimental study. To this end, we propose a kernel-based framework for the formalization and analysis of experimental results, with only mild structural assumptions, and translate an existing natural-language definition of external validity into our statistic, which we call kernel external validity (KEV). We investigate the properties of our statistic and discuss how to set its parameters (the kernel k and a numeric threshold ) in an interpretable and informed way. We discuss how the KEV can help assess the appropriate size of an experimental study, and apply it to a simulated study to show how it can be useful in practice. We show applications of the KEV to rankings and two case studies. Finally, we release our code as part of the genexpy Python module, which contains routines to handle rankings, implementations of kernels for rankings, and the MMD.
Outline Section 2 introduces our notation, formalizes experimental studies, and recalls the MMD. Section 3 discusses our KEV statistic and how to choose its parameters. Section 4 contains our experiments and case studies. Section 5 details limitations.
2.1 Notation
Our notation is as follows.
General We denote with N the set of positive integers and with the real interval . We denote with the set . For sets , indicates their disjoint union. For a matrix , let be its transpose. Given a set , , and , is their concatenation. Given sets and , is the set of functions . For a function , is equivalent to for all . A ranking (with ties) of alternatives is a total and transitive binary endorelation on . For , is the rank of in . The set of rankings of alternatives is denoted with .
Topology and Probability Let be a separable metrizable topological space. We write for the set of probability measures on , understood w.r.t. the measurable space , where denotes the Borel -algebra induced by . For , the Dirac measure is written as , that is, if and otherwise (). We use and interchangeably, depending on the number of random variables; for instance, we write and . For measurable, ; if there is no ambiguity, we shorten it to . We indicate with the cumulative distribution function (cdf) of a real-valued random variable . For and , we denote with ; moreover, we define the function . Given a measurable function , the pushforward measure of by is , for .
(Reproducing Kernel) Hilbert Spaces Let be a measurable kernel with separable RKHS . In other words, is a space of functions for which has the reproducing property: , . The canonical feature map associated to is, for , . The mean embedding of a distribution relative to is , provided that ; the latter is guaranteed if , in which case is called bounded. A kernel has constant diagonal if and is normalized if .
https://github.com/DrCohomology/genexpy.

Figure 1: Example 1 as an experimental study. We are interested in the external validity of the results P for a fixed configuration m = 1.
2.2 Experimental Studies
An (experimental) study is a collection of experiments evaluating the same alternatives (such as the LLMs in Example 1) under different experimental conditions. We assume a factorial design, i.e., that every experiment is uniquely identified by an experimental condition and that the levels of the random factors can be chosen independently.
Mathematical Formalization For a countable set of indices , a factor is and is the set of levels that factor can take. For any , we endow with a topology , the Borel -algebra , and a probability measure . We define the probability space of experimental conditions as , with the product -algebra and probability . We partition the factors into fixed and random ones: the generalization claim concerns different levels of the random factors. Formally, letting and be the sets of fixed and random factors respectively, we have and . We define a configuration as . The (experimental) result is a random variable , whose distribution we indicate with .
The following remark elaborates on some considerations of practical interest.
Remark 1.
(a) Running experiments means sampling an experimental condition from and then computing its result .
(b) For an experimenter, choosing appropriate -s is part of the experimental setup, as certain levels might be more likely to occur. If is finite or a bounded real interval and if no prior knowledge is available, can be taken to be a uniform distribution. If is unbounded, the experimenter might want to restrict it to a bounded set; the claim of generalization concerns this bounded set.
(c) Throughout this work, we evaluate the external validity of a study for a fixed configuration and randomly sampled levels of the random factors.
(d) Appendix A gives a finer-grained classification of factors following Montgomery (2017, Chapter 1).
Example 1. (The “checkmate-in-one” task, Fig. 1) We compare three large language models (LLMs), the alternatives, on the “checkmate-in-one” task (Srivastava et al., 2023), where an LLM succeeds if it outputs the unique checkmating move from a position of pieces on a chessboard. The factors involved are the number of shots m (fixed factor) and the pieces’ initial position p (random factor), which is sampled uniformly at random from a finite pool. The research question is the following: “Is LLM consistently ranked the same under different positions?” The results are rankings, , where an LLM achieves rank 1 if it successfully solves the problem and 2 otherwise.
2.3 Maximum Mean Discrepancy
For a bounded and measurable kernel , for , we define . Given two random samples and , the MMD between their respective empirical distributions takes the form
which is the same form as the V-statistic estimator for . We will leverage this structural equivalence in the proof of Theorem D.3.
We define the function as the composition
Under Assumption 2 (i) and (ii), is a real-valued random variable.
3 KERNEL EXTERNAL VALIDITY
In this section, we detail how to translate a standard definition of external validity into a kernelized mathematical framework and analyze its properties. We begin by listing our assumptions.
Assumption 2. (i) is a separable metrizable topological space. (ii) is a bounded and continuous kernel. (iii) The experiments follow a factorial design; is Polish, and the levels of the random factors are sampled independently of the observed results, as described in Section 2.2. (iv) We compare finitely many alternatives under countably many experimental factors. (v) Every alternative is evaluated under every experimental condition.
Remark 3.
(a) (i) and (ii) allow the definition of the MMD and make measurable.
(b) (ii) implies that is separable.
(c) (iii) and (iv) allow i.i.d. samples from P and P as well as the incremental sampling of Algorithm 1.
(d) (v) simplifies the analysis.
After discussing our initial assumptions, we are ready to introduce our KEV statistic. Recall that a study is externally valid if repeating it under comparable experimental conditions yields similar results (National Academies of Sciences, Engineering, and Medicine, 2019; Pineau et al., 2021). Our statistic translates this definition into a kernel framework: comparable experimental conditions are independent draws of the levels of the random factors, and similar results are results whose MMD is at most .
Definition 4 (KEV statistic). Under Assumption 2, with as in (2), and for , the KEV of a study with results is
(3)
We say that a study with results P is - (externally) valid if .
As discussed in Remark 1 (c), we are usually interested in the external validity of a study for a fixed configuration.
We remark that the KEV is not pointwise monotonic in n due to steps in the cdf of the MMD for discrete spaces, a problem especially noticeable when n is small. However, the KEV is monotonic in the sense described by the following lemma, proved in Appendix D.2.
Lemma 5 (Monotonicity of the KEV). Under Assumption 2, we have
In practice and in Section 4, we impute the missing evaluations.
We now proceed to discuss the parameters of Definition 4, starting with the kernel k.
Kernels Formalize Research Questions The external validity of a study ultimately depends on its research question, that is, what features of the results are relevant. Recalling Example 1, two research questions might be “Is consistently in the same position of the ranking?” and “Are the best alternatives consistently the same ones?”, which consider as the only relevant features the rank of and the top tier, respectively. Kernels offer a clean formalization of this concept: the feature map keeps only the relevant features, as shown in the following example.
Example 2. Assume such that . For any , . Hence, for any , we have and thus . In particular, this holds for in (3): for any choice of and .
Remark 6. We do not require kernels to be characteristic; indeed, controlling what features are discarded by the kernel is a core component of our framework.
The next section introduces kernels for rankings and their research questions.
3.1 Kernels for Rankings
The Borda kernel is suitable for research questions of the form “Is alternative consistently ranked the same?”. For and ,
where is the Borda count (Borda, 1781).
The Jaccard kernel is suitable for research questions of the form “Are the top-t alternatives consistently the same ones?”. We use the Jaccard similarity , which is known to be a kernel; see e.g. Bouchard et al. (2013). For a tier ,
where (for ) is the set of alternatives with rank at most .
Finally, the Mallows kernel is suitable for research questions of the form “Are the alternatives ranked consistently?” We adapt the existing kernel for untied and partial rankings (Jiao and Vert, 2015; Mania et al., 2018; Mallows, 1957; Lomeli et al., 2019) to rankings with ties. For ,
Table 1: Interpretable form (Assumption 7) of the kernels used in this work.
| Kernel | ||
|---|---|---|
| Borda | ||
| Jaccard | ||
| Mallows | ||
| RBF |
where is the number of discordant pairs and with .
The following assumption is central to the derivations in the rest of this section.
Assumption 7 (Interpretability). factorizes as , where is a normalized dissimilarity and is a monotonically decreasing convex function with .
Remark 8. The kernels of Section 3.1 satisfy Assumption 7 for every value of their parameters, and so does the RBF kernel on (Appendix B.2), with and as in Table 1.
For a desired maximum expected dissimilarity , we can define to obtain an upper bound on the expected MMD, as stated in the following lemma, proved in Appendix D.3.
Lemma 9 (Choice of ). Under Assumption 7, let and . Then, for any ,
We next detail how the KEV helps assess the appropriate size of a study.
3.2 On the Size of a Valid Study
Lemma 5 suggests that the KEV is overall increasing in the sample size . Thus, we define the minimum number of samples for a study to be -valid as
Under Assumption 7, the KEV is lower-bounded by a function that is monotonically increasing in all of , , and the -expectation of , as detailed in the following lemma; its proof is in Appendix D.4.
Lemma 10 (Lower bound). For any kernel in the form of Assumption 7, and ,
A dissimilarity is a function that is symmetric and such that ; it is normalized if it takes values in .
Algorithm 1 Incremental execution of a study
Require: kernel , validity level , dissimilarity , increment
1: ; ; ;
2: while do
3:
4:
5:
6: end while
7: return
where .
As a consequence,
and any study with results is -valid for every at least the right-hand side of (6).
Bound (6) is rather loose: for a tighter estimate of that is viable in practice, we derive the following approximate power law between and the quantiles of , which we prove in Appendix D.5.
Theorem 11 (Power Law). Let be a bounded and non-constant kernel, , and . Then, there exists such that
Remark 12. Given a kernel satisfying the assumptions of Theorem 11 and desired and , we can fit as in (7) and estimate . If instead , we have that for any and , and we set .
To discuss practical applications of Theorem 11 and Remark 12, we first provide the following consistency result for the plug-in bootstrap estimator of the KEV, proved in Appendix D.6.
Lemma 13 (Bootstrap Consistency). Let and be its empirical distribution. Define , where independently.
Then, for and for , and converge in distribution to the same random variable.
With this result, we are ready to propose incorporating the estimate of provided by Theorem 11 into the execution of an experimental study, as described in Algorithm 1. Note that stopping at the first step where may end the study prematurely if

Figure 2: Actual vs. desired validity.
underestimates . A possible mitigation, which we do not consider in this work, would be to add a safety margin and to stop only when .
Finally, Appendix C.1 compares four resampling schemes, including the bootstrap covered by Lemma 13 and a permutation scheme which mimics actual replications, as it never repeats an experimental condition; Appendix C.2 compares incremental and fresh sampling of y in Algorithm 1.
4 EXPERIMENTS
This section first compares the bootstrap and permutation approaches to resampling. Then, we show how to analyze experimental studies for their external validity, treating every configuration as independent. Finally, we show a practical application of Algorithm 1 to a simulated experimental study.
In our experiments, we set for , for , and for , so that for these three kernels; for , for which we set , we have .
For both case studies, we use the bootstrap estimator.
Runtime The main bottleneck of the estimation is bootstrapping the distribution of . Our implementation has complexity , where is the number of unique results obtained and is the number of resamples. On a consumer laptop, the total runtime was 7 minutes in the encoders case study (Section 4.2), averaging about 2.2 seconds per configuration-kernel pair. The runtime is comparable for the LLM case study of Section 4.3.
4.1 Resampling Methods
We first investigate the permutation and bootstrap approaches to estimate the minimum number of experiments needed to achieve

Figure 3: Necessary size to achieve -validity. (Left) ; (Right) . Variability across configuration.
valid results for the Mallows kernel as in (4). In particular, we compare the desired validity, 0.95, with the actual validity at the estimated , : the ideal approach is cautiously pessimistic and shows a slightly positive difference between the two. We use a sample of size from , and perform both a bootstrap and a permutation approach to (1) get the distribution of for ; (2) get their quantiles ; (3) fit according to Theorem 11; (4) define ; (5) compute and compare it with . Fig. 2 shows that both methods yield an actual validity within 0.1 of already for , and within 0.05 for : reasonable estimates of can thus be obtained even from small preliminary studies. Appendix C contains additional details.
4.2 Case Study: Encoders
We now assess the external validity of Matteucci et al. (2023), an experimental study evaluating encoders for categorical data. The study evaluates 32 encoders on binary classification datasets using as proxy the performance of a model trained on the encoded data. We consider as fixed factors model, tuning, and metric; as random factor dataset. We are interested in assessing the external validity when datasets are sampled at random from the pool of datasets considered in the original study, with the other factors fixed.
We include in the analysis only the experimental conditions in which of the encoders were run and, among those, the encoders that were run on of the remaining conditions. This leaves us with
The uniform distribution over rankings of 8 alternatives; , cf. https://oeis.org/A000670.
For 48 configurations, 4 kernels, for every , and for 200 resamples.
Experimental results released with the original study; MIT license; accessed on the 5th of October 2026.
Remaining missing evaluations are imputed with the worst rank.

Figure 4: KEV for varying -s and n-s. The shaded regions correspond to all configurations.
32/32 alternatives, 1872/2036 conditions, and 48 configurations. We consider the following research questions (kernels): “Does one-hot ( ) rank consistently?” ( ); “Are the best encoders consistently the same ones?” ( ); “Are the encoders ranked consistently?” ( ); “Are the raw performances of the encoders consistent?” ( ). To show how the framework behaves on numerical data, we include the radial basis function (RBF) kernel; further details are in Appendix B.2.
Fig. 3 shows that the number of experiments needed to achieve -validity is increasing with and decreasing with . Fig. 4 shows that the validity depends on the kernel chosen and increases with both sample size and ; recall that a greater corresponds to a looser condition on what results we consider similar, cf. Lemma 9. The two figures agree: taking, for instance, , Fig. 3 shows that the median configuration achieves -validity, and Fig. 4 shows that the results are indeed valid for any .
4.3 Case Study: LLMs
We now turn to the other case study, Srivastava et al. (2023), a collaborative benchmark of Large Language Models (LLMs). The study evaluates 55 LLMs on a suite of tasks, each with its subtasks and a recommended evaluation metric. We take task and num_shots as fixed factors, and subtask as a random factor. We are therefore interested in assessing the ex-

Figure 5: Necessary size to achieve -validity. (Left) ; (Right) . Variability across configuration.

Figure 6: KEV for varying -s and n-s. The shaded regions correspond to all configurations.
ternal validity when subtasks are sampled at random from the pool of those considered in the original study, with the other factors fixed.
We apply the same filtering as in Section 4.2, which leaves 45/55 alternatives and 2269/5448 conditions across 24 configurations.
We consider the following research questions (kernels): “Does GPT-3 ( ) rank consistently?” ( ); “Are the best LLMs consistently the same ones?” ( ); “Are the LLMs ranked consistently?” ( ); “Are the raw performances of the LLMs consistent?” ( ).
Fig. 5 shows that the size needed to achieve -validity is increasing with and decreasing with . Fig. 6 illustrates how the KEV depends on the kernel chosen and increases with both sample size and ; recall that a greater corresponds to a looser condition on what results we consider similar,
Experimental results released with the original study; MIT license; accessed on the 5th of October 2026; Apache 2.0 license.

Figure 7: Proposed execution of an experimental study. (Top) The KEV is estimated from N preliminary experiments, for . (Bottom) A power law relation is fitted between n and the 0.95-quantile of ; is the prediction at ( ).
cf. Lemma 9. Compared to the case study of Section 4.2, there are more pathological examples where the KEV is close to 1 for any n. This can arise when most LLMs fail most subtasks of a task: their rankings are then tied, and coincide regardless of the subtask.
4.4 Proposed Execution of a Study
In this section, we simulate running studies following Algorithm 1 to determine a reasonable number of experiments yielding -valid results, see (5). We apply it to the fixed configuration (model, tuning, metric) = (DTC, no, F1) from Matteucci et al. (2023), the Mallows kernel (4), , and (cf. Lemma 9), and we run experiments in increments of , as depicted in Fig. 7.
From experiments, we estimate the KEV and, from it, the -quantiles of for (top row); we then fit the power law of Theorem 11 and compute as in Remark 12 (bottom row). If , we sample more datasets, run the corresponding experiments, and repeat the analysis (left to right). Algorithm 1 stops at , where , and the estimates obtained from more experiments are stable: . The prediction agrees with the KEV estimated from all available results, which include the preliminary ones:
5 LIMITATIONS
Our framework requires a factorial design in which the levels of the random factors can be sampled independently; as a consequence, we do not cover, for instance, active experimental designs. Our estimates concern the pool of experimental conditions considered in a study, that is, ; extending them to unseen conditions, such as new datasets, requires the pool to be representative of the population of interest. Moreover, we impute missing evaluations with the worst rank, whose effect on the KEV we do not quantify, and we validate the estimation of on a single synthetic distribution. Finally, in our implementation, we did not consider more efficient computational methods for estimating the distribution of the MMD, such Nyström approaches (Chatalic et al., 2026).
AI USE STATEMENT
In this work, we used generative AI tools for mathematical proofs and method implementation. We have not used generative AI tools for synthetic-data generation, theoretical or conceptual development, hypotheses, research methodology, experiments, or interpretation of results. Translation, dataset cleaning or reformatting, and qualitative analysis are not applicable to this work. Additionally, we used generative AI tools
The results are precomputed and sampled in batches.
for literature discovery, coding, and drafting text. We have reviewed all AI-assisted work. The authors read and verified the validity of the literature found. LLM-assisted proofs were checked line by line by the first author. LLM-produced code was thoroughly checked and tested and mainly concerns optimizations of pre-existing code. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
References
Alquier, P. and Gerber, M. (2024). Universal robust regression via maximum mean discrepancy. Biometrika, 111(1):71–92.
Alvarez, M., Verdier, J.-C., Nkashama, D. K., Frappier, M., Tardif, P.-M., and Kabanza, F. (2022). A revealing large-scale evaluation of unsupervised anomaly detection algorithms. Technical Report 2204.09825, arXiv. https://arxiv.org/abs/2204.09825.
Alzahrani, N., Alyahya, H., Alnumay, Y., AlRashed, S., Alsubaie, S., Almushayqih, Y., Mirza, F., Alotaibi, N., Al-Twairesh, N., Alowisheq, A., Bari, M. S., and Khan, H. (2024). When benchmarks are targets: Revealing the sensitivity of large language model leaderboards. In Annual Meeting of the Association for Computational Linguistics (ACL), pages 13787–13805.
Arbel, M., Korba, A., Salim, A., and Gretton, A. (2019). Maximum mean discrepancy gradient flow. In Advances in Neural Information Processing Systems (NeurIPS), pages 6484–6494.
Arcones, M. A. and Giné, E. (1992). On the boot-strap of U and V statistics. The Annals of Statistics, 20(2):655–674.
Baker, M. (2016). 1,500 scientists lift the lid on reproducibility. Nature, 533:452–454.
Balestriero, R. and LeCun, Y. (2025). LeJEPA: Provable and scalable self-supervised learning without the heuristics. Technical Report 2511.08544, arXiv. https://arxiv.org/abs/2511.08544.
Belhadji, A., Sharp, D., and Marzouk, Y. (2026). Weighted quantization using MMD: From mean field to mean shift using gradient flows. In International Conference on Artificial Intelligence and Statistics (AISTATS).
Benavoli, A., Corani, G., Demšar, J., and Zaffalon, M. (2017). Time for a change: A tutorial for comparing multiple classifiers through Bayesian analysis. Journal of Machine Learning Research, 18:1–36.
Borda, J. C. (1781). Mémoire sur les élections au scrutin. Histoire de l'Académie Royale des Sciences.
Borgwardt, K. M., Gretton, A., Rasch, M. J., Kriegel, H.-P., Schölkopf, B., and Smola, A. J. (2006). Integrating structured biological data by kernel maximum mean discrepancy. Bioinformatics, 22(14):e49–e57.
Bouchard, M., Jousselme, A.-L., and Doré, P.-E. (2013). A proof for the positive definiteness of the Jaccard index matrix. International Journal of Approximate Reasoning, 54:615–626.
Boulesteix, A.-L., Hable, R., Lauer, S., and Eugster, M. J. A. (2015). A statistical framework for hypothesis testing in real data comparison studies. The American Statistician, 69:201–212.
Boulesteix, A.-L., Wilson, R., and Hapfelmeier, A. (2017). Towards evidence-based computational statistics: Lessons from clinical research on the role and design of real-data benchmark studies. BMC Medical Research Methodology, 17:138.
Bouthillier, X., Delaunay, P., Bronzi, M., Trofimov, A., Nichyporuk, B., Szeto, J., Mohammadi Sepahvand, N., Raff, E., Madan, K., Voleti, V., Ebrahimi Kahou, S., Michalski, V., Arbel, T., Pal, C., Varoquaux, G., and Vincent, P. (2021). Accounting for variance in machine learning benchmarks. In Machine Learning and Systems (MLSys), pages 747–769.
Brennan, R. L. (1992). Generalizability theory. Educational Measurement: Issues and Practice, 11:27–34.
Brück, F., Fermanian, J.-D., and Min, A. (2025). Distribution free tests for model selection based on maximum mean discrepancy with estimated parameters. Journal of Machine Learning Research, 26(100):1–52.
Camerer, C. F., Dreber, A., Forsell, E., Ho, T.-H., Huber, J., Johannesson, M., Kirchler, M., Almenberg, J., Altmejd, A., Chan, T., Heikensten, E., Holzmeister, F., Imai, T., Isaksson, S., Nave, G., Pfeiffer, T., Razen, M., and Wu, H. (2016). Evaluating replicability of laboratory experiments in economics. Science, 351:1433–1436.
Camerer, C. F., Dreber, A., Holzmeister, F., et al. (2018). Evaluating the replicability of social science experiments in Nature and Science between 2010 and 2015. Nature Human Behaviour, 2(9):637–644.
Campbell, D. T. (1957). Factors relevant to the validity of experiments in social settings. Psychological Bulletin, 54:297–312.
Chatalic, A., Letizia, M., Schreuder, N., and Rosasco, L. (2026). A scalable Nyström-based kernel two-sample test with permutations. Electronic Journal of Statistics, 20(1):2608–2642.
Cheng, X. and Xie, Y. (2024). Kernel two-sample tests for manifold data. Bernoulli, 30(4):2572–2597.
Chevyrev, I. and Oberhauser, H. (2022). Signature moments to characterize laws of stochastic processes. Journal of Machine Learning Research, 23(176):1–42.
Chwialkowski, K., Sejdinovic, D., and Gretton, A. (2014). A wild bootstrap for degenerate kernel tests. In Advances in Neural Information Processing Systems (NeurIPS), pages 3608–3616.
Corani, G., Benavoli, A., Demšar, J., Mangili, F., and Zaffalon, M. (2017). Statistical comparison of classifiers through Bayesian hierarchical modelling. Machine Learning, 106:1817–1837.
Cribeiro-Ramallo, J., Matteucci, F., Enciu, P., Jenke, A., Arzamasov, V., Strufe, T., and Böhm, K. (2025). Adversarial subspace generation for outlier detection in high-dimensional data. Transactions on Machine Learning Research.
Cronbach, L. J., Rajaratnam, N., and Gleser, G. C. (1963). Theory of generalizability: A liberalization of reliability theory. British Journal of Statistical Psychology, 16(2):137–163.
Dehghani, M., Tay, Y., Gritsenko, A. A., Zhao, Z., Houlsby, N., Diaz, F., Metzler, D., and Vinyals, O. (2021). The benchmark lottery. Technical Report 2107.07002, arXiv. https://arxiv.org/abs/2107.07002.
Delios, A., Clemente, E. G., Wu, T., Tan, H., Wang, Y., et al. (2022). Examining the generalizability of research findings from archival data. Proceedings of the National Academy of Sciences, 119:e2120377119.
Demšar, J. (2006). Statistical comparisons of classifiers over multiple data sets. Journal of Machine Learning Research, 7:1–30.
DerSimonian, R. and Laird, N. (1986). Meta-analysis in clinical trials. Controlled Clinical Trials, 7(3):177–188.
Dziugaite, G. K., Roy, D. M., and Ghahramani, Z. (2015). Training generative neural networks via maximum mean discrepancy optimization. In Conference on Uncertainty in Artificial Intelligence (UAI), pages 258–267.
Egami, N. and Hartman, E. (2023). Elements of external validity: Framework, design, and analysis. American Political Science Review, 117:1070–1088.
Fernandez, T. and Gretton, A. (2019). A maximum-mean-discrepancy goodness-of-fit test for censored data. In International Conference on Artificial Intelligence and Statistics (AISTATS), pages 2966–2975.
Findley, M. G., Kikuta, K., and Denly, M. (2021). External validity. Annual Review of Political Science, 24:365–393.
Gladin, E., Dvurechensky, P., Mielke, A., and Zhu, J. J. (2024). Interaction-force transport gradient flows. In Advances in Neural Information Processing Systems (NeurIPS), pages 14484–14508.
Gretton, A., Borgwardt, K. M., Rasch, M. J., Schölkopf, B., and Smola, A. (2012). A kernel two-sample test. Journal of Machine Learning Research, 13:723–773.
Gundersen, O. E., Coakley, K. L., and Kirkpatrick, C. R. (2022). Sources of irreproducibility in machine learning: A review. Technical Report 2204.07610, arXiv. https://arxiv.org/abs/2204.07610.
Gundersen, O. E., Shamsaliei, S., Kjærni, H. S., and Langseth, H. (2023). On reporting robust and trustworthy conclusions from model comparison studies involving neural networks and randomness. In ACM Conference on Reproducibility and Replicability (ACM REP), pages 37–61.
Jiao, Y. and Vert, J.-P. (2015). The Kendall and Mallows kernels for permutations. In International Conference on Machine Learning (ICML), pages 1935–1944.
Kalinke, F. and Gavioli-Akilagun, S. (2025). Optimal online change detection via random Fourier features. In Advances in Neural Information Processing Systems (NeurIPS), pages 9866–9901.
Kalinke, F., Heyden, M., Gntuni, G., Fouché, E., and Böhm, K. (2025). Maximum mean discrepancy on exponential windows for online change detection. Transactions on Machine Learning Research.
Kemeny, J. G. and Snell, J. L. (1962). Mathematical models in the social sciences. Ginn and Company.
Klein, R. A., Vianello, M., Hasselman, F., Adams, B. G., Adams, Jr., R. B., et al. (2018). Many Labs 2: Investigating variation in replicability across samples and settings. Advances in Methods and Practices in Psychological Science, 1:443–490.
Kwitt, R., Huber, S., Niethammer, M., Lin, W., and Bauer, U. (2015). Statistical topological data analysis – A kernel perspective. In Advances in Neural Information Processing Systems (NeurIPS), pages 3070–3078.
Laumann, F., von Kügelgen, J., and Barahona, M. (2021). Kernel two-sample and independence tests for nonstationary random processes. Engineering Proceedings, 5(1).
Li, C.-L., Chang, W.-C., Cheng, Y., Yang, Y., and Póczos, B. (2017). MMD GAN: Towards deeper understanding of moment matching network. In Advances in Neural Information Processing Systems (NeurIPS), pages 2200–2210.
Li, S., Xie, Y., Dai, H., and Song, L. (2015a). M-statistic for kernel change-point detection. In Advances in Neural Information Processing Systems (NeurIPS), pages 3366–3374.
Li, S., Xie, Y., Dai, H., and Song, L. (2019). Scan B-statistic for kernel change-point detection. Sequential Analysis, 38:503–544.
Li, Y., Swersky, K., and Zemel, R. (2015b). Generative moment matching networks. In International Conference on Machine Learning (ICML), pages 1718–1727.
Liao, T., Taori, R., Raji, I. D., and Schmidt, L. (2021). Are we learning yet? A meta review of evaluation failures across machine learning. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, volume 1.
Lieb, E. H. and Loss, M. (2001). Analysis. American Mathematical Society, second edition.
Liu, F., Xu, W., Lu, J., Zhang, G., Gretton, A., and Sutherland, D. J. (2020). Learning deep kernels for non-parametric two-sample tests. In International Conference on Machine Learning (ICML), pages 6316–6326.
Lomeli, M., Rowland, M., Gretton, A., and Ghahramani, Z. (2019). Antithetic and Monte Carlo kernel estimators for partial rankings. Statistics and Computing, 29(5):1127–1147.
Lu, F., Raff, E., and Holt, J. (2023). A coreset learning reality check. In AAAI Conference on Artificial Intelligence, pages 8940–8948.
Mallows, C. L. (1957). Non-null ranking models. Biometrika, 44:114–130.
Mania, H., Ramdas, A., Wainwright, M. J., Jordan, M. I., and Recht, B. (2018). On kernel methods for covariates that are rankings. Electronic Journal of Statistics, 12:2537–2577.
Matteucci, F., Arzamasov, V., and Böhm, K. (2023). A benchmark of categorical encoders for binary classification. In Advances in Neural Information Processing Systems (NeurIPS), pages 54855–54875.
McElfresh, D., Khandagale, S., Valverde, J., Dickerson, J., and White, C. (2022). On the generalizability and predictability of recommender systems. In Advances in Neural Information Processing Systems (NeurIPS), pages 4416–4432.
Montgomery, D. C. (2017). Design and analysis of experiments. John Wiley & Sons.
National Academies of Sciences, Engineering, and Medicine (2019). Reproducibility and replicability in science. The National Academies Press.
O'Bray, L., Horn, M., Rieck, B., and Borgwardt, K. (2022). Evaluation metrics for graph generative models: Problems, pitfalls, and practical solutions. In International Conference on Learning Representations (ICLR).
Open Science Collaboration (2015). Estimating the reproducibility of psychological science. Science, 349:aac4716.
Patil, P., Peng, R. D., and Leek, J. T. (2016). What should researchers expect when they replicate studies? A statistical view of replicability in psychological science. Perspectives on Psychological Science, 11(4):539–544.
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., and Duchesnay, E. (2011). Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830.
Peng, R. D. (2011). Reproducible research in computational science. Science, 334:1226–1227.
Pineau, J., Vincent-Lamarre, P., Sinha, K., Larivière, V., Beygelzimer, A., d'Alché-Buc, F., Fox, E., and Larochelle, H. (2021). Improving reproducibility in machine learning research (a report from the NeurIPS 2019 reproducibility program). Journal of Machine Learning Research, 22:1–20.
Qin, Z., Jagerman, R., Pasumarthi, R. K., Zhuang, H., Zhang, H., Bai, A., Hui, K., Yan, L., and Wang, X. (2023). RD-Suite: A benchmark for ranking distillation. In Advances in Neural Information Processing Systems (NeurIPS), pages 35748–35760.
Raff, E. (2021). Research reproducibility as a survival analysis. In AAAI Conference on Artificial Intelligence, pages 469–478.
Raff, E. (2023). Does the market of citations reward reproducible work? In ACM Conference on Reproducibility and Replicability (ACM REP), pages 89–96.
Schoenberg, I. J. (1938). Metric spaces and positive definite functions. Transactions of the American Mathematical Society, 44:522–536.
Schölkopf, B. (2000). The kernel trick for distances. In Advances in Neural Information Processing Systems (NeurIPS), pages 301–307.
Schölkopf, B. and Smola, A. J. (2002). Learning with kernels: Support vector machines, regularization, optimization, and beyond. The MIT Press.
Schrab, A., Kim, I., Albert, M., Laurent, B., Guedj, B., and Gretton, A. (2023). MMD aggregated two-sample test. Journal of Machine Learning Research, 24(194):1–81.
Serfling, R. J. (1980). Approximation theorems of mathematical statistics. John Wiley & Sons.
Sprague, Z., Yin, F., Rodriguez, J., Jiang, D., Wadhwa, M., Singhal, P., Zhao, X., Ye, X., Mahowald, K., and Durrett, G. (2025). To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoning. In International Conference on Learning Representations (ICLR), pages 94118–94162.
Srivastava, A., Rastogi, A., Rao, A., Shoeb, A. A. M., Abid, A., et al. (2023). Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models. Transactions on Machine Learning Research.
Sutherland, D. J., Tung, H.-Y., Strathmann, H., De, S., Ramdas, A., Smola, A., and Gretton, A. (2017). Generative models and model criticism via optimized maximum mean discrepancy. In International Conference on Learning Representations (ICLR).
Vaccaro, M., Almaatouq, A., and Malone, T. (2024). When combinations of humans and AI are useful: A systematic review and meta-analysis. Nature Human Behaviour, 8(12):2293–2303.
van der Vaart, A. W. (1998). Asymptotic statistics. Cambridge University Press.
Van Mechelen, I., Boulesteix, A.-L., Dangl, R., Dean, N., Hennig, C., Leisch, F., Steinley, D., and Warrens, M. J. (2023). A white paper on good research practices in benchmarking: The case of cluster analysis. WIREs Data Mining and Knowledge Discovery, 13:e1511.
Verhagen, J. and Wagenmakers, E.-J. (2014). Bayesian tests to quantify the result of a replication attempt. Journal of Experimental Psychology: General, 143(4):1457–1475.
Wainberg, M., Alipanahi, B., and Frey, B. J. (2016). Are random forests truly the best classifiers? Journal of Machine Learning Research, 17(110):1–5.
Wynne, G. and Duncan, A. B. (2022). A kernel two-sample test for functional data. Journal of Machine Learning Research, 23:1–51.
Zhang, G. and Hardt, M. (2024). Inherent trade-offs between diversity and stability in multi-task benchmarks. In International Conference on Machine Learning (ICML), pages 58984–59002.
Zhou, L., Ermon, S., and Song, J. (2025a). Inductive moment matching. In International Conference on Machine Learning (ICML).
Zhou, Z., Tian, X., Peng, L., Lei, C., Schrab, A., Sutherland, D. J., and Liu, F. (2025b). DUAL:
Learning diverse kernels for aggregated two-sample and independence testing. In Advances in Neural Information Processing Systems (NeurIPS), pages 130661–130695.
Zhuang, D., Zhang, X., Song, S., and Hooker, S. (2022). Randomness in neural network training: Characterizing the impact of tooling. In Machine Learning and Systems (MLSys), pages 316–336.
Zimmermann, E., Wiltzer, H., Szeto, J., Alvarez-Melis, D., and Mackey, L. (2025). KerJEPA: Kernel discrepancies for Euclidean self-supervised learning. Technical Report 2512.19605, arXiv. https://arxiv.org/abs/2512.19605.
Kernel-based External Validity of Experimental Studies: Supplementary Materials
Outline Appendix A extends the classification of experimental factors from Section 2.2; Appendix B discusses in detail the kernels of Section 3.1, including the related proofs; Appendix C evaluates different resampling schemes; Appendix D contains the proofs of the results in the main text as well as of additional results.
A EXPERIMENTAL FACTORS (EXTENDED)
This section elaborates on the classification of (experimental) factors in Section 2.2. We recall that a factor is anything that may affect the result of an experiment; we sort factors into categories adapted from Montgomery (2017, Chapter 1), according to the role that a factor plays in a study.
-
Noise factors are included in the study only to “average out” the effect of randomness in either the benchmarked algorithms or the experimental conditions; the results are usually aggregated w.r.t. these factors before proceeding to further analysis (for instance, by taking the average); common examples are seed or cross-validation fold.
-
Held-constant factors are presumed not to significantly impact the results; they are thus out of the study’s scope and are fixed to a single level; examples might be programming language or operating system.
-
Design factors are expected to significantly impact the results and have a relatively small set of levels; examples are metric or number of shots.
-
Random factors have a larger number of levels; the experimenter’s goal is to obtain results that are stable under changes of these factors’ levels, that is, to perform a study which is random-factor-externally-valid; examples are dataset or chessboard position.
Notice that the classification above is purely semantic: the same factor may play different roles in different studies, according to the study’s objectives. For instance, a large-scale comparison study of classifiers will likely consider dataset as a random factor, as the results are expected to generalize w.r.t. the choice of dataset. Conversely, a study focusing on evaluating prediction models on a single dataset will consider dataset as a held-constant factor and resample as a random factor.
B KERNELS
B.1 Kernels for Rankings
This section proves that the functions introduced in Section 3.1 are indeed kernels for rankings. In other words, we prove that they are symmetric and positive definite. As all three kernels are clearly symmetric, it remains to show their positive definiteness.
We now proceed with the proofs.
Lemma B.1 (The Borda kernel is positive definite). Let, for and ,
where is the Borda count (Borda, 1781). Then, is positive definite.
Proof. We show that there exists a distance such that embeds isometrically into some space. This ensures that is a conditionally positive definite (c.p.d.) function and, thus, that is positive definite (Schoenberg, 1938; Schölkopf, 2000). Define the distance
where is as in (8). Now, is isometrically embedded into via the map . Hence, is c.p.d. and is positive definite.
Lemma B.2 (The Jaccard kernel is positive definite). Let, for a tier ,
where, for , is the set of alternatives with rank at most . Then, is a kernel.
Proof. It is already known that the Jaccard coefficient is a kernel between sets, see e.g. Bouchard et al. (2013). As is the Jaccard coefficient applied to the top-t tiers of two rankings, it is also positive definite.
Lemma B.3 (The Mallows kernel is positive definite). Let, for ,
where is the number of discordant pairs and with . Then, is positive definite.
Proof. It is known that the number of discordant pairs is a distance on (Kemeny and Snell, 1962). Consider now the mapping of a ranking into its adjacency matrix,
where 1 is the indicator function. Then,
where indicates the entry-wise matrix -norm and the equality holds because the entries of the matrices are either 0 or 1. Hence, is a Gaussian (RBF) kernel on with parameter , evaluated at . As the Gaussian kernel is positive definite and positive definiteness is preserved under composition with any map, is itself positive definite.
B.2 Kernels for Euclidean Spaces
In the experiments of Section 4, we also consider Euclidean results and the radial basis function (RBF; Gaussian) kernel (Schölkopf and Smola, 2002), using the scikit-learn implementation (Pedregosa et al., 2011). The RBF kernel is suitable for research questions of the form “Are the performances consistent?” For and ,
where is the Euclidean norm. Notice that, for results in , such as the scores in our case studies, satisfies Assumption 7 with and ; with , as in our experiments, .
C NOTES ON RESAMPLING
This section empirically evaluates different estimators and resampling schemes to determine the minimum number of experiments needed to achieve valid results.

(a) Comparison plots

(b) Boxplots
Figure 8: KEV at the estimated compared to the desired level . The cautiously pessimistic scenario corresponds to a slightly positive difference. and we use the Mallows kernel.
C.1 Resampling schemes
In this section, we expand on Section 4.1 and provide additional details on the design of our implementation. Estimating requires resampling pairs of samples of size from the available experimental results , with distribution . Fig. 8 expands Fig. 2 and compares four ways of doing so, defined by two flags: disjoint controls whether and are drawn from two disjoint halves of , so that no experiment appears in both (we still allow the same value to appear in both); replace determines whether and are drawn with replacement.
Notice that, by (1), is the sum of two within-sample terms minus a between-sample term: collisions within a sample bias upwards; collisions between the two samples bias it downwards. The scheme with disjoint = False and replace = True is the one covered by Lemma 13.
Table 2: Resampling schemes and their expected effect on the estimated KEV.
| disjoint | replace | Collisions within | Collisions between | Scheme |
|---|---|---|---|---|
| True | True | yes | no | overpessimistic |
| True | False | no | no | permutation |
| False | False | no | yes | overoptimistic |
| False | True | yes | yes | bootstrap |
C.2 Incremental vs. Fresh Sampling
Algorithm 1 builds the preliminary study incrementally in batches of experiments, appending the new results to the existing ones, which is the practically relevant scenario. The results of Section 3.2, instead, correspond to fresh sampling: at every step, a new sample is drawn independently of the previous ones. As the schemes differ in the joint law of the sequence of samples, we empirically compare the behavior of the KEV for the two case studies of Section 4.
Fig. 9 shows that the curves nearly coincide for every kernel; the only visible deviation, for in the LLM case study at small , occurs where the KEV is far below and hence does not affect . In practice, the incremental scheme can therefore be used in place of the fresh one.

(a) Encoders

(b) LLMs
Figure 9: KEV compared for incremental and fresh sampling schemes.
D PROOFS
We first state and prove auxiliary results not in the main text.
D.1 Auxiliary Results
Lemma D.1. Let as in Assumption 7. Then, .
Proof.
Lemma D.2 (E MMD ). Let MMD be as in (2), and let k be a kernel with constant diagonal . Then, for any ,
where .
Proof.
Now, by linearity of the mean embedding, and, by being the reproducing kernel for ,
Taking expectations,
where (a) is because the -s are i.i.d. and (b) is because . Similarly, we obtain
By substituting into (9), we get
For completeness, we include the following result on the limiting distribution of MMD, i.e., of the V-statistic estimator of MMD() under the null hypothesis that and being probability distributions. It is mainly based on Gretton et al. (2012), which discusses the U-statistic case.
Theorem D.3 (Limiting distribution of MMD ). Let k be a bounded reproducing kernel for the Hilbert space H and define MMD as in (2). Let be the eigenvalues of the operator
where is the centered kernel. Then,
where the -s are i.i.d. .
Proof. Our proof follows Gretton et al. (2012, Theorem 12) and Serfling (1980, Section 6.4.1 Theorem B). Notice that Serfling (1980, Section 6.4.1 Theorem B) is stated for . However, it is directly derived from the U-statistic equivalent in Chapter 5, which is stated for more general spaces.
First, we recall that the MMD does not change when the kernel is centered (Gretton et al., 2012, eq. (9)). Explicitly,
We will now consider the limiting properties of each addend of (12) separately.
First Two Addends Let . In particular, using Serfling's notation, we have:
(i) A functional , with estimator .
(ii) A symmetric kernel .
(iii) A remainder term
Condition (Serfling, 1980, p. 225) is satisfied:
(i) by the properties of the centered kernel.
(i)' if the kernel is not constant.
(ii) .
Then, by boundedness of and Serfling (1980, Section 6.4.1 Theorem B),
where . Similar reasoning shows that the second term converges to , where and are independent of the -s.
Third Addend Gretton et al. (2012) eq. (28) shows that
Recombining (13) and (14) and using basic properties of normal and chi-squares, we obtain
where , thus concluding the proof.
D.2 Proof of Lemma 5
Proof. As is bounded, with . Therefore, as , by the layer cake representation (Lieb and Loss, 2001, Section 1.13) we have
Hence, we have that
and it suffices to show that .
Consider now and define, for every , , so that
where denotes equality in distribution. Now, the leave-one-out means satisfy
as each appears in exactly n of the -s. Finally, by (15), the triangle inequality, and taking expectations, we have
☐
D.3 Proof of Lemma 9
Proof. (First implication).
where (a) is due to monotonicity of g and (b) is due to the convexity of g, Jensen's inequality, and Assumption 7. (Second implication).
where (a) is by Jensen's inequality, (b) is from Lemma D.2 and Lemma D.1, (c) is from hypothesis, and (d) is from .
D.4 Proof of Lemma 10
Proof. Applying Markov's inequality to and then Lemma D.2, we obtain the following lower bound on the external validity achieved:
□
D.5 Proof of Theorem 11
Proof. From Theorem D.3 and the continuous mapping theorem (van der Vaart, 1998, Theorem 2.3), letting as in (11), we have that
As the cdf of is continuous everywhere, we invoke van der Vaart (1998, Lemma 21.2) to get the convergence of the quantile functions. Let and , which are well-defined if there exists . We then have
As does not depend on , the proof is concluded.
D.6 Proof of Lemma 13
Proof. First, as customary, we rewrite MMD2 as a one-sample second-order V-statistic. From (1) with n = m,
where and . From Theorem D.3, we know that converges in distribution to , where the -s are i.i.d. standard normals and the -s are the eigenvalues of the operator in (10).
. Recall that is the set of such that for every partition of into blocks, where identifies the arguments of within each block (Arcones and Giné, 1992, eqs. (3.3)–(3.5)). Here and is the law of , so that if and only if and . Both hold, as with ; in particular, .
For a distribution and , define the projection
Notice that is in Arcones and Giné (1992, eq. (2.3)), with for the order of degeneracy and for the order of . Letting and be i.i.d. copies of , takes the form
Now, letting be the mean embedding of into , , and an i.i.d. copy of , we have
Similarly, . For the final term, letting for we have, since are i.i.d.,
Hence, for any choice of and, in particular, for .
To conclude the proof, we invoke Arcones and Giné (1992, Theorem 3.5, laws (b) and (c)) and obtain that and converge in distribution to the same random variable for -a.e. .