The bootstrap
Lesson 11 of 15 · Stats.Micro
With only one sample, how do we know how much the mean would vary? The bootstrap resamples the data itself with replacement, many times, recomputing the mean each time.
The spread of these bootstrap means estimates the standard error, and the 2.5% and 97.5% percentiles give a 95% confidence interval, all without formulas or normality assumptions.
The bootstrap is the go-to tool for statistics with no simple formula, like the median or a ratio between two metrics.
Create at least 25 bootstrap resamples so the interval appears.
Why must the bootstrap resample WITH replacement?
Without replacement every resample would be the original sample, with the same mean
Resample with replacement from empirical observations to construct non-parametric standard errors without distribution assumptions.
Bradley Efron’s Bootstrap treats the empirical sample distribution as an approximation of the population, resampling with replacement to quantify uncertainty.
Why Resample With Replacement?
If we sampled without replacement, every bootstrap sample would be an exact permutation of the original dataset, resulting in identical sample means every time. Sampling with replacement allows observations to appear multiple times or not at all, reflecting natural sampling variation.
Do it in the browser: a real statistics tool, a short mission and instant feedback. No install.
Start this lesson — free