The mean percentage error (MPE) is the mean percentage by which the forecasted values differ from the historical values in the ex-post forecast. MPE is calculated as follows:

Variables used in the formula:
V(t): Historical value in period t
P(t): The value of the ex-post forecast in period t
n: The number of periods for which the ex-post forecast is calculated