- Introduced by
- Bradley Efron
- Year
- 1979
- Type
- Resampling-based inference
What does it do?
Bootstrap inference, introduced by Bradley Efron in 1979, estimates the sampling distribution of a statistic by repeatedly resampling the observed data with replacement.
It does not require a parametric form for that distribution. Its justification is asymptotic, so its intervals are only as good as the sample they are drawn from and can be inaccurate for skewed statistics or very small samples.
The intuition behind the method
Instead of relying on a theoretical formula for how a statistic varies from sample to sample, the bootstrap treats your dataset as a stand-in for the population. It draws many new samples of the same size by picking observations at random with replacement, recomputes the statistic on each one, and watches how much the answer wobbles. That spread of recomputed values becomes a direct, data-driven picture of the statistic's uncertainty.
History
Bradley Efron introduced the bootstrap in his 1979 Annals of Statistics paper, presenting it as a general method and showing that the jackknife is a linear approximation to it. Efron and Tibshirani's 1993 book An Introduction to the Bootstrap is a standard textbook treatment of the method.
When to use it
Use the bootstrap when you need a standard error or confidence interval for a statistic and a normality or large-sample approximation is doubtful, for example with skewed data, a modest sample, or a statistic such as a ratio or correlation with no readily available closed-form variance. Its validity rests on the observations being independent and the sample being representative of the population; if either condition fails, resampling will not correct the problem. When observations are clustered or otherwise dependent, use a block (cluster) bootstrap that resamples whole groups instead. The minimum sample size is 10 observations, and below that the bootstrap is a poor choice. Even at or above this minimum, intervals from small samples are less stable and should be checked, for example against a permutation test for comparison questions.
Limitations and considerations
- Reliability depends on sample size: intervals from very small samples can be unstable, so dependable intervals should not be expected when the sample is very small.
- Below 10 observations the bootstrap distribution carries little real information, and an exact test or the jackknife is the better option.
- It assumes independent observations and a representative original sample; if these assumptions fail, the bootstrap reproduces the bias or dependence in the data rather than correcting it. For clustered data, resampling individual observations does not preserve the dependence structure; a block bootstrap that resamples entire groups does.
- Its validity is asymptotic. In finite samples, percentile intervals can deviate from their nominal coverage, particularly for skewed statistics, and bias-corrected and accelerated (BCa) intervals are a common alternative.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- It does not require a normality assumption or a parametric error distribution, so it can be applied to statistics such as a ratio or a regression parameter whose variance has no simple closed form. Its validity is asymptotic, however, as discussed under limitations.
- A single resampling run yields both the bootstrap distribution and percentile limits, so the uncertainty can be read off without deriving a variance analytically.
- Efron's 1979 paper demonstrated the approach on several estimation problems, including the variance of the sample median, ratio estimation and estimating regression parameters.
Applications
- Building confidence intervals for a mean or median when the data are skewed or the sample is small.
- Estimating the standard error of a statistic such as a ratio or a correlation when no simple variance formula is readily available.
- Estimating the sampling variability of regression parameters, one of the problems treated in Efron's 1979 paper, without assuming a parametric error distribution.
How it works
How it works
The observed sample is used to form the empirical distribution F̂ₙ, which places equal probability 1/n on each observed value. A bootstrap sample X* is then drawn from F̂ₙ — that is, n observations are sampled with replacement from the original data — so resampling stands in for drawing fresh samples from the unknown population.
Formula
X^{*} \sim \hat{F}_n, \quad \hat{F}_n(x) = \frac{1}{n}\sum_{i=1}^{n} \mathbb{1}\{x_i \le x\}The statistic of interest (a mean, a slope, a correlation, and so on) is recomputed on each of many bootstrap samples to build its empirical sampling distribution. A confidence interval is then read directly off the percentiles of those bootstrap estimates — for a 95% interval, the 2.5th and 97.5th percentiles.
Formula
\hat{\theta}^{*}_b = s(X^{*}_b), \quad \widehat{CI}_{1-\alpha} = \left[\hat{\theta}^{*}_{(\alpha/2)}, \; \hat{\theta}^{*}_{(1-\alpha/2)}\right]Common pitfalls
- Trusting an interval from a very small sample without checking its stability; for comparison questions with small samples, check the result with a permutation test.
- Applying it below 10 observations, where the resampled distribution carries little real information; prefer the jackknife or an exact test.
- Forgetting that the bootstrap only mirrors the sample it is given: a non-representative or dependent sample yields a confident but wrong interval.
- Resampling individual observations from clustered data instead of whole groups, which does not preserve the dependence structure.
- Using too few resamples, which leaves the percentile limits noisy from one run to the next; a commonly used number for confidence intervals is 1000 or more.
Frequently asked questions
What is the difference between the bootstrap and the jackknife?
The jackknife systematically leaves out one observation at a time to approximate the sampling distribution, whereas the bootstrap resamples with replacement to build a full empirical sampling distribution. Efron's 1979 paper shows the jackknife to be a linear approximation to the bootstrap. For very small samples (under 10), the jackknife or an exact test is the better option.
How many bootstrap resamples should I use?
A commonly used number for confidence intervals is 1000 or more, which reduces the Monte Carlo noise in the percentile limits. The required number depends on the statistic and the precision needed. Too few resamples leave the interval noisy from one run to the next.
Does the bootstrap fix a biased sample?
No. The bootstrap only reproduces the information already in your sample. If the original sample is non-representative, the method will faithfully carry that bias into the confidence interval. If the observations are clustered or dependent, a block (cluster) bootstrap that resamples whole groups should be used.
When should I prefer a permutation test instead?
For small samples, and especially for comparison-type questions such as testing whether two groups differ, a permutation (randomization) test is often the more reliable choice. It builds the null distribution by rearranging group labels under the null hypothesis, rather than resampling the observed values with replacement.
Related methods
Sources
Efron, B. (1979). Bootstrap Methods: Another Look at the Jackknife. Annals of Statistics, 7(1), 1-26.
Open DOI referenceEfron, B. & Tibshirani, R. J. (1993). An Introduction to the Bootstrap. Chapman & Hall/CRC Press.
ISBN: 978-0412042317Mostly Harmless Econometrics: An Empiricist's Companion, block bootstrap discussion (page not captured in library extract)