Algorithm Search⌘K

Theoremresearch

Ville's inequality

Also called maximal inequality for nonnegative supermartingales.

A nonnegative supermartingale that starts at 1 ever reaches 1 / alpha with probability at most alpha. It makes sequential tests valid under optional stopping.

Ville's inequality bounds the probability that a nonnegative supermartingale ever climbs high: the chance that it ever reaches a level aa is at most its starting mean divided by aa. It is Markov's inequality for the whole path at once, not for one fixed time. For a test martingale, which starts at 1, it says that the wealth of a bettor against a true null ever reaches 1/α1/\alpha with probability at most α\alpha. This is what makes sequential tests and confidence sequences valid when the analyst checks the data after every observation and stops at will.

Statement

Theorem (Ville's inequality). Let (Mt)t≥0(M_t)_{t \ge 0} be a supermartingale with respect to a filtration (Ft)t≥0(\mathcal F_t)_{t \ge 0} under a probability PP, with Mt≥0M_t \ge 0 for all tt. Then for every a>0a > 0,

P(sup⁡t≥0Mt≥a)≤E[M0]a.P\Bigl(\sup_{t \ge 0} M_t \ge a\Bigr) \le \frac{E[M_0]}{a}.

In particular, if M0=1M_0 = 1 and 0<α≤10 < \alpha \le 1, then P(∃t≥0:Mt≥1/α)≤αP(\exists t \ge 0: M_t \ge 1/\alpha) \le \alpha.

Here tt runs over {0,1,2,…}\{0, 1, 2, \ldots\}. The supermartingale property means that each MtM_t is Ft\mathcal F_t-measurable and integrable and E[Mt∣Ft−1]≤Mt−1E[M_t \mid \mathcal F_{t-1}] \le M_{t-1} almost surely for t≥1t \ge 1.

In plain words

A gambler starts with one unit of money and makes a sequence of bets that are fair or worse for the gambler, and can never owe money. The rule says that the chance that the gambler is ever twenty times richer than at the start is at most one in twenty. It does not matter how the gambler picks the bets, when the gambler looks at the balance, or whether the game ever ends. A test of a hypothesis can use the same idea. The tester bets against the hypothesis. If the hypothesis is true, the bets are fair, so a big win is rare. The tester can look after every new data point and stop at the first big win, and the false alarm rate stays below the chosen level.

Proof

Fix a>0a > 0. Let τ=inf⁡{t≥0:Mt≥a}\tau = \inf\{t \ge 0 : M_t \ge a\}, with inf⁡∅=∞\inf \emptyset = \infty. The event {τ≤t}\{\tau \le t\} depends only on M0,…,MtM_0, \ldots, M_t, so τ\tau is a stopping time and {τ≥t}={τ≤t−1}c∈Ft−1\{\tau \ge t\} = \{\tau \le t - 1\}^c \in \mathcal F_{t-1} for t≥1t \ge 1.

Step 1: the stopped mean does not grow. Fix an integer N≥0N \ge 0. For every outcome,

Mτ∧N=M0+∑t=1N1{τ≥t} (Mt−Mt−1),M_{\tau \wedge N} = M_0 + \sum_{t=1}^{N} \mathbf 1\{\tau \ge t\}\,(M_t - M_{t-1}),

because the sum telescopes up to τ∧N\tau \wedge N and its later terms are 0. Each term is integrable. Since 1{τ≥t}\mathbf 1\{\tau \ge t\} is Ft−1\mathcal F_{t-1}-measurable and bounded,

E[1{τ≥t}(Mt−Mt−1)]=E[1{τ≥t}(E[Mt∣Ft−1]−Mt−1)]≤0.E\bigl[\mathbf 1\{\tau \ge t\}(M_t - M_{t-1})\bigr] = E\bigl[\mathbf 1\{\tau \ge t\}\bigl(E[M_t \mid \mathcal F_{t-1}] - M_{t-1}\bigr)\bigr] \le 0.

So E[Mτ∧N]≤E[M0]E[M_{\tau \wedge N}] \le E[M_0].

Step 2: Markov's step. On {τ≤N}\{\tau \le N\} we have Mτ∧N=Mτ≥aM_{\tau \wedge N} = M_\tau \ge a, and everywhere Mτ∧N≥0M_{\tau \wedge N} \ge 0. Hence

a P(τ≤N)≤E[Mτ∧N 1{τ≤N}]≤E[Mτ∧N]≤E[M0].a\,P(\tau \le N) \le E\bigl[M_{\tau \wedge N}\,\mathbf 1\{\tau \le N\}\bigr] \le E[M_{\tau \wedge N}] \le E[M_0].

Step 3: let N→∞N \to \infty. The events {τ≤N}\{\tau \le N\} increase with NN to {τ<∞}={∃t:Mt≥a}\{\tau < \infty\} = \{\exists t: M_t \ge a\}. By continuity of PP from below, P(∃t:Mt≥a)≤E[M0]/aP(\exists t: M_t \ge a) \le E[M_0]/a.

Step 4: from "some Mt≥aM_t \ge a" to "sup⁡tMt≥a\sup_t M_t \ge a". The supremum can equal aa without being attained. For every a′a' with 0<a′<a0 < a' < a, the event {sup⁡tMt≥a}\{\sup_t M_t \ge a\} is contained in {∃t:Mt≥a′}\{\exists t: M_t \ge a'\}, so by Step 3 its probability is at most E[M0]/a′E[M_0]/a'. Letting a′↑aa' \uparrow a gives the bound E[M0]/aE[M_0]/a. ■\blacksquare

Step 1 is the optional stopping theorem for the bounded stopping time τ∧N\tau \wedge N, written out. The proof never uses the distribution of the increments, only their conditional means and the sign of MM.

Consequences

  • Anytime-valid tests. If MM is a test supermartingale for every distribution in a null H0\mathcal H_0, the rule "reject at the first tt with Mt≥1/αM_t \ge 1/\alpha" has type I error at most α\alpha under every P∈H0P \in \mathcal H_0, for every stopping rule the analyst uses, including never stopping. The mixture SPRT is this rule with a mixture likelihood ratio.
  • Anytime-valid p-values. pt=min⁡(1,1/max⁡s≤tMs)p_t = \min(1, 1/\max_{s \le t} M_s) satisfies P(∃t:pt≤α)≤αP(\exists t: p_t \le \alpha) \le \alpha, because {∃t:pt≤α}={∃t:Mt≥1/α}\{\exists t: p_t \le \alpha\} = \{\exists t: M_t \ge 1/\alpha\} for α∈(0,1]\alpha \in (0, 1].
  • Confidence sequences. If Mt(θ)M_t(\theta) is a test martingale when θ\theta is the true parameter, the sets Ct={θ:Mt(θ)<1/α}C_t = \{\theta : M_t(\theta) < 1/\alpha\} contain the true θ\theta at all times at once with probability at least 1−α1 - \alpha. See confidence sequence.
  • Wald's bound for the SPRT. In the SPRT the likelihood ratio Ln=∏i≤nf1(Xi)/f0(Xi)L_n = \prod_{i \le n} f_1(X_i)/f_0(X_i) is a test martingale under H0H_0. Rejecting when Ln≥AL_n \ge A therefore has type I error at most 1/A1/A, with no approximation.
  • Line-crossing bounds. Let StS_t be a sum of i.i.d. N(0,1)N(0, 1) variables. For λ>0\lambda > 0, exp⁡(λSt−λ2t/2)\exp(\lambda S_t - \lambda^2 t/2) is a test martingale. On the event that St≥a+btS_t \ge a + bt for some tt, with a,b>0a, b > 0 and λ=2b\lambda = 2b, the martingale is at least exp⁡(2ab+2b2t−2b2t)=e2ab\exp(2ab + 2b^2 t - 2b^2 t) = e^{2ab}. So P(∃t:St≥a+bt)≤e−2abP(\exists t: S_t \ge a + bt) \le e^{-2ab}. The same argument with a sub-Gaussian or bounded increment gives the time-uniform versions of the Hoeffding and Azuma inequalities surveyed by Howard, Ramdas, McAuliffe and Sekhon (2020).
  • E-processes. Fatou's lemma applied to Step 1 shows E[Mτ]≤E[M0]E[M_\tau] \le E[M_0] for every stopping time τ\tau, so a test supermartingale is an e-process; see test martingale.
  • Continuous time. If (Mt)t≥0(M_t)_{t \ge 0}, with real tt, is a nonnegative supermartingale with right-continuous paths, apply the theorem to the times {k2−j:k≥0}\{k 2^{-j} : k \ge 0\} and let j→∞j \to \infty. Right continuity makes the supremum over these times equal to the supremum over all tt, so the same bound holds.

Tightness

The constant cannot be improved.

  • A two-point martingale. Let a≥1a \ge 1, M0=1M_0 = 1, and let Mt=aM_t = a for all t≥1t \ge 1 with probability 1/a1/a and Mt=0M_t = 0 for all t≥1t \ge 1 otherwise. This is a nonnegative martingale and P(sup⁡tMt≥a)=1/a=E[M0]/aP(\sup_t M_t \ge a) = 1/a = E[M_0]/a.
  • Geometric Brownian motion. Let BB be standard Brownian motion and Mt=exp⁡(Bt−t/2)M_t = \exp(B_t - t/2), a continuous nonnegative martingale with M0=1M_0 = 1. For a>1a > 1 let τ\tau be the first time Mt=aM_t = a. Up to τ\tau the process stays in [0,a][0, a], so optional stopping at τ∧T\tau \wedge T gives E[Mτ∧T]=1E[M_{\tau \wedge T}] = 1. As T→∞T \to \infty, MT→0M_T \to 0 on {τ=∞}\{\tau = \infty\} because BT−T/2→−∞B_T - T/2 \to -\infty, and dominated convergence gives a P(τ<∞)=1a\,P(\tau < \infty) = 1. So equality holds with no overshoot. For Gaussian sums in discrete time the martingale jumps over the level, and the inequality is strict.
  • Nonnegativity is needed. Let Mt=1+StM_t = 1 + S_t with StS_t a simple symmetric random walk. It is a martingale with M0=1M_0 = 1, but it takes negative values, and by recurrence it reaches every level aa with probability 1, far above 1/a1/a.
  • The supermartingale property is needed. Mt=exp⁡(λSt)M_t = \exp(\lambda S_t) for a Gaussian walk is nonnegative and starts at 1, but it is a submartingale, and it also reaches every level with probability 1 when λ≠0\lambda \ne 0.
  • Fixed time against all times. Markov's inequality at one fixed tt gives the same number E[M0]/aE[M_0]/a for P(Mt≥a)P(M_t \ge a). Ville's inequality says that the bound for all times at once costs nothing more. The price of uniformity is paid in power. At a planned sample size nn, the rule "reject if Mt≥1/αM_t \ge 1/\alpha for some t≤nt \le n" is a level-α\alpha test, so by the Neyman-Pearson lemma its power against a simple alternative is at most that of the most powerful fixed-sample test with nn observations.

History

Jean Ville proved the inequality for nonnegative martingales in his 1939 thesis, Étude critique de la notion de collectif, where he used martingales, a word he brought into probability, to criticize von Mises's definition of randomness; Shafer, Shen, Vereshchagin and Vovk (2011) tell this history and name the inequality after him. The statement is the special case for nonnegative supermartingales of Doob's maximal inequality, in the form found in textbooks such as Durrett, Section 4.4. Its use as the basis of anytime-valid inference, test martingales and time-uniform concentration bounds is surveyed by Howard, Ramdas, McAuliffe and Sekhon (2020) and Ramdas, Grünwald, Vovk and Shafer (2023).

References

  1. Rick Durrett, Probability, Theory and Examples, fifth edition, Cambridge University Press, 2019, Section 4.4 (Doob's inequality, convergence in L^p)
  2. Glenn Shafer, Alexander Shen, Nikolai Vereshchagin and Vladimir Vovk, Test martingales, Bayes factors and p-values, Statistical Science 26(1) (2011), pages 84 to 101, Ville's inequality for test martingales and its history in Ville's 1939 thesis
  3. Steven R. Howard, Aaditya Ramdas, Jon McAuliffe and Jasjeet Sekhon, Time-uniform Chernoff bounds via nonnegative supermartingales, Probability Surveys 17 (2020), pages 257 to 317, Ville's maximal inequality as the tool that turns nonnegative supermartingales into time-uniform bounds
  4. Aaditya Ramdas, Peter Grünwald, Vladimir Vovk and Glenn Shafer, Game-theoretic statistics and safe anytime-valid inference, Statistical Science 38(4) (2023), pages 576 to 601, Ville's inequality as the basis of anytime-valid tests, p-values and confidence sequences

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/WDQ3S8/text.yaml