FRM Part I · FRM Exam Part I · Machine Learning and Prediction
A data scientist has 5,000 observations and wants to select among several models and then report an unbiased estimate of final performance. Which data-splitting practice is most appropriate?
Train on the training set, tune and select using the validation set, and evaluate the chosen model once on an untouched test set. Keeping the test set separate gives an unbiased out-of-sample estimate, whereas reusing selection data makes performance look optimistic.
- ASelect the model using the test set, then retrain and report performance on the training set
- BTrain on the training set, tune and select using the validation set, and evaluate the chosen model once on an untouched test setCorrect
- CUse the same validation set to both select the model and report its final performance
- DTrain and evaluate on the full sample to maximize the data used
Explanation
The validation set guides hyperparameter tuning and model choice. The test set must stay untouched until the end so it provides an unbiased estimate of out-of-sample performance. Using the same data for selection and reporting makes the estimate optimistic.
Did you get it right without looking?
One question tells you little. A timed set on Machine Learning and Prediction shows your real accuracy, how long you take and where you lose marks.
More Machine Learning and Prediction questions
- A node in a classification tree holds 100 observations: 50 defaults and 50 non-defaults. A candidate split sends 40 observations left (35 de…
- A risk team has 40 yield-curve and macro predictors and is predicting credit spread changes. They run PCA on the full dataset, keep the firs…
- Which statement correctly distinguishes a random forest from plain bagging of decision trees?
- A neural network hidden node receives inputs x1 = 2 and x2 = -1. The weights are w1 = 0.5 and w2 = 1.5, and the bias is 0.25. The node uses …
- In k-fold cross-validation with k = 5 applied to a sample of 500 observations, how many observations are used to train the model in each ite…
- A risk analyst applies principal components analysis (PCA) to a set of 10 highly correlated yield-curve variables. Which statement best desc…