01 / 21

Forecast Accuracy
Metrics

Learn to measure how close your predictions are to reality using MAE and MAPE: the essential tools for evaluating any forecast.

Business Analytics

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?"

Evaluate
Compare different forecasting methods to pick the best one
Improve
Identify where your model under- or over-predicts
Communicate
Report forecast quality to stakeholders with a single number

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

0 50 100 150 Mon Tue Wed Thu Fri error Actual Forecast

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.

Units
MAE is in the same units as your data (dollars, units, etc.)
Interpretation
Lower MAE = more accurate forecast. An MAE of 0 means perfect accuracy.

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

1
List your data. Write down each actual value \( A_t \) and its corresponding forecast \( F_t \).
2
Compute each error. Calculate \( e_t = A_t - F_t \) for every period.
3
Take absolute values. Convert each \( e_t \) to \( |e_t| \) so negatives become positive.
4
Sum and average. Add all \( |e_t| \) values, then divide by \( n \) (the number of periods).

How to Compute MAPE

1
Compute each error. Calculate \( e_t = A_t - F_t \) for every period.
2
Divide by the actual. Compute \( \frac{|e_t|}{A_t} \) for each period. This gives the percentage error.
3
Sum and average. Add all percentage errors and divide by \( n \).
4
Multiply by 100. Express the result as a percentage.

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| \)
112011010
213014010
31251205
41401355

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} \)
1120100.0833
2130100.0769
312550.0400
414050.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| \)
12101018020
22401026010
33101029010
Model A MAE
\( \frac{10+10+10}{3} = \) 10.0
Model B MAE
\( \frac{20+10+10}{3} \approx \) 13.3

How MAE and MAPE Relate

MAE Absolute units "Off by 7.5 cups"
✓ Works when \( A_t = 0 \)
✕ Can't compare scales
MAPE Percentage (%) "Off by 5.9%"
✓ Scale-independent
✕ Fails when \( A_t = 0 \)
Both use \( |A_t - F_t| \) as the starting point

When to Use Which Metric

Use MAE when:
You want the error in the same units as the data, or when actual values can be zero (e.g., new product with 0 sales some days).
Use MAPE when:
You need to compare forecasts across products at different scales (e.g., a $5 snack vs a $500 appliance).

Common Mistakes

Forgetting Absolute Values
If you average raw errors (not absolute), positives and negatives cancel, giving a misleadingly low result.
MAPE with Zero Actuals
Dividing by \( A_t = 0 \) makes MAPE undefined or infinite. Use MAE instead for data with zeros.
Comparing MAE Across Scales
An MAE of 10 for $20 items is terrible; for $10,000 items it's amazing. MAE alone can't cross-compare scales.

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?