Skip to content

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.

  1. A15 and 85
  2. B20 and 90Correct
  3. C25 and 95
  4. 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