Aan de slagGa gratis aan de slag

Always resample the original number of observations

In the bootstrap examples, exactly 30 observations have been repeatedly resampled from the original sample. The choice of 30 was given because the original sample had 30 observations. If we had resampled 3 observations instead, the resampled \(\hat{p}^*\) value could have ranged from 0 to 1 (producing a much larger \(SE(\hat{p}^*)\) than desired). If we had resampled 300 observations instead, the resampled \(\hat{p}^*\) value would have been close to the same number each time (producing a much smaller \(SE(\hat{p}^*)\) than desired).

Generally, if \(n\) represents the size of the original sample, how many observations should we resample with replacement when bootstrapping?

Deze oefening maakt deel uit van de cursus

Foundations of Inference in R

Cursus bekijken

Praktische interactieve oefening

Zet theorie om in actie met een van onze interactieve oefeningen.

Begin met trainen