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
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Binary Operations, Monoids, Groups and Subgroups
- 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
- 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
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- limsup, liminf, and Subsequential Limits
- Loss, Risk and Decision Theory
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- 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
- 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
- Suprema and Infima
- The Lebesgue Integral and the Convergence Theorems
- The Radon Nikodym Theorem and Lebesgue Decomposition
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
2 · Summary
This page defines randomized tests, size, power, level, and validity of p-values. It proves the binary zero-one testing-risk identities and the measurability and exact size of the likelihood-ratio rule, then derives the pointwise null rejection bound for valid p-values, its level-test consequence whenever a nonempty disjoint alternative is specified, and the Neyman–Pearson comparison for two simple hypotheses with a common sigma-finite dominator. The likelihood-ratio test randomizes at a boundary when needed and rejects alternative mass on a null-probability set without spending size. The argument makes the density-selection assumption explicit and keeps the simple-hypothesis result separate from composite-hypothesis optimality claims.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Bounded signed integrals obey the density formula
Statement
Let be a positive measure, let be finite-valued and measurable, and suppose is a probability measure. If is measurable and for some finite , then is integrable under , is integrable under , and
Facts & Assumptions
Given: A positive measure , a finite nonnegative measurable density , the probability measure , and a measurable real function with .
The measure with density relative to : for every measurable .
Integrating against a density agrees with integrating the product: for nonnegative measurable , .
Closure properties of measurable functions used by the integral: the positive and negative parts of a real measurable are measurable.
Arithmetic and lattice operations preserve measurability whenever they are defined: the product of finite real measurable functions is measurable.
Monotonicity and nonnegative homogeneity of the nonnegative integral: the nonnegative integral is monotone and homogeneous for nonnegative scalars, with the integral of the zero function equal to zero.
Integrable real and complex functions, and their integrals: is integrable when is finite, and its integral is .
The Lebesgue integral is linear on : integrable functions have finite linear integrals.
Proof
By [F1] and [F8], . The functions are measurable by [F3] and satisfy . Products and are measurable by [F4].
Monotonicity [F5], [F1], and [F8] give and . Hence are integrable under and are integrable under by [F6].
Apply [F2] separately to the nonnegative measurable functions and . It gives and .
Subtract the second equality in step 2.2 from the first. By [F6] and [F7], both sides are the integrals of the corresponding signed functions, so .
A likelihood-ratio threshold with boundary randomization exists
Statement
Let be a probability measure on , and let be a finite-valued measurable function. For every , there exist and such that
Facts & Assumptions
Given: A probability measure , a finite-valued measurable , and .
Probability measures and probability spaces: is a measure with .
A measurable function between measurable spaces: is measurable when the preimage of each Borel subset of belongs to .
Measures are monotone: inclusion of measurable sets implies the same order between their measures.
Continuity from above when one set has finite measure: for decreasing measurable sets whose first set has finite measure, the measure of the intersection is the infimum of their measures.
Continuity from below for measures: for increasing measurable sets, the measure of their union is the supremum of their measures.
Every nonempty set bounded below has an infimum and Greatest lower bound (infimum): a nonempty subset of bounded below has a greatest lower bound, characterized as a lower bound that is at least every other lower bound.
For every in a complete ordered field there is a natural with : the positive reciprocals of the natural numbers fall below every positive real number; equivalently, the natural numbers are unbounded in .
Proof
Put for and . The sets decrease to the empty set because is finite-valued and the natural numbers are unbounded by [F7]. Their first member has measure at most one, so [F4] gives . Thus . If and , then , so [F3] gives . Hence is upward closed, is bounded below by zero, and has a finite infimum by [F6].
If , then : otherwise no member of lies below , making a lower bound larger than . Therefore for every positive integer . By [F7], for every some satisfies , so the sets increase to . Thus [F5] gives .
If , set for . Then , and [F7] gives ; also , so . The sets decrease to , since every is eventually below some by [F7]. Their first member has finite measure since . Thus [F4] gives . If , the same lower bound follows from .
Since is the disjoint union of and , finite additivity gives . If this mass is positive, define ; the bounds in steps 2.1 and 2.2 give and the required equality. If the mass is zero, those same bounds force , and works.
The common-support likelihood ratio is measurable
Statement
Let be finite-valued measurable functions on a measurable space . Define Then is finite-valued, nonnegative, and measurable.
Facts & Assumptions
Given: Finite-valued nonnegative measurable functions .
Likelihood densities: the selected density representatives are finite-valued, nonnegative, and measurable.
A measurable function between measurable spaces: inverse images of Borel sets under a measurable function are measurable.
Threshold characterisations of real-valued and extended-real-valued measurability: a real-valued function is measurable if all of its strict superlevel sets are measurable.
Arithmetic and lattice operations preserve measurability whenever they are defined: the product of two finite real-valued measurable functions is measurable.
Proof
Define when and when . It is finite and nonnegative. For , ; for , ; for , . Each set is measurable by [F1] and [F2], so [F3] makes measurable.
By [F1] and step 1.1, is a finite nonnegative measurable function by [F4]. On it equals , and on it is zero. Hence and has all the asserted properties.
Valid p-values
Definition
Let be a statistical experiment (Statistical experiments). A p-value statistic is a statistic , where carries the trace of the Borel sigma-algebra, meaning (Statistics and estimators, A measurable function between measurable spaces).
For a nonempty null hypothesis , the statistic is a valid p-value for if it is superuniform under every null law: The variable is the observed p-value when the data are . The validity condition is distributional; measurability alone does not imply it.
Remarks
A discrete valid p-value may be conservative, so equality need not hold in the superuniform bound. Validity is required under every parameter in a composite null.
Every measurable rejection function defines a randomized test
Statement
Let be a statistical experiment (Statistical experiments) and let be measurable, where has its Borel sigma-algebra. On the binary action space with its full sigma-algebra, define Then is a probability kernel and hence a randomized procedure; its randomized-test function under the convention is .
Facts & Assumptions
Given: A statistical experiment and a measurable function on its data space.
Statistical experiments: an experiment supplies a data measurable space and its parameter-indexed probability laws.
A measurable function between measurable spaces: measurability means the preimage of every Borel subset of belongs to .
Closure properties of measurable functions used by the integral: sums and real scalar multiples of measurable real functions are measurable.
Measure kernel and probability kernel: a probability kernel has probability-measure sections and measurable event evaluations.
Sigma-algebras: the full collection of subsets of is a sigma-algebra.
Randomized procedures as probability kernels: for the supplied experiment, a probability kernel from the data space to the action space is a randomized procedure.
Randomized tests: a binary randomized procedure has test function .
Proof
Fix . The two weights and are nonnegative and sum to one. Thus and . If are pairwise disjoint subsets of , each action belongs to at most one , so for . Substitution into the formula for gives ; hence is a probability measure on the binary action sigma-algebra.
For the four action events, the evaluation functions are , , , and . They are measurable by [F1] and [F2]. Therefore [F3] makes a probability kernel; [F5] makes it a randomized procedure, and [F6] identifies its test function as .
Binary zero-one loss risks are the testing error probabilities
Statement
Let be disjoint subsets of a parameter set in a statistical experiment. Let be a randomized test on the binary action space , with meaning reject, and write . Define the zero-one error loss by so is zero when . For and the risk of Loss functions and risk,
Facts & Assumptions
Given: A statistical experiment, disjoint hypotheses , and a binary randomized test with test function .
Randomized tests: the action space is with its full sigma-algebra, each is a probability measure, and .
Loss functions and risk: if each action section of is measurable and nonnegative, then .
Nonnegative simple measurable functions, The integral of a nonnegative simple function, and The nonnegative integral agrees with the simple integral on simple functions: the integral of an indicator of a measurable singleton under is the -measure of that singleton.
Expectation of a nonnegative or integrable random variable: expectation under is integration with respect to .
Integrable real and complex functions, and their integrals: a real measurable function is integrable when the integral of its absolute value is finite.
The Lebesgue integral is linear on : the integral is linear on integrable functions.
Statistical experiments and Probability measures and probability spaces: each is a probability measure with .
Proof
For fixed , the action section is one of , , or . Each is nonnegative and measurable on the full sigma-algebra of , so [F2] defines its risk.
On , the section is , whose integral under is by [F1] and [F3]. On , the section is , whose integral is because is a probability measure.
Substituting these inner integrals into [F2] and using [F4] gives on and on .
Since and , [F5] and [F8] show that each has integral at most . Thus their absolute-value integrals are finite, so they are integrable by [F6]. Linearity [F7] and [F8] give . The two risk identities now have the asserted form.
Test size and power
Definition
Let be a statistical experiment (Statistical experiments). Let be nonempty disjoint subsets of , called the null and alternative hypotheses. A hypothesis is simple when it is a singleton and composite when it has at least two elements.
For a randomized test with test function (Randomized tests), its power function is Its size is and it has level when this supremum is at most . The expectations exist and lie in because and each is a probability measure (Probability measures and probability spaces, Expectation of a nonnegative or integrable random variable). The supremum exists because is nonempty, the values lie in . Here The real numbers identifies with the Cauchy-sequence reals, The reals form a totally ordered field gives their ordered-field structure, and The Cauchy-sequence reals have the least-upper-bound property establishes their least-upper-bound property (Complete ordered field (least-upper-bound property)).
For the binary action , where means reject, the zero-one error loss is when and , or when and , and is otherwise. The decision-rule risk from Loss functions and risk integrates this loss against the action kernel and data law. For each fixed , its section on the binary action space is measurable. The risk identities proved in Binary zero-one loss risks are the testing error probabilities show that risk equals on and on . Thus size is the worst null error risk, and power is the rejection probability under each alternative parameter.
Remarks
The supremum need not be attained. No measurability structure on or on the subsets is required; the definition uses only the individual laws and the pointwise supremum.
Likelihood-ratio tests with boundary randomization
Definition
Let be the two-law statistical experiment (Statistical experiments). Assume are both absolutely continuous with respect to a supplied sigma-finite measure on (Dominated statistical experiments) and specify finite-valued, nonnegative measurable RN density representatives and (Likelihood densities). Under the Axiom of Choice (The Axiom of Choice), Likelihood densities supplies such representatives for arbitrary dominated laws. If the representatives are given as part of the setup, the construction below requires no choice.
Define the common-support likelihood ratio The result The common-support likelihood ratio is measurable shows that is finite-valued, nonnegative, and measurable. The set is kept separate from the ratio region.
For , define the rejection function For , choose and satisfying whose existence follows from A likelihood-ratio threshold with boundary randomization exists applied to and . Define
This specifies the candidate likelihood-ratio rejection function.
Remarks
The common dominating measure and the specified density representatives are part of the setup. The general density-selection branch uses the Axiom of Choice through Likelihood densities; with explicit representatives, the cutoff existence result and displayed construction are choice-free.
Valid p-values yield level tests for nonempty disjoint alternatives
Statement
Let be a valid p-value for a nonempty null hypothesis in a statistical experiment. For every , the deterministic test with rejection function satisfies Consequently, whenever a nonempty alternative hypothesis is specified, this test has size at most and hence level in the sense of Test size and power.
Facts & Assumptions
Given: An experiment, a valid p-value statistic for , and . The pointwise bound does not require an alternative hypothesis.
Valid p-values: validity means for every and .
A measurable function between measurable spaces: a statistic is measurable when inverse images of Borel sets are measurable.
Every measurable rejection function defines a randomized test: every measurable defines a binary randomized test with rejection function .
The expectation of an indicator is the probability of the event: the expectation of an event indicator under equals the probability of that event.
Test size and power: when a nonempty alternative disjoint from is specified, size is and level means size at most .
Proof
Let . This event is measurable because is a statistic and is Borel in . Thus is a measurable map into , and [F3] supplies a randomized test with this rejection function. Since takes only the values and , that kernel assigns probability one to the corresponding action, so the test is deterministic.
For every , [F4] and validity [F1] give , proving the pointwise bound. If a nonempty is specified, taking the supremum over the nonempty set gives size at most by [F5], and therefore level .
The likelihood-ratio rule is a measurable test of exact size
Statement
In the setup of Likelihood-ratio tests with boundary randomization, for every the candidate rejection function is measurable into , defines a randomized test, and has size exactly for the simple null .
Facts & Assumptions
Given: The common-dominator two-law experiment, specified density representatives , and . The proof uses only these fixed representatives.
Likelihood-ratio tests with boundary randomization and Likelihood densities: are finite, nonnegative measurable densities; the candidate is at and at , where , , and ; in the latter case , , and .
The common-support likelihood ratio is measurable: is finite, nonnegative, and measurable.
A measurable function between measurable spaces: preimages of Borel sets under are measurable.
Closure properties of measurable functions used by the integral: finite sums and real scalar multiples of measurable functions are measurable.
Every measurable rejection function defines a randomized test: every measurable -valued rejection function defines a binary randomized test.
Nonnegative simple measurable functions, The integral of a nonnegative simple function, and The nonnegative integral agrees with the simple integral on simple functions: the integral of a finite-valued nonnegative simple function is the sum of its values times the measures of their disjoint level sets.
Measures are monotone: a measurable subset of a measurable -null set is -null.
Expectation of a nonnegative or integrable random variable and Probability measures and probability spaces: is integration under the probability measure .
Test size and power: for the simple null , size is the expectation of the rejection function under .
Proof
The sets in [F1] are measurable by [F2] and [F3]. For they are pairwise disjoint, so [F4] makes measurable; for , [F4] makes measurable.
Let . By [F1], [F6], and the zero-function case of [F7], , since vanishes on . Thus by [F8].
The disjointness and show that every value of lies in . Hence [F5] makes it a randomized test.
If , [F1] gives . The simple integral identity [F7] and [F9] give , so [F10] makes its size .
Suppose . Since on and , . Also when ; when , the two sets differ only by . Step 1.2 makes that difference -null. The three disjoint indicator terms in [F1] therefore have expectation by [F7], [F9], and the threshold equation in [F1]. By [F10], the test has size .
Neyman–Pearson lemma with singular alternative mass
Statement
Let be the two-law experiment with simple null and simple alternative . Assume both laws are dominated by a common sigma-finite measure and assume the Axiom of Choice, so finite nonnegative density representatives are supplied by Likelihood densities. For every , let be the likelihood-ratio test with boundary randomization from Likelihood-ratio tests with boundary randomization. Then every randomized test satisfying also satisfies No absolute-continuity assumption is imposed; the test rejects on .
Facts & Assumptions
Given: The two-law experiment, a common sigma-finite dominator , the Axiom of Choice, , and a randomized test of size at most under .
The Axiom of Choice: AC is assumed only for selecting the finite nonnegative density representatives in [F2].
Dominated statistical experiments: is sigma-finite and for .
Likelihood densities: under AC, has a finite-valued nonnegative measurable density representative with .
Randomized tests: a randomized-test function is measurable and takes values in ; its value is the conditional rejection probability.
Test size and power: the competitor has and its power under is .
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 with exact size ; for it rejects on and above the cutoff , and uses probability at ; for it rejects on .
The measure with density relative to and Integrating against a density agrees with integrating the product: for nonnegative measurable , .
Monotonicity and nonnegative homogeneity of the nonnegative integral: the nonnegative integral is monotone and homogeneous for nonnegative scalars.
Integrable real and complex functions, and their integrals and The Lebesgue integral is linear on : integrable real functions have finite linear integral.
Measures on sigma-algebras: countable unions of pairwise disjoint measurable sets have measure equal to the sum of their measures.
A measurable function between measurable spaces, Closure properties of measurable functions used by the integral, and Arithmetic and lattice operations preserve measurability whenever they are defined: level sets and the finite sums, products, and differences used below are measurable.
Measures are monotone: a measurable subset of a null set has measure zero.
Sigma-algebras: measurable sets are closed under complements and countable unions, hence under finite set differences.
The well-ordering principle: every nonempty subset of the natural numbers has a least member.
Bounded signed integrals obey the density formula: for a bounded measurable real , .
For every in a complete ordered field there is a natural with : for each positive real , there is a positive integer with .
Proof
First suppose , so the cutoff in [F5] is finite. Put . Then is measurable and . By [F2] and [F6], , so makes integrable for . Since is finite, is also integrable.
On , if then [F5] gives , so ; if , the product is zero. On , write . If , then and both and are nonnegative. If , then and both are nonpositive. If , the second factor is zero. Thus everywhere.
The signed density identity [F15] and linearity [F8] give .
By monotonicity of the nonnegative integral, the integral in step 2.2 is nonnegative. Hence . The candidate has null rejection probability by [F5], while the competitor has null rejection probability at most by [F4]. Since , the right-hand side is nonnegative, proving the desired power inequality for .
Now suppose . Then , so [F6] gives . For positive integers , set . On this set, ; [F7] and [F11] therefore give . Thus , and absolute continuity [F1] gives . For each positive-integer pair put , enumerate these pairs by increasing and then by increasing , and write the resulting sequence of sets as . If and , [F16] supplies positive integers with and , so . Conversely every is contained in ; hence this union is exactly that set. Put and for . The are measurable by [F13], pairwise disjoint, and each , so the preceding null-set calculation and [F12] give . Their union equals : if lies in that union, the nonempty set of indices with has a least member by [F14], which puts in the corresponding . Countable additivity [F9] makes the union -null. On its complement, wherever ; where , [F5] gives , and the remaining set has measure zero because there and [F2], [F6] give . Therefore -almost everywhere, and monotonicity of expectation proves the power inequality at .
5 · Examples, counterexamples and false statements
None yet.
Sources
- Gerald B. Folland, Real Analysis, 2nd ed., §§2.2–2.3, PDF pp. 49–54
- George Deligiannidis, SB2.1 Foundations of Statistical Inference, Chapter 13, §§13.1.1–13.1.2, PDF pp. 76–77
- Karl B. Gregory, USC STAT 713 Lecture 11: Neyman–Pearson and Karlin–Rubin, PDF pp. 7–9
- George Deligiannidis, SB2.1 Foundations of Statistical Inference, Chapter 13, §13.1.2, PDF p. 77
- Anna Mikusheva, MIT 14.381 Lecture 9: Uniformly Most Powerful Tests, PDF pp. 2–3
- Karl B. Gregory, USC STAT 713 Lecture 10: Tests of Hypotheses, Size, Power, and p-values, PDF pp. 17–20
- Ryan Martin, Lecture Notes on Advanced Statistical Theory, §5.1, PDF pp. 100–102
- Peter Hoff, Statistical Decision Problems, §§2–4.2, PDF pp. 2–8
- Peter Hoff, Statistical Decision Problems, §§4.1–4.2, PDF pp. 7–8
- Karl B. Gregory, USC STAT 713 Lecture 10: Tests of Hypotheses, Size, Power, and p-values, PDF pp. 2–7