Abstract
Goodness-of-fit tests based on the empirical Wasserstein distance are proposed for simple and composite null hypotheses involving general multivariate distributions. For group families, the procedure is implemented after preliminary reduction of the data via invariance, allowing for the calculation of exact critical values and p-values at finite sample sizes. This framework supports testing for location–scale families and families arising from affine transformations, such as elliptical distributions. A novel test for multivariate normality arises as a special case. For general parametric families, a parametric bootstrap procedure is proposed. Despite the lack of asymptotic distribution theory for the empirical Wasserstein distance in high dimensions, the test is shown to be consistent against fixed alternatives via a new uniform law of large numbers. Numerical experiments demonstrate the practical feasibility and excellent performance of the proposed tests for dimensions at least up to $d=5$.
Introduction
Goodness-of-fit (GoF) testing—the process of determining whether a given dataset follows a specific probability distribution—is a cornerstone of statistical inference. In one dimension, this problem is largely solved through "distribution-free" tests like the Kolmogorov-Smirnov test. however, as dimensionality increases, the "curse of dimensionality" renders traditional methods less effective. In multiple dimensions ($d \ge 2$), the distribution-free property vanishes, and most existing tests are either restricted to specific distributions (like multivariate normality) or struggle with "composite" hypotheses where parameters like the mean or covariance are unknown.
In a study published in the Electronic Journal of Statistics, Marc Hallin, Gilles Mordant, and Johan Segers introduce a powerful new framework for multivariate GoF testing using the Wasserstein distance. By leveraging optimal transport theory, the researchers have developed a method that is mathematically elegant and highly sensitive to subtle distributional deviations.
The Wasserstein Framework
The Wasserstein distance, often referred to as the "Earth Mover’s Distance," measures the minimum "work" required to transform one distribution into another. While it is a natural metric for comparing distributions, its application to statistical testing has been historically limited by a lack of asymptotic theory—the mathematical formulas that describe how the distance behaves as sample sizes grow in high-dimensional space.
To overcome these hurdles, the authors propose three primary strategies:
- Semi-Discrete Optimal Transport: The test statistic compares a discrete empirical distribution (the observed data) to a continuous null distribution. This requires solving a semi-discrete optimal transport problem, which the authors achieve using state-of-the-art algorithms like the Stochastic Averaged Gradient (SAG).
- Invariance for Group Families: For common statistical families (such as Gaussian or elliptical distributions), the authors utilize "equivariant" estimators. By transforming the data into standardized, parameter-free residuals, they create a test statistic that is distribution-free under the null hypothesis. This allows for the calculation of exact p-values even with small sample sizes.
- Parametric Bootstrap: For general models where invariance does not apply, the authors employ a bootstrap approach—repeatedly simulating from the estimated model to build a distribution of the test statistic. While the mathematical proof for the validity of this bootstrap in $d \ge 2$ remains a conjecture, empirical evidence strongly supports its use.
Theoretical Consistency
A major contribution of this work is the proof of a new Uniform Law of Large Numbers for the empirical Wasserstein distance. This proof ensures that the test is "consistent," meaning it is guaranteed to eventually detect any false hypothesis as the sample size increases. This uniformity holds over any class of underlying distributions satisfying a uniform integrability condition, without requiring additional moment assumptions.
Experimental Results and Insights
The researchers evaluated their methods against a variety of synthetic benchmarks designed to stress-test distributional characteristics:
- Sensitivity to Dependence: Unlike many tests that only check if individual variables (marginals) are correct, the Wasserstein test is exceptionally proficient at detecting errors in the relationship between variables (the copula).
- The Boomerang Test: In simulations involving a "boomerang-shaped" Gaussian mixture, the Wasserstein test easily detected the deviation. In contrast, benchmarks like the Rippl-Munk-Sturm test—which focus primarily on means and covariances—failed to identify the non-normality.
- Multivariate Normality: The framework provides a novel test for multivariate normality that competes with established benchmarks like the Henze-Zirkler test, particularly when the deviation from normality lies in the dependence structure rather than the marginal distributions.
Conclusion and Future Directions
The proposed Wasserstein-based tests offer a robust and flexible solution for multivariate goodness-of-fit testing. While the computational cost of solving optimal transport problems is higher than that of simple parametric tests, the method is practically feasible for moderate dimensions (at least up to $d=5$) and sample sizes ($n=200$).
Future work remains in optimizing the algorithms for massive datasets and high-dimensional spaces. Additionally, while the $p=1$ and $p=2$ Wasserstein orders were explored—with $p=1$ showing robustness to outliers and $p=2$ showing power in specific alternatives—a formal rule for selecting the optimal order $p$ for a given dataset is yet to be established. Finally, proving the "Bootstrap Conjecture" remains a significant open challenge for mathematical statisticians.
Summary updated