English

An Efficient and Distribution-Free Two-Sample Test Based on Energy Statistics and Random Projections

Methodology 2017-07-18 v1

Abstract

A common disadvantage in existing distribution-free two-sample testing approaches is that the computational complexity could be high. Specifically, if the sample size is NN, the computational complexity of those two-sample tests is at least O(N2)O(N^2). In this paper, we develop an efficient algorithm with complexity O(NlogN)O(N \log N) for computing energy statistics in univariate cases. For multivariate cases, we introduce a two-sample test based on energy statistics and random projections, which enjoys the O(KNlogN)O(K N \log N) computational complexity, where KK is the number of random projections. We name our method for multivariate cases as Randomly Projected Energy Statistics (RPES). We can show RPES achieves nearly the same test power with energy statistics both theoretically and empirically. Numerical experiments also demonstrate the efficiency of the proposed method over the competitors.

Keywords

Cite

@article{arxiv.1707.04602,
  title  = {An Efficient and Distribution-Free Two-Sample Test Based on Energy Statistics and Random Projections},
  author = {Cheng Huang and Xiaoming Huo},
  journal= {arXiv preprint arXiv:1707.04602},
  year   = {2017}
}

Comments

27 pages, 6 figures

R2 v1 2026-06-22T20:47:30.502Z