Symmetric MAPE (sMAPE)

Machine Learning
Introduced by
J. Scott Armstrong
Year
1985
Type
Symmetric percentage-based evaluation metric
Family
Relative error metric

What does it do?

Symmetric Mean Absolute Percentage Error (sMAPE) is a relative accuracy measure that divides each absolute forecast error by the average of the absolute actual and forecast values, rather than by the actual value alone as MAPE does.

The measure is commonly associated with J. Scott Armstrong (1985), and Hyndman & Koehler (2006) examine measures of forecast accuracy. The denominator makes the term unchanged when actual and forecast are swapped, but it does not weight over- and under-forecasts equally at a fixed actual value.

The intuition behind the method

MAPE divides the error by the actual value, so the same pair of numbers can score differently depending on which value is treated as the reference. sMAPE divides instead by the average of the actual and forecast magnitudes, so swapping the two gives the same term. This does not make over- and under-forecasts equally costly: in the example of a forecast of 110 and a forecast of 50 for an actual of 100, the larger miss of 50 produces the larger term. A sMAPE of 10 means that, on average, the absolute error is about 10% of the average of actual and forecast values.

History

sMAPE is commonly associated with J. Scott Armstrong's work on forecasting (1985). Makridakis (1993) is a reference on accuracy measures for comparing forecasting methods. Hyndman & Koehler (2006) examine measures of forecast accuracy.

When to use it

Choose sMAPE when you need a scale-free accuracy summary across series of different magnitudes, when the actual and forecast values share the same sign and are clearly away from zero, and when neither value should serve as the privileged reference. Do not use it for intermittent or zero-containing series, such as sparse counts, because a zero actual produces the formula's maximum term and a pair of zeros is undefined. Do not assume it reflects asymmetric business costs: the formula does not weight over- and under-forecasts equally at a fixed actual, so a cost-weighted measure is needed in that case. If values can be zero, a related scale-free measure such as MASE may be a more suitable comparison.

Limitations and considerations

  • Symmetry in the swap sense does not mean equal penalties for over- and under-forecasting at a fixed actual; the 110 and 50 example above gives unequal terms.
  • The term is undefined when actual and forecast are both zero, since the denominator is then zero.
  • When both values are small, the denominator shrinks and the term becomes unstable, so small absolute misses can produce large percentages.
  • Each term lies between 0% and 200%, a range set by the formula itself. Values above 100% are therefore possible, and reading sMAPE as an ordinary percentage can be misleading.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Swapping actual and forecast leaves each term unchanged, because the numerator is an absolute difference and the denominator is symmetric in the two values; MAPE does not have this property.
  • Each term is expressed relative to the size of the values, so series in different units can be summarised on one percentage-type scale.
  • Computed directly from paired actual and forecast values, with no fitted parameters.
  • The denominator uses both values rather than the actual alone, which removes MAPE's dependence on the choice of reference.

Applications

  • Comparing forecast accuracy across series of different magnitudes when all actual values are positive and clearly away from zero.
  • Summarising forecast error for demand, staffing or energy load series, where the values are positive quantities and a relative error is needed.
  • Ranking competing forecasting methods on the same positive series, while noting that the ranking can differ from one based on MAPE.

How it works

How it works

1

For each observation, divide the absolute difference between the actual and forecast values by the average of their absolute values, then multiply by 100. This gives a percentage error for that single pair.

Formula
e_i = \frac{|y_i - \hat{y}_i|}{(|y_i| + |\hat{y}_i|)/2} \times 100
2

Average the symmetric percentage errors over all n observations to obtain one sMAPE score for the series.

Formula
SMAPE = \frac{1}{n} \sum_{i=1}^{n} \frac{|y_i - \hat{y}_i|}{(|y_i| + |\hat{y}_i|)/2} \times 100

Common pitfalls

  • Applying sMAPE to intermittent or zero-containing data: a single zero actual or forecast produces the maximum term, and a pair of zeros is undefined.
  • Confusing sMAPE with MAPE; the two measures can rank the same models differently.
  • Assuming that forecasts with opposite signs behave gently; when the signs differ, the term reaches its maximum value.
  • Treating a sMAPE value as the true percentage error of the forecast relative to the actual value, when the denominator is the average of the two values.

Frequently asked questions

How does sMAPE differ from MAPE?

MAPE divides the absolute error by the actual value alone; sMAPE divides by the average of the absolute actual and forecast values. Because of this, swapping actual and forecast leaves each sMAPE term unchanged but changes the MAPE term. The two measures can rank models differently.

When does sMAPE fail?

When both actual and forecast are zero, the term is undefined. When values are small, the denominator shrinks and the term becomes unstable. For example, an actual of 0.1 and a forecast of 0.2 give a term of 67%, which may overstate the practical size of the miss.

Is sMAPE bounded by 100%?

No. Each term lies between 0% and 200%. The absolute difference |actual - forecast| never exceeds |actual| + |forecast|, so the ratio never exceeds 2. A term reaches 200% when actual and forecast have opposite signs, or when one of them is zero and the other is not; a pair of zeros is undefined. Values above 100% are therefore possible when one value is much larger than the other. Read sMAPE as a relative score on its own 0-200% scale rather than as a percentage that cannot exceed 100.

Is sMAPE better than MAPE?

Not universally. It removes the dependence on a single reference value, but it introduces its own instability when values are small or zero. The choice depends on the data and the question: sMAPE suits comparisons where neither value should be the reference, and MAPE, which uses the actual value as the reference, suits cases where that reference is the appropriate one.

Can I use sMAPE as a loss function?

It can be computed as a loss, but its absolute-value term is not differentiable where the forecast equals the actual, and it becomes sensitive when both values are small. For model training, the mean absolute error and the root mean squared error are alternatives. MSE, for example, provides a quadratic loss that weights large forecast errors more heavily, which may or may not suit the problem. MASE, listed as a related measure, is a scale-free option for evaluation.

Related methods

Sources

  1. Armstrong, J. S. (1985). Long-range forecasting: from crystal ball to computer (2nd ed.). New York: John Wiley & Sons.

    ISBN: 978-0471082010
  2. Hyndman, R. J., & Koehler, A. B. (2006). Another look at measures of forecast accuracy. International Journal of Forecasting, 22(4), 679-688.

    Open DOI reference
  3. Makridakis, S. (1993). Accuracy measures for a robust comparison of forecasting methods. International Journal of Forecasting, 9(4), 679-688.

    Open publication reference