TOPICS
Search

Permutation Test


A permutation test is a hypothesis testing procedure in which the observed test statistic is compared with its distribution under transformations of the data that leave the null hypothesis invariant. Let G be a finite set of allowed permutations, let z denote the observed data, and let T be a statistic for which larger values are more extreme. If the null hypothesis makes the transformed datasets gz equally likely, the exact one-sided p-value is

 p=1/(|G|)sum_(g in G)1_({T(gz)>=T(z)}),

where 1_A is the indicator function of an event A. A two-sided test instead uses a prespecified two-sided measure of extremeness.

When enumerating all allowed permutations is impractical, B transformations g_1, ..., g_B can be sampled. A standard Monte Carlo estimate that avoids reporting a zero p-value is

 p^^=(1+sum_(b=1)^(B)1_({T(g_bz)>=T(z)}))/(B+1).

The test is valid when its null hypothesis makes the transformed datasets equally likely and the transformations respect the experimental design. Arbitrarily shuffling observations for which this condition fails does not give an exact test.


See also

Fisher's Exact Test, Hypothesis Testing, Permutation, Rank Test, Resampling Statistics

Explore with Wolfram|Alpha

References

Fisher, R. A. The Design of Experiments. Edinburgh, Scotland: Oliver and Boyd, 1935.Good, P. I. Permutation Tests: A Practical Guide to Resampling Methods for Testing Hypotheses, 2nd ed. New York: Springer-Verlag, 2000.Phipson, B. and Smyth, G. K. "Permutation p-Values Should Never Be Zero: Calculating Exact p-Values When Permutations Are Randomly Drawn." Statist. Appl. Genet. Mol. Biol. 9, Article 39, 2010. https://doi.org/10.2202/1544-6115.1585.

Cite this as:

Weisstein, Eric W. "Permutation Test." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/PermutationTest.html

Subject classifications