Bootstrapping is another strategy (like cross validation) that we can use for validation or parameter estimation if there is not enough data.  The technique is simple: we basically do random sampling from the original dataset to generate a larger dataset that we can either estimate some population parameter from, or use to train a model.   I (think) that bootstrapping is most commonly used to estimate standard errors of predictions (as outlined below).

  1. Sample N times randomly from our training dataset to make a “bootstrap” dataset
  2. Estimate your model on the bootstrap dataset
  3. Make predictions for the original training set

Repeat many times and average your results (accuracy, error, etc).  You could also do a modified version that estimates errors using the samples not included in the bootstrap dataset.  To do this you would simply need to keep track of who was picked each time, and then use a set difference function with that list and the original training set to get who was not included. (Matlab function is setdiff)




Suggested Citation:
Sochat, Vanessa. "Bootstrapping." @vsoch (blog), 08 Jul 2013, https://vsoch.github.io/2013/bootstrapping/ (accessed 28 Nov 24).