Certainly! MAD and MAPE are two commonly used metrics in forecasting and inventory management to measure the accuracy of demand forecasts.
1. MAD (Mean Absolute Deviation)
Definition:
MAD measures the average absolute difference between the actual values and the forecasted values. It gives you an idea of how much, on average, your forecasts deviate from the actual demand.
Formula:
[
\text{MAD} = \frac{\sum_{t=1}^{n} |A_t - F_t|}{n}
]
Where:
- (A_t) = Actual value at time (t)
- (F_t) = Forecasted value at time (t)
- (n) = Number of periods
Interpretation:
- Lower MAD values indicate more accurate forecasts.
- MAD is expressed in the same units as the data (e.g., number of packages).
2. MAPE (Mean Absolute Percentage Error)
Definition:
MAPE measures the average absolute percent error between the actual and forecasted values. It expresses forecast accuracy as a percentage, making it easy to interpret and compare across different datasets.
Formula:
[
\text{MAPE} = \frac{100%}{n} \sum_{t=1}^{n} \left| \frac{A_t - F_t}{A_t} \right|
]
Where:
- (A_t) = Actual value at time (t)
- (F_t) = Forecasted value at time (t)
- (n) = Number of periods
Interpretation:
- Lower MAPE values indicate more accurate forecasts.
- MAPE is expressed as a percentage, so a MAPE of 5% means the forecast is, on average, off by 5%.
Example Calculation
Suppose you have the following actual and forecasted demand for 4 periods:
| Period | Actual (A) | Forecast (F) |
|---|
| 1 | 100 | 90 |
| 2 | 120 | 110 |
| 3 | 130 | 140 |
| 4 | 110 | 100 |
MAD Calculation:
[
\text{MAD} = \frac{|100-90| + |120-110| + |130-140| + |110-100|}{4} = \frac{10 + 10 + 10 + 10}{4} = 10
]
MAPE Calculation:
[
\text{MAPE} = \frac{100%}{4} \left( \frac{10}{100} + \frac{10}{120} + \frac{10}{130} + \frac{10}{110} \right)
]
[
= 25% \times (0.10 + 0.0833 + 0.0769 + 0.0909)
]
[
= 25% \times 0.3511 = 8.78%
]