MAS-II · Statistical Learning · Free Lesson

Perform the computations behind clustering procedures (e.g., K-means, hierarchical).

Free CAS MAS-II (Modern Actuarial Statistics II) lesson in Statistical Learning. 14 min read, ~2,083 words.

A claims-severity team wants to segment 50,000 policyholders by behavior without using any labeled outcome. Clustering is unsupervised: no , just structure in .

Why two families. K-means is fast and scales to millions of points but requires and is sensitive to initialization. Hierarchical produces a full tree you can cut at any level, but is in memory and gets brittle past about 10,000 points. The 50,000-policyholder segmentation from the opener therefore goes to K-means: the hierarchical pairwise matrix would need roughly 2.5 billion entries, well past the memory wall.

WCSS measures how tight each cluster is: small squared distances from each point to its centroid mean the cluster is a coherent group, while large distances mean members are scattered. Given points and a target number of clusters , K-means partitions points into clusters to minimize:

where is the centroid.

Read the full lesson, free →
Worked examples and practice. Free with a free account, no card.

Common mistakes

Bottom line

Exam shortcut

If the problem gives and starting centroids, expect a K-means trace: do one or two iterations of assign-then-update, then check whether assignments stabilized. If the problem gives a pairwise distance matrix and asks for merge order, it is agglomerative hierarchical: find the smallest entry, merge, update with the named linkage rule, repeat.

The full lesson (about 2,083 words, 14 min read) adds 2 worked examples, all 6 common mistakes, a self-check, free in the app.

Learning objectives

Browse all free MAS-II lessons or jump into free MAS-II practice questions.