Alphabeta Math
Pipeline-generated
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

✓ 3 results · all verified · 2 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 1 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Sequential likelihood-ratio tests

1 · Prerequisites

2 · Summary

Objective

For two specified laws P0 and P1 whose restrictions to each finite-time sigma-algebra are equivalent, this page defines a two-boundary sequential likelihood-ratio rule. It proves the terminal type-I and type-II error bounds without assuming the rule stops almost surely. Separately, for IID observations with mutually equivalent one-observation laws, finite absolute log-likelihood means, and strictly negative and positive drift under P0 and P1, it proves almost-sure termination. The procedure need not terminate outside those drift hypotheses. No expected sample-size bound, Wald optimality result, or exact Wald approximate-boundary formula is asserted.

3 · Logical flowchart

4 · Definitions, theorems and proofs

AlgorithmAlgorithm: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Sequential likelihood-ratio test

Definition

Assume the Axiom of Choice, which states that every family of nonempty sets has a choice function. Let (Ω,F,(Ft)t≥0) be a discrete filtration on a common measurable space and let P0,P1 be probability measures on it. Assume that for every t≥0, the restrictions P0∣Ft and P1∣Ft are mutually absolutely continuous: each restriction assigns measure zero to exactly the same Ft events as the other. For each t, choose a nonnegative Ft-measurable representative Lt of the likelihood-ratio density d(P1∣Ft)/d(P0∣Ft) Likelihood ratio as a Radon–Nikodym derivative. The filtration and stopping-time conventions are those of Filtration and filtered probability space and Discrete stopping time.

Input thresholds α,β∈(0,1). At times t=1,2,…, compute Lt and apply these instructions:

  1. If Lt≥1/α, stop and decide H1.
  2. Otherwise, if Lt≤β, stop and decide H0.
  3. Otherwise continue to the next observation.

The two boundaries are disjoint because β<1<1/α. The output time is τ=inf⁡{t≥1:Lt≥1/α or Lt≤β},inf⁡∅=∞. If τ=∞, the procedure has no finite terminal decision. It does not itself assert that a crossing occurs.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

Finite-sample likelihood ratio for iid observations

Statement

Assume AC. Let P0,P1 be probability measures on a common measurable space and let (Xi)i≥1 be random elements of (S,Σ) that are IID under each Pj, with one-coordinate law Qj. Suppose Q1≪Q0, let λ=dQ1/dQ0 be a nonnegative representative, and put Ft=σ(X1,…,Xt). For every t≥1, Lt:=∏i=1tλ(Xi) is a version of d(P1∣Ft)/d(P0∣Ft).

Facts & Assumptions

Given: Assume AC. Let P0,P1 be probability measures on (Ω,F); under each Pj, let (Xi)i≥1 be IID with common law Qj on (S,Σ). Assume Q1≪Q0 and let λ represent dQ1/dQ0.

[A1]

The Axiom of Choice: every family of nonempty sets has a choice function; AC is the hypothesis used by the supplied Radon–Nikodym likelihood-ratio definition.

[F1]

Identical distribution and IID families and Independent random elements: IID means mutual independence of the coordinate random elements and a common one-coordinate law.

[F2]

Independent random elements are characterized by finite rectangle probabilities: for every finite list of distinct coordinates and measurable coordinate sets, the joint rectangle probability is the product of the marginal probabilities.

[F3]

Measurable rectangles in a product of measurable spaces and The product sigma-algebra and its finite iterates: finite products use the sigma-algebra generated by all-coordinate measurable rectangles.

[F4]

For sigma-finite factors, the product measure exists, has the rectangle formula, is sigma-finite, and is unique: products of probability measures exist, have the rectangle product formula, and are unique with that formula.

[F5]

Law or distribution of a random element and The law of a random element is a probability measure: the law of a random element is its pushforward probability measure.

[F6]

Pi-systems and Measures agreeing on a generating pi-system are equal under an increasing finite-measure exhaustion from that pi-system: a generating pi-system with a common finite-measure exhaustion determines two measures.

[F7]

Likelihood ratio as a Radon–Nikodym derivative: under AC, λ is a nonnegative measurable representative of the Radon–Nikodym density class.

[F8]

Likelihood-ratio change of measure: if Q1≪Q0, then ∫gλ dQ0=∫g dQ1 for every nonnegative measurable g.

[F9]

The indefinite integral of a nonnegative measurable function is a measure: B↦∫Bh dμ is a measure for nonnegative measurable h.

[F10]

Tonelli's theorem for nonnegative measurable functions on a sigma-finite product: nonnegative product integrals can be evaluated as iterated integrals.

[F11]

Monotone convergence for the integral: integrals of increasing nonnegative measurable functions converge to the integral of their pointwise limit.

[F12]

Continuous functions on Euclidean spaces are Borel measurable: under countable choice, a continuous map between finite-dimensional Euclidean spaces is Borel measurable; AC implies this choice principle.

[F13]

Composition with a Borel measurable outer map preserves measurability: the composition of measurable maps is measurable.

Proof

1.1F1F2F3F4F5F6F8

By [F8] with g=1, ∫λ dQ0=1, so N={λ=∞} is Q0-null and hence Q1-null. Set λ=0 on N; this preserves its density class and gives a finite nonnegative representative. Now fix t≥1 and j∈{0,1}. The vector Yt=(X1,…,Xt) is measurable into the finite product sigma-algebra because preimages of all-coordinate rectangles are finite intersections of coordinate events, and those rectangles generate that sigma-algebra by [F3]. Its law μj,t is a probability measure by [F5]. On every rectangle R=∏i=1tBi, [F1] and [F2] give μj,t(R)=∏iQj(Bi). Repeated application of [F4] constructs Qj⊗t with those same rectangle masses. The all-coordinate rectangles form a pi-system by [F3] and [F6], generate the product sigma-algebra, and have a finite exhaustion consisting of the whole space, whose mass is one for both measures. Hence [F6] gives μj,t=Qj⊗t.

2.1A1F3F4F6F7F8F9F10F12F13step 1.1

Define Λt(x1,…,xt)=(λ(x1),…,λ(xt)). Preimages of product rectangles are finite intersections of measurable coordinate preimages, so [F3] makes Λt measurable. The finite multiplication map mt:Rt→R, mt(y)=∏i=1tyi, is continuous: the two-coordinate multiplication map is continuous by ∣ab−a′b′∣≤∣a∣∣b−b′∣+∣b′∣∣a−a′∣, and finite products follow by induction. Thus [F12] makes mt Borel and [F13] makes ht=mt∘Λt measurable. By [F9], νt(B):=∫Bht dQ0⊗t is a measure. For each rectangle R=∏iBi, repeated Tonelli integration, justified by induction on the finite number t of factors, gives νt(R)=∏i=1t∫Biλ dQ0=∏i=1tQ1(Bi), where each factor uses [F8]. This is the rectangle formula for Q1⊗t by [F4]. The two measures agree on the generating pi-system and both have total mass one, so [F6] gives νt=Q1⊗t.

3.1F3F5F7F11step 1.1step 2.1∎

If A∈Ft=σ(Yt), then A=Yt−1(B) for some product-measurable B: the family of such preimages is a sigma-algebra and is exactly the sigma-algebra generated by Yt. The definition of law [F5] gives the integral change-of-variables identity first for indicators and nonnegative simple functions; increasing simple approximation and [F11] extend it to ht1B. Thus, using steps 1.1 and 2.1, P1(A)=Q1⊗t(B)=∫Bht dQ0⊗t=∫Aht(Yt) dP0. This is the Radon–Nikodym characterization of Lt=ht(Yt).

Source notes

Wolpert writes the iid likelihood ratio as the product of one-observation density ratios in §1.2, PDF p. 4. Durrett Theorem 2.1.11, printed p. 48, proves the finite iid product-law identity by checking rectangles and using pi-system uniqueness. The density factorization above is proved locally for general one-observation laws with Q1≪Q0.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

Terminal error bounds for a sequential likelihood-ratio test

Statement

Assume AC. Under the hypotheses of Sequential likelihood-ratio test, the boundary rule τ is a stopping time and, for the specified decisions, P0(τ<∞, Lτ≥1/α)≤α,P1(τ<∞, Lτ≤β)≤β. These bounds concern terminal errors and do not assume that τ is finite almost surely.

Facts & Assumptions

Given: Assume AC. Let P0,P1 be probability measures on (Ω,F) with a common discrete filtration (Ft)t≥0, equivalent restrictions at each finite t, and likelihood-ratio density representatives Lt=d(P1∣Ft)/d(P0∣Ft). Let α,β∈(0,1) and let τ and the terminal decisions be as in the algorithm.

[A1]

The Axiom of Choice: AC states that every family of nonempty sets has a choice function; the supplied likelihood-ratio and conditional-expectation constructions use AC.

[F1]

Probability measures and probability spaces: each Pj is a probability measure, so Pj(Ω)=1.

[F2]

Sequential likelihood-ratio test: the rule stops at the first t≥1 with Lt≥1/α or Lt≤β, decides H1 at the upper boundary and H0 at the lower.

[F3]

Likelihood ratio as a Radon–Nikodym derivative: Lt is a nonnegative measurable representative of the finite-time Radon–Nikodym density.

[F4]

Likelihood-ratio change of measure: if P1∣Ft≪P0∣Ft, then ∫gLt dP0=∫g dP1 on Ft for every nonnegative measurable g.

[F5]

Filtration and filtered probability space and Adapted and integrable stochastic process: Ft is increasing, and an adapted process has each Lt measurable with respect to Ft.

[F6]

Conditional expectation given a sigma algebra: a conditional-expectation version is integrable, measurable with respect to the conditioning sigma-algebra, and has the same integrals on its events.

[F7]

Conditional expectation exists by radon nikodym: under AC, conditional-expectation versions exist for integrable random variables and sub-sigma-algebras.

[F8]

Conditional expectation is unique almost surely: two versions with the same event integrals agree almost surely.

[F9]

Conditional expectation as an ae class and Martingale submartingale and supermartingale: the martingale condition is the almost-sure conditional-expectation identity at each adjacent time.

[F10]

Nonnegative test supermartingales: for a singleton null family, a nonnegative adapted integrable martingale with initial expectation at most one is a test supermartingale.

[F11]

Ville's inequality for nonnegative test supermartingales: for such a process Mt and c∈(0,1), P(sup⁡t≥0Mt≥1/c)≤c.

[F12]

Discrete stopping time: τ is a stopping time when {τ≤n}∈Fn for each n≥0.

Proof

1.1A1F1F2F3F4F5

Each Lt is nonnegative by [F3] and Ft-measurable by [F2]. Applying [F4] with g=1 gives EP0Lt=P1(Ω)=1 for every t≥0, so {Lt=∞} is P0-null. Define Mt=Lt where Lt<∞ and Mt=0 otherwise. This modification on an Ft-measurable null set preserves the density class. Thus M is a real-valued nonnegative adapted process with EP0Mt=1, and each Mt has the same density event integrals as Lt.

1.2F2F5F12

For n≥1, {τ≤n}=⋃t=1n({Lt≥1/α}∪{Lt≤β})∈Fn, because each Lt is Ft-measurable and the filtration is increasing; {τ≤0}=∅. Hence [F12] makes τ a stopping time.

2.1A1F2F4F6F7F8F9step 1.1

Fix t≥1 and A∈Ft−1. Since A∈Ft, [F4] applied to the density representatives Mt and Mt−1 gives EP0[1AMt]=P1(A)=EP0[1AMt−1]. By [F7], choose a version Yt of EP0[Mt∣Ft−1]. Its defining event-integral identities [F6] show that Yt and Mt−1 are versions of that conditional expectation; [F8] makes them equal almost surely. Thus M is a nonnegative P0-martingale by [F9].

2.2A1F2F3F4F5step 1.1

For each t≥0, step 1.1 and equivalence of the restrictions give P0(Lt=∞)=P1(Lt=∞)=0. Moreover, [F4] gives P1(Lt=0)=∫{Lt=0}Lt dP0=0, so equivalence gives P0(Lt=0)=0. Thus Nt={Lt=0}∪{Lt=∞}∈Ft is null under both laws. Define the real nonnegative Rt=1/Lt where 0<Lt<∞ and set it to 0 on Nt. It is Ft-measurable, and RtMt=1 off Nt. Applying [F4] with density Mt and g=1ARt for A∈Ft gives EP1[1ARt]=EP0[1ARtMt]=P0(A), so Rt is integrable with mean one.

3.1A1F2F6F7F8F9step 2.2

For t≥1 and A∈Ft−1, step 2.2 at times t and t−1 gives EP1[1ARt]=P0(A)=EP1[1ARt−1]. Existence [F7], the defining conditional-expectation identity [F6], and uniqueness [F8] identify EP1[Rt∣Ft−1]=Rt−1 almost surely. Thus R is a nonnegative P1-martingale by [F9].

4.1A1F10F11step 1.1step 2.1step 2.2step 3.1

By steps 1.1 and 2.1, M is a real nonnegative martingale under P0 with EP0M0=1; by [F10] it is a nonnegative test supermartingale for the singleton null {P0}. By steps 2.2 and 3.1, R is a real nonnegative test supermartingale for {P1}. Applying [F11] gives P0(sup⁡t≥0Mt≥1/α)≤α and P1(sup⁡t≥0Rt≥1/β)≤β.

5.1F2step 1.1step 1.2step 2.2step 4.1algebra∎

The measurable set N=⋃t≥0Nt is null under both laws by countable subadditivity. Outside N, simultaneously for every t, Mt=Lt and Rt=1/Lt. Hence the terminal H1 event is contained in N∪{sup⁡t≥0Mt≥1/α}, and the terminal H0 event is contained in N∪{sup⁡t≥0Rt≥1/β}. These terminal events are measurable countable unions of {τ=t} intersected with the corresponding boundary events. Since P0(N)=P1(N)=0, step 4.1 proves both terminal-error inequalities.

Source notes

Wolpert §1.2, PDF p. 4, gives the iid likelihood-ratio process and exact martingale maximal-inequality error control. His commonly quoted Wald boundary formulas and expected sample-size expressions are approximate and are not used here. Howard et al., Lemma 1 and its proof (PDF pp. 15 and 45), prove the nonnegative-supermartingale crossing bound through bounded stopping and a limiting argument. The local proof uses the published Ville supplier and does not apply optional stopping at the possibly unbounded τ.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

Iid drift conditions imply almost-sure test termination

Statement

Assume AC. Let (Xi)i≥1 be IID under each of two probability measures Pj, with one-coordinate law Qj, and suppose Q0 and Q1 are equivalent. Choose a finite strictly positive representative λ=dQ1/dQ0 and set Z=log⁡λ. If EQ0∣Z∣,EQ1∣Z∣<∞,EQ0Z<0<EQ1Z, then for every α,β∈(0,1) the algorithm Sequential likelihood-ratio test, with F0={∅,Ω} and Ft=σ(X1,…,Xt), satisfies P0(τ<∞)=P1(τ<∞)=1.

Facts & Assumptions

Given: Assume AC. Under Pj, the observations Xi are IID with common law Qj, the one-observation laws are equivalent, and the log likelihood increment Z=log⁡(dQ1/dQ0)(X1) is integrable under both laws with strictly negative Q0 mean and strictly positive Q1 mean. The algorithm uses fixed α,β∈(0,1).

[A1]

The Axiom of Choice: AC states that every family of nonempty sets has a choice function and is assumed by the local Radon–Nikodym convention.

[F1]

Identical distribution and IID families: IID means mutual independence together with a common one-coordinate law.

[F2]

Measurable coordinatewise functions preserve independence: applying the same measurable real function to IID observations preserves independence; the resulting variables have the common pushforward law.

[F3]

Kolmogorov iid l1 strong law: for IID integrable real variables, their sample mean converges almost surely to the expectation.

[F4]

Law or distribution of a random element: Qj is the pushforward law of one observation under Pj.

[F5]

Likelihood ratio as a Radon–Nikodym derivative and Likelihood-ratio change of measure: an absolutely continuous probability law has a nonnegative RN density, finite almost surely; its integral over a set is the probability of that set under the changed law.

[F6]

Finite-sample likelihood ratio for iid observations: under IID observations, the finite-time density process is Lt=∏i=1tλ(Xi).

[F7]

Sequential likelihood-ratio test: the procedure stops upon crossing 1/α above or β below, and otherwise continues.

[F8]

Continuous functions on Euclidean spaces are Borel measurable: under countable choice, a continuous map from Rn to Rm is Borel measurable for n,m≥1. This corollary does not itself cover log⁡:(0,∞)→R; step 1.1 verifies measurability on that subspace directly.

[F9]

Composition with a Borel measurable outer map preserves measurability: composing a measurable map with a Borel map gives a measurable map.

[F10]

Change of variables for expectation: if Xi has law Qj and Z is measurable, then EPj∣Z(Xi)∣=EQj∣Z∣ and, when these are finite, EPjZ(Xi)=EQjZ.

Proof

1.1A1F4F5F8F9givenconstruct

Let r be any nonnegative RN representative of Q1 with respect to Q0. Since ∫r dQ0=1, the set where r=∞ is Q0-null and hence Q1-null. On A={r=0} the change-of-measure identity [F5] gives Q1(A)=∫Ar dQ0=0; equivalence Q0≪Q1 then makes A Q0-null too. Replacing r by 1 on these common null sets yields a finite strictly positive measurable representative λ of the same density class. Its range lies in (0,∞), so it is measurable into that subspace with its Borel sigma-algebra {B∩(0,∞):B∈B(R)}. Although the logarithm is continuous on this subspace, [F8] only covers Euclidean domains. For every open U⊆R, log⁡−1(U) is open in (0,∞) and therefore Borel there; since open sets generate B(R), log⁡:(0,∞)→R is Borel measurable. Thus [F9] makes Z=log⁡∘λ real-valued and measurable.

1.2F1F2F3F10given

For each j, the variables Zi:=Z(Xi) are IID under Pj: measurability gives the same pushforward law for all coordinates, and [F2] preserves their independence. The change-of-variables identity [F10] gives EPj∣Zi∣=EQj∣Z∣<∞ and EPjZi=μj:=EQjZ. Thus [F3] gives t−1∑i=1tZi→μj almost surely under Pj.

2.1F5F6step 1.1

Put Gt=∏i=1tλ(Xi). By [F6], Gt is a version of the finite-time density, so the algorithm's chosen representative Lt equals Gt P0-almost surely by uniqueness of Radon–Nikodym derivatives. The representative λ is finite and strictly positive Q0-almost surely; equivalence of Q0,Q1 gives the same under Q1. Thus Gt is finite and strictly positive P0-almost surely, and for A∈Ft, P1(A)=∫AGt dP0 implies P1(A)=0 exactly when P0(A)=0. The finite-time restrictions are therefore equivalent, so Lt=Gt also P1-almost surely. Intersecting these probability-one events over countably many t gives one event under each law on which the equalities hold for every t. Positivity of λ there yields log⁡Lt=∑i=1tZi.

3.1F7step 1.2step 2.1givenalgebra

Under P0, steps 1.2 and 2.1 give log⁡Lt/t→μ0<0, hence log⁡Lt→−∞. Since log⁡β is finite, some finite t satisfies Lt≤β, so the lower boundary has been crossed and the algorithm has τ<∞.

4.1F7step 1.2step 2.1givenalgebra∎

Under P1, steps 1.2 and 2.1 give log⁡Lt/t→μ1>0, hence log⁡Lt→+∞. Since log⁡(1/α) is finite, some finite t satisfies Lt≥1/α, so the upper boundary has been crossed and τ<∞. This proves almost-sure termination under both laws, without a claim about EPjτ.

Source notes

Wolpert §1.2, PDF p. 4, writes the iid log likelihood as a sum of iid increments. Durrett Theorem 2.4.1, printed pp. 76–78, proves the L1 strong law by truncation. The local proof uses the actual published Kolmogorov iid L1 strong-law supplier; no finite-variance strengthening is assumed.

5 · Examples, counterexamples and false statements

None yet.

Sources