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.

✓ 2 results · all verified · 0 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 2 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Exact permutation tests and random-permutation Monte Carlo

1 · Prerequisites

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 B+1. 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

DefinitionDefinition: AI-adaptedProof: Not applicableOpen item page →

Measurable finite-group permutation setups

Definition

Let E=((X,A),Θ,(Pθ)θ∈Θ) be a statistical experiment (Statistical experiments), let ∅≠Θ0⊆Θ, and let G be a finite group (Group and abelian group) acting on X by a left action (Left group actions, transitive actions, and faithful actions). Require that each map x↦g⋅x is measurable from (X,A) to itself and that T:X→R is measurable (A measurable function between measurable spaces).

For θ∈Θ0, the null law is invariant under the action when Pθ({x:g⋅x∈A})=Pθ(A) for every g∈G and A∈A. Equivalently, g⋅X and X have the same law when X∼Pθ. 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 x 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.

DefinitionDefinition: AI-adaptedProof: Not applicableOpen item page →

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 x∈X is porb(x):=#{g∈G:T(g⋅x)≥T(x)}∣G∣. If U is independent of the data and uniform on [0,1], meaning P(U≤u)=u for every u∈[0,1], the tie-randomized full-orbit p-value is ptie(x,U):=#{g∈G:T(g⋅x)>T(x)}+U #{g∈G:T(g⋅x)=T(x)}∣G∣. Independence is in the sense of Independent random elements. Each count is over group elements with multiplicity, so nonfree actions are handled without replacing ∣G∣ 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.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

Identity-corrected random-permutation Monte Carlo p-value

Definition

Input: a measurable finite-group setup Measurable finite-group permutation setups, an observed x, an integer B≥0, and one of the two simulation designs below. Simulated transformations are independent of X.

  1. With replacement. Draw g1,…,gB independently and uniformly from G. Set g0=e, the identity, and return p^B,wr(x):=1+∑b=1B1{T(gb⋅x)≥T(x)}B+1. A simulated draw may itself equal e; it is still counted in addition to the distinguished identity.
  2. Without replacement. Require B≤∣G∣−1. Draw a subset S uniformly from the B-element subsets of G∖{e}, and return p^B,wor(x):=#{g∈{e}∪S:T(g⋅x)≥T(x)}B+1. 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 α∈[0,1]. For B=0 the only transformation is the distinguished identity and the returned value is 1. Validity under an invariant null law, including ties, is a separate theorem on this page.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passOpen item page →

Exact finite-group permutation p-values and tests

Statement

Let E,Θ0,G,T be as in Measurable finite-group permutation setups, and suppose every null law Pθ, θ∈Θ0, is invariant under the action. Let porb and ptie be as in Full-orbit and tie-randomized permutation p-values. Then, for every u∈[0,1] and every θ∈Θ0, Pθ(porb(X)≤u)≤u,Pθ(ptie(X,U)≤u)=u, where U is independent uniform on [0,1]. Thus porb 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 Θ0, finite group G acting measurably on its data space, measurable score T, invariance of every null law, and, for the tied assertion, an independent U∼Unif⁡[0,1]. Prove the two distributional claims and the test conclusions.

[F1]

Measurable finite-group permutation setups: each g acts measurably on the statistical-experiment data space; T is measurable; null invariance means g⋅X=dX for every null parameter and every g∈G.

[F2]

Full-orbit and tie-randomized permutation p-values: porb counts all g with T(g⋅x)≥T(x) over denominator ∣G∣; ptie replaces the equality block by its fraction U.

[F3]

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.

[F4]

Independent random elements: independent random elements have independent generated event sigma-algebras; in particular the auxiliary uniform U is independent of the data and the finite uniform group index.

[F5]

The uniform probability space on a nonempty finite set: the auxiliary index H is uniform on the nonempty finite set G, assigning probability 1/∣G∣ to each group element.

[F6]

Valid p-values: validity for a nonempty null means Pθ(p(X)≤u)≤u for every null parameter and every u∈[0,1].

[F7]

Valid p-values yield level tests for nonempty disjoint alternatives: a valid p-value threshold 1{p≤α} is a level-α test when a nonempty disjoint alternative is supplied.

[F8]

Randomized procedures as probability kernels, Randomized tests, and Every measurable rejection function defines a randomized test: a measurable function ϕ:X→[0,1] defines a binary randomized-test kernel with rejection probability ϕ(x).

[F9]

Test size and power: test size is the supremum of null rejection probabilities over the nonempty null set.

Proof

technique · randomize the observed index over the finite group, then apply the finite tied-rank lemma to the score list
1.1F1F2givenalgebra

For each g∈G, x↦T(g⋅x) is measurable by [F1]. For measurable real functions f,h, {f>h}=⋃q∈Q{f>q}∩{h<q}, 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 G, so the tied count is at least one and both p-value formulas take values in [0,1]. For the joint tie-rank formula, partition the data space by the finitely many possible integer pairs (N>,N=); on each part it is an affine function of U, so it is jointly measurable.

1.2F1F4F5given

Fix θ∈Θ0 and let H be uniform on G, independent of (X,U). For each fixed h∈G, invariance gives h⋅X=dX. Averaging over the finite law of H therefore gives (H⋅X,U)=d(X,U), so replacing X by H⋅X does not change either p-value distribution.

2.1F2F3F4F5step 1.2algebra

Fix x and form the finite list ag=T(g⋅x) indexed by g∈G, retaining repeated values and repeated orbit points. At H=h, the transformed list at h⋅x is T((gh)⋅x) as g ranges over G. Right multiplication g↦gh is a bijection of G, and the observed value T(h⋅x) is the entry indexed by h. Thus porb(h⋅x) is the inclusive upper rank of a uniform index in (ag)g∈G, while ptie(h⋅x,U) is its independently tie-randomized rank.

3.1F1F3F5step 1.2step 2.1

By [F3], conditional on each fixed x, the first rank in step 2.1 is superuniform and the second is uniform. Averaging over X preserves these bounds. The distributional equality in step 1.2 transfers them from H⋅X back to X, proving both displayed claims for this θ. Since θ was arbitrary in Θ0, the claims hold under every null law. No orbit quotient or freeness assumption is used.

4.1F2F3F6F7F8F9step 1.1step 3.1algebra∎

By [F6], porb is a valid p-value; [F7] gives its level-α cutoff test when an alternative is specified. For the tied test put N>(x)=#{g:T(g⋅x)>T(x)} and N=(x)=#{g:T(g⋅x)=T(x)}. Its conditional rejection probability is ϕα(x)=min⁡{1,max⁡{0,(∣G∣α−N>(x))/N=(x)}}, because ptie(x,U)≤α exactly when U≤(∣G∣α−N>(x))/N=(x), with the threshold clipped to [0,1]. The counts are measurable by step 1.1 and N=(x)≥1, so [F8] makes ϕα a randomized test. Its null rejection probability equals Pθ(ptie(X,U)≤α)=α 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.

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passOpen item page →

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 B≥0 and use either design of Identity-corrected random-permutation Monte Carlo p-value. With replacement, let W be the unordered transformation multiset, with multiplicity, represented by (e,g1,…,gB), where the gb are independent uniform draws from G. Without replacement, let W={e}∪S, where S is a uniformly selected B-subset of G∖{e} and B≤∣G∣−1. In both cases define pB(X,W):=#{g∈W:T(g⋅X)≥T(X)}B+1, counting multiplicity in the with-replacement case.

Let W 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 X×W use the joint experiment whose law at θ is P~θ(A):=∑w∈Wν(w) Pθ({x:(x,w)∈A}) for A in the product sigma-algebra. Then P~θ(pB(X,W)≤u)≤u(θ∈Θ0, 0≤u≤1). Thus pB 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 B=∣G∣−1 without replacement, W=G 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 B≥0, and either independent uniform draws with replacement or a uniform B-subset of nonidentity transformations without replacement. Prove superuniformity including ties and the test conclusion.

[F1]

Measurable finite-group permutation setups: each null law is invariant under every group element and the score is measurable.

[F2]

Identity-corrected random-permutation Monte Carlo p-value: the with-replacement design uses the distinguished identity plus B IID uniform group draws; the without-replacement design adjoins the identity to a uniform subset of G∖{e}.

[F3]

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.

[F4]

The uniform probability space on a nonempty finite set: a uniform law on a nonempty finite set gives each element the same probability.

[F5]

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.

[F6]

Exact finite-group permutation p-values and tests: using all of G gives the full-orbit inclusive upper rank p-value under the same invariant-null premise.

[F7]

Valid p-values: a valid p-value is superuniform under each law in the nonempty null.

[F8]

Valid p-values yield level tests for nonempty disjoint alternatives: thresholding a valid p-value gives a level test.

[F9]

Randomized procedures as probability kernels, Randomized tests, and Every measurable rejection function defines a randomized test: a measurable rejection function in [0,1] defines a binary randomized test.

[F10]

Test size and power: size is the supremum over the null of the test's rejection probability.

[F11]

Statistical experiments: a statistical experiment is a measurable data space together with one probability measure on it for each parameter.

Proof

technique · recenter the transformation list at a uniformly selected position, then use a separate invariant-subset argument for sampling without replacement
1.1F1F2F11givenalgebra

For the selected design, W is finite. Every A∈A⊗2W has measurable sections Aw={x:(x,w)∈A}. The displayed finite sum P~θ(A)=∑wν(w)Pθ(Aw) is nonnegative with total mass one. For disjoint An, each section (⋃nAn)w is the disjoint union of (An)w, so countable additivity of Pθ and the finite sum over w give countable additivity of P~θ. Thus [F11] makes this a joint statistical experiment. For measurable real functions f,h, {f≥h} is measurable because {f<h}=⋃q∈Q{f<q}∩{h>q}. Therefore each section x↦pB(x,w) is measurable. Since W is finite, each sublevel set of pB is a finite union of measurable sections Aw×{w}, so pB is measurable on the joint space. The distinguished identity contributes one tied-or-higher value, so 1/(B+1)≤pB≤1; at B=0, W={e} and pB=1.

1.2F2F3F4givenconstruct

First use the with-replacement design. Represent W by its B+1 generating positions to choose an independent uniform position J, and write H for the entry at that position. The unordered multiset WH−1 has the same law as W: if J is the identity position it is unchanged; if J=j>0, right multiplication by H−1=gj−1 makes position j equal to e, makes the former identity position gj−1 uniform on G, and leaves the other B−1 draws conditionally independent uniform on G. Thus, after order is ignored, there is again one distinguished identity and B IID uniform group elements.

1.3F2F3F4construct

Now use the without-replacement design and put w=B+1. The possible sets W are the w-element subsets of G containing e, all equally likely. Given W, choose H uniformly from its w elements. The map (W,H)↦(WH−1,H) is a bijection from pairs with e∈W, ∣W∣=w, H∈W onto pairs (S,h) with e∈S, ∣S∣=w, h−1∈S: its inverse is (S,h)↦(Sh,h). Each fixed S in the image has exactly w possible h, so WH−1 has the same uniform-subset law as W.

2.1F1F3F5step 1.2algebra

Since X is independent of (W,J) and each fixed H∈G preserves its null law, conditioning on (W,J) gives H⋅X=dX. By step 1.2, WH−1 has the same design law as W, so (H⋅X,WH−1) and (X,W) have the same joint law. Now fix x and a labelled presentation of a with-replacement multiset W before drawing J. The value pB(H⋅x,WH−1) counts, with multiplicity, the entries w∈W for which T(w⋅x)≥T(H⋅x), because (wH−1)⋅(H⋅x)=w⋅x. As J is uniform over the B+1 positions, this is the inclusive upper rank of a uniform position in the score multiset (T(w⋅x))w∈W. By [F5] this rank is superuniform conditional on x,W; averaging and using the joint-law equality transfers the bound to pB(X,W). This proves the with-replacement case, with ties and duplicate transformations counted by position.

2.2F1F3F5step 1.3algebra

The auxiliary pair (W,H) is independent of X. For each fixed value of that pair, invariance gives H⋅X=dX; step 1.3 gives WH−1 the same design law as W. Hence (H⋅X,WH−1) and (X,W) have the same joint law. To bound the transformed p-value, fix x,W before drawing H. Conditional on W, H is uniform over its B+1 elements, and pB(H⋅x,WH−1) is the inclusive upper rank of that selected position in (T(g⋅x))g∈W, since (gH−1)⋅(H⋅x)=g⋅x. By [F5] this rank is superuniform conditional on x,W; averaging and using the joint-law equality transfers the bound to pB(X,W). This is a separate uniform-subset proof.

3.1F6F7F8F9F10F11step 1.1step 2.1step 2.2algebra∎

By [F7], the superuniform bounds in steps 2.1 and 2.2 make pB a valid p-value on the joint experiment. For each observed x, the probability over the finite simulation design of rejection is ϕα(x)=∑w∈Wν(w)1{pB(x,w)≤α}, 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 Eθ[ϕα(X)]=P~θ(pB≤α)≤α, 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 B=∣G∣−1 without replacement, the only possible set is W=G, so the formula agrees with [F6]. No choice axiom is used.

5 · Examples, counterexamples and false statements

None yet.

Sources