There are several different methods to calculate confidence intervals from the bootstrap samples:
Percentile
Basic
Bias-corrected and accelerated (BCa)
Percentile bootstrap CI
The percentile method defines the \(100(1−\alpha)\%\) confidence interval for \(\theta\) as \[
[Q_{\alpha/2}, Q_{1-\alpha/2}]
\] where \(Q_{c}\) is the \(c\)th percentile of the bootstrap distribution of \(\hat{\theta}\).
quantile(bootout$t, probs =c(0.025, 0.975))
2.5% 97.5%
36.9875 265.0000
Basic bootstrap CI
The basic (or reverse percentile) method defines the \(100(1−\alpha)\%\) confidence interval for \(\theta\) as \[
[2\hat{\theta} - Q_{1-\alpha/2}, 2\hat{\theta} + Q_{\alpha/2}]
\]
2* bootout$t0 -quantile(bootout$t, probs =0.975)
1
-12
2* bootout$t0 -quantile(bootout$t, probs =0.025)
1
216.0125
Bias-corrected and accelerated (BCa) bootstrap CI
Percentile method is simple and intuitive but based only on bootstrap resamples and does not adjust for skewness in the bootstrap distribution.
Basic method is also simple and intuitive but is not range preserving and is skewed in the wrong direction for skewed bootstrap distributions.
BCa interval corrects for bias and skewness in the distribution of bootstrap estimates.
The bias-correction parameter, which is related to the proportion of bootstrap estimates that are less than the observed statistic.
The acceleration parameter, which is proportional to the skewness of the bootstrap distribution.
Options for confidence interval
boot.ci(boot.out = bootout, conf =0.95, type =c("basic", "perc", "bca"))
BOOTSTRAP CONFIDENCE INTERVAL CALCULATIONS
Based on 1000 bootstrap replicates
CALL :
boot.ci(boot.out = bootout, conf = 0.95, type = c("basic", "perc",
"bca"))
Intervals :
Level Basic Percentile BCa
95% (-12.0, 216.5 ) ( 36.5, 265.0 ) ( 37.2, 266.0 )
Calculations and Intervals on Original Scale
In-class assignment
Compute the 95% bootstrap confidence intervals for the differences in medians of