Permutation test

From WikiMD's Wellness Encyclopedia

Permutation test example animation

Permutation tests, also known as randomization tests, re-randomization tests, or exact tests, are a family of statistical significance tests used in inference statistics. They provide a non-parametric alternative to traditional parametric tests, such as the t-test or ANOVA, which rely on assumptions about the underlying probability distribution of the data. Permutation tests are particularly useful when those assumptions are questionable or when dealing with small sample sizes.

Overview[edit | edit source]

Permutation tests operate on the principle that under the null hypothesis, all permutations of the observed data are equally likely. By comparing the observed test statistic to the distribution of test statistics computed from a large number of random permutations of the data, one can assess the p-value, which indicates the probability of observing a test statistic as extreme as, or more extreme than, the observed one under the null hypothesis.

Procedure[edit | edit source]

The basic steps in conducting a permutation test are as follows:

  1. Formulate the null and alternative hypothesis.
  2. Calculate the test statistic for the observed data.
  3. Permute the data or labels of the data randomly and recalculate the test statistic for each permutation.
  4. Compare the original test statistic to the distribution of permuted test statistics to calculate the p-value.

Applications[edit | edit source]

Permutation tests can be applied in a wide range of scenarios, including but not limited to testing the difference in means or medians between two groups, analyzing the association between two variables, and assessing the goodness-of-fit of a model. They are widely used in fields such as psychology, ecology, and genomics, where the assumptions of parametric tests are often violated.

Advantages[edit | edit source]

  • Non-parametric: They do not require assumptions about the form of the distribution of the data.
  • Flexibility: They can be applied to a wide variety of test statistics and experimental designs.
  • Exact: Under the null hypothesis, the p-value is exact, not an approximation, assuming all possible permutations are considered.

Limitations[edit | edit source]

  • Computational Intensity: For large datasets or complex test statistics, the number of possible permutations can be computationally prohibitive.
  • Dependence on the Test Statistic: The choice of test statistic can influence the power of the test.
  • Sample Size Restrictions: In cases with very small sample sizes, the number of unique permutations may be too limited to provide a meaningful p-value.

Comparison with Parametric Tests[edit | edit source]

While permutation tests offer several advantages over parametric tests, especially in terms of flexibility and fewer assumptions, they are not universally superior. Parametric tests can be more powerful when their assumptions are met, and they are generally less computationally intensive.

Software Implementation[edit | edit source]

Several statistical software packages and programming languages, including R and Python, offer functions or libraries for conducting permutation tests, making them accessible for researchers and data analysts.


WikiMD
Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD

Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD