Inferensys

Glossary

Hierarchical Forecasting

The process of generating mathematically coherent forecasts at multiple levels of a business aggregation structure, such as SKU, product category, and regional level, to ensure aligned operational and strategic plans.
Wide-angle shot of a modern WeWork open floor plan with creative walls covered in AI system architecture diagrams, product team collaborating in standing desk area with industrial lighting.
COHERENT MULTI-LEVEL PREDICTION

What is Hierarchical Forecasting?

Hierarchical forecasting is the process of generating statistically coherent predictions across multiple, nested aggregation levels of a business structure, ensuring that forecasts at granular levels sum perfectly to forecasts at higher levels.

Hierarchical forecasting is a structured approach to generating predictions for time series data organized in a tree or aggregation structure, such as product SKUs rolling up to categories, brands, and total company revenue. The core mathematical challenge is ensuring coherence, meaning the forecast for a parent node must equal the sum of its children's forecasts, preventing conflicting plans across an organization.

This process typically involves generating independent base forecasts at every node and then applying a reconciliation method—such as bottom-up, top-down, or optimal combination approaches like MinT—to adjust them. This ensures a unified, aligned view of future demand for strategic, tactical, and operational planning without internal contradictions.

COHERENT AGGREGATION

Key Characteristics of Hierarchical Forecasting

Hierarchical forecasting generates predictions at multiple levels of a business structure—such as SKU, product category, and region—and then applies reconciliation methods to ensure mathematical coherence across all levels.

01

Structured Aggregation Levels

Time series are organized into a strict tree or matrix hierarchy. A retail example:

  • Level 0 (Top): Total national demand
  • Level 1: Regional demand (East, West)
  • Level 2: Product category (Electronics, Apparel)
  • Level 3 (Bottom): Individual SKU

Each level imposes a linear aggregation constraint. The sum of bottom-level forecasts must equal the forecast of their parent node, ensuring a single, unified view of demand across the enterprise.

02

Base Forecasts vs. Coherent Forecasts

The process begins by generating base forecasts independently at each node using any time series model (ARIMA, ETS, DeepAR). These base forecasts are statistically optimal at their specific level but are almost always mathematically incoherent—the sum of regional forecasts will not equal the national forecast.

A reconciliation step then adjusts these base forecasts to produce coherent forecasts that satisfy all aggregation constraints while minimizing information loss.

03

Reconciliation Methods

Several mathematical approaches enforce coherence:

  • Bottom-Up: Forecast only at the most granular level and sum upwards. Ignores aggregate-level signal.
  • Top-Down: Forecast at the aggregate level and disaggregate using historical proportions. Loses granular detail.
  • Middle-Out: Forecast at an intermediate level, sum upwards, and disaggregate downwards.
  • Optimal Reconciliation (MinT): Uses a generalized least squares estimator to combine forecasts from all levels, weighting them by the covariance of their errors. This is the state-of-the-art approach, minimizing total forecast variance.
04

The Summing Matrix

The hierarchical structure is formally encoded in a summing matrix (S). This sparse matrix defines how bottom-level series aggregate into higher-level nodes.

For a hierarchy with n total nodes and m bottom-level nodes, S is an n × m matrix where each row specifies which bottom-level series contribute to that node. This matrix is the fundamental algebraic object used in all optimal reconciliation formulas, including the MinT estimator.

05

Forecast Error Propagation

A critical challenge in hierarchical forecasting is that errors compound across levels. An over-forecast at the SKU level propagates upward, inflating category and regional forecasts. Conversely, a top-down error cascades downward, distorting granular allocation.

Optimal reconciliation explicitly models the covariance matrix of base forecast errors to minimize this propagation. By understanding which nodes have correlated errors, the reconciliation algorithm can intelligently distribute adjustments rather than applying naive proportional scaling.

06

Cross-Sectional Information Sharing

Hierarchical forecasting enables information pooling across related series. A slow-moving SKU with sparse history can borrow statistical strength from its category-level trend or from sibling SKUs with similar seasonality.

Modern approaches like hierarchical global models (e.g., Hierarchical DeepAR) train a single neural network across all bottom-level series simultaneously, learning shared patterns while producing coherent probabilistic forecasts. This is especially powerful for handling intermittent demand and cold-start items in long-tail retail catalogs.

HIERARCHICAL FORECASTING

Frequently Asked Questions

Clear, technically precise answers to the most common questions about generating coherent, multi-level demand forecasts across complex retail and supply chain structures.

Hierarchical forecasting is the process of generating statistically coherent predictions at every level of a business's aggregation structure simultaneously, such as at the SKU, product category, regional, and national levels. It works by enforcing mathematical consistency, ensuring that the forecast for a product category equals the sum of the forecasts for its constituent SKUs, and that regional forecasts sum to the national total. This is achieved through reconciliation methods that optimally combine independent base forecasts from each level, using a summing matrix that defines the structural relationships. The primary goal is to eliminate the inconsistency where a bottom-up roll-up disagrees with a top-down executive projection, providing a single, unified view of future demand for supply chain planning.

HIERARCHICAL COHERENCE STRATEGIES

Reconciliation Methods Compared

Comparison of mathematical approaches for ensuring forecasts at all aggregation levels sum to consistent totals

FeatureBottom-UpTop-DownOptimal Combination

Forecast generation level

Granular (SKU-level) only

Aggregate level only

All levels independently

Disaggregation method

Not applicable

Historical proportions

Covariance-weighted adjustment

Captures granular patterns

Captures aggregate trends

Handles intermittent demand at leaf nodes

Requires covariance matrix estimation

Forecast accuracy (WMAPE)

0.8-1.2%

1.5-2.5%

0.3-0.7%

Computational complexity

Low

Low

High

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.