Level 2 · Module 10 · 10 minutes
Clustering methods: grouping without an answer column
- Describe what clustering does and why it needs no answer column.
- Explain how the group count, feature scale and similarity measure change the result.
- Explain why a cluster is a proposal rather than a real category.
Clustering puts similar examples into groups without being told the group names. It is an unsupervised method: there is no correct answer column to learn from. The software decides that records are alike by comparing their features, and it returns groups that a person can then inspect and name.
Three common approaches
- Centre-based grouping, such as k-means, chooses a number of groups, then repeatedly assigns each record to the nearest group centre and recalculates the centres. It is fast and clear, but the group count must be chosen in advance.
- Hierarchical grouping builds a family tree of merges or splits, so you can choose how coarse or fine the groups are after training.
- Density-based grouping finds crowded regions and marks sparse records as outliers. It suits irregular shapes but has settings that need care.
What changes the result
Distance dominates clustering, so features with large units can take over. If one column is measured in large amounts and another in small counts, a difference in the large column looks enormous. Features often need scaling first. Starting positions, the chosen group count, and the way similarity is measured can all change the answer, which is why two runs may disagree honestly.
Groups are proposals, not truths
A cluster is not automatically a real category. The software will always return groups, even on random values, because a grouping method always finds some structure. A useful cluster needs a name a person can explain and a stable pattern that appears in new data. Treat clusters as questions to test, not facts to publish.
A concrete example
A chain of shops might group branches by daily sales pattern and distance from a main road. Some groups may match a manager's intuition about busy and quiet locations; others may be artefacts of a single unusual week. Only a conversation with the people who run the branches can turn the groups into something meaningful, and checking the groups on later weeks shows whether they repeat.
Practice versus a live system
Clustering by sorting cards on a table is a simplified teaching picture. A real commercial job runs the method on large tables, checks stability and compares the groups with outcomes. No clustering is run in this lesson and no model is trained.
Common misconception
A clustering algorithm discovers the true groups that exist in the data. It returns groups for the settings it was given, and it will return groups even when the data has no real structure. Changing the group count, feature scale or starting point changes the answer, so clusters are proposals that need checking against new data and with people who know the domain.
Guided practice
Take a page of index cards, each describing a hypothetical shop with two written attributes: distance from a main road and a daily takings level. Sort the cards into three groups using your own similarity rule, then regroup them using a different rule. Write down two records that swapped groups and explain why. Then decide which grouping you would show a manager. This is a paper exercise; no clustering software is run and no model is trained.
Knowledge check
Independent practice
Write a short example from your own work or daily life and decide whether it is AI, ordinary software or a mixture. Then explain why. Save it in your notes; no account is required.
Last reviewed: · Report a problem