Have a Question?
Phone: +1 (888) 4279486
+1 (312) 2573777
Contact Us
MAPE
Calculates the mean absolute percentage error (Deviation) function for the forecast and the eventual outcomes.
Syntax
MAPE^{i}(X, Y, Ret_type)
X
is the original (eventual outcomes) time series sample data (a one dimensional array of cells (e.g. rows or columns)).
Y
is the forecast time series data (a one dimensional array of cells (e.g. rows or columns)).
Ret_type
is a switch to select the return output (1=MAPE (default), 2=Symmetric MAPE (SMAPI)).
Order  Description 

1  MAPE (default) 
2  SMAPE 
Remarks
 MAPE is also referred to as MAPD.
 The time series is homogeneous or equally spaced.
 For a plain MAPE calculation, in the event that an observation value (i.e. ) is equal to zero, the MAPE function skips that data point.
 The mean absolute percentage error (MAPE), also known as mean absolute percentage deviation (MAPD), measures the accuracy of a method for constructing fitted time series values in statistics.
 The two time series must be identical in size.

The mean absolute percentage error (MAPE) is defined as follows:Where:
 is the actual observations time series
 is the estimated or forecasted time series
 is the number of nonmissing data points
 When calculating the average MAPE for a number of time series, you may encounter a problem: a few of the series that have a very high MAPE might distort a comparison between the average MAPE of a time series fitted with one method compared to the average MAPE when using another method.
 In order to avoid this problem, other measures have been defined, for example the SMAPE (symmetrical MAPE), weighted absolute percentage error (WAPE), real aggregated percentage error, and relative measure of accuracy (ROMA).

The symmetrical mean absolute percentage error (SMAPE) is defined as follows:
 The SMAPE is easier to work with than MAPE, as it has a lower bound of 0% and an upper bound of 200%.
 The SMAPE does not treat overforecast and underforecast equally.
 For a SMAPE calculation, in the event the sum of the observation and forecast values (i.e. ) equals zero, the MAPE function skips that data point.
Examples
Example 1:
A  B  C  

1  Date  Series1  Series2 
2  1/1/2008  #N/A  2.61 
3  1/2/2008  2.83  0.28 
4  1/3/2008  0.95  0.90 
5  1/4/2008  0.88  1.72 
6  1/5/2008  1.21  1.92 
7  1/6/2008  1.67  0.17 
8  1/7/2008  0.83  0.04 
9  1/8/2008  0.27  1.63 
10  1/9/2008  1.36  0.12 
11  1/10/2008  0.34  0.14 
12  1/11/2008  0.48  1.96 
13  1/12/2008  2.83  1.30 
14  1/13/2008  0.95  2.51 
15  1/14/2008  0.88  0.93 
16  1/15/2008  1.21  0.39 
17  1/16/2008  1.67  0.06 
18  1/17/2008  2.99  1.29 
19  1/18/2008  1.24  1.41 
20  1/19/2008  0.64  2.37 
Formula  Description (Result)  

=MAPE($B$1:$B$19,$C$1:$C$19,1)  MAPE (151.503)  
=SMAPE($B$1:$B$19,$C$1:$C$19,2)  SMAPE (500) 
Files Examples
References
 Hamilton, J .D.; Time Series Analysis , Princeton University Press (1994), ISBN 0691042896
 Tsay, Ruey S.; Analysis of Financial Time Series John Wiley & SONS. (2005), ISBN 0471690740