- Introduced by
- Bradley Efron (bootstrap framework); Phillip Good (permutation tests); Monte Carlo tradition traced to Stanislaw Ulam and John von Neumann
- Year
- 1980s–1990s (bootstrap: 1979; permutation inference: mid-20th century; unified simulation-assisted framing: 1990s–2000s)
- Type
- Quantitative research design integrating computational simulation with classical hypothesis testing
- Family
- Survey / observational design
What does it do?
Simulation-assisted hypothesis testing research replaces or supplements analytical probability theory with computational simulation — resampling, permutation, or Monte Carlo methods — to construct null distributions and evaluate hypotheses.
Rather than assuming a parametric distribution and consulting a table, the researcher generates thousands of simulated datasets from the observed data or a specified model, building an empirical null distribution against which the observed test statistic is compared. The approach is especially valuable when analytic assumptions (normality, large samples) cannot be met.
The intuition behind the method
In classical hypothesis testing you compare an observed statistic to a theoretical distribution (t, F, chi-square) and trust that distribution to correctly represent what would happen by chance. But what if your data are skewed, your sample is small, or your test statistic has no known distribution? Simulation-assisted hypothesis testing sidesteps this problem by asking the computer to do what theory cannot: generate thousands of plausible 'what-if-the-null-were-true' datasets from your own data, compute the statistic on each one, and use that empirical cloud of values as the reference. The p-value is simply the fraction of simulated statistics at least as extreme as the one you observed.
History
Permutation-based inference goes back to R. A. Fisher in the 1930s, when randomisation tests were proposed as exact tests that do not depend on distributional assumptions. Stanislaw Ulam and John von Neumann developed Monte Carlo simulation for physics problems, and the technique later entered statistics through numerical analysis. Bradley Efron's 1979 paper introduced the bootstrap as a general-purpose resampling framework that unified many simulation-based inference ideas. Phillip Good's book, cited here in its third edition (2005), is among the texts that systematised permutation and simulation tests for applied researchers, and advances in computing since the 2000s have made these methods widely available in major statistical software.
When to use it
Use simulation-assisted hypothesis testing when parametric assumptions are violated or cannot be verified: small samples, non-normal distributions, heterogeneous variances, sparse contingency tables, or complex statistics with no known sampling distribution. It is well suited to experimental and quasi-experimental designs in which group assignments can be permuted under the null, and to planning studies where power must be assessed by simulating realistic data rather than by textbook formulas. Do not use it as a default replacement for standard tests when their assumptions are satisfied; when a t-test or ANOVA is appropriate and its assumptions hold, the simulation adds computation and interpretation effort without a clear gain. Avoid it when groups are very small (for example, n < 5 per group), so that few distinct permutations exist and no resampling strategy can represent the population adequately. Where the number of distinct permutations is small enough to enumerate, an exact permutation test removes Monte Carlo error altogether and is preferable to random sampling of permutations.
Limitations and considerations
- Computationally intensive: each replicate requires recomputing the statistic, and when the statistic involves refitting a regression or multilevel model, the cost grows with B.
- Permutation tests require exchangeability under the null, an assumption that is subtle and can be violated in clustered or correlated designs.
- Bootstrap p-values can be anti-conservative (too small) if the bootstrap distribution does not accurately approximate the sampling distribution.
- Results depend on the choice of B; too few replicates introduce Monte Carlo error into the p-value estimate.
- Bootstrap validity rests on the observed sample being an independent, identically distributed sample that represents the population, and on the statistic being smooth enough that resampling approximates its sampling distribution. These conditions are harder to satisfy in small samples.
- Interpreting a significant permutation test as a difference in means or medians requires that the groups differ mainly in location. Otherwise the test detects a general difference in distribution, which may be driven by differences in spread or shape.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Does not require a parametric distributional assumption: the reference distribution comes from the data or the specified null model, so skewed or bounded data can be analysed without transformation.
- Applicable to any test statistic that can be computed on a replicate, including custom or complex statistics with no known sampling distribution.
- For permutation tests, the p-value is not based on an asymptotic approximation; the remaining approximation error is Monte Carlo error from the finite number of replicates B, which matters most when samples are small.
- The same simulation framework can be reused for a priori power analysis and sample-size planning.
- The simulated null distribution can be plotted and inspected directly, so the shape of the reference distribution is visible rather than assumed.
Applications
- Testing group differences in educational or psychological experiments where normality cannot be assumed and sample sizes are modest.
- Evaluating mediation or moderation effects whose sampling distributions are non-normal (e.g., bootstrap confidence intervals for indirect effects).
- Genome-wide association studies, where millions of simultaneous tests call for multiple-testing control; simulation-based corrections such as permutation can be used to control family-wise error rates in high-dimensional testing.
- Survey research comparing complex statistics (e.g., weighted proportions, Gini coefficients) across subgroups with small cell sizes.
- Engineering and simulation studies where system performance metrics are compared across design conditions using Monte Carlo output.
- A priori power analysis for novel designs or custom statistics where no analytic power formula exists.
How it works
How it works
The researcher states the null and alternative hypotheses, selects a test statistic (e.g., difference in means, correlation coefficient, F-ratio), and chooses a simulation strategy matched to the design: permutation (shuffle group labels), bootstrap (resample with replacement), or parametric Monte Carlo (draw from a fitted model). The simulation strategy determines the meaning of the null distribution that will be generated.
The null distribution is built computationally: the observed data are resampled or data are drawn from the null model, the test statistic is computed on each replicate, and this process is repeated B times (commonly B = 1,000–10,000). Each replicate represents one possible outcome under the null hypothesis, producing an empirical reference distribution that does not rely on a parametric formula. For bootstrap-based hypothesis tests, the resampling must be set up so that the null hypothesis holds before the p-value is computed. A bootstrap distribution that has not been shifted to the null describes sampling variability around the observed estimate, so it is suited to confidence intervals rather than to p-values.
The test statistic is computed on the original observed data. This value is the quantity whose location in the null distribution determines the evidence against H0. For permutation tests the statistic is computed after randomly reassigning group membership. For bootstrap tests the statistic is computed on each resample and then centred on the null value, so that the resampled distribution reflects H0 before the observed statistic is located within it.
The B simulated statistic values are arranged into an empirical null distribution. The shape, spread, and tails of this distribution are determined by the data and the simulation model rather than by a theoretical formula. This distribution serves as the reference against which the observed statistic is compared.
The simulation p-value is the proportion of simulated statistics that equal or exceed the observed statistic in absolute value (two-tailed) or in the direction of the alternative (one-tailed). The null hypothesis is rejected when this p-value falls below the pre-specified significance threshold alpha. The p-value by itself does not quantify effect size or power, which must be assessed separately.
Common pitfalls
- Using too few simulation replicates: with B below 1,000, Monte Carlo error can push a borderline p-value to the wrong side of the alpha threshold. For borderline results, B = 10,000 is commonly preferred.
- Confusing permutation and bootstrap logic: permutation tests enforce the null by label-shuffling and are used for hypothesis testing; bootstrap resampling estimates sampling variability and must be modified (e.g., shifted to the null) before it yields a valid p-value.
- Reporting the simulation p-value without checking whether the test statistic itself is appropriate for the research question. Simulation does not correct a misspecified statistical model.
- Ignoring exchangeability: permuting observations that are clustered (students within classrooms, repeated measures) without accounting for the clustering structure yields anti-conservative p-values.
Frequently asked questions
Is a simulation-based p-value more accurate than an analytic p-value?
It depends on how well the parametric assumptions are met. When assumptions hold, analytic p-values are exact (or asymptotically exact) and simulation adds unnecessary Monte Carlo error. When assumptions are violated, such as in small samples or with non-normal distributions, simulation-based p-values can be more accurate than analytic counterparts that rely on approximations which may not apply.
How many simulation replicates (B) do I need?
B = 1,000 is a commonly used lower bound, while B = 5,000–10,000 is recommended for publication-quality results, especially when the p-value is close to the significance threshold. The Monte Carlo standard error of a p-value p̂ is approximately sqrt(p̂(1-p̂)/B); at p̂ = 0.05 and B = 1,000 this gives SE ≈ 0.007, which can flip a borderline result.
Can I use this approach with regression models?
Yes. Permutation of residuals under the reduced model (the Freedman-Lane procedure) extends permutation inference to regression and ANCOVA designs. Bootstrap resampling of cases or residuals provides simulation-based confidence intervals and p-values for regression coefficients, including in multilevel and structural equation models.
How does this differ from Bayesian hypothesis testing?
Both approaches move beyond strict reliance on analytic distributions, but the logic differs fundamentally. Simulation-assisted hypothesis testing remains within the frequentist framework: it constructs a null distribution and computes a p-value. Bayesian hypothesis testing quantifies evidence via Bayes factors or posterior probabilities, requiring a prior distribution over parameters. Simulation can also assist Bayesian computation (MCMC), but that is a different use of simulation.
What software supports simulation-assisted hypothesis testing?
R provides support through packages such as coin (permutation tests), boot (bootstrap), and lmPerm. Python users can use scipy.stats for permutation tests and the arch package for bootstrap inference. Specialized power-analysis software such as PASS and G*Power incorporates Monte Carlo simulation for power analysis.
Related methods
Sources
Efron, B., & Tibshirani, R. J. (1993). An Introduction to the Bootstrap. Chapman and Hall/CRC.
ISBN: 978-0412042317Good, P. I. (2005). Permutation, Parametric and Bootstrap Tests of Hypotheses (3rd ed.). Springer.
ISBN: 978-0387988641