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.
Conditional and Finite-Group Exact Inference — Examples
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Conditional and Finite-Group Exact Inference
- Conditional Distributions and Regular Conditional Probability
- Conditional Expectation
- 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
- Estimators and Randomized Procedures
- Finite Counting, Factorials and Binomial Coefficients
- Finite Probability Spaces and Random Variables
- Foundations of the Real Numbers for Analysis
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Independence Borel Cantelli and Zero One Laws
- 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
- Polynomial Rings, the Division Algorithm and Roots
- Probability Spaces Random Variables and Expectation
- Product Measures and the Fubini Tonelli Theorems
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Statistical Experiments, Models and Identifiability
- Suprema and Infima
- Tests, Neyman–Pearson and Valid P-values
- The Lebesgue Integral and the Convergence Theorems
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
2 · Summary
The examples derive Fisher's hypergeometric conditional law from two Bernoulli samples, compute all tail ranks in a small permutation orbit with ties and nontrivial stabilizers, and show that a group-rank p-value can be anti-conservative when the null law is not invariant.
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
Without null invariance a group-rank p-value can be anti-conservative
Statement refuted
For every finite group action and every null law, the inclusive group-average upper-tail rank is superuniform, even when the null law is not invariant under the group.
Facts & Assumptions
Given: A two-point finite sample space, a swapping group action, statistic , the noninvariant null weights specified below, and an auxiliary independent of .
A finite probability space assigns event probabilities by summing outcome weights. Finite probability spaces, outcome weights, events, and event probabilities
A finite-group setup records the action, statistic, and invariance condition. Finite-group randomization setups
The inclusive and tie-randomized orbit-rank formulas count transformed statistic values with multiplicity and divide by . Orbit upper-tail rank p-values
We evaluate those numeric formulas on the stated action and statistic; this law deliberately falls outside the invariant-null setup of [F2], illustrating why its invariance premise is needed for validity.
Counterexample
Take , with swapping and , and let , . This null law is not invariant because .
Given: The finite model and rank formula above.
For , the transformed statistic values are and , so exactly one of the two group elements has value at least and . For , both transformed values are at least , so .
Therefore and , contradicting superuniformity.
The same example also defeats tie randomization: and . Hence , since at the event always occurs and at it requires , an event of probability zero under the independent uniform law in the Given.
A permutation orbit with tied ranks and nontrivial stabilizers
Example
Let permute the coordinates of , give the three points equal probability, take , and use an independent . Each point has a stabilizer of size two. The group-average inclusive ranks are and . The randomized values are and , illustrating how tied ranks fill adjacent intervals even when each orbit point has multiple group preimages.
Facts & Assumptions
Given: The uniform finite sample space, coordinate-permutation action, statistic, and independent .
A finite-group randomization setup requires an invariant null law and defines the orbit. Finite-group randomization setups
Orbit ranks count transformed group elements with multiplicity. Orbit upper-tail rank p-values
Under an invariant null, the inclusive orbit rank is superuniform and the randomized rank is uniform on each positive-probability orbit. Finite-group orbit-rank validity
Conditional probability on a positive-probability finite event is the ratio of event probabilities. Conditional probability for
Verification
The group permutes the three one-hot vectors transitively. Each vector has weight , so every permutation preserves the law and the null is invariant. The permutations fixing a given coordinate position are the identity and the transposition of the other two positions; hence each orbit point is produced by exactly two of the six group elements.
At , ; two transformed values equal and four equal . Thus and . At or , the observed statistic is ; two transformed values are strictly greater and four tie, so and .
Under the uniform null, occurs with probability , and together with probability . Conditional on the first case, is uniform on ; conditional on the second, it is uniform on . For , . For , . Hence is uniform on . The inclusive rank is with probability and with probability , so is for , for , and for ; thus it is superuniform. These are the single-orbit conclusions of [F3].
Fisher's exact test from two Bernoulli samples
Example
Take two independent Bernoulli samples of sizes and test the one-sided alternative that the first success probability exceeds the second. Under the null, all trials have a common success probability . Let be the number of successes in the first sample and the total number in both samples. For every integer margin , define the supplied conditional-law kernel by and set outside the displayed range. For each , these weights sum to one because they count all ways to choose the success positions according to how many lie in the first sample. At margins of positive probability this is the conditional law and it does not depend on ; at endpoint nulls , the formula also supplies a version at the other, probability-zero margins. Large values of support the one-sided alternative that the first sample has a larger success probability. For and , the conditional masses at are ; the inclusive upper-tail p-values are .
Facts & Assumptions
Given: Positive integers , the null product Bernoulli model with common parameter , the statistic conditioned on , the supplied kernel defined for every margin in the Example, and an auxiliary independent of all trials.
A product of finite probability spaces assigns a sequence the product of its coordinate weights. The finite product of finite probability spaces
Product weights normalize and the coordinate trials are independent. Product weights normalize, and coordinate events are mutually independent, Pairwise and mutual independence of finite-valued random variables
For an event of positive probability, conditional probability is the ratio of the joint event probability to the conditioning-event probability. Conditional probability for
The nonrandomized conditional upper-tail value uses the inclusive tail; the randomized value uses the strict tail plus an independent uniform fraction of the tie mass. Randomized conditional upper-tail p-values
For each fixed null value , under the supplied kernel the randomized upper-tail value is conditionally uniform and the inclusive value is conditionally superuniform. Randomized conditional p-values are uniform
A test has unconditional size equal to the supremum of its null rejection expectations; conditional level at most implies unconditional level at most . Test size and power, Conditional level implies unconditional level
Verification
Write and give each coordinate the two-point Bernoulli law. By [F1], a sequence with ones has weight ; the product weights sum to , and [F2] gives the independent-trial model. For , every sequence with has the same positive weight.
There are sequences with successes. Exactly of them have : choose of the first positions and of the other . These counts partition all size- subsets, so the displayed kernel weights sum to one for every , and when , dividing by the total count using [F3] gives the conditional mass; the feasible range is precisely where both binomial coefficients are nonzero. At only occurs and ; at only occurs and , so the supplied kernel has the required conditional law on the realized margin. At the other, probability-zero margins the same formula is simply the chosen kernel extension.
For and , the feasible values are , with counts among the six two-success sequences. Their probabilities are therefore . Summing the masses at or above each observed value gives inclusive p-values . The strict-tail-plus-tie formulas are respectively , , and ; their intervals , , and have lengths matching the three conditional masses.
For each margin with , [F5] makes the nonrandomized p-value conditionally superuniform and the randomized value conditionally uniform under the null. Rejecting when the nonrandomized value is at most is therefore a conditional level- test, so [F6] gives unconditional size at most . The test function of the randomized rule is ; it is measurable because the sample space is finite. By finite conditioning and independence of , , so the randomized rule has conditional and unconditional size exactly . At and the only observed margin has a degenerate conditional law; its inclusive value is and its randomized value is , so the same validity conclusions hold.
Sources
- Jesse Hemerik and Jelle Goeman, Exact testing with random permutations, Sections 2–3
- Peter B. Stark, Statistics 240 Lecture Notes, Part 8: Resampling Methods, §1.3, PDF pp. 10–11
- Berkeley Stat 210A Course Reader, Testing with Nuisance Parameters, Conditional testing section
- George Deligiannidis, Foundations of Statistical Inference, Chapter 13, PDF pp. 77–78