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.
Exact permutation tests and random-permutation Monte Carlo
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Conditional and Finite-Group Exact Inference
- 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
- 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
- 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
This page treats permutation inference when a finite group acts measurably on the data space and every null law is invariant under that action. The data space need not be finite, and the action need not be free: group elements are counted with multiplicity. The full-orbit inclusive upper-tail rank is superuniform, while independent uniform randomization within its tied score block gives an exactly uniform null p-value.
For Monte Carlo computation, the page distinguishes two designs. With replacement, it draws transformations IID uniformly from the group; without replacement, it selects a uniform subset of nonidentity transformations. Both designs adjoin the observed identity and divide the inclusive count by . Their validity proofs are separate and retain ties. Assignment randomization under a Fisher sharp null has a different probability law and is treated only in the companion examples; no weak-null or non-invariance validity is inferred.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Measurable finite-group permutation setups
Definition
Let be a statistical experiment (Statistical experiments), let , and let be a finite group (Group and abelian group) acting on by a left action (Left group actions, transitive actions, and faithful actions). Require that each map is measurable from to itself and that is measurable (A measurable function between measurable spaces).
For , the null law is invariant under the action when for every and . Equivalently, and have the same law when . The setup defines the action and score whether or not this invariance condition holds; the validity theorem below assumes it for every null parameter.
The data space need not be finite, and the action need not be free. Group elements, including distinct elements that send to the same point, remain distinct transformations in every group average. On a finite data space with the full power-set sigma-algebra, if every null law is invariant, the setup specializes to Finite-group randomization setups.
Full-orbit and tie-randomized permutation p-values
Definition
In a setup as in Measurable finite-group permutation setups, the inclusive full-orbit upper-tail p-value at is If is independent of the data and uniform on , meaning for every , the tie-randomized full-orbit p-value is Independence is in the sense of Independent random elements. Each count is over group elements with multiplicity, so nonfree actions are handled without replacing by the number of distinct orbit points.
On the finite-space special case with invariant null laws, these formulas are the inclusive and tie-randomized ranks of Orbit upper-tail rank p-values. The null-law validity argument is supplied separately from this definition.
Identity-corrected random-permutation Monte Carlo p-value
Definition
Input: a measurable finite-group setup Measurable finite-group permutation setups, an observed , an integer , and one of the two simulation designs below. Simulated transformations are independent of .
- With replacement. Draw independently and uniformly from . Set , the identity, and return A simulated draw may itself equal ; it is still counted in addition to the distinguished identity.
- Without replacement. Require . Draw a subset uniformly from the -element subsets of , and return This is a uniform-subset design; the selected transformations are distinct and the identity is adjoined.
In either design, a cutoff rule rejects when the returned value is at most . For the only transformation is the distinguished identity and the returned value is . Validity under an invariant null law, including ties, is a separate theorem on this page.
Exact finite-group permutation p-values and tests
Statement
Let be as in Measurable finite-group permutation setups, and suppose every null law , , is invariant under the action. Let and be as in Full-orbit and tie-randomized permutation p-values. Then, for every and every , where is independent uniform on . Thus is a valid p-value; its cutoff has null rejection probability at most , and hence size at most when a nonempty disjoint alternative is specified. The tie-randomized cutoff is a randomized test with rejection probability exactly under each null law. These level and size statements use Test size and power.
On finite sample spaces, the first two distributional claims specialize to Finite-group orbit-rank validity and use the same multiplicity convention as Orbit upper-tail rank p-values. The proof below supplies the measurable-space extension rather than importing it from that finite-space supplier.
Facts & Assumptions
Given: A statistical experiment, nonempty null set , finite group acting measurably on its data space, measurable score , invariance of every null law, and, for the tied assertion, an independent . Prove the two distributional claims and the test conclusions.
Measurable finite-group permutation setups: each acts measurably on the statistical-experiment data space; is measurable; null invariance means for every null parameter and every .
Full-orbit and tie-randomized permutation p-values: counts all with over denominator ; replaces the equality block by its fraction .
Tied upper ranks on a finite multiset: for any nonempty finite list of real scores, the inclusive upper rank of a uniform index is superuniform, and filling its tie block with an independent uniform variable gives an exact uniform value.
Independent random elements: independent random elements have independent generated event sigma-algebras; in particular the auxiliary uniform is independent of the data and the finite uniform group index.
The uniform probability space on a nonempty finite set: the auxiliary index is uniform on the nonempty finite set , assigning probability to each group element.
Valid p-values: validity for a nonempty null means for every null parameter and every .
Valid p-values yield level tests for nonempty disjoint alternatives: a valid p-value threshold is a level- test when a nonempty disjoint alternative is supplied.
Randomized procedures as probability kernels, Randomized tests, and Every measurable rejection function defines a randomized test: a measurable function defines a binary randomized-test kernel with rejection probability .
Test size and power: test size is the supremum of null rejection probabilities over the nonempty null set.
Proof
For each , is measurable by [F1]. For measurable real functions , , so strict comparisons are measurable; equality sets are complements of the union of the two opposite strict comparisons. Finite sums show that both rank counts are measurable. The identity belongs to , so the tied count is at least one and both p-value formulas take values in . For the joint tie-rank formula, partition the data space by the finitely many possible integer pairs ; on each part it is an affine function of , so it is jointly measurable.
Fix and let be uniform on , independent of . For each fixed , invariance gives . Averaging over the finite law of therefore gives , so replacing by does not change either p-value distribution.
Fix and form the finite list indexed by , retaining repeated values and repeated orbit points. At , the transformed list at is as ranges over . Right multiplication is a bijection of , and the observed value is the entry indexed by . Thus is the inclusive upper rank of a uniform index in , while is its independently tie-randomized rank.
By [F3], conditional on each fixed , the first rank in step 2.1 is superuniform and the second is uniform. Averaging over preserves these bounds. The distributional equality in step 1.2 transfers them from back to , proving both displayed claims for this . Since was arbitrary in , the claims hold under every null law. No orbit quotient or freeness assumption is used.
By [F6], is a valid p-value; [F7] gives its level- cutoff test when an alternative is specified. For the tied test put and . Its conditional rejection probability is , because exactly when , with the threshold clipped to . The counts are measurable by step 1.1 and , so [F8] makes a randomized test. Its null rejection probability equals by step 3.1, and [F9] identifies its size as when a nonempty disjoint alternative is specified. The argument uses only a finite uniform group index and the stated uniform tie randomizer; it uses no choice axiom.
Validity of identity-corrected random-permutation Monte Carlo p-values
Statement
In a setup as in Measurable finite-group permutation setups, suppose every null law is invariant. Fix and use either design of Identity-corrected random-permutation Monte Carlo p-value. With replacement, let be the unordered transformation multiset, with multiplicity, represented by , where the are independent uniform draws from . Without replacement, let , where is a uniformly selected -subset of and . In both cases define counting multiplicity in the with-replacement case.
Let be the finite set of possible transformation multisets for the with-replacement design or subsets for the without-replacement design, and let be the induced design law. On use the joint experiment whose law at is for in the product sigma-algebra. Then Thus is a valid p-value on the joint experiment and its cutoff has null rejection probability at most . When a nonempty disjoint alternative is specified, the cutoff test has size at most and is level . The proof treats the uniform-subset design separately; the without-replacement formula is not inferred from the with-replacement case. If without replacement, and the formula reduces to the full-orbit value of Exact finite-group permutation p-values and tests.
Facts & Assumptions
Given: A finite group acting measurably, a measurable score, invariant null laws, an integer , and either independent uniform draws with replacement or a uniform -subset of nonidentity transformations without replacement. Prove superuniformity including ties and the test conclusion.
Measurable finite-group permutation setups: each null law is invariant under every group element and the score is measurable.
Identity-corrected random-permutation Monte Carlo p-value: the with-replacement design uses the distinguished identity plus IID uniform group draws; the without-replacement design adjoins the identity to a uniform subset of .
Independent random elements: the simulation design and its auxiliary randomization are independent of the observed data; in the with-replacement proof the selected position is uniform and independent of the list, while in the without-replacement proof the selected element is uniform conditional on the sampled set.
The uniform probability space on a nonempty finite set: a uniform law on a nonempty finite set gives each element the same probability.
Tied upper ranks on a finite multiset: the inclusive upper rank of a uniformly selected index from any finite real-valued list is superuniform, with ties counted by index.
Exact finite-group permutation p-values and tests: using all of gives the full-orbit inclusive upper rank p-value under the same invariant-null premise.
Valid p-values: a valid p-value is superuniform under each law in the nonempty null.
Valid p-values yield level tests for nonempty disjoint alternatives: thresholding a valid p-value gives a level test.
Randomized procedures as probability kernels, Randomized tests, and Every measurable rejection function defines a randomized test: a measurable rejection function in defines a binary randomized test.
Test size and power: size is the supremum over the null of the test's rejection probability.
Statistical experiments: a statistical experiment is a measurable data space together with one probability measure on it for each parameter.
Proof
For the selected design, is finite. Every has measurable sections . The displayed finite sum is nonnegative with total mass one. For disjoint , each section is the disjoint union of , so countable additivity of and the finite sum over give countable additivity of . Thus [F11] makes this a joint statistical experiment. For measurable real functions , is measurable because . Therefore each section is measurable. Since is finite, each sublevel set of is a finite union of measurable sections , so is measurable on the joint space. The distinguished identity contributes one tied-or-higher value, so ; at , and .
First use the with-replacement design. Represent by its generating positions to choose an independent uniform position , and write for the entry at that position. The unordered multiset has the same law as : if is the identity position it is unchanged; if , right multiplication by makes position equal to , makes the former identity position uniform on , and leaves the other draws conditionally independent uniform on . Thus, after order is ignored, there is again one distinguished identity and IID uniform group elements.
Now use the without-replacement design and put . The possible sets are the -element subsets of containing , all equally likely. Given , choose uniformly from its elements. The map is a bijection from pairs with , , onto pairs with , , : its inverse is . Each fixed in the image has exactly possible , so has the same uniform-subset law as .
Since is independent of and each fixed preserves its null law, conditioning on gives . By step 1.2, has the same design law as , so and have the same joint law. Now fix and a labelled presentation of a with-replacement multiset before drawing . The value counts, with multiplicity, the entries for which , because . As is uniform over the positions, this is the inclusive upper rank of a uniform position in the score multiset . By [F5] this rank is superuniform conditional on ; averaging and using the joint-law equality transfers the bound to . This proves the with-replacement case, with ties and duplicate transformations counted by position.
The auxiliary pair is independent of . For each fixed value of that pair, invariance gives ; step 1.3 gives the same design law as . Hence and have the same joint law. To bound the transformed p-value, fix before drawing . Conditional on , is uniform over its elements, and is the inclusive upper rank of that selected position in , since . By [F5] this rank is superuniform conditional on ; averaging and using the joint-law equality transfers the bound to . This is a separate uniform-subset proof.
By [F7], the superuniform bounds in steps 2.1 and 2.2 make a valid p-value on the joint experiment. For each observed , the probability over the finite simulation design of rejection is , a finite average of measurable indicators by step 1.1. By [F9], defines a binary randomized test on the original experiment. Its null rejection probability is , the rejection probability of the joint-experiment threshold test covered by [F8]. Thus, when a nonempty disjoint alternative is specified, [F10] gives size at most and hence level . When without replacement, the only possible set is , so the formula agrees with [F6]. No choice axiom is used.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Jesse Hemerik and Jelle Goeman, Exact Testing with Random Permutations, §§2.1–2.2 and 3.1–3.4
- Eugene Katsevich, STAT 9610 Lecture Notes, §3.2.4.2
- Jesse Hemerik and Jelle Goeman, Exact Testing with Random Permutations, §§2.1–2.2 and 3.3–3.4
- Jesse Hemerik and Jelle Goeman, Exact Testing with Random Permutations, Definition 2 and Theorem 2
- Eugene Katsevich, STAT 9610 Lecture Notes, §3.2.4.2, equations (3.18)–(3.20)
- Jesse Hemerik and Jelle Goeman, Exact Testing with Random Permutations, Theorems 1 and 2 and Proposition 3
- Jesse Hemerik and Jelle Goeman, Exact Testing with Random Permutations, Definition 2 and Theorem 2 with proof