Answer:
1. Randomly divide the available set of observations into two
parts, a training set and a validation set or hold-out set.
2. Fit the model on the training set.
3. Use the resulting fitted model to predict the responses for the
observations in the validation set.
4. The resulting validation set error rate is typically assessed using
the MSE in the case of a quantitative response. This provides
an estimate of the test error rate.