WMAPE vs MAPE: measuring forecast accuracy on a long tail

Why the most common accuracy metric falls apart on a distributor's range, and what to use instead.

2 min read

Warehouse with pallets of goods under warm light

Ask a planning vendor how accurate their forecasts are and you will usually get a single percentage. Ask which metric, measured on what, and the answer gets vaguer. For a distributor with thousands of SKUs, most of them slow, the choice of metric changes the answer completely.

MAPE and why it breaks

Mean absolute percentage error averages the percentage error of each SKU. It is intuitive, and it is a poor fit for a long tail:

  • Zero sales break it. A week with no sales makes the percentage error infinite or undefined. Slow movers have many such weeks.
  • Small items dominate. Forecasting 2 units when 1 sold is a 100% error. Forecasting 900 when 1,000 sold is 10%. MAPE treats the first as ten times worse, although the second matters far more to your business.
  • It rewards under-forecasting. Errors from forecasting too low are capped at 100%; errors from forecasting too high are not.

WMAPE weights by volume

Weighted MAPE divides the total absolute error by the total actual quantity:

WMAPE = Σ |actual − forecast| ÷ Σ actual

Every unit of error counts the same, wherever it happens. Fast movers carry most of the weight, which is where most of the money is. Zero-sales weeks no longer break the calculation. You can also weight by value instead of units if margin matters more than volume.

Measure it out of sample

A forecast measured on the data it was fitted to always looks good. The honest test is a backtest: hide the last weeks, forecast them from the earlier history, compare, and repeat from several starting points. That is called rolling-origin evaluation, and it is how a method should be chosen for each SKU.

Read accuracy by segment

One number for the whole range hides where the trouble is. Split WMAPE by ABC class and by demand pattern. A items with smooth demand should be accurate; C items with intermittent demand never will be, and need safety stock and review rules instead of a better forecast.

What to ask any vendor

Which metric, measured on whose data, out of sample or in, and per SKU or as one average. If the answer is a single percentage on a demo dataset, you have learned nothing about your own range.

More in Forecasting