Forecast Accuracy
Metrics
Learn to measure how close your predictions are to reality using MAE and MAPE: the essential tools for evaluating any forecast.
Why Measure Forecast Accuracy?
Every business makes predictions: next month's sales, tomorrow's inventory needs, next quarter's revenue. But a forecast is only useful if you know how reliable it is. Accuracy metrics give you a concrete number that answers: "How far off was my prediction?"
What Is Forecast Error?
Forecast error is the difference between the actual value and the forecasted value for each time period. It tells you the direction and size of each miss.
A positive error means you under-predicted (actual > forecast). A negative error means you over-predicted (actual < forecast). We need metrics that summarize these errors across many periods.
Visualizing Errors
Mean Absolute Error: MAE
MAE averages the absolute values of all forecast errors. By taking absolute values, positive and negative errors don't cancel each other out.
Mean Absolute Percentage Error: MAPE
MAPE expresses the error as a percentage of the actual value, then averages across all periods. This makes it scale-independent: you can compare forecasts for $100 items vs $10,000 items.
MAE vs MAPE: Key Differences
| MAE | MAPE | |
|---|---|---|
| Formula core | \( |A_t - F_t| \) | \( \left|\frac{A_t - F_t}{A_t}\right| \) |
| Output units | Same as data | Percentage (%) |
| Scale-dependent? | Yes | No |
| Works when \( A_t = 0 \)? | Yes | No (division by zero) |
| Best for | Comparing models on same data | Comparing across different scales |
How to Compute MAE
How to Compute MAPE
Worked Example: Coffee Shop Sales
A coffee shop forecasted daily sales for 4 days. Let's compute MAE.
| Day | \( A_t \) | \( F_t \) | \( |A_t - F_t| \) |
|---|---|---|---|
| 1 | 120 | 110 | 10 |
| 2 | 130 | 140 | 10 |
| 3 | 125 | 120 | 5 |
| 4 | 140 | 135 | 5 |
Worked Example: MAPE for Coffee Shop
Using the same coffee shop data, let's compute MAPE.
| Day | \( A_t \) | \( |e_t| \) | \( \frac{|e_t|}{A_t} \) |
|---|---|---|---|
| 1 | 120 | 10 | 0.0833 |
| 2 | 130 | 10 | 0.0769 |
| 3 | 125 | 5 | 0.0400 |
| 4 | 140 | 5 | 0.0357 |
Comparing Two Forecast Models
A retailer tests two models (A and B) over 3 months. Actual sales: 200, 250, 300.
| Month | Model A \( F_t \) | Model A \( |e_t| \) | Model B \( F_t \) | Model B \( |e_t| \) |
|---|---|---|---|---|
| 1 | 210 | 10 | 180 | 20 |
| 2 | 240 | 10 | 260 | 10 |
| 3 | 310 | 10 | 290 | 10 |
How MAE and MAPE Relate
When to Use Which Metric
Common Mistakes
Quick Reference Summary
| Feature | MAE | MAPE |
|---|---|---|
| Formula | \( \frac{1}{n}\sum|A_t - F_t| \) | \( \frac{1}{n}\sum\left|\frac{A_t - F_t}{A_t}\right|\times100\% \) |
| Output | Same units as data | Percentage (%) |
| Scale-free? | No | Yes |
| Handles \( A_t = 0 \)? | Yes | No |
| Interpretation | Average miss size | Average % miss |
| Ideal value | 0 | 0% |
Question 1 of 5
Given actuals of 50, 60, 70 and forecasts of 45, 65, 75, what is the MAE?
Question 2 of 5
Which metric should you avoid when your actual data contains zero values?
Question 3 of 5
Actual = 200, Forecast = 220. What is the absolute percentage error for this period?
Question 4 of 5
Why is MAPE considered "scale-independent" while MAE is not?
Question 5 of 5
Model X has MAE = 12 and Model Y has MAE = 8 on the same dataset. Which statement is true?