Mathwords logoMathwords

Resampling Statistics — Definition, Formula & Example

Resampling statistics is a family of inference methods that reuse your observed data many times to see how much a statistic could vary by chance. You do not need a formula or a normality assumption. The two main tools are the bootstrap and the permutation test.

A resampling method approximates the sampling distribution of a statistic TT by recomputing TT on many data sets generated from the observed sample. The bootstrap draws nn values with replacement from the sample, treating the sample's empirical distribution as a stand-in for the population. It is used to estimate standard errors and confidence intervals. A permutation test reassigns group labels without replacement, under the null hypothesis that the labels are exchangeable. This produces the null distribution of TT and an exact or approximate p-value.

Key Formula

SE^boot=1B∑b=1B(Tb∗−Tˉ∗)2\widehat{SE}_{\text{boot}} = \sqrt{\frac{1}{B}\sum_{b=1}^{B}\left(T^{*}_{b} - \bar{T}^{*}\right)^2}
Where:
  • BB = Number of bootstrap resamples: all nnn^n of them for an exact bootstrap, or a few thousand random ones in practice
  • Tb∗T^{*}_{b} = The statistic recomputed on the bbth resample, drawn with replacement from the data
  • Tˉ∗\bar{T}^{*} = The average of the BB resampled statistics
  • SE^boot\widehat{SE}_{\text{boot}} = Bootstrap estimate of the statistic's standard error. Software often divides by B−1B - 1 instead of BB, which makes almost no difference when BB is large.

Worked Example

Problem: A student records how many minutes three buses ran late: 2, 4, and 9. Use the exact bootstrap to estimate the standard error of the sample mean.
Step 1: Each bootstrap sample draws 3 values with replacement from {2, 4, 9}, so there are 33=273^3 = 27 equally likely ordered resamples, such as (2, 2, 9) or (9, 9, 9). Compute the mean of each one. The original sample mean is 5.
33=27 resamples,xˉ=2+4+93=53^3 = 27 \text{ resamples}, \qquad \bar{x} = \frac{2+4+9}{3} = 5
Step 2: The 27 bootstrap means range from 2 (all 2s) to 9 (all 9s) and average to 5. Their variance equals the plug-in variance of the data (dividing by nn) divided by nn.
σ^2=(2−5)2+(4−5)2+(9−5)23=263,Var⁡(xˉ∗)=26/33=269\hat\sigma^2 = \frac{(2-5)^2 + (4-5)^2 + (9-5)^2}{3} = \frac{26}{3}, \qquad \operatorname{Var}(\bar{x}^{*}) = \frac{26/3}{3} = \frac{26}{9}
Step 3: Take the square root to get the bootstrap standard error.
SE^boot=26/9≈1.70 minutes\widehat{SE}_{\text{boot}} = \sqrt{26/9} \approx 1.70 \text{ minutes}
Answer: The bootstrap standard error of the mean is about 1.70 minutes. The textbook formula s/n=13/3≈2.08s/\sqrt{n} = \sqrt{13}/\sqrt{3} \approx 2.08 is a little larger, because the bootstrap divides by nn rather than n−1n - 1. With real data you draw a few thousand random resamples rather than listing them all, and the same steps work for a median or a correlation, which have no simple standard-error formula.

Why It Matters

Some statistics have no simple standard-error formula, such as a median, a ratio, or a correlation. For these, the bootstrap is often the practical way to build a confidence interval, and it is a standard tool in data science and biostatistics. Intro college statistics courses increasingly teach inference through simulation-based permutation tests before t-procedures. The reason is that the logic of a p-value shows up directly in the shuffled results.

Common Mistakes

Mistake: Drawing bootstrap samples without replacement, or mixing up the two methods.
Correction: If you draw nn values from nn without replacement, you just get the original sample back in a new order. A bootstrap sample must be drawn with replacement, so some values repeat and others are left out. A permutation test is the opposite case: it shuffles labels without replacement, because it models the null hypothesis rather than the population.

Related Terms

  • Confidence Interval — Bootstrap percentiles build these without normal-theory formulas
  • Inferential Statistics — The broader field whose goals resampling achieves by simulation
  • Nonparametric Statistics — Shares resampling's freedom from distribution-shape assumptions
  • Test Statistic — The quantity recomputed on every shuffled data set
  • Statistic — Its sample-to-sample variability is what resampling estimates
  • Permutation Test — The other main resampling method, which shuffles group labels to get a p-value
  • Jackknife — An older resampling method that leaves out one observation at a time