bootstrap() — The bootstrap

Estimate uncertainty by resampling your own data.

bootstrap(statistic, data, reps)

Key idea

Definition

the statistic from resample b
how many resamples
the bootstrap standard error

In plain words

Can't collect new data? Pretend your sample is the whole world and keep re-drawing from it to see how much your answer wobbles.

Where you'd use it

Frequently asked questions

What is bootstrapping?
Resampling your data with replacement many times to estimate uncertainty (e.g. confidence intervals) without new data.