Mean absolute percentage error

Intermediate

What you need first. Nothing else on this path comes first. This page is part of Data analysis.

In forecasting, the mean absolute percentage error is the average of absolute forecast errors after each error is expressed as a percentage of the observed value. A forecast error of 10 means something different for a series whose values are near 100 and for a series whose values are near 10,000. The mean absolute percentage error puts each error on the scale of the observation it misses, so two series in different units can be compared by one average. The price of that comparison is a list of conditions: the observations must be nonzero, the zero of the measurement must be a real absence, and a symmetric-looking variant is not a repair.[1][2]

Mean absolute percentage error

Mean absolute percentage error
Fact Value
Topic Data analysis
Listed on Data analysis
Worked example 1

Motivating example

Four simple methods were scored on Australian quarterly beer production for 2008–2010, after fitting through 2007. The seasonal naïve method had a mean absolute percentage error of 3.17, the historical mean 8.28, the naïve method 14.18 and the drift method 14.58. On that series every one of those scores picked the same winner. The percentage scale is what made a megalitre error readable as a share of the beer production being forecast. The same ordering is a fact about those four columns on that series. It is not a theorem that the mean absolute percentage error and the mean absolute error must rank methods alike.[1]

A second table, the Google closing prices for January 2016, shows the same kind of score on a different unit. The naïve method had MAPE 5.67, the drift method 6.99 and the historical mean 16.24. Again the ordering agreed with the other accuracy columns of that table. Agreement in two examples is still two examples.[1]

Intuition

Divide the error by the observation and multiply by 100. An error of 10 on an observation of 100 is 10 percent, and an error of 10 on an observation of 50 is 20 percent. Averaging the absolute percentages keeps over-forecasts and under-forecasts from cancelling. The divisor is the observation, so the same absolute miss is a larger percentage when the observation is smaller. A forecast that sits below a small observation is penalised more, as a percentage, than a forecast that sits the same distance above a large one. That asymmetry is a property of the ratio, not a defect in the arithmetic that computes it.[2][1]

Definition

Write the forecast error as et=yt−y^te_t=y_t-\hat y_t. The percentage error is pt=100 et/ytp_t=100\,e_t/y_t, and

MAPE=mean⁡(∣pt∣).\mathrm{MAPE}=\operatorname{mean}(|p_t|).

The mean is taken over the period on which accuracy is being scored. Forecast errors in that period are computed from observations that were not used to form the forecasts. Residuals, by contrast, are one-step errors on the training data. The same definition is the mean of ∣pt∣|p_t| with pt=100et/Ytp_t=100 e_t/Y_t, used to compare methods across series.[1][2]

A symmetric variant used in forecasting competitions replaces the denominator. One common form is

sMAPE=mean⁡(200∣yt−y^t∣yt+y^t).\mathrm{sMAPE}=\operatorname{mean}\left(\frac{200|y_t-\hat y_t|}{y_t+\hat y_t}\right).

That form can be negative, and it is still unstable when both the observation and the forecast are near zero. Makridakis, Spiliotis and Assimakopoulos write a related score with absolute values in the denominator,

sMAPE=2k∑t=1k∣Yt−Y^t∣∣Yt∣+∣Y^t∣×100%,\mathrm{sMAPE}=\frac{2}{k}\sum_{t=1}^{k}\frac{|Y_t-\hat Y_t|}{|Y_t|+|\hat Y_t|}\times 100\%,

and use it, together with the mean absolute scaled error, as the accuracy measure on a large subset of the monthly M3 series. The absolute values keep their version from changing sign. They do not remove the heavier penalty on large positive errors that percentage scores are known for, which is why those authors also report a scaled error.[1][3]

Properties

The MAPE is undefined or infinite if any observation in the scoring period is zero, and it becomes extreme when an observation is close to zero. A percentage also requires a meaningful zero. Temperature in degrees Celsius or Fahrenheit has an arbitrary zero, so a percentage error in those units does not measure forecast accuracy.[1][2]

On series that do hit zero, the in-sample and out-of-sample MAPE can be infinite for every simple method under comparison, as happened for a lubricant series whose sales included zeros. A series of monthly log returns that contains zeros and negative values produced an infinite MAPE for the historical mean, the random walk, exponential smoothing and Holt’s method on the fitting period. The M3 competition avoided infinite MAPEs by keeping only positive series, which removes the problem from the contest and leaves it in place for any series that actually hits zero.[2]

The symmetric form with a signed denominator can be negative even though it is described as an absolute percentage error. The form with absolute values in the denominator, as in the 2018 comparison of statistical and machine-learning forecasts, stays non-negative and still penalises large positive errors more than negative ones. Neither form is the MAPE. Substituting one for the other changes the ranking question.[2][3]

Worked example

Suppose the observations are 100, 200 and 50 and the forecasts are 110, 160 and 80. The errors are −10-10, 4040 and −30-30. The absolute percentage errors are

100⋅10100=10,100⋅40200=20,100⋅3050=60.100\cdot\frac{10}{100}=10,\qquad 100\cdot\frac{40}{200}=20,\qquad 100\cdot\frac{30}{50}=60.

The MAPE is (10+20+60)/3=30(10+20+60)/3=30. The mean absolute error on the original scale is (10+40+30)/3=80/3≈26.667(10+40+30)/3=80/3\approx 26.667, a different number because it is not a percentage. If the third observation had been 0, the third percentage error would have required division by zero and the MAPE would not have been a real number.[1]

Your turn. Observations 80 and 120 are forecast as 100 and 90. Compute the two absolute percentage errors and their mean.

The absolute percentage errors are 100⋅20/80=25100\cdot 20/80=25 and 100⋅30/120=25100\cdot 30/120=25. The MAPE is 25.

Assumptions and limits

Every observation in the average must be nonzero, and the zero of the measurement must be a real absence rather than an arbitrary origin. Values close to zero dominate the average even when they are genuine. Negative observations make a percentage hard to read as an absolute share of a level. Across series with very different scales, including zeros and negatives, a scaled error is the measure that stays finite whenever the historical series is not constant. The mean absolute scaled error compares each error with the average size of a naïve change on the training data, which is why it is reported beside sMAPE when the percentage score is the quantity a competition made familiar.[2][3][1]

Scoring the same one-step errors that were used to fit the model answers a different question from scoring a held-out period. The beer and Google tables are held-out scores. An in-sample MAPE can be small because the method was allowed to fit the points it is then praised for hitting.[1]

Connections

The mean squared error averages squared discrepancies and stays in the squared units of the series. A time series is the ordered sample on which a forecast error is defined. Percentage errors are one summary of those errors. The mean absolute error stays on the original scale and is the natural comparison when every series shares a unit. The mean absolute scaled error is the scale-free alternative when a percentage is undefined. On one series the beer table’s MAPE of 3.17 and the Google table’s MAPE of 5.67 are both percentages, and they are not percentages of the same thing. Comparing them with each other, rather than comparing methods inside each table, drops the series that gave the percentage its meaning.[1][2]

Check yourself

Try these questions before opening an answer.

Celsius percentages

Why is a percentage forecast error a poor accuracy measure for temperature in degrees Celsius, even when every temperature is far from zero?

The zero of the Celsius scale is an arbitrary origin, not the absence of heat. Dividing an error by the temperature does not measure the miss as a share of a real level.

A genuine zero

A scored series contains a genuine zero. What happens to the mean absolute percentage error, and which part of the definition causes it?

The mean absolute percentage error is undefined or infinite, because each percentage error divides by the observation.

Shared ranking

Two methods can have the same ordering by mean absolute percentage error and by mean absolute error on one series. Why is that ordering not guaranteed on every series?

The percentage score weights each absolute error by the level of its observation. A method that misses the small observations can therefore rank differently from a method scored in the original units.

See also

Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability

Glossary and index

References

  1. ^ a b c d e f g h i j k a. (§5.8, Percentage errors) b. (§5.8, beer accuracy table) c. (§5.8, Google accuracy table) d. (§5.8, Percentage errors) e. (§5.8, Forecast errors and Percentage errors) f. (§5.8, symmetric MAPE) g. (§5.8, Percentage errors) h. (§5.8, Percentage errors) i. (§5.8, Scaled errors) j. (§5.8, Forecast errors) k. (§5.8, beer and Google tables) Hyndman, R. J. & Athanasopoulos, G. (2021). Forecasting: Principles and Practice (3rd ed.). OTexts, Melbourne. https://otexts.com/fpp3/
  2. ^ a b c d e f g h a. (p. 8, §2.2) b. (p. 8, §2.2) c. (p. 8, §2.2) d. (pp. 8–9, §2.2) e. (pp. 5 and 8, Tables 2 and 3 and §2.2) f. (p. 9, §2.2) g. (pp. 8–9, §2.2) h. (p. 8, §2.2) Hyndman, R. J. & Koehler, A. B. (2006). Another look at measures of forecast accuracy. International Journal of Forecasting. https://doi.org/10.1016/j.ijforecast.2006.03.001
  3. ^ a b c a. (§3.1, pp. 5–6, equation 1) b. (§3.1, pp. 5–6) c. (§3.1, pp. 5–6) Makridakis, S., Spiliotis, E. & Assimakopoulos, V. (2018). Statistical and Machine Learning forecasting methods: Concerns and ways forward. PLoS ONE, 13(3), e0194889. https://doi.org/10.1371/journal.pone.0194889
Cite this page
Plain text
StatWiki (2026). "Mean absolute percentage error." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/mean-absolute-percentage-error.html
BibTeX
@misc{statwiki_mean_absolute_percentage_error,
  author = {{StatWiki}},
  title = {{Mean absolute percentage error}},
  year = {2026},
  url = {https://www.statwiki.io/articles/mean-absolute-percentage-error.html},
  urldate = {2026-12-02},
  note = {StatWiki, last updated 2 December 2026}
}