FRM Part I · FRM Exam Part I · Machine Learning and Prediction
In a one-dimensional K-means exercise with K = 2, six bond spreads (in basis points) are 10, 20, 30, 80, 90 and 100. The initial centroids are 20 and 90. After one full assignment step and centroid update, what are the new centroids?
The new centroids are 20 and 90. The points 10, 20 and 30 are closest to the first centroid and average 20, while 80, 90 and 100 are closest to the second and average 90. The centroids are unchanged, so the algorithm has converged.
- A15 and 85
- B20 and 90Correct
- C25 and 95
- D20 and 80
Explanation
Points 10, 20, 30 are nearer to 20 (distances 10, 0, 10 vs. at least 60). Points 80, 90, 100 are nearer to 90. Cluster means are (10+20+30)/3 = 20 and (80+90+100)/3 = 90, so the centroids do not change and the algorithm has converged.
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 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 risk analyst builds a feedforward neural network to predict loan defaults. Which description best characterizes the role of a hidden layer…
- A risk analyst fits a single classification tree to predict loan default and lets it grow until every terminal node contains only one class.…
- An analyst uses a regularized model with a tuning parameter that controls complexity. As the penalty is increased substantially from a very …