Part 2 · Lesson 5 · 6 min
Supervised learning: learning with an answer key
How does your bank decide, in a fraction of a second, that a card payment looks suspicious?
It learned from millions of past payments where the answer was already known.
Remember practising with a workbook that had the answers in the back? You try a question, check the answer, notice where you went wrong, and adjust. That is supervised learning.
The answer key
"Supervised" does not mean someone watches the model all day. It means every training example comes with the correct answer, the label. And the goal is not to recite the answer key. It is to answer new questions well.
Supervised learning comes in two main flavours, depending on what kind of answer you want.
Which category, or how much?
Classification picks a category: spam or not, fraud or not, cat or dog. Regression predicts a number: a price, a number of days, next month's sales. Same idea, same training loop, just a different kind of answer.
Back to the hook: a bank's fraud model is classification. It learned from past payments labeled fraud or genuine, and now it labels each new payment as it happens.
Go deeper optional
Common supervised models you will hear about:
- Decision trees: a chain of yes or no questions, easy to explain. Groups of trees (random forests, gradient boosting) are workhorses for table data.
- Logistic regression: despite the name, a classic model for classification, often used in credit scoring because it is simple to audit.
- Neural networks: flexible models that shine on images, sound and text, at the cost of being harder to explain.
All of them follow the same loop: guess, compare with the label, adjust, repeat.
Check yourself
1. Predicting tomorrow's sales in dollars is...
The answer is a number on a scale, not a category, so it is regression.
2. What makes learning "supervised"?
People provide the labels in advance. Nobody needs to supervise each prediction.
3. Flagging a card payment as fraud or genuine is...
The answer is one of two categories, fraud or genuine, so it is classification.