Map 2 · Unsupervised learning · Step 3

Choose K and judge the result

How many groups, and are they any use?

Key formula

Plot against and look for the elbow.

Fact or figure

always falls as K grows (with , ), so you can't choose K by minimising . K-means also converges only to a local optimum: run several random starts.

Skip this step and…

Pick K by lowest and every customer becomes their own segment.

Telco example

drops sharply up to K = 3 and then flattens: three segments, each one the marketing team can name and act on.

Learn it

Taught in Section 6 (Clustering and Support Vector Machines) of the course. The map follows the machine learning workflow, the order you build a model in; the course teaches in the order that is easiest to learn, so the numbers can jump.

How it connects

← Back to the whole map