statable Statistics for study and research

k-means

A clustering method in which the number k of clusters is set in advance. It places k centres, assigns each case to the nearest one, recomputes the centres and repeats this until nothing changes any more.

Example: With k = 3, 300 people are split by age and income into three groups, each with one centre.

Caution: The start is random, so the result can vary, and a fixed seed makes it repeatable. Variables with a large range dominate unless they are standardised.

Related

Open in Statable