English

A Martingale Kernel Two-Sample Test

Methodology 2026-02-24 v2 Statistics Theory Statistics Theory

Abstract

The Maximum Mean Discrepancy (MMD) is a widely used multivariate distance metric for two-sample testing. The standard MMD test statistic has an intractable null distribution typically requiring costly resampling or permutation approaches for calibration. In this work we leverage a martingale interpretation of the estimated squared MMD to propose martingale MMD (mMMD), a quadratic-time statistic which has a limiting standard Gaussian distribution under the null. Moreover we show that the test is consistent against any fixed alternative and for large sample sizes, mMMD offers substantial computational savings over the standard MMD test, with only a minor loss in power.

Keywords

Cite

@article{arxiv.2510.11853,
  title  = {A Martingale Kernel Two-Sample Test},
  author = {Anirban Chatterjee and Aaditya Ramdas},
  journal= {arXiv preprint arXiv:2510.11853},
  year   = {2026}
}

Comments

Accepted for publication in the proceedings of The 37th International Conference on Algorithmic Learning Theory