Permutation Standard Deviation Calculator

Analyze two samples with exact or simulated relabeling. View spread, significance, intervals, and interactive graphs. Export clean reports for audits, classes, and research teams.

Enter Sample Data

Use commas, spaces, or line breaks.
Both groups should contain numeric values.

What This Calculator Does

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.

Best Use Cases

  • Permutation testing for two independent samples
  • Robust comparisons with fewer distribution assumptions
  • Teaching resampling variability and inference
  • Auditing simulation-based statistical workflows

Plotly Graph

The histogram below shows the permutation distribution. The red line marks the observed statistic. The green line marks the permutation mean.

Example Data Table

Observation Sample A Sample B
11411
21812
31915
42117
52420

Formula Used

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.

Available Statistics

How to Use This Calculator

  1. Enter numeric values for Sample A and Sample B.
  2. Select the comparison statistic you want to study.
  3. Choose a two-sided, greater, or less alternative.
  4. Set Auto, Exact, or Monte Carlo resampling mode.
  5. Enter a simulation count for Monte Carlo runs.
  6. Choose the confidence level for the central interval.
  7. Submit the form to generate the results section.
  8. Review the graph, summary table, and export files.

Frequently Asked Questions

1) What is permutation standard deviation?

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.

2) When should I use this method?

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.

3) What does the p value represent here?

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.

4) Why can exact mode be unavailable?

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.

5) What does the z score tell me?

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.

6) Should I use many permutations?

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.

7) Can I compare medians or variances instead of means?

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.

8) Why use a random seed?

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.

Related Calculators

permutation logistic regressionpermutation confidence intervalbootstrap logistic regression

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.