Permutation Test

A permutation test (aka randomization test) for MATLAB, testing for a difference in means between two samples.
3.3K Downloads
Updated Wed, 13 Jan 2021 10:19:47 +0000
A permutation test (aka randomization test) for MATLAB, testing for a difference in means between two samples. It supports one- and two-tailed tests, and returns a p-value, the observed difference, and the effect size (Hedges' g). The result can optionally be visualized using a histogram. It is also possible to perform exact tests, during which all possible permutations are considered.

Cite As

Laurens R Krol (2024). Permutation Test (https://github.com/lrkrol/permutationTest), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
2024.02.19.1

Updated MathWorks-GitHub integration

2024.02.19.0

switched to non-strict inequalities when calculating p

2021.1.13.0

Replaced effect size calculation with Hedges' g, from Hedges & Olkin (1985), Statistical Methods for Meta-Analysis (p. 78, formula 3), Orlando, FL, USA: Academic Press.

2020.7.14.0

- Added version-dependent call to hist/histogram
- Removed permutationPrecision pending update

2019.2.1.0

- Changed number of bins in the plot
- Added separate script permutationPrecision
- Updated documentation

2018.3.14.0

Added exact test
Cosmetic changes

2017.4.4.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.