[Paper Review] On Wasserstein Two Sample Testing and Related Families of Nonparametric Tests
This paper establishes a unifying framework connecting nonparametric two-sample tests through the Wasserstein distance, showing that it links univariate methods like Kolmogorov-Smirnov and QQ plots to multivariate tests such as Energy distance and Maximum Mean Discrepancy (MMD) via entropic smoothing. The key contribution is a distribution-free Wasserstein test derived from the ODC (observed vs. expected cumulative) curve, whose null distribution is free of underlying CDFs under the null hypothesis.
Nonparametric two sample or homogeneity testing is a decision theoretic problem that involves identifying differences between two random variables without making parametric assumptions about their underlying distributions. The literature is old and rich, with a wide variety of statistics having being intelligently designed and analyzed, both for the unidimensional and the multivariate setting. Our contribution is to tie together many of these tests, drawing connections between seemingly very different statistics. In this work, our central object is the Wasserstein distance, as we form a chain of connections from univariate methods like the Kolmogorov-Smirnov test, PP/QQ plots and ROC/ODC curves, to multivariate tests involving energy statistics and kernel based maximum mean discrepancy. Some connections proceed through the construction of a \ extit{smoothed} Wasserstein distance, and others through the pursuit of a "distribution-free" Wasserstein test. Some observations in this chain are implicit in the literature, while others seem to have not been noticed thus far. Given nonparametric two sample testing's classical and continued importance, we aim to provide useful connections for theorists and practitioners familiar with one subset of methods but not others.
Motivation & Objective
- To unify diverse nonparametric two-sample tests under the Wasserstein distance framework.
- To establish formal connections between univariate tools (e.g., QQ plots, Kolmogorov-Smirnov) and multivariate methods (e.g., Energy distance, MMD).
- To develop a distribution-free univariate Wasserstein test by leveraging the ODC curve and probability integral transform.
- To show that entropic smoothing of the Wasserstein distance interpolates between Wasserstein and Energy distance statistics.
- To clarify the asymptotic null distribution of Wasserstein-based test statistics using Brownian bridge approximations.
Proposed method
- Use the probability integral transform to convert empirical CDFs into uniform variates under the null, enabling distribution-free testing.
- Define the ODC (observed vs. expected cumulative) curve as the empirical CDF of transformed data under the null, which converges weakly to a Brownian bridge.
- Apply entropic smoothing to the Wasserstein distance to create a continuous interpolation between the Wasserstein distance and Energy distance.
- Derive the asymptotic distribution of the Wasserstein distance between the empirical ODC and the uniform distribution, showing it converges to a functional of a Brownian bridge.
- Establish that the null distribution of the Wasserstein distance between the ODC and the uniform CDF is independent of the underlying distribution F, enabling distribution-free inference.
- Use the Karhunen-Loève expansion to represent the limiting process as an infinite sum of weighted chi-squared variables.
Experimental results
Research questions
- RQ1How can the Wasserstein distance be used to unify univariate and multivariate nonparametric two-sample tests?
- RQ2What is the connection between the Wasserstein distance and classical univariate tools such as QQ plots and the Cramer-von Mises test?
- RQ3How does entropic smoothing of the Wasserstein distance relate to Energy distance and Maximum Mean Discrepancy (MMD)?
- RQ4Can a distribution-free univariate Wasserstein test be constructed, and if so, how?
- RQ5What is the asymptotic null distribution of the Wasserstein distance when applied to transformed empirical CDFs?
Key findings
- The Wasserstein distance between the empirical ODC curve and the uniform distribution has a null distribution that is independent of the underlying CDF F, enabling distribution-free testing.
- Under the null, the scaled Wasserstein distance $ \sqrt{\frac{mn}{m+n}} W_\infty $ converges weakly to the supremum of a standard Brownian bridge.
- The scaled squared Wasserstein distance $ \frac{mn}{m+n} W_2^2 $ converges weakly to the integral of the square of a Brownian bridge over [0,1].
- Entropic smoothing of the Wasserstein distance creates a continuous family of statistics that interpolates between the Wasserstein distance and the Energy distance.
- The ODC curve provides a direct link between the Wasserstein test and ROC/ODC curve analysis, with the test statistic being distribution-free under the null.
- The asymptotic distribution of the Wasserstein-based test statistic is characterized by a functional limit theorem involving Brownian bridges, which allows for valid inference without knowledge of the true CDF.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.