Bootstrap resampling
An IID nonparametric bootstrap repeatedly draws with replacement from the empirical sample at its original size and recomputes the statistic.
On this page 8 sections
01Understand the idea#
The bootstrap estimates how a statistic varies across samples by resampling the observations you already have. It treats their empirical distribution as an approximation to the population. Each resample has the original size and is drawn with replacement, so records may repeat or be omitted.
For an IID sample, the ordinary bootstrap approximates sampling variation by resampling observed records. Draw independently and uniformly with replacement, using the original sample size. Apply the same statistic to each resample.
For records , one possible draw sequence is . It produces : three draws, with a repeat and an omitted record.
From records , a draw sequence gives values and mean 4. A different sequence gives and mean 7. Compute the statistic separately for every resample; do not report the unchanged original mean 5 for each one.
For the supplied mean rule, add and divide by . The resample gives . The original mean is ; the bootstrap replicate is recomputed from its own draws.
Original IID records: a=1, b=4, c=10. Draw IDs b,b,c with replacement. T=sum/3. Resample and T?
Show answer and explanation
Mean: 18/3=6.
02Generate another same-size replacement sample and evaluate the same rule again#
Generate another same-size replacement sample and evaluate the same rule again. The collected statistic values approximate its sampling distribution. Keep one output per resample, including duplicate outputs.
Original IID records: a=0, b=10. Bootstrap ID runs: (a,a), (b,b), (b,a). T=(x+y)/2. Outputs?
Show answer and explanation
Means: 0, 10, 5.
03Distinct records can share a value#
Distinct records can share a value. For observed , a draw has value with probability . Deduplicating would change the empirical distribution. Tiny examples show the mechanics; they do not guarantee a good population approximation.
Original IID sample has 2 records. “Discard repeated bootstrap draws.” Repair.
Show answer and explanation
Replacement allows repeats.
04A closer look#
The spread of bootstrap means approximates sampling uncertainty when resampling matches the data-generating process. It creates no new real-world observations. Time series and grouped data may need a different design that respects dependence, instead of ordinary IID resampling.
Draw observed records independently with replacement, keep the original sample size, and recompute the same statistic once per resample.
- Construct same-size replacement resamples.
Sources & further reading
- [1]Adhikari, DeNero and Wagner, Computational and Inferential Thinking, 13.2 The Bootstrap ↗Adhikari, DeNero and Wagner · Article