How to measure forecast accuracy, and which measure to use: MAPE, WAPE and bias worked on one SKU
There are two questions behind “how accurate is my forecast?”. How big are the misses, and which way do they lean? This post works MAPE, WAPE and bias on one SKU you can check line by line, shows where each measure breaks, and ends with which one to use for which job. Every SKU, sale and forecast in the example is invented so the arithmetic can be checked.
- MAPE is the average percentage miss per period. It breaks on slow sellers: a zero-sales week cannot be divided by, and a one-unit week turns a one-unit miss into 100%.
- WAPE is total units missed divided by total units sold. Use it to add accuracy up across a catalog, because it weights each SKU by what it sells.
- Bias is the signed version: total (forecast − actual) divided by total actual. A forecast can have a small MAPE and still be short week after week, which is what runs you out.
- Measure over the window your order has to cover: the supplier lead time, or lead time plus the time until your next review, not next week. Small misses that all lean one way add up over that window; misses that cancel do not.
- Check the forecast beats a naive one such as “same as last week”, at that same horizon. If it does not, the forecast is not adding anything.
A single accuracy percentage can hide a forecast that runs short week after week, a slow seller whose percentage error is meaningless, and a catalog bias where one SKU’s overshoot cancels another’s shortfall. So measure size and direction, at the level you buy at: the SKU, over its lead time. If you are still building the forecast, start with the six-step demand forecast or the four main forecasting methods.
The worked example: one SKU, two forecasts, eight weeks
Invented SKU A and two invented forecasts
SKU A sells about 100 units a week. Two forecasts were made for the same eight weeks. Forecast 1 is a flat 94 a week. Forecast 2 moves around more. The error column is forecast minus actual, so a negative number means the forecast was short.
| Week | Actual sales | Forecast 1 | Error 1 | Forecast 2 | Error 2 |
|---|---|---|---|---|---|
| 1 | 104 | 94 | −10 | 92 | −12 |
| 2 | 96 | 94 | −2 | 110 | +14 |
| 3 | 110 | 94 | −16 | 98 | −12 |
| 4 | 92 | 94 | +2 | 104 | +12 |
| 5 | 100 | 94 | −6 | 112 | +12 |
| 6 | 108 | 94 | −14 | 96 | −12 |
| 7 | 94 | 94 | 0 | 106 | +12 |
| 8 | 102 | 94 | −8 | 90 | −12 |
| Total | 806 | 752 | −54 | 808 | +2 |
Forecast 1’s misses are small, but it was short in six of the eight weeks. Forecast 2’s misses are bigger, 12 to 14 units every week, but they go both ways.
Step 1 — Measure the size of the miss: MAPE
Mean absolute percentage error takes each period’s miss as a share of what actually sold, drops the sign, and averages:
MAPE = average of ( |forecast − actual| ÷ actual ) × 100
One period on its own: forecast 100, sold 120, so the miss is 20 ÷ 120 = 16.7%. For SKU A, week 1 under Forecast 1 is 10 ÷ 104 = 9.6%, week 3 is 16 ÷ 110 = 14.5%, and so on. Averaged over the eight weeks:
| SKU A | MAPE |
|---|---|
| Forecast 1 (flat 94) | 6.9% |
| Forecast 2 (moves around) | 12.2% |
On MAPE, Forecast 1 is the better forecast by a wide margin. Keep reading before you agree.
Where MAPE breaks: a slow seller (invented SKU B)
SKU B sells a few units a week. The forecast is a flat 2, and over eight weeks it is exactly right in total: 16 forecast, 16 sold.
| Week | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Total |
|---|---|---|---|---|---|---|---|---|---|
| Actual | 3 | 0 | 1 | 4 | 2 | 0 | 5 | 1 | 16 |
| Forecast | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 16 |
| % miss | 33% | none | 100% | 50% | 0% | none | 60% | 100% |
Weeks 2 and 6 sold nothing, so there is nothing to divide by and the percentage does not exist. Leave them out and the other six weeks average 57.2%, for a forecast that missed by one or two units a week and was exact over the eight weeks. Had the forecast been 10 in a week that sold 3, that week alone would score 233%, so reporting accuracy as “100% minus MAPE” would give a negative number.
This is a property of percentage errors, not of this example. Hyndman and Athanasopoulos’s forecasting textbook puts it plainly: percentage-error measures are infinite or undefined when an actual is zero, and extreme when an actual is close to zero. For slow sellers, measure the miss in units. SKU B’s mean absolute deviation (MAD), the average miss in units with the sign dropped, is 12 ÷ 8 = 1.5 units a week: a fair description of this forecast.
Step 2 — Add it up across SKUs: WAPE
Weighted absolute percentage error adds up the misses first and divides once:
WAPE = sum of |forecast − actual| ÷ sum of actual × 100
For SKU A, Forecast 1 misses by 58 units in total (the Error 1 column without signs) against 806 sold: 7.2%. Forecast 2: 98 ÷ 806 = 12.2%. For SKU B, WAPE is 12 ÷ 16 = 75%; the zero weeks cause no trouble because the division happens once, on the total.
Where WAPE earns its place is across a catalog. Put SKU A (Forecast 1) and SKU B together:
| Catalog of SKU A + SKU B | Result | How |
|---|---|---|
| Average of the two SKUs’ MAPEs | 32.1% | (6.9% + 57.2%) ÷ 2 |
| Catalog WAPE | 8.5% | (58 + 12) ÷ (806 + 16) |
Averaging MAPEs gives the 16-unit slow seller the same vote as the 806-unit SKU. WAPE weights each SKU by what it sells; to weight by money instead, multiply each SKU’s units by its unit cost before adding up.
A catalog WAPE is a summary, not a diagnosis: a badly forecast slow SKU can disappear under the volume of a large, accurate one. Over- and under-forecast misses do not cancel in WAPE, because it adds up absolute errors; they can cancel in bias, so check catalog bias as well. The same goes for channels; a SKU sold on your own store and on a marketplace can be close on one and far off on the other. Read the catalog number, then look at each SKU, per channel.
Step 3 — Measure which way it leans: bias
MAPE and WAPE both drop the sign, so they cannot tell a forecast that is always short from one that is short half the time and long the other half. Bias keeps the sign:
bias = sum of (forecast − actual) ÷ sum of actual × 100
| SKU A | MAPE | WAPE | Bias |
|---|---|---|---|
| Forecast 1 | 6.9% | 7.2% | −6.7% (short) |
| Forecast 2 | 12.2% | 12.2% | +0.25% |
Forecast 1 has the smaller error and a bias of −6.7%: its total is 54 units short on 806 sold. When bias is close to WAPE in size, as here, the misses are nearly all in one direction. Forecast 2 has the larger error and a bias of a quarter of a percent: its misses cancel.
Persistent negative bias increases stockout risk; persistent positive bias tends to create excess stock. A one-way miss does not average out on the shelf.
Watching bias build: the tracking signal
To see bias forming before the period ends, divide the running total of errors by MAD so far:
tracking signal = running sum of (forecast − actual) ÷ MAD to date
For Forecast 1 it reads −1.0 after week 1, −3.5 after week 4 and −7.5 after week 8: it keeps growing because the errors keep landing on the same side. Forecast 2 stays between −1.0 and +1.1 for all eight weeks. Where to draw the review line is a judgement you set; the signal is a number that keeps growing in one direction.
The size of the error tells you how wrong you are. The sign tells you which inventory risk the forecast is pushing you toward.
Step 4 — Measure at the horizon you buy at
If the supplier takes four weeks, you are not ordering one week at a time. What a purchase order has to cover is the demand over the replenishment window: the lead time, or lead time plus the time until your next review. That is the window the forecast should be graded on. Say SKU A’s lead time is four weeks. Compare each forecast’s four-week total with what sold in those four weeks:
| Window | Actual | Forecast 1 | Forecast 2 |
|---|---|---|---|
| Weeks 1–4 | 402 | 376 (26 short, 6.5%) | 404 (2 over, 0.5%) |
| Weeks 5–8 | 404 | 376 (28 short, 6.9%) | 404 (exact) |
Weekly, Forecast 1 looked better. At the level you buy at, it is 26 to 28 units short every cycle, and Forecast 2 is within 2. Size orders on Forecast 1 and you run out each cycle unless safety stock covers the gap. When the miss is persistently in the same direction, covering it with safety stock means carrying inventory every cycle for a bias you may be able to correct in the forecast itself.
Errors that cancel shrink when you add periods together; errors that lean one way do not. So grade forecasts at the horizon your reorder point uses.
Step 5 — Check it beats a naive forecast
A forecast earns its keep only if it beats one that takes no effort, such as “next week sells what last week sold”. This is a test, not a standard.
For SKU A, with an invented week-0 sale of 98, the naive forecast for weeks 1 to 8 is 98, 104, 96, 110, 92, 100, 108, 94. Its weekly WAPE is 84 ÷ 806 = 10.4%. Forecast 1 (7.2%) beats it; Forecast 2 (12.2%) does not.
Now run the same test at the four-week horizon, where the naive forecast is “the next four weeks sell what the last four sold”. For weeks 5 to 8 that is 402, against 404 actual: 2 short. Forecast 1 was 28 short; Forecast 2 was exact. At the horizon that sets the order, the naive forecast beats Forecast 1.
Two things that quietly corrupt the actuals
Weeks when the SKU was out of stock
Sales are not demand when the shelf is empty. They are capped at what you had. Say SKU A was in stock for 4 of 7 days one week and sold 60 against a forecast of 100. As recorded, that is a 66.7% miss, and it blames the forecast for your stockout. Scaled to the days in stock (60 ÷ 4 × 7 = 105), the miss is 5 units, or 4.8%.
Leave stockout weeks out, or mark them as estimated; a short in-stock window can overstate demand just as a stockout understates it. Grading against capped sales makes a right forecast look wrong, and the obvious “fix”, forecasting lower, causes the next stockout.
One-off events
A promotion or a one-time bulk order moves the actuals for reasons the baseline forecast was never meant to predict. Grade those weeks separately, against the promotion forecast if you made one.
Which measure to use for which job
| The question | Use | Why |
|---|---|---|
| How far off is this steady seller? | MAPE or WAPE | For a SKU with no low weeks they land close together; WAPE is safer if a low week ever appears. |
| How far off is this slow seller? | MAD (units) | Percentages are undefined at zero and extreme near it. |
| How accurate is the whole catalog? | WAPE | Weights each SKU by what it sells; multiply by unit cost to weight by money. |
| Is the forecast leaning one way? | Bias, and the tracking signal week to week | MAPE and WAPE drop the sign. |
| Will my orders cover demand? | Any of the above, on lead-time totals | The order covers the lead time, not one week. |
| Is the forecast worth having? | The same measure, against a naive forecast | If it cannot beat “same as last time”, it is not adding anything. |
Accuracy is a means, not the goal; the goal is being in stock on what sells and light on what does not. Track the measures, then put the effort into the decisions they feed.
What to do this week
- Pick ten SKUs: your top sellers and a few slow ones. Pull the last eight to twelve weeks of forecast and actual for each.
- Mark the weeks each SKU was out of stock or on promotion, and set them aside.
- Compute WAPE and bias per SKU, and MAD for the slow ones. Compute catalog WAPE once.
- Add up forecast and actual over each SKU’s lead time and compare the totals. Note any SKU that is short in every window.
- Run the naive forecast through the same numbers. Any SKU where it wins is a SKU whose forecast needs work before its next order.
Questions people ask
How do you measure forecast accuracy?
Compare the forecast with what actually sold, period by period, and measure the size of the misses and their direction. For size: MAPE (average percentage miss) on steady sellers, WAPE (total units missed divided by total units sold) across a catalog, MAD (average miss in units) on slow sellers. For direction: bias, total (forecast minus actual) divided by total actual. Measure per SKU, over your lead time, leaving out stockout weeks.
Which forecast accuracy measure should I use?
It depends on the question. One steady seller: MAPE or WAPE. A slow seller: MAD in units, because percentages break near zero sales. The whole catalog: WAPE, which weights SKUs by what they sell. Whether the forecast leans one way: bias and the tracking signal. Whether orders will cover demand: any of these on lead-time totals, not single weeks.
What is the difference between MAPE and WAPE?
MAPE works out the percentage miss in each period and averages those percentages, so every period and every SKU counts equally. WAPE adds up the units missed and divides once by the units sold, so a high-volume SKU counts for more and a zero-sales week causes no division problem. In the worked example, averaging two SKUs’ MAPEs gives 32.1%, while the same catalog’s WAPE is 8.5%.
What is forecast bias?
Bias is the direction of the error: total (forecast minus actual) divided by total actual. Negative means the forecast is short; persistent negative bias increases stockout risk. Positive means it is long; persistent positive bias tends to create excess stock. A forecast can have a small MAPE and still be biased; in the worked example, the forecast with a 6.9% MAPE was short in six of eight weeks and 26 to 28 units short over every four-week lead time.
Why does MAPE not work for slow-moving products?
Because it divides by actual sales. A zero-sales week cannot be divided by, and a week with one or two sales turns a one-unit miss into 50% or 100%. In the worked example a slow seller forecast exactly right in total shows a MAPE of 57%. Measure slow sellers in units with MAD, or use WAPE over a longer window.
What is a good forecast accuracy?
There is no single target number that fits every SKU. A steady seller and a slow seller with equally good forecasts will show very different percentages, as the worked example shows. Two tests are more useful than a target: does the forecast beat a naive one (“same as last time”) at the horizon you order for, and is its error and bias moving the right way over time?
How long should you test a forecast’s accuracy?
Long enough to include the periods that matter to your orders. If your year turns on a busy season, a test run only in a quiet month tells you little about the forecast you will rely on in the peak, so test through a full sales cycle that includes it. Within that, grade at your lead-time horizon, and set aside stockout and promotion weeks.
