Hubbry Logo
search
logo

Mean absolute percentage error

logo
Community Hub0 Subscribers
Write something...
Be the first to start a discussion here.
Be the first to start a discussion here.
See all
Mean absolute percentage error

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. It usually expresses the accuracy as a ratio defined by the formula:

Where At is the actual value and Ft is the forecast value. Their difference is divided by the actual value At. The absolute value of this ratio is summed for every forecasted point in time and divided by the number of fitted points n. MAPE should be used with extreme caution in forecasting, because small actuals (target labels) can lead to highly inflated MAPE scores. wMAPE should be used instead of MAPE wherever possible (see section below).

Mean absolute percentage error is commonly used as a loss function for regression problems and in model evaluation, because of its very intuitive interpretation in terms of relative error.

Consider a standard regression setting in which the data are fully described by a random pair with values in , and n i.i.d. copies of . Regression models aim at finding a good model for the pair, that is a measurable function g from to such that is close to Y.

In the classical regression setting, the closeness of to Y is measured via the L2 risk, also called the mean squared error (MSE). In the MAPE regression context, the closeness of to Y is measured via the MAPE, and the aim of MAPE regressions is to find a model such that:

where is the class of models considered (e.g. linear models).

In practice

See all
User Avatar
No comments yet.