Simulation based sequential testing method with error guarantees

Anytime-valid simulation-based hypothesis testing

Machine Learning

Summary

Testing whether data comes from one of two models usually requires knowing their exact formulas. This paper deals with cases where you cannot write down these formulas but can only generate example data from both models. The authors build a testing method that can keep checking data as it arrives and decide at any time with proven limits on mistakes. Their approach gradually becomes more confident in identifying the true model as more data is collected.

What this means in practice

  • For statistical data analysts: Perform reliable sequential hypothesis tests without explicit model densities using simulation outputs from competing models.
  • For machine learning engineers: Evaluate competing generative models by sequentially testing which better fits observed data relying only on simulated samples.

Authors

Patrick Forré, Lydia Brenner

Abstract

For a given data distribution $(X_t)_{t \in \mathbb{N}} \sim Q$ i.i.d., we investigate the hypothesis testing problem: $H_0: Q = P_0$ vs. $H_1: Q = P_1$, for two different model probability distributions $P_0$ and $P_1$. In contrast to the standard setting, where analytic densities $p_0$ and $p_1$ are given, here, we consider the density-free setting, where we only have access to i.i.d. simulations $(Z^0_t)_{t \in \mathbb{N}} \sim P_0$ and $(Z^1_t)_{t \in \mathbb{N}} \sim P_1$. For this simulation-based hypothesis testing setting, we construct an e-test martingale, resulting in a sequential test with anytime-valid type-I error guarantees, approximate growth optimality, geometrically decaying type-II error bounds, and asymptotic power one. Most ingredients used in our constructions are variants of well known concepts. The value of this paper lies in the compact presentation of an effective, anytime-valid solution for the density-free simulation-based sequential hypothesis testing case.