TL;DR
This paper bridges the gap between seemingly disparate nonparametric two-sample tests by framing them through the lens of the Wasserstein distance. It reveals how entropic smoothing of the Wasserstein distance connects it to energy statistics and Maximum Mean Discrepancy (MMD) in multivariate settings, and how it relates to QQ/PP plots and ROC/ODC curves in the univariate case. This unification offers a more comprehensive understanding of these powerful statistical tools.
What Problem Does This Paper Address?
The core problem this paper addresses is the fragmentation of knowledge and application in nonparametric two-sample testing. This field, concerned with detecting differences between two probability distributions without making assumptions about their specific form, has a rich history with numerous tests developed for both univariate and multivariate scenarios. However, these tests often appear distinct and are analyzed using different theoretical frameworks. For instance, the Kolmogorov-Smirnov test is popular in one dimension, while tests like Energy Distance and Maximum Mean Discrepancy are more common in higher dimensions. This paper aims to unify these approaches, showing how they are interconnected and can be understood under a common umbrella, thereby facilitating knowledge transfer between researchers and practitioners familiar with only a subset of these methods.
Methods
The paper's central methodological contribution is the exploration of the Wasserstein distance and its entropic smoothing.
- Wasserstein Distance: The authors begin by defining the $p$-Wasserstein distance, which measures the minimum "cost" to transform one probability distribution into another. This is framed as an optimal transport problem, solvable via linear programming.
- Entropic Smoothing: To address the computational expense and slow convergence rates of the standard Wasserstein distance, the paper introduces an entropic regularization of the optimal transport problem. This smoothing, parameterized by $\lambda$, interpolates between the Wasserstein distance (when $\lambda \to \infty$) and the Energy Distance (when $\lambda = 0$). This technique allows for efficient computation using Sinkhorn's algorithm.
- Connections: The paper then systematically establishes connections:
- Multivariate: Entropic smoothing of the Wasserstein distance is shown to connect it to the Energy Distance (a multivariate test statistic) and, transitively, to Kernel Maximum Mean Discrepancy (MMD), a popular kernel-based test.
- Univariate: The univariate Wasserstein distance is linked to quantile-quantile (QQ) plots and probability-probability (PP) plots, which are graphical tools for comparing distributions. It also shows how the Kolmogorov-Smirnov test arises from this framework.
- Distribution-Free Univariate Test: A novel contribution is the construction of a distribution-free univariate Wasserstein test by relating it to Receiver Operating Characteristic (ROC) and Ordinal Dominance (ODC) curves. This is achieved by showing that the Wasserstein distance between transformed empirical distributions is distribution-free under the null hypothesis.
Datasets
Not discussed in the paper. The paper focuses on theoretical connections and simulations using synthetic distributions.
Key Insights and Ideas
- Unifying Framework: The most significant insight is that many seemingly different nonparametric two-sample tests can be understood as different facets or approximations of the Wasserstein distance, particularly when considering its entropic smoothing.
- Entropic Smoothing as a Bridge: Entropic regularization of the Wasserstein distance is a powerful tool that not only makes computation feasible but also elegantly bridges the gap between the Wasserstein distance and the Energy Distance, and subsequently to MMD.
- Wasserstein as a Generalization: The paper demonstrates how the Wasserstein distance, especially in its univariate form, naturally encompasses or relates to established univariate tests like Kolmogorov-Smirnov and graphical methods like QQ/PP plots.
- Distribution-Free Tests from ROC/ODC: The construction of a distribution-free univariate test by leveraging ROC/ODC curves is a key methodological innovation, offering a robust alternative when the null distribution of standard tests is unknown.
- Dimensionality Matters: The paper highlights how the convergence rates of Wasserstein distances are affected by dimensionality, motivating the search for alternative or smoothed versions for high-dimensional problems.
Key Results
- The paper formally establishes that entropic smoothing of the Wasserstein distance interpolates between the Wasserstein distance and the Energy Distance.
- It shows that the Energy Distance is a special case of kernel MMD, and that kernel MMD can be viewed as an "extremely smoothed" Wasserstein distance.
- In the univariate case, the $p$-Wasserstein distance is shown to be equivalent to the $L^p$ distance between quantile functions.
- A novel construction leads to a distribution-free univariate Wasserstein test statistic by relating it to the Wasserstein distance between transformed empirical distributions and the uniform distribution, whose null distribution is independent of the underlying data distributions.
- Simulations (Figure 1) compare the performance of various tests, including the proposed ones, on distributions differing in their first four moments, illustrating their relative strengths and weaknesses. While the paper doesn't present a single "best" test, it provides empirical evidence for their behavior.
Limitations and Future Work
- Role of Smoothing Parameter $\lambda$: The paper acknowledges that the role of the entropic smoothing parameter $\lambda$ is not fully understood, and suggests that a data-dependent way to select $\lambda$ to maximize power would be an interesting direction for future research.
- High-Dimensional Consistency: While the paper focuses on nonparametric tests, it notes that establishing general conditions for the consistency of these tests in high-dimensional settings remains an open problem.
- Theoretical Comparisons: The authors mention that rigorous theoretical comparisons of the power of different nonparametric tests are sparse, as performance often depends on the specific class of alternatives. They suggest that theoretical analysis comparing test classes in special, practically relevant cases (e.g., mean-separated Gaussians) would be valuable.
- Computational Aspects: While entropic smoothing improves computational efficiency, the paper implicitly acknowledges that for very large datasets, computational cost can still be a factor.
Summary updated