We study the problem of designing consistent sequential one- and two-sample tests in a nonparametric setting. Guided by the principle of \emph{testing by betting}, we reframe the task of constructing sequential tests into that of selecting payoff functions that maximize the wealth of a fictitious bettor, betting against the null in a repeated game. The resulting sequential test rejects the null when the bettor's wealth process exceeds an appropriate threshold. We propose a general strategy for selecting payoff functions as predictable estimates of the \emph{witness function} associated with the variational representation of some statistical distance measures, such as integral probability metrics~(IPMs) and $\varphi$-divergences. Overall, this approach ensures that (i) the wealth process is a non-negative martingale under the null, thus allowing tight control over the type-I error, and (ii) it grows to infinity almost surely under the alternative, thus implying consistency. We accomplish this by designing composite e-processes that remain bounded in expectation under the null, but grow to infinity under the alternative. We instantiate the general test for some common distance metrics to obtain sequential versions of Kolmogorov-Smirnov~(KS) test, $\chi^2$-test and kernel-MMD test, and empirically demonstrate their ability to adapt to the unknown hardness of the problem. The sequential testing framework constructed in this paper is versatile, and we end with a discussion on applying these ideas to two related problems: testing for higher-order stochastic dominance, and testing for symmetry.
翻译:我们研究在非参数环境下设计一致的顺序一和二模测试的问题。 遵循 \ emph{ 通过 赌注检验 的原则, 我们重新定义了以下任务: 将顺序测试构建为选择支付功能, 从而在重复的游戏中最大限度地增加虚设赌注的财富, 从而在游戏中打赌无效。 由此产生的连续测试在赌徒的财富过程超过一个适当的门槛时否定了无效。 我们提出了一个总战略, 选择支付功能作为可预见地估算 \ eemph{ 证人功能} 。 与某些统计距离措施的变异性表述相关联, 如整体概率衡量 ~ (IPs) 和 $- varphipe- diverences 。 总的来说, 这种方法确保 (i) 当赌徒的财富过程在游戏中是非否定性的, 从而允许对类型一错误进行严格控制, 并且 (ii) 在替代标准下, 它几乎变得不精确, 从而暗示一致性。 我们通过设计一些在不定期的端端端端的复合电子程序来完成,, 但是渐渐渐渐在标准测试中, 度测试中, 我们的测测测测测测测测测测测测为普通的。