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.
Glossary
Hierarchical Forecasting

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Reconciliation Methods Compared
Comparison of mathematical approaches for ensuring forecasts at all aggregation levels sum to consistent totals
| Feature | Bottom-Up | Top-Down | Optimal 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 |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Mastering hierarchical forecasting requires understanding the reconciliation methods, coherence constraints, and evaluation metrics that ensure aligned predictions across all business aggregation levels.
Top-Down Reconciliation
A coherence strategy that generates a forecast at the highest aggregate level first, then disaggregates it to lower levels using historical proportions.
- Approach: Compute total company forecast, then allocate to regions based on historical share
- Key advantage: Aggregate forecast is often more accurate and stable
- Key drawback: Ignores granular signals; a regional spike is diluted by the global average
- Best for: Stable hierarchies where the mix of lower-level contributions is consistent over time
Bottom-Up Reconciliation
A coherence strategy that generates forecasts at the most granular level first, then sums them up to derive higher-level predictions.
- Approach: Forecast every SKU-store combination independently, then sum to category and national levels
- Key advantage: Captures fine-grained patterns, promotions, and local demand signals
- Key drawback: Granular forecasts are noisier; errors accumulate when summed
- Best for: Hierarchies where bottom-level dynamics are heterogeneous and rich with data
Middle-Out Reconciliation
A hybrid approach that generates forecasts at an intermediate level of the hierarchy, then reconciles both upward and downward.
- Approach: Forecast at the product category level, sum up to division, and disaggregate down to SKU
- Key advantage: Balances the stability of aggregation with the granularity of lower levels
- Key drawback: Requires careful selection of the middle level; performance depends on this choice
- Best for: Deep hierarchies where neither the top nor the bottom level provides optimal signal-to-noise ratio
Optimal Reconciliation (MinT)
A statistical reconciliation method that produces coherent forecasts by optimally combining all base forecasts using the hierarchy's covariance structure.
- Mechanism: Minimizes the trace of the forecast error covariance matrix, hence MinT (Minimum Trace)
- Inputs: Base forecasts at every node plus the historical forecast error covariance matrix
- Key advantage: Outperforms simple top-down or bottom-up by weighting each node's forecast by its reliability
- Variants: WLS (weighted least squares) and OLS (ordinary least squares) reconciliation are special cases
Coherence Constraints
The mathematical requirement that forecasts at different levels of a hierarchy must sum correctly to maintain internal consistency.
- Example: The sum of regional sales forecasts must equal the national forecast; the sum of SKU forecasts within a category must equal the category forecast
- Enforcement: Achieved via a summing matrix that maps bottom-level series to all aggregate series
- Business impact: Incoherent forecasts cause conflicting inventory orders, misaligned financial planning, and eroded trust in the forecasting system
- Formal notation: For a hierarchy with
nbottom-level series andmtotal series, a summing matrixSof sizem × nenforcesy_total = S * y_bottom
Cross-Sectional Aggregation
The structural grouping of time series across non-temporal dimensions such as geography, product taxonomy, or customer segments.
- Common hierarchies: Store → Region → Country; SKU → Subcategory → Category → Division
- Challenge: Each aggregation level has different signal-to-noise characteristics and data sparsity
- Advanced pattern: Cross-sectional hierarchies can be combined with temporal hierarchies (daily → weekly → monthly) to form cross-temporal hierarchies
- Relevance: The choice of aggregation structure directly impacts forecast accuracy and the optimal reconciliation strategy

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us