Analyze two samples with exact or simulated relabeling. View spread, significance, intervals, and interactive graphs. Export clean reports for audits, classes, and research teams.
It builds a permutation distribution by relabeling combined values across two groups. Then it measures the distribution spread using the standard deviation of the resampled statistic.
It also reports the observed statistic, permutation mean, z score, p value, and a central interval for quick interpretation.
The histogram below shows the permutation distribution. The red line marks the observed statistic. The green line marks the permutation mean.
| Observation | Sample A | Sample B |
|---|---|---|
| 1 | 14 | 11 |
| 2 | 18 | 12 |
| 3 | 19 | 15 |
| 4 | 21 | 17 |
| 5 | 24 | 20 |
Let the resampled statistic from permutation i be Ti, and let there be M evaluated permutations. The permutation mean is:
μperm = ( Σ Ti ) / M
The permutation standard deviation is estimated from the resampled statistics:
SDperm = √[ Σ (Ti − μperm)² / (M − 1) ]
The reported z score is:
z = (Tobs − μperm) / SDperm
The p value depends on the selected alternative. For two-sided testing, the calculator counts permutation statistics with absolute distance from the permutation mean at least as large as the observed distance.
It is the standard deviation of the statistic values generated from repeated label rearrangements of the pooled sample. It measures how much the test statistic naturally varies under the permutation model.
Use it when you want fewer parametric assumptions, especially for small samples, skewed data, or unusual distributions. It is valuable for teaching, validation, and nontraditional inference workflows.
The p value estimates how often the relabeled data produce a statistic at least as extreme as the observed one, based on the chosen alternative hypothesis and permutation distribution.
Exact enumeration grows rapidly with sample size because the number of possible relabelings can become very large. Auto mode switches to Monte Carlo simulation when exact evaluation becomes impractical.
It shows how far the observed statistic lies from the permutation mean in permutation standard deviation units. Larger absolute values indicate greater separation from the relabeling reference distribution.
Yes. More permutations usually improve stability of the estimated distribution, standard deviation, and p value. For routine work, several thousand simulations often give a useful balance between speed and precision.
Yes. This calculator supports mean difference, median difference, sum difference, and variance ratio. Different statistics answer different questions, so choose the one matching your analytic goal.
A seed helps reproduce the same Monte Carlo sequence later. That is useful for audits, teaching demonstrations, documentation, and debugging when you need consistent numerical outputs.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.