Lesson 1 of 10 · 2 min
WHY Classification? (Not Regression)
Regression predicts a number: house price = ₹45L, temperature = 38°C.
Classification predicts a category: email = spam or not spam, tumour = malignant or benign.
| Problem | Output Type | Algorithm |
|---|---|---|
| Predict house price | Number (₹45L) | Regression |
| Predict if email is spam | Category (Yes/No) | Classification |
| Predict student grade | Number (85) | Regression |
| Predict if student passes/fails | Category (Pass/Fail) | Classification |
Real-world classification examples:
- Bank: Is this transaction fraud? (Yes/No)
- Doctor: Is this tumour malignant? (Yes/No)
- App: Which digit is this? (0–9)
- HR: Will this employee leave? (Yes/No)
