# Unsupervised Learning

- **Canonical URL:** https://getaimath.com/dictionary/unsupervised-learning/
- **Topics:** [AI & Machine Learning Fundamentals](https://getaimath.com/dictionary/category/ai-and-machine-learning-fundamentals/)
- **Last updated:** 2026-11-25

## What is Unsupervised Learning?

**In one sentence:** Unsupervised learning is when an AI looks for patterns in data that has no labels or right answers.

Imagine dumping a big box of mixed buttons on a table with no instructions. You would probably start grouping them by color or size on your own. Unsupervised learning does the same: it finds groups, shapes and hidden structure in data without anyone telling it what to look for.

![Training vs. Inference: Studying Flashcards vs. Taking the Test — Simple cartoon diagram comparing AI Training (studying 1,000 flashcards and fixing mistakes until the brain learns the pattern) with AI Inference (answering a brand-new question in 1 second on test day).](https://getaimath.com/diagrams/ai-and-machine-learning-fundamentals.png)
*Napkin Diagram (AI & Machine Learning Fundamentals): Training is the long study session where the AI learns from examples; inference is test day when you actually use it.*

## What is an example of Unsupervised Learning?

A shop can use unsupervised learning to discover groups of customers who buy similar things.

## Why does Unsupervised Learning matter?

Most of the world's data has no labels, so learning without them is very useful.

## Unsupervised Learning vs. Supervised Learning

Supervised learning trains on examples with explicit answer labels attached, whereas unsupervised learning discovers hidden groups and structure in raw unlabeled data.

| Dimension | Unsupervised Learning | [Supervised Learning](https://getaimath.com/dictionary/supervised-learning/) |
| --- | --- | --- |
| Training data | Unlabeled inputs only | Inputs paired with ground-truth labels |
| Everyday analogy | Sorting a mixed jar of buttons by shape | Flashcards with answers on the back |
| Classic tasks | Customer clustering, anomaly discovery | Spam detection, price prediction |

## Related Concepts

- [Supervised Learning](https://getaimath.com/dictionary/supervised-learning/): Supervised learning is training an AI with examples that already have the right answers attached.
- [Semi-supervised Learning](https://getaimath.com/dictionary/semi-supervised-learning/): Semi-supervised learning trains an AI with a small amount of labeled data and a large amount of unlabeled data.
- [Inference](https://getaimath.com/dictionary/inference/): Inference is when a trained AI model is actually used to give answers, instead of still learning.
- [Self-supervised Learning](https://getaimath.com/dictionary/self-supervised-learning/): Self-supervised learning is when an AI makes its own practice questions from raw data, so no human labels are needed.
- [Training](https://getaimath.com/dictionary/training/): Training is the learning phase, when an AI model studies lots of examples and slowly gets better at its task.
- [Reinforcement Learning (RL)](https://getaimath.com/dictionary/reinforcement-learning-rl/): Reinforcement Learning is a way for AI to learn by trying things and getting rewards for good choices and penalties for bad ones.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/unsupervised-learning/)
