MSE and RMSE: The Mean Square Error of a Forecast
On this page
Do your forecasts sometimes contain rare but significant errors?
Let's plan an exchangeDiscover our sales forecasting softwareMSE (mean squared error) is the average of the squared forecast errors. RMSE is the square root of MSE, expressed in units of sales. Because they involve squaring the errors, these metrics penalize large errors much more heavily than small ones.
The Essentials
- The MSE calculates the average of the squared deviations; the RMSE converts the result back to sales units.
- A single big mistake weighs more heavily than many small ones.
- They are used to watch for large forecast misses, not to compare products with different volumes.
In 6 Questions
The average squared forecast error.
Data scientists, forecasters, pricing managers.
When one big mistake costs far more than several small ones.
Nationwide promotions, loss leaders, volume commitments.
Highlight forecasting errors.
Squared deviations, average, then square root for the RMSE.
How do you calculate MSE and RMSE?
The calculation is done in three steps: the deviation, the square, and the average. The RMSE adds a square root.
The example below compares two forecasts that, on average, are off by the same number of units.
| Forecast | Four-Week Changes | Result |
|---|---|---|
| Forecast A | 15, 15, 15, and 15 units | Average error of 15 units, RMSE of 15 |
| Forecast B | 5, 5, 5, and 45 units | Average error of 15 units, RMSE of 22.9 |
Calculation example. For B: (25 + 25 + 25 + 2,025) / 4 = 525, whose square root is 22.9.
Both predictions have the same mean error. The RMSE distinguishes the second one, which suffered one large miss.
How the Square Makes a Difference
To square a deviation is to decide that an error twice as large is four times as serious.
This assumption is true in certain situations. A shortfall of three units can be made up. A shortfall of three hundred units in a nationwide operation cannot be made up.
It is debatable in other cases. In a long train of small references, no single error has a disproportionate effect, and the square merely amplifies the noise.
RMSE, WAPE, MAPE: Which One Should You Choose?
Each indicator reflects a different concept of what an error costs.
In a dashboard, RMSE is used alongside other metrics. It does not replace them.
RMSE in Pricing Decisions
In pricing, RMSE is primarily used to identify where the model might be significantly off the mark.
A price recommendation based on a forecast that is usually accurate but subject to rare, massive deviations calls for greater caution: a limited trial before full implementation, or a safety margin on the volumes involved.
It is also the most commonly used metric for training machine learning models. It makes them sensitive to outliers in the historical data, which is why it is important to qualify them.
Our belief: You choose a metric based on the cost of error, not out of habit. This approach guides our AI-powered sales forecasting method for the retail sector and our AI-driven sales forecasting solution.
See also in the glossary:CRPS · time validation · intermittent demand · backtest
Frequently Asked Questions
Short answers to the most frequently asked questions about the MSE and the RMSE.
What do MSE and RMSE mean?
MSE stands for mean squared error. To calculate it, you determine the difference between each forecast and the actual value, square that difference, and then take the average. RMSE, which stands for root mean squared error, is the square root of the MSE. It converts the result back to the original unit—for example, units sold—making it easier to interpret. Both metrics measure the same thing, but on two different scales.
What is the difference between MSE and RMSE?
The only difference is the square root. MSE is expressed in squared units, which has no practical meaning: “sales squared” doesn’t mean anything to anyone. RMSE is expressed in sales units and can be directly compared to sales volumes. Data scientists often use MSE during model training for computational reasons and report RMSE in their reports. Ranking multiple models using either metric yields the same order.
What is the difference between RMSE and mean absolute error?
The mean absolute error (MAE) calculates the average of the deviations without squaring them: each unit of error carries the same weight. The RMSE, by squaring the deviations, gives much greater weight to large deviations. A forecast that is generally accurate but has one large error will have an RMSE significantly higher than its MAE. The difference between the two metrics is also a good indicator: the larger it is, the more the errors are concentrated in a few cases.
When should you use RMSE instead of WAPE or MAPE?
When one big mistake costs much more than several small ones. This is the case with a national promotional campaign, a highly visible loss leader, or an order placed well in advance: a massive discrepancy can lead to a stockout or excess inventory that is difficult to recover from. The RMSE highlights these incidents. WAPE remains the preferred metric for tracking an entire catalog, as it is expressed as a percentage of volume and allows for comparisons across product families.
What is a good RMSE?
There is no benchmark value, because RMSE depends on the scale of sales. An RMSE of 20 units is excellent for a product that sells 2,000 units per week, but poor for a product that sells 30 units. Therefore, we do not compare the RMSE of two products with different sales volumes. A useful comparison involves comparing two methods applied to the same products over the same period, or relating the RMSE to the average sales level to obtain a relative order of magnitude.
Why are models often trained on the MSE?
For mathematical and practical reasons. The square makes the calculation easier to optimize than the absolute value. Furthermore, minimizing the MSE leads the model to predict the expected average of sales, which meets many needs. This choice has one important consequence to be aware of: a model trained in this way is very sensitive to extreme values in the historical data. A few misidentified exceptional days can skew its forecasts upward for a long time.
What should you do when a few outliers skew the RMSE?
First, understand where they come from. An exceptional sale to a business customer, a data entry error, or a day when inventory ran out do not require the same handling. Confirmed anomalies are corrected or flagged in the history. Actual but rare events, such as a promotion, are described in the model using a dedicated variable. It’s helpful to track a less sensitive metric in parallel—such as absolute error or WAPE—to avoid judging an entire model based on just three days of data.
Key Takeaways
- The MSE averages the squareddeviations; the RMSE is expressed inunits of sales.
- They highlight major mistakes, which is helpful when one large miss is costly.
- Products with different volumes cannot be compared.
Do you want to identify where your forecasts might be significantly off the mark?
Booper evaluates its forecasts using several indicators, selected based on the cost of making a mistake in your decisions.
Let's talk about your forecasts →Discover our sales forecasting softwareThese articles can interest you
AI-based sales forecasting estimates demand for each product, store by store, by separating baseline demand from promotional demand. AI takes in more data points than a spreadsheet, but its value lies solely in the decisions it helps inform.
In retail, this decision is primarily about pricing or a promotion. A useful pricing forecast—one that estimates how much will be sold at each considered price—is evaluated based on its bias rather than its MAPE, and is validated against control stores.
When comparing sales forecasting solutions, there are five key points to check before conducting any tests: demand hidden by stockouts, the forecast granularity, an explanation of each figure, the relationship with prices and promotions, and an honest assessment of accuracy.
A demonstration doesn't prove anything on these points. Only a test using your own data, compared to a simple baseline, will show whether the forecast truly improves your decisions.
How much historical data is needed for forecasting? It depends on the category, but reliability matters more than depth: historical data in which breaks, promotions, and price changes are dated is better than a long, unprocessed data set.
Two factors are often overlooked: the history of prices paid—without which elasticity cannot be measured—and the years of inflation, as reflected in volume figures. The adjustment begins with the items that account for the bulk of sales.