Abstract
Nonparametric two-sample or homogeneity testing is a fundamental decision-theoretic problem: determining whether two sets of random variables originate from the same underlying distribution without making parametric assumptions. While the literature is rich with diverse statistics for both univariate and multivariate settings, these methods often appear disconnected. This paper provides a unified framework by positioning the Wasserstein distance as a central link. We demonstrate how entropic smoothing connects Wasserstein distances to Energy Statistics and Kernel Maximum Mean Discrepancy (MMD), and how transformations involving Ordinal Dominance Curves (ODC) yield distribution-free univariate tests. By drawing these connections, we provide a cohesive map for theorists and practitioners to navigate the landscape of nonparametric testing.
Introduction
In statistical inference, the two-sample test asks whether two independent samples, $X$ and $Y$, are drawn from the same probability distribution. Unlike parametric approaches such as the t-test, which assume specific data shapes (e.g., Gaussian), nonparametric tests are essential for modern data science where underlying distributions are often complex or unknown.
Historically, this field has been bifurcated. In the univariate case ($d=1$), classical methods like the Kolmogorov-Smirnov test dominate. In multivariate settings ($d > 1$), researchers frequently turn to Energy Distances or MMD. The Wasserstein distance—often intuitively described as the "Earth Mover’s Distance"—offers a powerful alternative by measuring the cost of transforming one distribution into another. However, its adoption has been hindered by the "curse of dimensionality" and its dependence on the underlying distribution under the null hypothesis. This work resolves these tensions by showing that many popular tests are actually specific instances or limits of a broader Wasserstein-based family.
The Multivariate Bridge: Entropic Smoothing
A significant contribution of this research is the formal link between Optimal Transport and Kernel methods. The authors utilize "Sinkhorn Divergences," which are versions of the Wasserstein distance regularized with an entropic penalty. This smoothing serves two purposes: it makes the distance computationally tractable via the Sinkhorn algorithm and it alters the statistical properties of the measure.
Crucially, the paper proves that as the smoothing parameter varies, the Sinkhorn Divergence interpolates between the standard Wasserstein distance and the Energy Distance. Since the Energy Distance is a specific case of the Maximum Mean Discrepancy (MMD) using a Laplacian-like kernel, this establishes a formal chain of equivalence:
Wasserstein Distance $\leftrightarrow$ Energy Distance $\leftrightarrow$ Kernel MMD.
This insight suggests that the Optimal Transport and Kernel communities have been studying different facets of the same underlying geometric problem. It also provides a path for scaling Wasserstein-based tests to high-dimensional datasets by leveraging the computational efficiency of smoothed divergences.
The Univariate Bridge: Distribution-Free Testing
In one dimension, the $L_p$ Wasserstein distance is mathematically equivalent to the area between lines on a Quantile-Quantile (QQ) plot. While intuitive, a major drawback is that the distribution of this area under the null hypothesis (when $X$ and $Y$ are the same) depends on the shape of the data. This makes it difficult to establish universal p-values without expensive simulations.
To address this, the authors introduce a "distribution-free" version of the test using the Ordinal Dominance Curve (ODC). The ODC is a relative distribution functional, closely related to the Receiver Operating Characteristic (ROC) curve. By calculating the Wasserstein distance between the empirical ODC and a uniform distribution, the authors create a test statistic that is invariant to the underlying distribution of the data.
Through asymptotic analysis, the paper demonstrates that this ODC-based statistic converges to the norm of a Brownian bridge. This allows practitioners to determine statistical significance using standard tables, similar to how one uses the Kolmogorov-Smirnov test, but with the added sensitivity of the Wasserstein metric.
Key Insights and Theoretical Implications
The paper argues that almost all nonparametric two-sample tests can be viewed through three lenses: comparisons of Cumulative Distribution Functions (CDFs), Quantile Functions (QFs), or Characteristic Functions (CFs). The Wasserstein distance is unique in its ability to bridge these perspectives.
Key takeaways include:
- Formal Equivalence: The discovery that Energy Distance is a limit of smoothed Wasserstein distance provides a unified theoretical foundation for multivariate testing.
- Asymptotic Robustness: The derivation of limiting distributions for ODC-based tests provides a rigorous mathematical basis for using Wasserstein distances in hypothesis testing.
- Computational Path: Highlighting the Sinkhorn algorithm points toward a future where these theoretically robust tests can be applied to large-scale, high-dimensional data.
Conclusion and Future Directions
By connecting univariate classics like the Kolmogorov-Smirnov test and QQ plots to multivariate modernities like MMD and Energy Statistics, this work offers a "unified field theory" for homogeneity testing. While the theoretical framework is robust, future work remains in determining the optimal degree of smoothing for high-dimensional data—specifically, identifying the point where a test loses its "Wasserstein-like" geometric sensitivity and begins to behave like a kernel-based Energy test. Additionally, empirical surveys across diverse data types (such as heavy-tailed or sparse distributions) will be necessary to translate these theoretical links into a definitive guide for practitioners.
Summary updated