Hierarchical Forecast Reconciliation (MinT)

Summary

Collections of time series with aggregation constraints (product or geographic hierarchies, or crossed “grouped” structures) need coherent forecasts: aggregates must equal the sum of their components. Reconciliation forecasts every series at every level independently (the base forecasts ), then linearly projects them onto the coherent subspace, . Wickramasuriya, Athanasopoulos & Hyndman show (i) the covariance needed by the earlier GLS approach of Hyndman et al. (2011) is not identifiable; (ii) the reconciled error covariance is where is the covariance of base forecast errors (Lemma 1); (iii) minimising its trace subject to unbiasedness gives the closed form (Theorem 1), with a cheaper equivalent form; and (iv) the result is never worse than the base forecasts in -weighted loss. With a shrinkage estimate of — MinT(Shrink) — it dominates bottom-up, OLS and WLS in simulations and on 555 Australian tourism series.

Overview

A retailer forecasts total sales, sales by country, region, store, and also by product group; “the cross-product of these two hierarchies often results in a very large collection, comprising millions of individual time series” (Sec. 1). Three traditional strategies exist:

  • Bottom-up: forecast only the most disaggregated series and add up. It “ignores relationships between series, and performs particularly poorly on highly disaggregated data which tend to have a low signal-to-noise ratio.”
  • Top-down: forecast the total and split by proportions. Hyndman et al. (2011) showed any top-down method is biased even when base forecasts are unbiased.
  • Independent forecasts at all levels: uses the best model per level, but the results do not add up.

Reconciliation keeps the third strategy and repairs its incoherence — and, because each level sees a different signal-to-noise trade-off, the repair is also a forecast combination that improves accuracy at all levels.

Main Content

Summing matrix, base and reconciled forecasts (Sec. 2.1) ^def-summing-matrix

Let stack all series and the bottom-level series. Then

with the summing matrix, one row per series. For a two-level tree (Total → A, B; A → AA, AB, AC; B → BA, BB), , and

Let be -step base forecasts from any method. Every linear reconciliation method has the form

maps base forecasts to bottom-level forecasts, and sums them up. Bottom-up is ; top-down is for proportions .

Unbiasedness condition ^thm-unbiased

If the base forecasts are unbiased, , the reconciled forecasts are unbiased iff , equivalently (Sec. 2.1). Top-down violates this.

Why the 2011 GLS approach fails (Sec. 2.2). Hyndman et al. modelled with coherency-error covariance , giving . But the residuals are , and is idempotent with rank , so cannot be identified. They fell back to OLS, .

Lemma 1 — covariance of reconciled forecast errors ^thm-mint-lemma1

For any with ,

where are the base forecast errors. Proof sketch (App. A.1): and . Under Gaussian errors this yields prediction intervals for any unbiased reconciliation method.

Theorem 1 — MinT reconciliation ^thm-mint

Let be positive definite. The that minimises subject to is

or equivalently

where , , and is the number of aggregate series. The second form inverts a single matrix rather than an and an one, which is what makes MinT scale.

The reconciled forecasts are therefore the GLS projection of onto the coherent subspace in the metric :

Reconciliation never hurts (Sec. 2.3) ^thm-mint-pythagoras

By the generalised Pythagorean inequality for this projection, for every coherent realisation ,

MinT forecasts are “at least as good as the incoherent base forecasts.” The authors conclude that “applying forecast reconciliation should always be preferred, and approaches that use limited information such as bottom-up or top-down should be avoided” (Sec. 5).

Under the “error-additivity” assumption (so is singular), every unbiased attains the same variance; the Moore–Penrose inverse in the first form gives OLS and in the second gives bottom-up — explaining why both earlier methods appeared “optimal.”

Estimating (Sec. 2.4)

LabelAssumption / use
OLSUncorrelated, equal-variance errors at all levels — impossible in a hierarchy
WLSVariance scaling by in-sample one-step residual variances
WLSStructural scaling: variance ∝ number of bottom series aggregated; needs no residuals (e.g. judgmental forecasts)
MinT(Sample)Full sample covariance; poor or singular when
MinT(Shrink)Schäfer–Strimmer shrinkage of off-diagonals toward zero,

All use one-step in-sample residuals and assume ; the constant cancels in point forecasts but matters for intervals (left to later work).

Evidence

  • Simulations (Sec. 3). With two bottom series and error correlation , MinT(Shrink) cuts top-level one-step RMSE by ≈30% versus base. Across designs (correlated ARIMA hierarchies forecast with deliberately misspecified ETS; seasonal series; a 2,047-series five-level hierarchy) “MinT(Shrink) consistently shows the largest improvements”; gains are largest under model misspecification, and bottom-up often fails to improve on base forecasts.
  • Australian domestic tourism (Sec. 4, Table 8). 555 monthly series (a geographic hierarchy of 7 states → 27 zones → 76 regions, crossed with 4 purposes of travel), 1998-2016. Rolling-window evaluation: 96-month training window, 1-12-step forecasts, rolled forward one month at a time (132 one-step … 121 twelve-step forecasts per series). With ARIMA base forecasts, average RMSE over - changes relative to base by:
LevelBUOLSWLSMinT(Shrink)
Australia (total)+22.2%−1.3%+3.1%+0.5%
States+7.0%−4.1%−4.6%−6.4%
Zones+1.8%−3.5%−5.6%−7.0%
Regions+0.5%−2.1%−4.7%−5.6%
Australia by purpose+7.2%−4.2%−8.0%−12.4%

Bottom-up is worst because fewer than 50% of bottom-level models even detect seasonality; reconciliation “bring[s] informative signals from the higher levels of aggregation to the lower levels and vice versa.” It also “implicitly models spatial autocorrelations.”

Examples

Three-series hierarchy, by hand. Total , so , . Base forecasts are incoherent: .

  • OLS (): — the discrepancy is split equally.
  • WLS with : , , so — the noisiest forecast () absorbs most of the adjustment, the most precise () barely moves. By Lemma 1 the total error variance falls from to .
  • Full MinT with positive covariance between Total and errors, : ; trace vs .
import numpy as np
def mint(S, yhat, W):
    Wi = np.linalg.inv(W)
    P = np.linalg.solve(S.T @ Wi @ S, S.T @ Wi)   # (S'W^-1 S)^-1 S'W^-1
    return S @ P @ yhat, S @ P @ W @ P.T @ S.T     # reconciled mean, error covariance
def shrink_cov(E):                                 # E: (T, m) one-step residuals
    W = E.T @ E / len(E); D = np.diag(np.diag(W))
    Z = E / E.std(0); R = Z.T @ Z / len(E)
    varR = ((Z[:, :, None] * Z[:, None, :] - R) ** 2).sum(0) / (len(E) * (len(E) - 1))
    off = ~np.eye(len(W), dtype=bool)
    lam = np.clip(varR[off].sum() / (R[off] ** 2).sum(), 0, 1)
    return lam * D + (1 - lam) * W

Marketing use. Geo-level sales forecasts (DMA → region → national) used for budgeting or as counterfactual baselines should agree with the national forecast finance already uses; MinT delivers that agreement while improving the noisy geo-level forecasts with national-level trend and seasonal signal.

Connections

See Also