[Paper Review] A new test for the multivariate two-sample problem based on the concept of minimum energy
This paper introduces the energy test, a multivariate two-sample test based on interpoint distances using a logarithmic potential function. It demonstrates superior power in high-dimensional settings compared to Friedman-Rafsky and nearest neighbor tests, especially for complex distributional differences.
We introduce a new statistical quantity the energy to test whether two samples originate from the same distributions. The energy is a simple logarithmic function of the distances of the observations in the variate space. The distribution of the test statistic is determined by a resampling method. The power of the energy test in one dimension was studied for a variety of different test samples and compared to several nonparametric tests. In two and four dimensions a comparison was performed with the Friedman-Rafsky and nearest neighbor tests. The two-sample energy test was shown to be especially powerful in multidimensional applications.
Motivation & Objective
- To address the limitations of traditional two-sample tests in high-dimensional spaces, where binning and rank-based methods fail due to the curse of dimensionality.
- To develop a distribution-free, computationally feasible test that detects subtle differences in multivariate distributions beyond location and scale.
- To compare the energy test's performance against established nonparametric tests like Friedman-Rafsky and nearest neighbor tests in multidimensional settings.
- To establish the energy test as a robust, scale-invariant alternative with strong power across diverse distributional alternatives.
Proposed method
- The test statistic Φₙₘ is defined as the sum of within-sample energies (Φₐ, Φᵦ) and the interaction energy (Φₐᵦ) between two samples.
- Distances between observations are measured using the Euclidean norm, and the potential function R(r) = -ln r is used to ensure scale invariance and long-range sensitivity.
- The test statistic is computed via a resampling procedure: permutations of the combined sample to estimate the null distribution under H₀.
- The energy test leverages the fact that the energy functional is minimized when two samples come from the same distribution, making large values of Φₙₘ indicative of significant differences.
- Theoretical justification is provided via Fourier analysis, showing that the energy functional is non-negative and zero only under the null hypothesis.
- The method is applied in one, two, and four dimensions, with power evaluated through simulation and comparison to benchmark tests.
Experimental results
Research questions
- RQ1How does the energy test perform in detecting differences between multivariate distributions compared to existing nonparametric tests in high dimensions?
- RQ2Can a distance-based test using logarithmic potential functions achieve high power across diverse distributional alternatives, including those with sharp peaks or heavy tails?
- RQ3Is the energy test robust and effective in high-dimensional spaces where traditional tests suffer from the curse of dimensionality?
- RQ4Does the energy test outperform the Friedman-Rafsky and nearest neighbor tests in detecting subtle, complex distributional differences?
Key findings
- In one dimension, the energy test outperformed Kolmogorov-Smirnov, Cramèr-von Mises, Wilcox, Lepage, and χ² tests across all considered alternatives.
- In two and four dimensions, the energy test showed consistently higher rejection rates than both the Friedman-Rafsky and nearest neighbor tests across all tested distributional alternatives.
- For alternatives with sharp peaks in a corner (cases 11 and 12) or in the center (case 13) of a d-dimensional unit cube, the energy test achieved rejection rates of 0.99 and 0.96, respectively, in four dimensions.
- The multivariate t-distribution, representing mild deviations from normality, was detected with high power (rejection rate 0.99 in four dimensions), indicating sensitivity to shape differences.
- The energy test maintained high power even for complex alternatives where other tests struggled, demonstrating its ability to detect long-range distributional differences.
- Theoretical analysis confirms that the energy functional is minimized under the null hypothesis, validating the test's statistical foundation.
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.