O'Reilly logo

Simulation for Data Science with R by Matthias Templ

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Estimation of standard errors with bootstrapping

In the following, we discuss the bootstrap in detail also by taking hands-on R. Before the estimation of the standard error is in focus, some definitions are repeated in more detail.

Let's consider the following toy example with the following seven numbers. We use such a small sample and toy example just to explain the bootstrap in R. The estimator of interest should be the arithmetic mean in our example:

x <- c(5, 7, 8, 2, 15, 12, 3)

We next define the bootstrap sample. A bootstrap sample is random sample

Estimation of standard errors with bootstrapping

with replacement from the sample . One bootstrap sample is given by:

## for reproducibility we ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required