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.
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.
Depends on
- Conditional tests given a statistic
- Conditional level implies unconditional level
- Randomized conditional upper-tail p-values
- Randomized conditional p-values are uniform
- Test size and power
- Finite probability spaces, outcome weights, events, and event probabilities
- Normalization, nonnegativity, monotonicity, complements, and differences in a finite probability space
- Conditional probability $\mathbb P(A\mid B)$ for $\mathbb P(B)>0$
- The finite product of finite probability spaces
- Product weights normalize, and coordinate events are mutually independent
- Pairwise and mutual independence of finite-valued random variables
Used by
Nothing in the library uses this result yet.
Dependency tree · two levels
40 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- Berkeley Stat 210A Course Reader, Testing with Nuisance Parameters, Conditional testing section (standard reference, not scraped)
- George Deligiannidis, Foundations of Statistical Inference, Chapter 13, PDF pp. 77–78 (standard reference, not scraped)