PTED: A multi-dimensional two-sample test for scientific inference and generative machine learning
Connor Stone
Key points
From the paper's conclusion- I highlight a number of instructive sensitivity tests on PTED alongside other multi-dimensional two-sample tests for comparison.
Abstract
Two-sample tests are widely applicable in inference and generative modelling, yet users frequently fall back on heuristics and visual inspection due to lack of an accessible test that operates in multiple dimensions. I present Permutation Test using the Energy Distance (PTED), a Python implementation of a powerful two-sample test described in Székely and Rizzo [2004]. The test statistic is the energy distance, a metric on probability distributions that admits a natural sample estimator built from pairwise distances. A permutation test is run on energy distances to produce an exact two-sample test. Because the statistic depends on the data only through pairwise distances, the test applies in high dimensions, on learned feature representations, at large or small or imbalanced sample sizes, and to any data type on which a distance can be defined. An approximation to the formula allows PTED to scale linearly with both number of dimensions and samples while retaining most discriminative power. I highlight a number of instructive sensitivity tests on PTED alongside other multi-dimensional two-sample tests for comparison. PTED is the only method that is sensitive to all tests, though conventional Maximum Mean Discrepancy is identical for all but an over-fitting test.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Two-Sample Testing via Generative ProcessesarXiv · 2026
- Two-Sample Testing via Path-based InferencearXiv · 2026
- Beyond Pairwise Repulsion: Collective Diversity via Determinant Maximization in Diffusion SamplingarXiv · 2026
- Delaunay Weighted Two-sample Test for High-dimensional Data by Incorporating Geometric InformationStatistica Sinica · 2026
- Testing Conditional Distribution Equality Using Generative ModelsarXiv · 2026
- Finite-Sample Sensitivity of Kernel Metrics for Generative EvaluationarXiv · 2026