English

Second-Order Asymptotics of Two-Sample Tests

Information Theory 2026-01-15 v1 math.IT

Abstract

In two-sampling testing, one observes two independent sequences of independent and identically distributed random variables distributed according to the distributions P1P_1 and P2P_2 and wishes to decide whether P1=P2P_1=P_2 (null hypothesis) or P1P2P_1\neq P_2 (alternative hypothesis). The Gutman test for this problem compares the empirical distributions of the observed sequences and decides on the null hypothesis if the Jensen-Shannon (JS) divergence between these empirical distributions is below a given threshold. This paper proposes a generalization of the Gutman test, termed \emph{divergence test}, which replaces the JS divergence by an arbitrary divergence. For this test, the exponential decay of the type-II error probability for a fixed type-I error probability is studied. First, it is shown that the divergence test achieves the optimal first-order exponent, irrespective of the choice of divergence. Second, it is demonstrated that the divergence test with an invariant divergence achieves the same second-order asymptotics as the Gutman test. In addition, it is shown that the Gutman test is the GLRT for the two-sample testing problem, and a connection between two-sample testing and robust goodness-of-fit testing is established.

Keywords

Cite

@article{arxiv.2601.09196,
  title  = {Second-Order Asymptotics of Two-Sample Tests},
  author = {K V Harsha and Jithin Ravi and Tobias Koch},
  journal= {arXiv preprint arXiv:2601.09196},
  year   = {2026}
}

Comments

Submitted to the 2026 IEEE International Symposium on Information Theory

R2 v1 2026-07-01T09:03:52.434Z