Permutation Test

A permutation test (aka randomization test) for MATLAB, testing for a difference in means between two samples.

https://github.com/lrkrol/permutationTest

You are now following this Submission

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 (2026). Permutation Test (https://github.com/lrkrol/permutationTest), GitHub. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes Action
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.