Mean absolute scaled error explained

In statistics, the mean absolute scaled error (MASE) is a measure of the accuracy of forecasts. It is the mean absolute error of the forecast values, divided by the mean absolute error of the in-sample one-step naive forecast. It was proposed in 2005 by statistician Rob J. Hyndman and Professor of Decision Sciences Anne B. Koehler, who described it as a "generally applicable measurement of forecast accuracy without the problems seen in the other measurements." The mean absolute scaled error has favorable properties when compared to other methods for calculating forecast errors, such as root-mean-square-deviation, and is therefore recommended for determining comparative accuracy of forecasts.[1]

Rationale

The mean absolute scaled error has the following desirable properties:

  1. Scale invariance: The mean absolute scaled error is independent of the scale of the data, so can be used to compare forecasts across data sets with different scales.
  2. Predictable behavior as

yt0

: Percentage forecast accuracy measures such as the Mean absolute percentage error (MAPE) rely on division of

yt

, skewing the distribution of the MAPE for values of

yt

near or equal to 0. This is especially problematic for data sets whose scales do not have a meaningful 0, such as temperature in Celsius or Fahrenheit, and for intermittent demand data sets, where

yt=0

occurs frequently.
  1. Symmetry: The mean absolute scaled error penalizes positive and negative forecast errors equally, and penalizes errors in large forecasts and small forecasts equally. In contrast, the MAPE and median absolute percentage error (MdAPE) fail both of these criteria, while the "symmetric" sMAPE and sMdAPE[2] fail the second criterion.
  2. Interpretability: The mean absolute scaled error can be easily interpreted, as values greater than one indicate that in-sample one-step forecasts from the naïve method perform better than the forecast values under consideration.
  3. Asymptotic normality of the MASE: The Diebold-Mariano test for one-step forecasts is used to test the statistical significance of the difference between two sets of forecasts.[3] [4] [5] To perform hypothesis testing with the Diebold-Mariano test statistic, it is desirable for

DM\simN(0,1)

, where

DM

is the value of the test statistic. The DM statistic for the MASE has been empirically shown to approximate this distribution, while the mean relative absolute error (MRAE), MAPE and sMAPE do not.

Non seasonal time series

For a non-seasonal time series, the mean absolute scaled error is estimated by

MASE=mean\left(

\left|ej\right|
1
T
\sum
t=2
\left|Yt-Yt-1\right|
T-1

\right)=

1\sumj\left|ej\right|
J
1
T
\sum
t=2
\left|Yt-Yt-1\right|
T-1
where the numerator ej is the forecast error for a given period (with J, the number of forecasts), defined as the actual value (Yj) minus the forecast value (Fj) for that period: ej = Yj - Fj, and the denominator is the mean absolute error of the one-step "naive forecast method" on the training set (here defined as t = 1..T),[6] which uses the actual value from the prior period as the forecast: Ft = Yt−1

Seasonal time series

For a seasonal time series, the mean absolute scaled error is estimated in a manner similar to the method for non-seasonal time series:

MASE=mean\left(

\left|ej\right|
1
T
\sum
t=m+1
\left|Yt-Yt-m\right|
T-m

\right)=

1\sumj\left|ej\right|
J
1
T
\sum
t=m+1
\left|Yt-Yt-m\right|
T-m
[6]

The main difference with the method for non-seasonal time series, is that the denominator is the mean absolute error of the one-step "seasonal naive forecast method" on the training set, which uses the actual value from the prior season as the forecast: Ft = Yt−m, where m is the seasonal period.

This scale-free error metric "can be used to compare forecast methods on a single series and also to compare forecast accuracy between series. This metric is well suited to intermittent-demand series (a data set containing a large amount of zeros) because it never gives infinite or undefined values except in the irrelevant case where all historical data are equal.

When comparing forecasting methods, the method with the lowest MASE is the preferred method.

Non-time series data

For non-time series data, the mean of the data (

\bar{Y}

) can be used as the "base" forecast.[7]

MASE=mean\left(

\left|ej\right|
1
J
\sum
j=1
\left|Yj-\bar{Y
J

\right|}\right)=

1\sumj\left|ej\right|
J
1\sumj\left|Yj-\bar{Y
J

\right|}

In this case the MASE is the Mean absolute error divided by the Mean Absolute Deviation.

See also

Notes and References

  1. Franses. Philip Hans. 2016-01-01. A note on the Mean Absolute Scaled Error. International Journal of Forecasting. 32. 1. 20–22. 10.1016/j.ijforecast.2015.03.008. 1765/78815. free.
  2. Makridakis. Spyros. 1993-12-01. Accuracy measures: theoretical and practical concerns. International Journal of Forecasting. 9. 4. 527–529. 10.1016/0169-2070(93)90079-3. 153403127 .
  3. Diebold. Francis X.. Mariano. Roberto S.. 1995. Comparing predictive accuracy. Journal of Business and Economic Statistics. 13. 3. 253–263. 10.1080/07350015.1995.10524599.
  4. Diebold. Francis X.. Mariano. Roberto S.. 2002. Comparing predictive accuracy. Journal of Business and Economic Statistics. 20. 1. 134–144. 10.1198/073500102753410444. 12090811 .
  5. Diebold. Francis X.. 2015. Comparing predictive accuracy, twenty years later: A personal perspective on the use and abuse of Diebold–Mariano tests. Journal of Business and Economic Statistics. 33. 1. 1. 10.1080/07350015.2014.983236.
  6. Web site: 2.5 Evaluating forecast accuracy OTexts. www.otexts.org. 2016-05-15.
  7. Web site: Alternative to MAPE when the data is not a time series. Hyndman. Rob. 2022-10-11. Cross Validated.