Menu

RMSE vs MAE: two forecasts with the same average error
📰

RMSE vs MAE: two forecasts with the same average error

DEV Community: datascience·David Mashiah·9 days ago
#GPmTFIHZ
#devtodatascience#science#devto#dev#rmse
Reading 0:00
15s threshold

Two demand forecasts miss by exactly the same amount on average. One is steady, one has a single bad day. MAE cannot tell them apart. RMSE can, and five days of numbers show why, and when that is the difference you care about.

Every error metric turns a list of misses into one number, and each one does it by deciding how much a big miss counts compared with a small one. MAE counts every unit of error the same. MSE and RMSE count big misses more. That single choice is most of what separates them.

The example below is a demand forecast, because the difference is easy to feel there. When you sell perishables , being off by one unit every day and being off by five units once are very different problems.

The three formulas

For each case, the error is the prediction minus the true value, e = ŷ − y . Over n cases:

MAE , mean absolute error: the average size of the miss, MAE = Σ|e| / n .

MSE , mean squared error: the average of the squared misses, MSE = Σe² / n .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.