Table of Contents
Fetching ...

A Simple Geometric Proof of the Optimality of the Sequential Probability Ratio Test for Symmetric Bernoulli Hypotheses

Chirag Pabbaraju, Gregory Valiant, Rishi Verma

TL;DR

The paper provides a self-contained, constructive proof of the optimality of the Sequential Probability Ratio Test for distinguishing $p=\tfrac{1}{2}\pm\varepsilon$ by modeling coin flips as a biased random walk on a 2D grid and reinterpreting strategies as lattice colorings. It introduces a greedy, local-move framework that converts any policy into a linear difference policy $\mathcal{P}_c$, and shows that for each tradeoff parameter $\beta>0$ there exists a corresponding $c(\beta)$ that minimizes the Bayes-like risk $R(\beta)=(\delta^++\delta^-)+\beta(H^++H^-)$. The argument proceeds through five concrete steps—triangular recoloring, truncation to a linear frontier, gap-filling, level-extensions, and erasure of extraneous points—demonstrating that the linear policy achieves at least as good a risk as any alternative. The results recover the SPRT’s optimality in this symmetric Bernoulli setting and are presented in a way that invites generalization to broader Bayes risks and non-symmetric hypotheses.

Abstract

This paper revisits the classical problem of determining the bias of a weighted coin, where the bias is known to be either $p = 1/2 + \varepsilon$ or $p = 1/2 - \varepsilon$, while minimizing the expected number of coin tosses and the error probability. The optimal strategy for this problem is given by Wald's Sequential Probability Ratio Test (SPRT), which compares the log-likelihood ratio against fixed thresholds to determine a stopping time. Classical proofs of this result typically rely on analytical, continuous, and non-constructive arguments. In this paper, we present a discrete, self-contained proof of the optimality of the SPRT for this problem. We model the problem as a biased random walk on the two-dimensional (heads, tails) integer lattice, and model strategies as marked stopping times on this lattice. Our proof takes a straightforward greedy approach, showing how any arbitrary strategy may be transformed into the optimal, parallel-line "difference policy" corresponding to the SPRT, via a sequence of local perturbations that improve a Bayes risk objective.

A Simple Geometric Proof of the Optimality of the Sequential Probability Ratio Test for Symmetric Bernoulli Hypotheses

TL;DR

The paper provides a self-contained, constructive proof of the optimality of the Sequential Probability Ratio Test for distinguishing by modeling coin flips as a biased random walk on a 2D grid and reinterpreting strategies as lattice colorings. It introduces a greedy, local-move framework that converts any policy into a linear difference policy , and shows that for each tradeoff parameter there exists a corresponding that minimizes the Bayes-like risk . The argument proceeds through five concrete steps—triangular recoloring, truncation to a linear frontier, gap-filling, level-extensions, and erasure of extraneous points—demonstrating that the linear policy achieves at least as good a risk as any alternative. The results recover the SPRT’s optimality in this symmetric Bernoulli setting and are presented in a way that invites generalization to broader Bayes risks and non-symmetric hypotheses.

Abstract

This paper revisits the classical problem of determining the bias of a weighted coin, where the bias is known to be either or , while minimizing the expected number of coin tosses and the error probability. The optimal strategy for this problem is given by Wald's Sequential Probability Ratio Test (SPRT), which compares the log-likelihood ratio against fixed thresholds to determine a stopping time. Classical proofs of this result typically rely on analytical, continuous, and non-constructive arguments. In this paper, we present a discrete, self-contained proof of the optimality of the SPRT for this problem. We model the problem as a biased random walk on the two-dimensional (heads, tails) integer lattice, and model strategies as marked stopping times on this lattice. Our proof takes a straightforward greedy approach, showing how any arbitrary strategy may be transformed into the optimal, parallel-line "difference policy" corresponding to the SPRT, via a sequence of local perturbations that improve a Bayes risk objective.
Paper Structure (11 sections, 6 theorems, 46 equations, 8 figures)

This paper contains 11 sections, 6 theorems, 46 equations, 8 figures.

Key Result

Theorem 1

Consider the sequential hypothesis testing problem of deciding between $H_0:p=1/2-\varepsilon$ and $H_1:p=1/2+\varepsilon$. For any $c \ge 0$, consider the linear policy $\mathcal{P}_c$ having profile $(\delta_c, H_c)$. Let $\mathcal{P}$ be any other policy with profile $(\delta, H)$. Suppose that $

Figures (8)

  • Figure 1: A policy $\mathcal{P}$ truncated at a finite horizon. A point $(h,t)$ in the grid represents a state where we have observed $h$ heads and $t$ tails. The top left cell corresponds to the point $(0,0)$.
  • Figure 2: An overview of our algorithmic proof, which systematically converts any arbitrary policy $\mathcal{P}$ to a linear policy $\mathcal{P}_c$, while ensuring that the Bayes risk does not increase. Step 1 makes the upper and lower triangles monochromatic. Step 2 truncates the policy to the linear policy $\mathcal{P}_c$ beyond a suitably large horizon. Steps 3,4,5 together extend the linear policy by one level, by adding the outlined cells, and erasing the crossed out cells; repeating these latter steps finitely many times results in the desired linear policy $\mathcal{P}_c$.
  • Figure 3: Fixing colors of the hitting points in the upper and lower triangles of the policy.
  • Figure 4: Truncating a policy to a linear policy. Observe that any trajectory which stops before intersecting the dotted black line is unaffected. Only trajectories which intersect the green dotted lines may stop later; all other trajectories are unaffected or trimmed.
  • Figure 5: Filling in gaps at the next layer of the truncation boundary. Observe that a trajectory arriving at any of the cells outlined in green will go on to hit a blue cell with probability 1.
  • ...and 3 more figures

Theorems & Definitions (21)

  • Theorem 1: Optimality of the Linear Policy
  • Theorem 2: Optimality of the Linear Policy for Arbitrary Tradeoffs
  • Theorem 3: Hitting times for linear boundaries
  • Claim 4.1: Monochromatic Triangles
  • proof
  • Definition 1: Truncated Linear Policy
  • Claim 4.2: Truncation to Linear Policy
  • proof
  • Claim 4.3: Filling the Next Layer
  • proof
  • ...and 11 more