Mean absolute percentage error

From Wikipedia, the free encyclopedia
Jump to: navigation, search

The mean absolute percentage error (MAPE), also known as mean absolute percentage deviation (MAPD), is a measure of prediction accuracy of a forecasting method in statistics, for example in trend estimation. It usually expresses accuracy as a percentage, and is defined by the formula:

\mbox{M} = \frac{1}{n}\sum_{t=1}^n  \left|\frac{A_t-F_t}{A_t}\right|,

where At is the actual value and Ft is the forecast value.

The difference between At and Ft is divided by the Actual value At again. The absolute value in this calculation is summed for every forecasted point in time and divided by the number of fitted points n. Multiplying by 100 makes it a percentage error.

Although the concept of MAPE sounds very simple and convincing, it has major drawbacks in practical application [1]

  • It cannot be used if there are zero values (which sometimes happens for example in demand data) because there would be a division by zero.
  • For forecasts which are too low the percentage error cannot exceed 100%, but for forecasts which are too high there is no upper limit to the percentage error.
  • When MAPE is used to compare the accuracy of prediction methods it is biased in that it will systematically select a method whose forecasts are too low. This little-known but serious issue can be overcome by using an accuracy measure based on the ratio of the predicted to actual value (called the Accuracy Ratio), this approach leads to superior statistical properties and leads to predictions which can be interpreted in terms of the geometric mean. [2]


Alternative MAPE definitions[edit]

Problems can occur when calculating the MAPE value with a series of small denominators. A singularity problem of the form 'one divided by zero' and/or the creation of very large changes in the Absolute Percentage Error, caused by a small deviation in error, can occur.

The difference with the original formula is that each Actual Value (At) of the series is replaced by the average Actual Value (Āt) of that series. Hence, the distortions are smoothed out. This alternative is still being used for measuring the performance of models that forecast spot electricity prices.[3]

Another variant is the sum of absolute differences is divided by sum of actual values. Sometimes, it is referred as WAPE.

See also[edit]

External Links[edit]

References[edit]

  1. ^ Tofallis (2015). "A Better Measure of Relative Prediction Accuracy for Model Selection and Model Estimation", Journal of the Operational Research Society, 66(8),1352-1362. archived preprint
  2. ^ Tofallis (2015). "A Better Measure of Relative Prediction Accuracy for Model Selection and Model Estimation", Journal of the Operational Research Society, 66(8),1352-1362. archived preprint
  3. ^ Jorrit Vander Mynsbrugge (2010). "Bidding Strategies Using Price Based Unit Commitment in a Deregulated Power Market", K.U.Leuven