Nonparametric Two-Sample Testing by Betting
Not on the map. Why?
Abstract (arXiv)
We study the problem of designing consistent sequential two-sample tests in a nonparametric setting. Guided by the principle of testing by betting, we reframe this task into that of selecting a sequence of payoff functions that maximize the wealth of a fictitious bettor, betting against the null in a repeated game. In this setting, the relative increase in the bettor's wealth has a precise interpretation as the measure of evidence against the null, and thus our sequential test rejects the null when the wealth crosses an appropriate threshold. We develop a general framework for setting up the betting game for two-sample testing, in which the payoffs are selected by a prediction strategy as data-driven predictable estimates of the witness function associated with the variational representation of some statistical distance measures, such as integral probability metrics (IPMs). We then formally relate the statistical properties of the test~(such as consistency, type-II error exponent and expected sample size) to the regret of the corresponding prediction strategy. We construct a practical sequential two-sample test by instantiating our general strategy with the kernel-MMD metric, and demonstrate its ability to adapt to the difficulty of the unknown alternative through theoretical and empirical results. Our framework is versatile, and easily extends to other problems; we illustrate this by applying our approach to construct consistent tests for the following problems: (i) time-varying two-sample testing with non-exchangeable observations, and (ii) an abstract class of "invariant" testing problems, including symmetry and independence testing.
Key facts. Cited by 36 papers in the map (data through 7 Oct 2026). First posted on arXiv 16 Dec 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 3; 2023: 3; 2024: 8; 2025: 11; 2026: 11.
36 papers.
Sort:
- 2022E-detectors: a nonparametric framework for sequential change detectioncited by 27
- 2023Auditing Fairness by Bettingcited by 24
- 2024Protected Test-Time Adaptation via Online Entropy Matching: A Betting Approachcited by 22
- 2023Sequential Predictive Two-Sample and Independence Testingcited by 20
- 2022Sequential Kernelized Independence Testingcited by 15
- 2024Active, anytime-valid risk controlling prediction setscited by 14
- 2024Adaptive Learn-then-Test: Statistically Valid and Efficient Hyperparameter Selectioncited by 13
- 2025WATCH: Adaptive Monitoring for AI Deployments via Weighted-Conformal Martingalescited by 13
- 2024Online Detection of LLM-Generated Texts via Sequential Hypothesis Testing by Bettingcited by 11
- 2022E-Valuating Classifier Two-Sample Testscited by 10
- 2025On Continuous Monitoring of Risk Violations under Unknown Shiftcited by 9
- 2024An Auditing Test To Detect Behavioral Shift in Language Modelscited by 8
24 more
- 2023Deep anytime-valid hypothesis testingcited by 7
- 2025On Stopping Times of Power-one Sequential Tests: Tight Lower and Upper Boundscited by 5
- 2025Sequentially Auditing Differential Privacycited by 5
- 2025Optimistic Interior Point Methods for Sequential Hypothesis Testing by Bettingcited by 4
- 2025Auditing Pay-Per-Token in Large Language Modelscited by 4
- 2024I Bet You Did Not Mean That: Testing Semantic Importance via Bettingcited by 3
- 2026Testing For Distribution Shifts with Conditional Conformal Test Martingalescited by 3
- 2024Combining Evidence Across Filtrationscited by 2
- 2025Stopping Rules for Stochastic Gradient Descent via Anytime-Valid Confidence Sequencescited by 2
- 2024Sequential Kernelized Stein Discrepancycited by 1
- 2026Global Sequential Testing for Multi-Stream Auditingcited by 1
- 2026Multi-Armed Sequential Hypothesis Testing by Bettingcited by 1
- 2025Kernel conditional tests from learning-theoretic boundscited by 0
- 2025Matched-Pair Experimental Design with Active Learningcited by 0
- 2025Technical note on Sequential Test-Time Adaptation via Martingale-Driven Fisher Promptingcited by 0
- 2025Optimal Anytime-Valid Tests for Composite Nullscited by 0
- 2026A Martingale Kernel Independence Testcited by 0
- 2026Semi-Supervised Hypothesis Testing by Betting on Predictionscited by 0
- 2026Sequential Kernel-based Conditional Independence Testing via Adaptive Bettingcited by 0
- 2026Anytime-Valid Confirmation of Covariate Balance for Prespecified Correctionscited by 0
- 2026From Approachability Residuals to Anytime-Valid Evidence: The Online Convex Geometry of Testing by Bettingcited by 0
- 2026A complete characterization of sequential testability and change detectability in i.i.d. modelscited by 0
- 2026The Price of Peeking: Anytime-Valid Leakage Detection on ML-KEM EM Tracescited by 0
- 2026Always-On Experimentationcited by 0
- 2026Always-On Experimentation30 Sep 2026
- 2026The Price of Peeking: Anytime-Valid Leakage Detection on ML-KEM EM Traces27 Sep 2026
- 2026A complete characterization of sequential testability and change detectability in i.i.d. models4 Sep 2026
- 2026From Approachability Residuals to Anytime-Valid Evidence: The Online Convex Geometry of Testing by Betting10 Aug 2026
- 2026Anytime-Valid Confirmation of Covariate Balance for Prespecified Corrections25 Jul 2026
- 2026Sequential Kernel-based Conditional Independence Testing via Adaptive Betting17 Jun 2026
- 2026Semi-Supervised Hypothesis Testing by Betting on Predictions27 May 2026
- 2026A Martingale Kernel Independence Test21 May 2026
- 2026Multi-Armed Sequential Hypothesis Testing by Betting18 Mar 2026
- 2026Global Sequential Testing for Multi-Stream Auditing25 Feb 2026
- 2026Testing For Distribution Shifts with Conditional Conformal Test Martingales14 Feb 2026
- 2025Optimal Anytime-Valid Tests for Composite Nulls23 Dec 2025
24 more
- 2025Stopping Rules for Stochastic Gradient Descent via Anytime-Valid Confidence Sequences15 Dec 2025
- 2025Auditing Pay-Per-Token in Large Language Models5 Oct 2025
- 2025Technical note on Sequential Test-Time Adaptation via Martingale-Driven Fisher Prompting4 Oct 2025
- 2025Matched-Pair Experimental Design with Active Learning12 Sep 2025
- 2025Sequentially Auditing Differential Privacy8 Sep 2025
- 2025On Continuous Monitoring of Risk Violations under Unknown Shift19 Jun 2025
- 2025Kernel conditional tests from learning-theoretic bounds4 Jun 2025
- 2025WATCH: Adaptive Monitoring for AI Deployments via Weighted-Conformal Martingales7 May 2025
- 2025On Stopping Times of Power-one Sequential Tests: Tight Lower and Upper Bounds28 Apr 2025
- 2025Optimistic Interior Point Methods for Sequential Hypothesis Testing by Betting11 Feb 2025
- 2024Online Detection of LLM-Generated Texts via Sequential Hypothesis Testing by Betting29 Oct 2024
- 2024An Auditing Test To Detect Behavioral Shift in Language Models25 Oct 2024
- 2024Sequential Kernelized Stein Discrepancy26 Sep 2024
- 2024Adaptive Learn-then-Test: Statistically Valid and Efficient Hyperparameter Selection24 Sep 2024
- 2024Protected Test-Time Adaptation via Online Entropy Matching: A Betting Approach14 Aug 2024
- 2024Active, anytime-valid risk controlling prediction sets15 Jun 2024
- 2024I Bet You Did Not Mean That: Testing Semantic Importance via Betting29 May 2024
- 2024Combining Evidence Across Filtrations15 Feb 2024
- 2023Deep anytime-valid hypothesis testing30 Oct 2023
- 2023Auditing Fairness by Betting27 May 2023
- 2023Sequential Predictive Two-Sample and Independence Testing29 Apr 2023
- 2022Sequential Kernelized Independence Testing14 Dec 2022
- 2022E-Valuating Classifier Two-Sample Tests24 Oct 2022
- 2022E-detectors: a nonparametric framework for sequential change detection7 Mar 2022
- 2022E-detectors: a nonparametric framework for sequential change detectioncited by 27
- 2023Auditing Fairness by Bettingcited by 24
- 2024Protected Test-Time Adaptation via Online Entropy Matching: A Betting Approachcited by 22
- 2023Sequential Predictive Two-Sample and Independence Testingcited by 20
- 2022Sequential Kernelized Independence Testingcited by 15
- 2024Active, anytime-valid risk controlling prediction setscited by 14
- 2024Adaptive Learn-then-Test: Statistically Valid and Efficient Hyperparameter Selectioncited by 13
- 2025WATCH: Adaptive Monitoring for AI Deployments via Weighted-Conformal Martingalescited by 13
- 2024Online Detection of LLM-Generated Texts via Sequential Hypothesis Testing by Bettingcited by 11
- 2022E-Valuating Classifier Two-Sample Testscited by 10
- 2025On Continuous Monitoring of Risk Violations under Unknown Shiftcited by 9
- 2024An Auditing Test To Detect Behavioral Shift in Language Modelscited by 8
12 most cited of 36 All 36 (JSON)
- 2026Always-On Experimentation30 Sep 2026
- 2026The Price of Peeking: Anytime-Valid Leakage Detection on ML-KEM EM Traces27 Sep 2026
- 2026A complete characterization of sequential testability and change detectability in i.i.d. models4 Sep 2026
- 2026From Approachability Residuals to Anytime-Valid Evidence: The Online Convex Geometry of Testing by Betting10 Aug 2026
- 2026Anytime-Valid Confirmation of Covariate Balance for Prespecified Corrections25 Jul 2026
- 2026Sequential Kernel-based Conditional Independence Testing via Adaptive Betting17 Jun 2026
- 2026Semi-Supervised Hypothesis Testing by Betting on Predictions27 May 2026
- 2026A Martingale Kernel Independence Test21 May 2026
- 2026Multi-Armed Sequential Hypothesis Testing by Betting18 Mar 2026
- 2026Global Sequential Testing for Multi-Stream Auditing25 Feb 2026
- 2026Testing For Distribution Shifts with Conditional Conformal Test Martingales14 Feb 2026
- 2025Optimal Anytime-Valid Tests for Composite Nulls23 Dec 2025
12 newest of 36 All 36 (JSON)