[1] -0.08058779 0.28044078 1.19011050 -1.25212790
From a course by Davy Paindaveine and Nathalie Vialaneix
Last updated on February 10, 2025
Let
One often wants to evaluate the variance
The bootstrap is a powerful, broadly applicable method:
The method is nonparametric and can deal with small
James et al. (2021)
Now, if historical data
We generated 1000 samples from the population. The first three are:
Here:
(This could also be used to estimate quantiles of
This provides
(This could again be used to estimate quantiles of
Results are close:
Each bootstrap sample
Under mild conditions, the empirical distribution of
Possible uses:
Possible uses when
Bootstrap estimates of
The practical sessions will explore how well such estimates behave.
boot
functionA better strategy is to use the boot
function from
The boot
function takes typically 3 arguments:
data
: the original samplestatistic
: a user-defined function with the statistic to bootstrap
R
: the number If the statistic is the mean, then a suitable user-defined function is
The bootstrap estimate of