Permutation Test definition
A permutation test compares an observed statistic to values computed after rearranging labels or assignments allowed by a null hypothesis.
Permutation Test in a picture
How it works
For a two-group test with exchangeable labels under the null, keep the observed outcomes fixed and reshuffle the group labels while preserving group sizes. Recompute the statistic each time. The p-value is based on the fraction of allowed rearrangements at least as extreme as the observation, with extremeness defined before testing.
Worked examples
If 4 of 100 equally likely exact assignments are at least as extreme, what is the exact p-value?
4/100 = 0.04.
What stays fixed in a simple label-shuffling test?
The observed outcomes and the group sizes.
How should you handle a paired study?
Use a permutation scheme that respects the pairs, such as swapping labels within pairs when justified.
Common mistake
Use only rearrangements justified by the study design or exchangeability assumption. Unrestricted shuffling can invalidate a test with pairs or blocks.
Quick check
What do you compute on each arrangement?
Show answer
The same test statistic.
Can a test enumerate all allowed arrangements?
Show answer
Yes, when the number is manageable.
Sources
Flashcard
Permutation Test
Reveal the definition
A permutation test compares an observed statistic to values computed after rearranging labels or assignments allowed by a null hypothesis.
Effortless Math. “Permutation Test.” Math Dictionary.



