Lesson 7 of 18 · 2 min
MAE, MSE, RMSE — Manual Calculation First
Before code, understand with 5 predictions:
| Actual | Predicted | Error (Actual-Pred) | \ | Error\ |
|---|---|---|---|---|
| 300,000 | 250,000 | 50,000 | 50,000 | 2,500,000,000 |
| 450,000 | 480,000 | -30,000 | 30,000 | 900,000,000 |
| 200,000 | 210,000 | -10,000 | 10,000 | 100,000,000 |
| 600,000 | 550,000 | 50,000 | 50,000 | 2,500,000,000 |
| 350,000 | 370,000 | -20,000 | 20,000 | 400,000,000 |
MAE = (50,000 + 30,000 + 10,000 + 50,000 + 20,000) / 5 = 32,000
→ "On average predictions are off by ₹32,000"
MSE = (2,500,000,000 + 900,000,000 + 100,000,000 + 2,500,000,000 + 400,000,000) / 5 = 1,280,000,000
→ Hard to interpret (units are ₹²)
RMSE = √1,280,000,000 = 35,777
→ "On average predictions are off by ₹35,777" (same unit as price — useful!)
Why RMSE > MAE here?
Because squaring punishes the two big 50,000 errors more — RMSE always ≥ MAE.
