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.

Tests, Neyman–Pearson and Valid P-values — Examples

1 · Prerequisites

2 · Summary

The finite examples compute a randomized test at a discrete likelihood-ratio atom and a threshold test for continuous densities. A two-point null law also shows that a measurable statistic taking values in [0,1] can fail superuniformity and produce an anti-conservative rejection rule.

3 · Logical flowchart

4 · Definitions, theorems and proofs

None yet.

5 · Examples, counterexamples and false statements

CounterexampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

A measurable [0,1]-valued statistic need not be a valid p-value

Statement refuted

Every measurable statistic p:X→[0,1] is a valid p-value for a given null hypothesis.

Facts & Assumptions

Given: A statistical experiment with a nonempty null hypothesis and a disjoint nonempty alternative, and the definition of a valid p-value.

[F1]

Statistical experiments: an experiment supplies a measurable data space and a probability law for each parameter.

[F2]

Valid p-values: a valid p-value must satisfy Pθ(p(X)≤u)≤u for every null parameter and every u∈[0,1].

[F3]

Test size and power: for the simple null Θ0={θ0} and a nonempty disjoint alternative, size is the rejection probability under Pθ0.

[F4]

A measurable function between measurable spaces: a statistic is measurable when all measurable target sets have measurable preimages.

[F5]

The expectation of an indicator is the probability of the event: the expectation of an event indicator is the event's probability.

[F6]

Every measurable rejection function defines a randomized test: every measurable function into [0,1] defines a binary randomized test.

Counterexample

1.1givenF1F4algebraconstruct

Let X={0,1} with the full sigma-algebra, Θ={θ0,θ1}, Θ0={θ0}, and Θ1={θ1}. Set Pθ0({0})=Pθ0({1})=1/2 and Pθ1({0})=0, Pθ1({1})=1. These masses define probability measures: they are nonnegative and sum to one, and on the two-point space countable additivity follows because at most two members of a disjoint family are nonempty. Define p(0)=0 and p(1)=1. It is measurable because every subset of X is measurable.

2.1F2F3F5F6step 1.1algebra∎

At u=1/4, {x:p(x)≤u}={0}, so Pθ0(p(X)≤1/4)=1/2>1/4. Thus p is not valid by [F2]. Thresholding it at 1/4 defines a test by [F6], rejects on {0}, and has size 1/2 by [F3,F5], so it is anti-conservative. The claimed implication is false.

ExampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

Randomize at a discrete likelihood-ratio boundary

Example

On X={0,1} with its full sigma-algebra and counting measure μ, let the simple null and alternative laws be P0({0})=P0({1})=1/2 and P1({0})=1/4, P1({1})=3/4. At level α=1/4, the Neyman–Pearson test randomizes with probability 1/2 at x=1 and rejects with probability 0 at x=0. Its size is 1/4 and its power is 3/8.

Verification

Given: The two probability laws above, counting measure μ, and α=1/4. Assume AC for the general Neyman–Pearson comparison.

[A1] The Axiom of Choice: the Neyman–Pearson theorem is used in its AC density-selection branch; the finite example's densities are explicit.

[F1] Counting measure on an arbitrary set: each singleton has μ-measure 1.

[F6] Counting measure is a measure and Finite, sigma-finite, and semifinite measures: the counting set function is a measure; a finite measure is sigma-finite.

[F2] Likelihood-ratio tests with boundary randomization and The likelihood-ratio rule is a measurable test of exact size: the candidate is a measurable randomized test of exact size; on {p0>0} it rejects above its cutoff and randomizes by γ at equality.

[F3] Test size and power: size is null rejection probability and power is alternative rejection probability.

[F5] Neyman–Pearson lemma with singular alternative mass: no test of size at most 1/4 has larger power than the constructed likelihood-ratio test.

[F7] Probability measures and probability spaces: a measure with total mass 1 is a probability measure.

[F8] A measurable function between measurable spaces: every real-valued function on the two-point space with its full sigma-algebra is measurable.

1.1givenF1F6F7algebra

By [F1] and [F6], μ is a measure with μ(X)=2, so it is finite and hence sigma-finite. Each displayed law has nonnegative masses summing to 1, and any disjoint family of subsets of {0,1} has at most two nonempty members, so each law is countably additive. Thus P0,P1 are probability measures by [F7].

2.1F2F4F8step 1.1algebra

Define p0(0)=p0(1)=1/2, p1(0)=1/4, and p1(1)=3/4. They are finite, nonnegative, and measurable by [F8]. For every A⊆X, the simple-integral formula in [F4] gives ∫Api dμ=∑x∈Api(x)=Pi(A), so these are density representatives and Pi≪μ. Hence R(0)=1/2 and R(1)=3/2. With c=3/2, P0(R>c)=0 and P0(R=c)=1/2, so the boundary equation gives γ=(1/4)/(1/2)=1/2. The test has φ∗(1)=1/2 and φ∗(0)=0.

3.1F3F4step 2.1algebra

Using [F4], its size is EP0φ∗=(1/2)(1/2)+(1/2)(0)=1/4, and its power is EP1φ∗=(3/4)(1/2)+(1/4)(0)=3/8. Thus it uses the boundary atom to attain the requested size.

4.1A1F5step 3.1∎

The Neyman–Pearson lemma [F5] makes this test most powerful among all tests whose size is at most 1/4.

ExampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

A continuous likelihood-ratio test

Example

On [0,1] with restricted Lebesgue measure, let P0 have density p0(x)=1 and let P1 have density p1(x)=2x. At level α=1/4, the likelihood-ratio test rejects for x>3/4, has size 1/4, and has power 7/16.

Verification

Given: The interval data space ([0,1],A), where A is the trace of the Lebesgue sigma-algebra, restricted Lebesgue measure μ, the densities p0(x)=1 and p1(x)=2x, and α=1/4.

[F0] Statistical experiments: an experiment consists of a data measurable space, a parameter set, and one probability law for each parameter.

[A1] The Axiom of Choice: AC is assumed for the general Neyman–Pearson theorem; the example's density representatives p0=1 and p1=2x are explicit.

[A2] The Axiom of Countable Choice (ACω): CC is used for the restricted Lebesgue-measure construction and the Riemann-to-Lebesgue equality below.

[F2] Continuous functions on Euclidean spaces are Borel measurable and A measurable function between measurable spaces: the continuous extension x↦2x on R is Borel measurable, so its restriction to [0,1] is measurable for the trace sigma-algebra A.

[F3] The measure with density f relative to μ and Integrating against a density agrees with integrating the product: A↦∫A2x dμ is a measure and integrates nonnegative g as ∫g(x)2x dμ(x).

[F4] A continuous function on [a,b] is Riemann integrable, by Heine-Cantor and Riemann's criterion: the continuous function 2x is Riemann integrable on every compact subinterval.

[F7] For every ε>0 in a complete ordered field there is a natural n≥1 with 1/n<ε: for each ε>0 a positive natural N can be chosen with 1/N<ε.

[F9] Likelihood-ratio tests with boundary randomization, The likelihood-ratio rule is a measurable test of exact size, and Test size and power: the candidate rejects above its likelihood-ratio cutoff and has the displayed null size.

[F10] Neyman–Pearson lemma with singular alternative mass: no test of size at most 1/4 has greater power than the candidate.

[F11] Finite, sigma-finite, and semifinite measures: a finite measure is sigma-finite by the one-set cover consisting of the whole space.

[F12] A bounded Riemann integrable function on a closed bounded interval is Lebesgue measurable and has the same integral: under CC, a bounded Riemann-integrable function is Lebesgue measurable and its Lebesgue and Riemann integrals agree.

[F13] Probability measures and probability spaces: a measure with total mass 1 is a probability measure.

Proof technique: direct.

1.1A2F1F2F3F13given

By [A2] and [F1], Lebesgue measure is a measure and [0,1] is measurable with measure 1. Each event in the trace sigma-algebra A is therefore Lebesgue measurable, and restricting Lebesgue measure to these events preserves countable additivity. Hence μ is a probability measure by [F13]. Define Q1(A)=∫A2x dμ(x). The density is nonnegative and measurable by [F2], so [F3] makes Q1 a measure.

1.2F6algebrainduction

Let SN=∑k<Nk. Its recursion is S0=0 and SN+1=SN+N, so induction [F6] gives 2SN=N(N−1) for every N≥0.

2.1F4F5F6step 1.2algebra

Fix 0≤a<b≤1, put d=b−a, and divide [a,b] into N≥1 equal intervals of length d/N. Since 2x is increasing, the lower and upper sums are respectively LN=2ad+d2(1−1/N) and UN=2ad+d2(1+1/N), by substituting SN=N(N−1)/2 into the finite sums in [F5].

3.1A2F5F7F12step 2.1algebra

The value b2−a2=2ad+d2 lies between LN and UN, and their gap is 2d2/N. By [F7] this gap can be made arbitrarily small. The Lebesgue integral equals the Riemann integral by [A2] and [F12], while [F5] bounds that integral between LN and UN for every N. Hence ∫[a,b]2x dμ(x)=b2−a2.

4.1A2F0F1F3F8F9F11F13F14step 3.1algebra

Step 3.1 with a=0,b=1 gives Q1([0,1])=1, so P1:=Q1 is a probability measure by [F13]. Set P0:=μ and p0(x):=1; for each A∈A, [F14] gives ∫Ap0 dμ=μ(A), so p0 is a density of P0. By definition of Q1, p1(x):=2x is a density of P1. Thus they define the experiment [F0], and their likelihood ratio is R(x)=2x. The common measure μ is finite and hence sigma-finite by [F11]. With c=3/2 and γ=0, P0(R>c)=μ((3/4,1])=1/4 and P0(R=c)=μ({3/4})=0 by [F1]. Thus [F9] gives the rejection region x>3/4 and size 1/4.

4.2A2F1F3F8step 3.1algebra

The power is P1((3/4,1])=∫[3/4,1]2x dμ(x)=1−(3/4)2=7/16 by [F1], [F3], and step 3.1; the singleton boundary has zero measure.

5.1A1F10step 4.1step 4.2∎

Under AC [A1], the Neyman–Pearson lemma [F10] says no test with size at most 1/4 has larger power.