[Paper Review] Testing to distinguish measures on metric spaces
This paper proposes a nonparametric two-sample hypothesis test to distinguish measures on metric spaces using pairwise distances and Gromov's mm-reconstruction theorem. By applying the Kolmogorov–Smirnov test to empirical distributions of distances from each sample's minimum row sum point, the method efficiently detects differences in underlying measures, demonstrating superior speed and power over energy tests on real flu data and synthetic examples.
We study the problem of distinguishing between two distributions on a metric space; i.e., given metric measure spaces $({\mathbb X}, d, μ_1)$ and $({\mathbb X}, d, μ_2)$, we are interested in the problem of determining from finite data whether or not $μ_1$ is $μ_2$. The key is to use pairwise distances between observations and, employing a reconstruction theorem of Gromov, we can perform such a test using a two sample Kolmogorov--Smirnov test. A real analysis using phylogenetic trees and flu data is presented.
Motivation & Objective
- To address the challenge of two-sample hypothesis testing when data arise from probability measures on non-Euclidean metric spaces, such as phylogenetic trees.
- To develop a method that avoids parametric assumptions and leverages intrinsic geometric structure rather than embedding into Euclidean space.
- To provide a computationally efficient alternative to energy-based tests, which require time-consuming permutation-based critical value computation.
- To validate the method on real-world data, particularly influenza phylogenetic trees across different seasons, to assess its utility in biological inference.
- To demonstrate that the test maintains high power even when measures differ only in scale or location, and is robust to the absence of a Fréchet mean.
Proposed method
- Utilizes Gromov's mm-reconstruction theorem, which characterizes a metric measure space up to isometry via the distribution of pairwise distances.
- For each sample, computes the distance matrix $ M_{ij} = d(x_i, x_j) $, then identifies the point $ x_{i_X} $ with the minimum row sum $ \sum_{i \neq j} d(x_j, x_i) $, serving as a proxy for the Fréchet mean.
- Constructs empirical distribution functions of distances $ d(x_{i_X}, x_i) $ for $ i \neq i_X $ and similarly for the second sample.
- Applies the two-sample Kolmogorov–Smirnov test to these two empirical distribution functions to assess whether the underlying measures are equal.
- Uses the fact that if the distributions of distances from the minimum row sum point are identical, then the underlying measures are equal up to isometry.
- Employs fast algorithms for computing BHV metric distances on phylogenetic trees to enable scalability on real biological data.
Experimental results
Research questions
- RQ1Can we distinguish two probability measures on a general metric space using only finite samples and pairwise distances?
- RQ2How can we construct a nonparametric two-sample test that avoids parametric modeling and is computationally efficient?
- RQ3Does the proposed test maintain high statistical power when the underlying measures differ only in scale or location?
- RQ4Can the method be effectively applied to non-Euclidean spaces such as the space of phylogenetic trees?
- RQ5How does the proposed test compare in power and speed to the two-sample energy test, especially for large datasets?
Key findings
- The proposed test successfully rejected the null hypothesis at the 95% significance level when comparing 1996 and 2007 flu data, indicating distinct underlying measures.
- The test demonstrated superior computational efficiency compared to the energy test, which requires computationally intensive permutation-based critical value estimation.
- When applied to split data from the 1996 flu season, the test failed to reject the null hypothesis, confirming internal consistency and distributional stability within a single season.
- The method achieved high power in detecting scale differences between samples, outperforming the energy test in such scenarios.
- The use of the minimum row sum point as a proxy for the Fréchet mean enabled robust testing even when the true mean does not exist.
- The distribution functions of distances from the minimum row sum point were found to be regular and well-behaved, supporting the validity of the Kolmogorov–Smirnov test application.
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.