INFINITE UPSIDE

Forecasts that face their actual outcomes

How do I measure forecast accuracy with zero sales?

Matching the monthly total can hide every weekly miss. Score the forecasts on the same complete record.

Measure forecast accuracy on the same complete set of genuinely forecast periods, keeping zero-sales weeks in the record. Mean absolute error shows the average miss in units. Weighted absolute percentage error compares total absolute error with total actual volume when that denominator is positive. Ordinary MAPE is undefined when an actual value is zero; hiding those rows changes the question.

Also retain the direction of the misses and their operating consequences. A forecast can match the whole month's total while being wrong in every week. Another can have lower absolute error while missing more often in the direction that matters most to the business.

Freeze the forecast before the outcome

Choose the item, unit, forecast horizon, issue time and actual outcome definition before calculating a score. A one-week-ahead forecast should be compared with another forecast made with the same lead time, not a revised estimate issued after half the week has passed.

Hyndman and Athanasopoulos' forecast-accuracy discussion distinguishes genuine predictions on new observations from fit to data already used in constructing a model. It also describes evaluating successive forecasts using information available before each outcome.

Preserve the original forecast version. A revision based on new information may be useful for today's decision, but replacing the original destroys the evidence needed to judge yesterday's method.

Match the actual measure too. Units ordered, units shipped, sales earned and cash collected can differ. If you want demand, investigate whether recorded sales were limited by stockouts, closures or other unavailable service. Zero recorded sales does not by itself establish zero customer demand.

An original four-week comparison

Consider a wholly fictional business evaluating two methods for one product. Both methods issue a point forecast for the next week before that week starts, using only information available then. Neither method is fitted or revised using the future outcomes in this test.

The actual measure is weekly demand in identical units. The supplied records fully observe demand, with no stockouts, unserved requests, returns, missing weeks or reporting errors. Recorded sales equal demand in this limited case. No forecast has yet been translated into a purchasing or staffing decision.

Scroll across to compare the same four weeks. These are original fictional values, not observed company results.

WeekActual unitsForecast AForecast B
One050
Two101510
Three1008090
Four9010070

Actual demand totals 200 units. A also forecasts 200 in total, while B forecasts 170. That gives a useful first observation: A matches the aggregate, and B is thirty units below it. Neither observation finishes the accuracy comparison.

Use forecast minus actual as the signed-error convention throughout this guide. Positive means overforecast; negative means underforecast. Other reports may use the opposite sign, so label it rather than assuming that a negative number always means the same thing.

Calculate the weekly misses before adding them

A's signed errors are +5, +5, −20 and +10. Their sum is zero. The positive twenty units cancel the negative twenty units when you add signed errors.

Taking absolute values first gives 5, 5, 20 and 10, totaling 40 units. Those misses do not disappear merely because the forecast and actual totals match.

B's signed errors are 0, 0, −10 and −20. Its absolute errors total 30 units. It misses fewer units in total, but every nonzero miss is an underforecast.

Keep both accounts. Absolute error describes the size of the misses without cancellation. Signed error preserves their direction. The zero sum for A does not prove its method has no systematic bias; four invented weeks cannot establish that broader statistical conclusion.

Use MAE to keep the unit visible

Mean absolute error, or MAE, is the average of the absolute misses across the included periods. A's 40 ÷ 4 = 10 units per week. B's 30 ÷ 4 = 7.5 units per week.

The fractional average is valid even though actual product counts are whole units. It does not mean a customer ordered half an item. It summarizes the four separate errors.

For these common weeks and this same product, B has lower MAE. That finding needs no universal threshold saying that ten units is good or bad. Ten units could be trivial for one operation and consequential for another.

Do not compare MAE in liters with MAE in dollars as though a smaller numerical value identifies the better method. Keep the unit and forecast scope attached. If you change the evaluation population, retain the new definition rather than presenting it as an improvement in the old score.

Calculate WAPE from absolute errors, not net totals

AWS's explanation of WAPE defines it as the sum of absolute errors divided by total actual demand. For this nonnegative demand record, the denominator is the same 200 units for both methods.

A's WAPE is 40 ÷ 200 = 20%. B's is 30 ÷ 200 = 15%. B has lower WAPE as well as lower MAE on this complete common window.

Calculating the absolute difference between the two aggregate totals would give A zero error: |200 − 200| = 0. That is not the 40-unit numerator used for WAPE. It allows weekly misses to cancel before measuring them.

For a separately labeled directional measure, divide B's signed total error by actual volume: −30 ÷ 200 = −15%. That describes underforecasting in this observation under the chosen sign convention. It is not negative WAPE; absolute-error WAPE is nonnegative.

Keep WAPE as an error measure. It is not the probability that next week's forecast will be right, the percentage of orders delivered or a forecast-confidence level.

Do not make zero weeks disappear to fix MAPE

Mean absolute percentage error, or MAPE, takes each period's absolute error divided by that period's actual value, then averages the percentages. The authors' forecast-accuracy discussion explains the problem when actuals are zero or near zero.

In week one, A would require dividing five by zero. B would require dividing zero by zero. Neither supplies a defined ordinary percentage error for that row. A perfect zero prediction does not make the expression zero by ordinary arithmetic.

Dropping week one would leave only three of the four periods. A report could explicitly calculate a positive-demand-only statistic, but it would be a different scope. It would not evaluate the overforecast made during the omitted zero-demand week.

Replacing zero with one also changes the metric and introduces an arbitrary denominator. If a system applies such a policy, document it and consider what behavior it rewards. Do not silently call the resulting figure standard MAPE.

WAPE can include individual zero weeks when total actual volume is positive, as it is here. If every actual in the evaluation window is zero, its denominator is zero too. Report the observed absolute errors and undefined percentage rather than inventing a favorable percentage.

For a separate one-period illustration, actual demand of one and a forecast of three produces two units of absolute error and 200% WAPE. Subtracting that from 100% would give negative 100%. This is another reason not to treat “100 minus error percentage” as a universal probability-like accuracy score.

Compare with a simple forecast made on the same clock

Supply one earlier observed week with ten units of demand. Before each test week, a predefined baseline simply forecasts the immediately preceding week's actual demand. Its forecasts for the four weeks are therefore 10, 0, 10 and 100.

Those baseline predictions use only information available before their respective weeks: the supplied earlier ten, followed by the observed zero, ten and one hundred. They do not use the next outcome.

The baseline's absolute misses are 10, 10, 90 and 10, totaling 120 units. Its MAE is 30 units, and WAPE is 60%.

A and B both beat this baseline on these measures in this small fictional record. That does not prove either will beat it in the next period, or that this particular baseline is appropriate for a strongly seasonal business.

Keep the comparison honest by using the same windows and horizon. A one-week score cannot establish the quality of a twelve-week procurement forecast. Evaluate the lead time at which the actual operating decision must be made.

A lower error score can have a higher decision cost

Now add a separate, deliberately simplified evaluation policy. Assign a $1 scoring weight to each overforecast unit and a $5 weight to each underforecast unit, independently in each week, with no offsets across weeks.

These are fictional decision weights, not measured lost sales, actual cash expenses or an instruction to order the forecast quantity. The policy examines how a chosen cost asymmetry changes the ranking; a real operating loss model needs its own evidence.

A overforecasts by twenty units in total and underforecasts by twenty. Its weighted score is 20 × $1 + 20 × $5 = $120.

B has no overforecast units and underforecasts by thirty. Its score is 30 × $5 = $150. B's lower 15% WAPE accompanies a $30 higher score under this supplied asymmetric policy.

The arithmetic does not contradict itself. Absolute-error measures give equal weight to equal-sized misses in either direction. This policy does not. Choosing a metric should follow the decision and its consequences rather than whichever report makes a favored method win.

Look beyond a single four-week result

Use an appropriate sequence of genuine evaluation windows, preserving forecasts as they were issued. Check whether results change with season, item, horizon or an operating constraint. Repeatedly choosing a method because it wins one convenient window can turn the test into another form of fitting.

Investigate large misses. A promotion that was not communicated, a changed customer order, a stockout that censored observed sales and a duplicated transaction require different repairs. A more complicated model cannot supply missing business information automatically.

Keep forecast generation separate from the actions taken afterward. The stock-budget guide translates sales assumptions into a purchase requirement; it does not establish that those assumptions were accurate. A purchase decision also needs actual incoming stock, timing, funding and service constraints.

The weighted-pipeline guide concerns uncertain signed contract value rather than this unit-demand evaluation. A probability attached to an opportunity and a percentage forecast-error score are different measures.

Retain a compact scorecard: frozen issue time, horizon, common actuals, complete included rows, signed and absolute errors, MAE, a defined percentage measure where valid, baseline and relevant decision consequences. Mark missing or undefined results explicitly.

Explore Infinite Upside

For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.

Find your edition · Chapter companion

Choose an edition

Choose an edition

ABOUT THE CONTRIBUTOR

Luna Lim

DIRECTOR OF FINANCIAL RESEARCH & EDITORIAL STRATEGY

SHETH CAPITAL, INC.

Luna Lim writes about business, investing, and the judgment behind financial decisions. She joined PCH Exotics Inc. as Director of Operations in 2022, working across La Jolla and Miami. Today, she reports directly to Vijay Sheth at Sheth Capital, Inc., bringing an operator’s perspective to the ideas she covers.

Based in Pacific Beach, California, Luna is curious about the people behind the numbers: what they’re building, how they weigh uncertainty, and what makes a risk worth taking. Her articles for Infinite Upside follow those questions through the details, with clear explanations and a feel for how decisions play out in everyday business.

More from Luna Lim

The Infinite Upside store