Concept
Regression, classification and clustering
Pick the technique by the answer you want: a number, a category or groups.
Regression
- Answers
- How much?
- Example
- House price
Classification
- Answers
- Which category?
- Example
- Spam or not spam
Clustering
- Answers
- Which items are alike?
- Example
- Customer segments
Forecasting
- Answers
- What next, over time?
- Example
- Next month’s demand
Recommendation
- Answers
- What will they like?
- Example
- Suggested movies
| Technique | Answers | Example |
|---|---|---|
| Regression | How much? | House price |
| Classification | Which category? | Spam or not spam |
| Clustering | Which items are alike? | Customer segments |
| Forecasting | What next, over time? | Next month’s demand |
| Recommendation | What will they like? | Suggested movies |
1 / 2
Regression
- Answers
- How much?
- Example
- House price
Classification
- Answers
- Which category?
- Example
- Spam or not spam
Clustering
- Answers
- Which items are alike?
- Example
- Customer segments
| Technique | Answers | Example |
|---|---|---|
| Regression | How much? | House price |
| Classification | Which category? | Spam or not spam |
| Clustering | Which items are alike? | Customer segments |
2 / 2
Forecasting
- Answers
- What next, over time?
- Example
- Next month’s demand
Recommendation
- Answers
- What will they like?
- Example
- Suggested movies
| Technique | Answers | Example |
|---|---|---|
| Forecasting | What next, over time? | Next month’s demand |
| Recommendation | What will they like? | Suggested movies |
What it is
Regression predicts a number, such as a house price or next month’s sales. Classification predicts a category, such as spam or not spam, or which product type a photo shows. Both are supervised learning, so they need labeled data.
Clustering puts similar items into groups when you have no labels, such as customer segments. It is unsupervised learning.
Forecasting predicts future values from time-series data, so it is a regression-style task. Recommendation systems suggest items from what users did before, such as clicks and purchases.
Remember
- Regression: the answer is a number.
- Classification: the answer is a category.
- Clustering: groups without labels.
- Regression and classification are supervised. Clustering is unsupervised.
- Forecasting predicts numbers over time.
Remember
- Recommendations learn from user behavior.
On the exam
- “Predict the price of a house” points to regression.
- “Decide whether a message is spam” points to classification.
- “Find customer segments with no predefined labels” points to clustering.