When would you use MSLE (mean squared log error) instead of MSE?
hardAnswer
- MSLE = mean().
- Penalizes relative errors instead of absolute ones — an error of 10 units when y=1000 is treated the same as an error of 1 unit when y=100.
- Use when the target spans many orders of magnitude (population sizes, incomes, energy consumption).
- Requires y ≥ 0.
- Also under-penalizes over-prediction less than under-prediction — biased slightly toward higher predictions.
- RMSLE (square root) is more interpretable.
Check yourself — multiple choice
- MSLE penalizes absolute errors more than MSE
- MSLE penalizes relative errors — good for targets spanning many orders of magnitude
- Same as MAPE
- MSLE requires negative targets
MSLE = MSE on — relative errors, needs y ≥ 0. RMSLE is more interpretable.
#metrics-regression
Practise Supervised Learning
215 interview questions in this topic.
Related questions
- Adding a feature raised R^2. Does that mean the model improved?
- Can R^2 be negative? What does that mean?
- When is quantile regression more useful than mean (OLS) regression?
- What criterion does a regression tree use to choose splits?
- RMSE vs MAE — how do you pick?
- What is Huber loss and why is it a compromise between MAE and MSE?