Menu

k-Folds Cross Validation

I personally like this method the most and feel like it is somewhere between two extremes (LOOCV and Validation Set.) Observations will be split into k groups. For example, given that mtcars has 32 observations, and k is 10, eight observations will be randomly assigned to each group (or k.) Then it will work just like LOOCV in which the first group is the test set, then the other nine groups are training set, and so on. Finally, the statistics in each iteration are averaged.

k-Folds still has randomness. However, it is relatively lower than the Validation Set as the final statistics will be an averaged of the k models. In term of speed, it certainly faster than LOOCV as the models will be fit only k times. Yep, it is somewhere between LOOCV and Validation Set. 🙂

As usual, the caret package can quickly perform k-Folds.