Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Bootstrap and permutation tests use repeated resampling to answer statistical questions when formulas are difficult or assumptions are uncertain. This cheat sheet helps students compare two powerful simulation methods used in modern statistics. It is especially useful for understanding confidence intervals, significance tests, and randomization-based reasoning.

Students need these tools to connect data, variability, and evidence in a clear way.

Bootstrap methods estimate sampling variability by resampling with replacement from the observed data. Permutation tests test a null hypothesis by rearranging labels or outcomes to simulate what random chance could produce. The key ideas are the observed statistic, the resampling distribution, the confidence interval, and the p-value.

Correct interpretation depends on matching the method to the question and keeping the null hypothesis clear.

Key Facts

  • A bootstrap sample is created by sampling nn observations with replacement from the original sample of size nn.
  • A bootstrap statistic, such as xˉ\bar{x}^{*} or p^\hat{p}^{*}, is calculated from each bootstrap sample.
  • A bootstrap standard error can be estimated by the standard deviation of the bootstrap statistics, SEboot=sbootstrap statisticsSE_{boot} = s_{\text{bootstrap statistics}}.
  • A percentile bootstrap confidence interval uses the middle values of the bootstrap distribution, such as the 2.5%2.5\% and 97.5%97.5\% percentiles for a 95%95\% interval.
  • A permutation test simulates the null hypothesis by randomly rearranging labels, groups, or paired signs while keeping the original data values fixed.
  • A p-value is the proportion of simulated statistics at least as extreme as the observed statistic, p=number as extreme as observednumber of simulationsp = \frac{\text{number as extreme as observed}}{\text{number of simulations}}.
  • Bootstrap methods are mainly used for estimation, while permutation tests are mainly used for testing hypotheses.
  • For a two-sided test, extremeness is measured in both directions, often using TTobs|T^{*}| \ge |T_{obs}|.

Vocabulary

Bootstrap sample
A resample made by selecting nn observations with replacement from an original sample of size nn.
Bootstrap distribution
The distribution of a statistic calculated from many bootstrap samples.
Permutation test
A significance test that simulates the null hypothesis by randomly rearranging data labels or outcomes.
Observed statistic
The statistic calculated from the original data, such as xˉ1xˉ2\bar{x}_1 - \bar{x}_2 or p^1p^2\hat{p}_1 - \hat{p}_2.
P-value
The probability, assuming the null hypothesis is true, of getting a statistic as extreme as or more extreme than the observed statistic.
Confidence interval
An interval of plausible values for a population parameter, often written as statistic±margin of error\text{statistic} \pm \text{margin of error}.

Common Mistakes to Avoid

  • Sampling without replacement for a bootstrap sample is wrong because bootstrap samples must mimic repeated sampling by using replacement.
  • Using a permutation test to build a confidence interval is usually wrong because permutation tests are designed to test a null hypothesis, not directly estimate uncertainty.
  • Forgetting to center the permutation distribution at the null value is wrong because the test must simulate what would happen if H0H_0 were true.
  • Counting only values greater than the observed statistic in a two-sided test is wrong because two-sided p-values include results at least as extreme in both directions.
  • Interpreting a 95%95\% confidence interval as a 95%95\% probability that the fixed parameter is inside one computed interval is wrong because the method captures the parameter in about 95%95\% of repeated samples.

Practice Questions

  1. 1 A sample has n=20n = 20 values. How many observations are selected to form one bootstrap sample, and is replacement used?
  2. 2 In a permutation test, 3434 out of 10001000 simulated statistics are at least as extreme as the observed statistic. Find the p-value using p=number as extreme as observednumber of simulationsp = \frac{\text{number as extreme as observed}}{\text{number of simulations}}.
  3. 3 A bootstrap distribution for a mean has a 2.5%2.5\% percentile of 12.412.4 and a 97.5%97.5\% percentile of 18.918.9. State the approximate 95%95\% confidence interval.
  4. 4 Explain why a bootstrap procedure keeps the data values but resamples with replacement, while a permutation test keeps the data values but rearranges labels under the null hypothesis.