statable Statistics for study and research

Bootstrap intervals: percentile and BCa

In brief

The bootstrap repeatedly draws new samples from the existing cases (with replacement), recalculates the statistic each time and takes an interval from the distribution of these values. Under every result Statable names the type of interval, the number of draws (B) and the seed of the random numbers, so the calculation can be repeated.

Percentile or BCa?

Chance and the seed

Statable always starts the random numbers with the same seed (20261008). The same data therefore give the same interval. Another seed moves the limits a little; the lower BCa limit varies more than the upper one. This is not a mistake but the random error of the method, and it gets smaller with more draws. The random numbers of Statable are not those of R: even with the same seed the single draws differ, and the intervals agree within the random error.

What Statable reports

For specialists

Quantiles and BCa follow the R package boot (Canty & Ripley): interpolation on the normal scale between the order statistics at rank (B + 1) · α (boot:::norm.inter), z0 from the share of draws strictly below the estimate, a from the jackknife (empinf, type = "jack"). Checked: on fixed distributions from R the calculation matches boot.ci to 1e-9; the draws of Statable agree statistically with a reference with 400,000 draws. The bootstrap in the learning lab has its own random stream and is not connected to this base. Sources: Efron & Tibshirani (1993), An Introduction to the Bootstrap; Davison & Hinkley (1997), Bootstrap Methods and their Application, section 5.3.

Related

Open in Statable