Bootstrap
Confidence Intervals
Learn how resampling with replacement lets you construct confidence intervals without relying on parametric assumptions: the percentile, basic, and \( BC_a \) methods.
What Is the Bootstrap?
The bootstrap is a resampling method introduced by Bradley Efron in 1979. The core idea: treat your observed sample as a stand-in for the population, then draw many resamples with replacement to approximate the sampling distribution of any statistic.
Why does this work? By the plug-in principle, the empirical distribution \( \hat{F}_n \) converges to the true distribution \( F \) as \( n \to \infty \). The variability across bootstrap replicates mirrors the true sampling variability of the statistic.
The Bootstrap Algorithm
Visualising the Bootstrap Distribution
Why Use Bootstrap CIs?
Traditional intervals use \( \hat{\theta} \pm z_{\alpha/2} \cdot \widehat{\text{SE}} \), which assumes the sampling distribution is normal and symmetric. The bootstrap relaxes both assumptions.
The Percentile Method
The simplest bootstrap CI. For a \( (1 - \alpha) \times 100\% \) interval, take the \( \frac{\alpha}{2} \) and \( 1 - \frac{\alpha}{2} \) quantiles of the bootstrap distribution directly.
The Basic (Pivotal) Method
Instead of using the bootstrap quantiles directly, the basic method (also called the pivotal or reverse percentile method) reflects the bootstrap distribution around \( \hat{\theta} \).
Notice the bounds are swapped and reflected: the upper percentile appears in the lower bound and vice versa. This "reversal" corrects for bias in the bootstrap distribution.
Percentile vs. Basic: Visual Comparison
The \( BC_a \) Method
The bias-corrected and accelerated (\( BC_a \)) method adjusts the percentile endpoints to account for both bias (the bootstrap distribution centre differs from \( \hat{\theta} \)) and skewness (acceleration).
Key Distinctions Among Methods
| Percentile | Basic | \( BC_a \) | |
|---|---|---|---|
| Formula | Direct quantiles of \( \hat{\theta}^* \) | Reflected quantiles around \( \hat{\theta} \) | Adjusted quantiles via \( \hat{z}_0, \hat{a} \) |
| Bias correction | ✕ None | Partial (pivot) | ✓ Full |
| Skewness correction | ✕ None | ✕ None | ✓ Yes (acceleration) |
| Coverage accuracy | First order | First order | Second order |
| Complexity | Lowest | Low | Moderate (jackknife) |
The Normal (SE) Bootstrap Interval
For completeness, there is also the bootstrap SE method: use the bootstrap to estimate the standard error, then build a normal-theory interval.
This is symmetric by construction, just like the classical CI. It inherits all the problems of assuming normality: poor coverage when the sampling distribution is skewed. It is generally not recommended unless you have strong reason to believe normality holds.
How to Apply Bootstrap CIs
Example 1: Percentile CI for a Mean
A sample of \( n = 20 \) test scores: \( \bar{x} = 74.3 \). After \( B = 5{,}000 \) bootstrap resamples, the sorted bootstrap means yield:
Example 2: Basic CI for the Same Data
Using the same bootstrap replicates from Example 1: \( \hat{\theta} = 74.3 \), \( \hat{\theta}^*_{(0.025)} = 70.8 \), \( \hat{\theta}^*_{(0.975)} = 77.6 \).
Compare: the percentile CI was \( [70.8,\; 77.6] \). The basic CI is \( [71.0,\; 77.8] \): slightly shifted to the right. This reflects a minor negative (left) skew in the bootstrap distribution, which the basic method corrects for.
Example 3: \( BC_a \) for a Median
For a skewed income sample (\( n = 50 \)), the sample median is \( \hat{m} = \$42{,}000 \). After \( B = 10{,}000 \) resamples:
Common Mistakes
Question 1 of 5
In a bootstrap procedure, each bootstrap sample is drawn with replacement and has the same size as the original sample. What is the primary reason for sampling with replacement?
Question 2 of 5
Given \( \hat{\theta} = 50 \), \( \hat{\theta}^*_{(0.025)} = 44 \), and \( \hat{\theta}^*_{(0.975)} = 58 \), what is the basic (pivotal) 95% CI?
Question 3 of 5
Which bootstrap CI method achieves second-order accuracy in coverage by correcting for both bias and skewness?
Question 4 of 5
A researcher uses \( B = 50 \) bootstrap resamples to construct a 95% percentile CI. Which criticism is most valid?
Question 5 of 5
When the bootstrap distribution of \( \hat{\theta}^* \) is perfectly symmetric around \( \hat{\theta} \), which statement is true?