2.4 Unsupervised learning (finding structure)
Unsupervised learning (finding structure)
Supervised learning needs labeled answers. But most data in the world has no labels — nobody has tagged it. Unsupervised learning is the family of methods that find structure in data without being told the right answers.
The goal
Instead of "given X, predict the known Y," unsupervised learning asks "what interesting structure is hidden in this pile of X?" There is no answer key, so success is judged by whether the structure it finds is useful or meaningful to humans.
Two common tasks
- Clustering groups similar items together. Given a million customers and no labels, find natural segments — say, "bargain hunters," "premium buyers," "occasional gift shoppers" — that the business did not define in advance. The algorithm discovers the groups from the data's own geometry.
- Dimensionality reduction compresses many features into a few, keeping what matters and discarding redundancy. It is used to visualize complex data in two dimensions, to speed up other models, and to remove noise.
Where it fits
Unsupervised learning is often a first step — exploring and organizing raw data before you know what questions to ask, or before you can afford to label it. It also underlies much of modern AI quietly: the way language models learn from raw text without labeled answers is a form of self-supervision closely related to this idea.
A worked example
A retailer has purchase records for millions of shoppers but no predefined customer types. Running a clustering algorithm reveals, say, five natural groups based on what and how often people buy. Nobody told the algorithm these groups exist; it found them in the structure of the data. Marketing can now tailor offers to each segment. No labels were ever provided — the structure was the output.
