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
- Absolute and Conditional Convergence; Rearrangement; Products
- Areas of Elementary Plane Figures
- Binary Operations, Monoids, Groups and Subgroups
- Compactness
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Conditional Distributions and Regular Conditional Probability
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Domination and Likelihood Ratios
- Estimators and Randomized Procedures
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Lebesgue Measure on Euclidean Space
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Loss, Risk and Decision Theory
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Outer Measure and the Caratheodory Extension Theorem
- Pointwise Extended-Real Function Products
- Polynomial Rings, the Division Algorithm and Roots
- Probability Spaces Random Variables and Expectation
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Signed and Complex Measures Hahn and Jordan
- Simple Field Extensions and the Construction of the Complex Numbers
- Statistical Experiments, Models and Identifiability
- Subspaces, Products, and Quotients
- Suprema and Infima
- Tests, Neyman–Pearson and Valid P-values
- The Lebesgue and Riemann Integrals Compared
- The Lebesgue Integral and the Convergence Theorems
- The Radon Nikodym Theorem and Lebesgue Decomposition
- The Riemann Integral in Rᵐ and Jordan Content
- The Riemann Integral: Definition and Integrability
- The Topology of Euclidean Space
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
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 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
A measurable [0,1]-valued statistic need not be a valid p-value
Statement refuted
Every measurable statistic 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.
Statistical experiments: an experiment supplies a measurable data space and a probability law for each parameter.
Valid p-values: a valid p-value must satisfy for every null parameter and every .
Test size and power: for the simple null and a nonempty disjoint alternative, size is the rejection probability under .
A measurable function between measurable spaces: a statistic is measurable when all measurable target sets have measurable preimages.
The expectation of an indicator is the probability of the event: the expectation of an event indicator is the event's probability.
Every measurable rejection function defines a randomized test: every measurable function into defines a binary randomized test.
Counterexample
Let with the full sigma-algebra, , , and . Set and , . 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 and . It is measurable because every subset of is measurable.
At , , so . Thus is not valid by [F2]. Thresholding it at defines a test by [F6], rejects on , and has size by [F3,F5], so it is anti-conservative. The claimed implication is false.
Randomize at a discrete likelihood-ratio boundary
Example
On with its full sigma-algebra and counting measure , let the simple null and alternative laws be and , . At level , the Neyman–Pearson test randomizes with probability at and rejects with probability at . Its size is and its power is .
Verification
Given: The two probability laws above, counting measure , and . 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 .
[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 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.
[F4] Expectation of a nonnegative or integrable random variable, Nonnegative simple measurable functions, The integral of a nonnegative simple function, and The nonnegative integral agrees with the simple integral on simple functions: expectation of this finite-valued rejection function is the sum of its values weighted by the point masses.
[F5] Neyman–Pearson lemma with singular alternative mass: no test of size at most has larger power than the constructed likelihood-ratio test.
[F7] Probability measures and probability spaces: a measure with total mass 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.
By [F1] and [F6], is a measure with , so it is finite and hence sigma-finite. Each displayed law has nonnegative masses summing to , and any disjoint family of subsets of has at most two nonempty members, so each law is countably additive. Thus are probability measures by [F7].
Define , , and . They are finite, nonnegative, and measurable by [F8]. For every , the simple-integral formula in [F4] gives , so these are density representatives and . Hence and . With , and , so the boundary equation gives . The test has and .
Using [F4], its size is , and its power is . Thus it uses the boundary atom to attain the requested size.
The Neyman–Pearson lemma [F5] makes this test most powerful among all tests whose size is at most .
A continuous likelihood-ratio test
Example
On with restricted Lebesgue measure, let have density and let have density . At level , the likelihood-ratio test rejects for , has size , and has power .
Verification
Given: The interval data space , where is the trace of the Lebesgue sigma-algebra, restricted Lebesgue measure , the densities and , and .
[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 and are explicit.
[A2] The Axiom of Countable Choice (): CC is used for the restricted Lebesgue-measure construction and the Riemann-to-Lebesgue equality below.
[F1] Lebesgue measurable sets, the family , and the restricted set function , Assuming countable choice, is a sigma-algebra containing every elementary set and is a complete measure extending elementary volume, and A box in with parameters is Lebesgue measurable of measure , whichever of its faces are included: under CC, restricted Lebesgue measure is a measure; interval mass is length and singleton mass is zero.
[F2] Continuous functions on Euclidean spaces are Borel measurable and A measurable function between measurable spaces: the continuous extension on is Borel measurable, so its restriction to is measurable for the trace sigma-algebra .
[F3] The measure with density relative to and Integrating against a density agrees with integrating the product: is a measure and integrates nonnegative as .
[F4] A continuous function on is Riemann integrable, by Heine-Cantor and Riemann's criterion: the continuous function is Riemann integrable on every compact subinterval.
[F5] Partition of as a finite strictly increasing list , its subintervals and their lengths, its mesh, refinement, and the common refinement of two partitions, For bounded on and a partition : the infimum and supremum of on the -th subinterval, and the lower and upper Darboux sums and , The lower and upper Darboux integrals of a bounded on as and , Darboux integrability as their equality, and the notation , and The Darboux and Riemann definitions agree: a bounded on is Darboux integrable with integral if and only if for every real there is a real such that for every tagged partition of mesh below : the bounded Riemann-integrable function has the same Darboux integral, and each lower sum is at most it while each upper sum is at least it.
[F6] Finite sums and finite products, by recursion, Laws of finite sums and finite products, The canonical natural of a field, and The principle of mathematical induction: finite sums obey their recursion, naturals are interpreted in , and induction holds.
[F7] For every in a complete ordered field there is a natural with : for each a positive natural can be chosen with .
[F8] The measure with density relative to , Integrating against a density agrees with integrating the product, and The expectation of an indicator is the probability of the event: density integrals give the corresponding law masses and rejection probabilities.
[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 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 is a probability measure.
[F14] Nonnegative simple measurable functions, The integral of a nonnegative simple function, and The nonnegative integral agrees with the simple integral on simple functions: for every measurable , .
Proof technique: direct.
By [A2] and [F1], Lebesgue measure is a measure and is measurable with measure . Each event in the trace sigma-algebra is therefore Lebesgue measurable, and restricting Lebesgue measure to these events preserves countable additivity. Hence is a probability measure by [F13]. Define . The density is nonnegative and measurable by [F2], so [F3] makes a measure.
Let . Its recursion is and , so induction [F6] gives for every .
Fix , put , and divide into equal intervals of length . Since is increasing, the lower and upper sums are respectively and , by substituting into the finite sums in [F5].
The value lies between and , and their gap is . 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 and for every . Hence .
Step 3.1 with gives , so is a probability measure by [F13]. Set and ; for each , [F14] gives , so is a density of . By definition of , is a density of . Thus they define the experiment [F0], and their likelihood ratio is . The common measure is finite and hence sigma-finite by [F11]. With and , and by [F1]. Thus [F9] gives the rejection region and size .
The power is by [F1], [F3], and step 3.1; the singleton boundary has zero measure.
Under AC [A1], the Neyman–Pearson lemma [F10] says no test with size at most has larger power.