Skip to main content
Deep DiveForecasting MetricsSupply Chain Analytics· 7 min read· in Data & Analysis

Zero-Inflated Intermittent Demand Distorts MAPE Toward Infinity, Mandating Scaled Errors for Spare Parts Inventory

The Mean Absolute Percentage Error mathematically breaks down on zero-heavy data, forcing forecasting models to systematically under-stock spare parts. Adopting the Mean Absolute Scaled Error and the Syntetos-Boylan Approximation corrects this bias and preserves safety inventory.

By Sofia Matos

Share this story

Listen

In short

  • The Mean Absolute Percentage Error (MAPE) becomes mathematically undefined during zero-demand periods, rendering it useless for spare parts forecasting.
  • MAPE's asymmetric penalty caps under-forecast errors at 100% while scaling over-forecast errors toward infinity, incentivizing models to predict zero.
  • The Mean Absolute Scaled Error (MASE) resolves this by scaling against a naive baseline, providing a symmetric evaluation that preserves safety stock.

In high-stakes industries such as aerospace maintenance, automotive aftermarket, and industrial manufacturing, the most capital-intensive inventory is often the item that rarely sells. For the vast majority of specialized spare parts, demand manifests as a sparse series of zeros punctuated by unpredictable, sporadic spikes.[8]

When supply chain planners attempt to forecast this intermittent demand, they typically rely on the Mean Absolute Percentage Error to evaluate their models. Because this metric is simple to understand and built into almost all legacy enterprise software, it remains the default standard globally.[7][8]

However, the percentage error calculation contains a fatal mathematical flaw when applied to zero-heavy data. Because the formula divides the absolute error by the actual demand for each period, a month with zero sales renders the metric mathematically undefined.[6][8]

The Mathematical Trap of Percentage Errors

This mathematical breakdown forces forecasting software into a dangerous set of hidden compromises. To avoid division by zero, systems often drop zero-demand periods from the evaluation entirely, or they add a small constant to the denominator to force a calculation.[7]

MAPE becomes mathematically undefined during zero-demand periods, forcing systems to drop data or artificially bound the error.

Neither workaround solves the underlying statistical distortion. By dropping zero-demand periods, the model ignores the most common state of a spare part, evaluating accuracy only on the rare days when a transaction actually occurs. By adding a constant, the system artificially bounds the error but retains a massive penalty for over-forecasting.[7][8]

Even when demand is non-zero but very low, the metric produces extreme distortions. If a planner forecasts two units to maintain a minimum safety stock, but actual demand is only one unit, the calculation registers a 100 percent error.[7]

These massive percentage swings for tiny absolute differences distort how performance is judged across the supply chain. Planners see a high error rate, assume the forecast is entirely broken, and begin manually overriding the system, which ultimately degrades inventory performance.[7]

The Asymmetry of Percentage Errors

The most destructive feature of this metric in spare parts forecasting is its fundamental asymmetry. The calculation treats over-forecasting and under-forecasting entirely differently, creating a mathematical incentive that actively harms inventory readiness and corporate capital allocation.[7][8]

If a system forecasts zero units but actual demand is one, the absolute error is one, and the percentage error is capped at 100 percent. Conversely, if the system forecasts one unit but actual demand is zero, the division by zero drives the percentage error toward infinity.[8]

An optimization algorithm trained to minimize this metric will quickly learn the asymmetry. It realizes that predicting zero is the safest mathematical strategy, as it strictly bounds the maximum possible error. Consequently, the metric unintentionally encourages planners to under-stock.[8]

The asymmetry of percentage errors penalizes over-forecasting infinitely more heavily than under-forecasting.

This phenomenon, known as the point-forecast paradox, triggers a severe bullwhip effect in spare parts management. It causes catastrophic stockouts during sudden demand spikes, which then induce panicked, just-in-case overstocking that unnecessarily tethers corporate capital for years.[8]

Why Spare Parts Break Traditional Models

Traditional forecasting models are architected for high-volume, smooth demand where historical continuity serves as a reliable proxy for future requirements. They assume that demand follows a normal distribution around a moving average, with errors distributed evenly across the timeline.[2][8]

Intermittent demand violently violates these assumptions. To quantify this, statisticians use the Average Inter-Demand Interval and the squared Coefficient of Variation of non-zero demand sizes. Items with an average interval above 1.32 are formally classified as intermittent or lumpy.[5]

The classification scheme developed by forecasting researchers divides demand into four distinct cells based on these two diagnostics. When the interval is below 1.32 and the variation is low, demand is considered smooth, and standard exponential smoothing applies perfectly.[5]

However, when the interval exceeds 1.32 but the variation remains low, the demand is intermittent. If both thresholds are exceeded, the demand is classified as lumpy, representing the most difficult forecasting challenge in modern supply chain management.[5]

For these specific items, the timing of the next sale is highly uncertain, and the size of the order varies wildly when it finally arrives. Standard exponential smoothing methods fail completely in this environment, yielding a flat, fractional forecast.[5][6]

The SBC classification scheme dictates which forecasting method applies based on demand intervals and variability.

A fractional prediction, such as 0.2 units per month, never matches reality. When evaluated using percentage errors, these fractional forecasts generate massive penalties during both zero-demand months and sudden spikes, leaving supply chain leaders blind to the actual probability of a stockout.[7][8]

The Mean Absolute Scaled Error Solution

To resolve the division-by-zero problem, statisticians Rob Hyndman and Anne Koehler introduced the Mean Absolute Scaled Error in 2006. This metric abandons percentage-based calculations entirely, providing a robust alternative that does not exhibit asymptotic behavior near zero.[1][3]

Instead of dividing the error by the actual demand of a single period, the scaled error compares the forecast against the in-sample mean absolute error of a naive method. The naive method simply assumes that the next period will exactly repeat the previous period's demand.[3][8]

Because the denominator is based on the average variation across the entire historical series, it never equals zero unless the historical data is perfectly flat. This makes the scaled error mathematically stable and highly effective for zero-inflated arrays.[3]

A scaled error value less than 1.0 indicates that the forecasting model provides more predictive value than the naive baseline. Crucially, it treats over-forecasting and under-forecasting symmetrically, removing the mathematical incentive to artificially predict zero and preserving safety stock.[3][8]

Croston's Method and the SBA Correction

While scaled errors provide a valid evaluation metric, generating the forecast itself requires specialized algorithms. Croston's method, developed in 1972, addresses intermittency by separately smoothing the size of non-zero demands and the intervals between them.[6]

The SBA correction removes the systematic upward bias inherent in Croston's method by deflating the final ratio.

Both the demand size and the demand interval are updated using exponential smoothing, but only in periods when actual demand occurs. The final forecast per period is calculated by dividing the smoothed size by the smoothed interval.[6]

However, Croston's method contains a systematic positive bias. The ratio of two separately smoothed estimators is not itself unbiased, meaning the method overestimates the mean demand rate, especially when the smoothing constant is large.[4]

To correct this, the Syntetos-Boylan Approximation applies a deflating correction factor to the Croston forecast. By multiplying the forecast by a factor of one minus half the smoothing constant, the approximation removes the upward bias while preserving the intuitive decomposition.[4][5]

This approximation has become the de facto standard for forecasting intermittent demand. It is widely implemented in production planning software across the aerospace, defense, and pharmaceutical sectors to deliver more accurate mean forecasts at no extra computational cost.[5]

Transitioning to Inventory-Utility Metrics

While scaled errors and bias corrections fix the statistical flaws of traditional methods, leading supply chain teams are pushing beyond statistical accuracy entirely. Modern organizations are transitioning toward inventory-utility metrics that evaluate models based on the total financial cost of the error.[8]

An inventory-utility metric calculates the sum of holding costs incurred by over-forecasting and the stockout costs caused by under-forecasting. In sporadic environments, a model with higher statistical variance but lower stockout costs is often the superior business choice.[8]

For high-margin components, the cost of an operational shutdown vastly exceeds the cost of holding one extra spare part on the shelf. By aligning the forecasting metric with profit-and-loss goals, organizations can manage uncertainty rather than attempting to eliminate it.[8]

For high-margin components, the cost of an operational shutdown vastly exceeds the cost of holding one extra spare part on the shelf.

Furthermore, modern forecasting teams are increasingly deploying global machine learning models to handle these lumpy distributions. Rather than training an isolated model for a single spare part, global models learn across thousands of items simultaneously to identify hidden demand triggers.[7][8]

This cross-learning allows the algorithm to detect patterns that a single-item time series could never reveal. When combined with utility-based loss functions, these models optimize directly for service levels rather than arbitrary statistical perfection.[7]

By replacing percentage errors with scaled metrics, implementing bias corrections, and aligning the final evaluation with financial utility, organizations escape the point-forecast paradox. This paradigm shift moves the objective from predicting an exact number to ensuring operational readiness.[8]

How we did this

Method
Mathematical comparison of error metric penalty curves on zero-inflated arrays.
What we found
Because MAPE caps under-forecast errors at 100% but scales over-forecast errors toward infinity when demand approaches zero, optimizing for MAPE on intermittent spare parts mathematically forces the forecasting model to predict zero, systematically stripping safety stock and guaranteeing stockouts.
What we worked from
  • MAPE penalty for over-forecasting 1 unit against 0 actual demand: Infinity / Undefined — Medium
  • MAPE penalty for under-forecasting 0 units against 1 actual demand: 100% — Medium
Limits of this analysis
This analysis assumes the forecasting model uses MAPE as its primary loss function during training or hyperparameter tuning; models optimized on MAE or RMSE exhibit different bias profiles.

Jargon, explained

Mean Absolute Percentage Error (MAPE)
A forecasting metric that measures accuracy as a percentage, calculated by dividing the absolute error by the actual demand.
Mean Absolute Scaled Error (MASE)
A metric that scales the forecast error against the in-sample mean absolute error of a naive forecasting method, avoiding division by zero.
Syntetos-Boylan Approximation (SBA)
A mathematical correction applied to Croston's method that removes the systematic upward bias in intermittent demand forecasting.
Average Inter-Demand Interval (ADI)
The average number of periods between non-zero sales, used to classify demand as smooth or intermittent.
Croston's Method
A forecasting technique that separately smooths the size of non-zero demands and the intervals between them.

Common questions

Why does MAPE fail on intermittent demand?

MAPE divides the forecast error by the actual demand. When actual demand is zero, the calculation requires division by zero, which is mathematically undefined.

What is the point-forecast paradox?

It is the phenomenon where optimizing for a metric like MAPE on sparse data mathematically forces the model to predict zero, leading to catastrophic stockouts.

How does MASE solve the division-by-zero problem?

MASE scales the error against the historical average error of a naive forecast, meaning the denominator is based on the entire series rather than a single period's demand.

When should the Syntetos-Boylan Approximation be used?

SBA should be used for items classified as intermittent or lumpy, specifically when the Average Inter-Demand Interval exceeds 1.32.

Competing readings

Statistical Traditionalists

Advocates for standard exponential smoothing and percentage errors.

This perspective argues that MAPE remains the most intuitive metric for business stakeholders to understand, as it expresses error in simple percentage terms. Traditionalists often prefer adding a small constant to the denominator to prevent division by zero, maintaining that standard exponential smoothing is sufficient if safety stock buffers are manually adjusted by experienced planners.

Modern Forecasting Theorists

Proponents of scaled errors and bias-corrected intermittent models.

Researchers in this camp argue that mathematical rigor must supersede intuition. They demonstrate that the Syntetos-Boylan Approximation and the Mean Absolute Scaled Error are mathematically required to prevent systematic bias. From this viewpoint, using MAPE on zero-inflated arrays is a fundamental statistical error that actively destroys inventory value by forcing models to predict zero.

Supply Chain Practitioners

Focuses on the financial utility of the forecast rather than statistical purity.

Operational leaders view all statistical metrics as proxies for the true goal: maximizing service levels while minimizing holding costs. They advocate for inventory-utility loss functions, arguing that a model with a higher statistical error is vastly superior if it prevents a catastrophic stockout of a critical, high-margin aerospace component.

Modern Forecasting Theorists 45%Supply Chain Practitioners 35%Statistical Traditionalists 20%
Modern Forecasting Theorists
Proponents of scaled errors and bias-corrected intermittent models.
Supply Chain Practitioners
Focuses on the financial utility of the forecast rather than statistical purity.
Statistical Traditionalists
Advocates for standard exponential smoothing and percentage errors.

Perspectives this story doesn't cover

  • Warehouse Floor Managers
  • ERP Software Vendors

Sources

Source coverage

9 outlets

3 viewpoints surfaced

Modern Forecasting Theorists 45%Supply Chain Practitioners 35%Statistical Traditionalists 20%
  1. [1]Lund UniversityModern Forecasting Theorists

    MASE - Mean Absolute Scaled Error

    Read on Lund University →
  2. [2]Folia Oeconomica StetinensiaModern Forecasting Theorists

    New Forecasting Technique for Intermittent Demand

    Read on Folia Oeconomica Stetinensia →
  3. [3]National Treasury of BrazilModern Forecasting Theorists

    Forecasting Models and MASE

    Read on National Treasury of Brazil →
  4. [4]LineNowModern Forecasting Theorists

    The Syntetos–Boylan Approximation (SBA)

    Read on LineNow →
  5. [5]MetricGateModern Forecasting Theorists

    Forecast intermittent demand with the Syntetos-Boylan Approximation (SBA)

    Read on MetricGate →
  6. [6]DemandForecast.aiSupply Chain Practitioners

    Why does MAPE not work for intermittent demand?

    Read on DemandForecast.ai →
  7. [7]Yvonne BadulescuStatistical Traditionalists

    Choosing the Right Error Metrics for Intermittent Demand

    Read on Yvonne Badulescu →
  8. [8]MediumSupply Chain Practitioners

    The Point-Forecast Paradox: Why MAPE Fails in Sporadic Environments

    Read on Medium →
  9. [9]Factlen Editorial Team

    Synthesis by Factlen editorial team

    Read on Factlen Editorial Team →
Listen

Comments

Stay informed

Every angle. Every day.

Get Data & Analysis stories with full source coverage and perspective breakdowns, free every day.