Two-Sample Testing with a Graph-Based Total Variation Integral Probability Metric

Alden Green,Sivaraman Balakrishnan,Ryan J. Tibshirani
2024-09-24
Abstract:We consider a novel multivariate nonparametric two-sample testing problem where, under the alternative, distributions $P$ and $Q$ are separated in an integral probability metric over functions of bounded total variation (TV IPM). We propose a new test, the graph TV test, which uses a graph-based approximation to the TV IPM as its test statistic. We show that this test, computed with an $\varepsilon$-neighborhood graph and calibrated by permutation, is minimax rate-optimal for detecting alternatives separated in the TV IPM. As an important special case, we show that this implies the graph TV test is optimal for detecting spatially localized alternatives, whereas the $\chi^2$ test is provably suboptimal. Our theory is supported with numerical experiments on simulated and real data.
Statistics Theory
What problem does this paper attempt to address?