Definition
The mean absolute scaled error (MASE) was proposed by Hyndman and Koehler in 2006 as a measure that can be averaged across series of different sizes. The absolute error on the test window is divided by a scale: the mean absolute error of the naive forecast, the one that repeats the last observed value, computed on the training data only.
MASE = meantest( |yt − ft| ) ÷ meantrain( |yt − yt−m| )
Here y is the observed value, f the forecast and m the seasonal period (1 for a non-seasonal series, 12 for monthly data with a yearly pattern). The scale uses the training data so that the test window never enters its own yardstick. A MASE of 0.8 means the forecast error is 80 % of the error the naive method made in sample.
Worked example
The first part scores a flat forecast on a regular series. The second part scores two forecasts on an intermittent series, where most periods have no demand.
import numpy as np
train = np.array([12, 15, 11, 14, 18, 13, 16, 12, 17, 15, 14, 19])
test = np.array([16, 13, 18, 15])
forecast = np.full(4, 15.0)
scale = np.mean(np.abs(np.diff(train))) # naive forecast, in sample
print(f"scale (naive in-sample MAE): {scale:.3f}")
print(f"MASE of the flat forecast: {np.mean(np.abs(test - forecast)) / scale:.3f}")
train_i = np.array([0, 0, 3, 0, 0, 0, 2, 0, 0, 4, 0, 0])
test_i = np.array([0, 0, 2, 0])
scale_i = np.mean(np.abs(np.diff(train_i)))
for name, f in [("mean of the history", train_i.mean()), ("zero", 0.0)]:
print(f"intermittent, forecast = {name:20s} MASE = {np.mean(np.abs(test_i - f)) / scale_i:.3f}")Output, produced by running the code above when this page was built:
scale (naive in-sample MAE): 3.545 MASE of the flat forecast: 0.423 intermittent, forecast = mean of the history MASE = 0.535 intermittent, forecast = zero MASE = 0.306
On the intermittent series the forecast of zero has the lower MASE, although it would leave the shelf empty. The mean of the history is the forecast a stock planner needs, and it scores worse.
Where it misleads
The absolute error is minimised by the median of the future values. When more than half of the periods are zero, the median is zero, so MASE rewards forecasting nothing. Any ranking of intermittent demand methods by MASE alone has to be read with that in mind.
- The scale is zero when the training series is constant, and the ratio is then undefined. Such series must be reported apart, not dropped silently.
- With a short history the scale rests on a handful of differences and one unusual month moves it.
- A MASE below 1 does not say the forecast is good, only that it beats a naive method whose error was measured on other dates.
A measure built on squared errors, such as RMSSE, is minimised by the mean and does not have the zero-forecast problem. Reporting bias next to MASE exposes a forecast that scores well by forecasting too little.
In our work
On 2,404 public spare-part series, a forecast of zero had a mean MASE of 0.625, lower than every real method we tested. In our preregistered second study the same thing happened on three of the four datasets where the hypothesis could be tested. We therefore never report MASE alone on intermittent demand.
Service: forecasting and statistical studies Research note: intermittent demand forecasting, measured
References
- Hyndman, R. J., Koehler, A. B. (2006). Another look at measures of forecast accuracy. International Journal of Forecasting, 22(4), 679-688. doi:10.1016/j.ijforecast.2006.03.001
- Hyndman, R. J., Athanasopoulos, G. (2021). Forecasting: principles and practice, 3rd edition. OTexts, Melbourne. otexts.com/fpp3
- Chadeffaud, M. (2026). Evaluating intermittent demand forecasts: a preregistered study on four public datasets. Zenodo, preprint. doi:10.5281/zenodo.24248568