FRM Part I · FRM Exam Part I · Machine Learning and Prediction
A random forest has 200 trees, each trained on a bootstrap sample of n = 1,000 observations. Approximately what fraction of observations is out-of-bag for any given tree, and what is the use of these observations?
About 36.8% of observations are out-of-bag for each tree, since (1−1/n)^n approaches e^−1. Because these were not used to fit that tree, predicting them gives a built-in estimate of out-of-sample error without a separate validation set.
- AAbout 63.2%; they are used to train the tree's splits
- BAbout 36.8%; they provide a built-in estimate of out-of-sample errorCorrect
- CAbout 36.8%; they are discarded because they add bias
- DAbout 63.2%; they provide a built-in estimate of out-of-sample error
Explanation
The probability an observation is never drawn in n draws with replacement is (1−1/n)^n ≈ e^−1 ≈ 0.368. Those out-of-bag observations were not used to fit that tree, so predictions on them estimate out-of-sample error. The 63.2% figure is the in-bag share, which is the distractor.
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
- 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…
- A risk analyst builds a feed-forward neural network to predict loan default. The network has an input layer, two hidden layers and an output…
- An analyst compares two default models using 5-fold cross-validation on 1,000 observations. Model A has training error of 2% and mean valida…
- A model predicts loan default using 40 predictors and achieves near-zero error on the training sample but much higher error on a separate va…
- A quantitative analyst fits a very flexible model to 500 observations. It achieves a training mean squared error of 0.2 but a test mean squa…