Reconciliation algorithms [Hyndman et al., 2011, Wickramasuriya et al.,
2019] adjust the incoherent base forecasts, making them coherent. Rec-
onciled forecasts are generally more accurate than base forecasts: indeed,
forecast reconciliation is a special case of forecast combination [Hollyman
et al., 2021]. An important application of reconciliation algorithms is con-
stituted by temporal hierarchies [Athanasopoulos et al., 2017, Kourentzes
and Athanasopoulos, 2021], which make coherent the forecasts produced
for the same time series at different temporal scales.
Most reconciliation algorithms [Hyndman et al., 2011, Wickramasuriya
et al., 2019, 2020, Di Fonzo and Girolimetto, 2021, 2022] provide only rec-
onciled point forecasts. It is however clear [Kolassa, 2023] that reconciled
predictive distributions are needed for decision making.
Probabilistic reconciliation has been addressed only recently; earlier
attempts [Jeon et al., 2019, Taieb et al., 2021], though experimentally ef-
fective, lacked a strong formal justification. For the case of Gaussian base
forecasts, Corani et al. [2020] obtains the reconciled distribution in ana-
lytical form introducing the approach of reconciliation via conditioning.
Panagiotelis et al. [2023] provides a framework for probabilistic reconcil-
iation via projection. However this approach cannot reconcile discrete
distributions. Corani et al. [2023] performs probabilistic reconciliation
via conditioning of count time series by adopting the concept of virtual
evidence [Pearl, 1988]. However its implementation in probabilistic pro-
gramming, based on Markov Chain Monte Carlo (MCMC), is too slow on
large hierarchies; moreover it requires the base forecast distribution to be
in parametric form.
The main contribution of this paper is the Bottom-Up Importance
Sampling (BUIS) algorithm, which samples from the reconciled distribu-
tion obtained via conditioning with a substantial speedup with respect to
Corani et al. [2023]. BUIS can be used even when the base forecast dis-
tribution is only available through samples. This is the case of forecasts
returned by models for time series of counts [Liboschik et al., 2017] or
based on deep learning [Salinas et al., 2020]. We prove the convergence
of BUIS to the actual reconciled distribution. An implementation of the
algorithm in the Rlanguage is available in the Rpackage bayesRecon
[Azzimonti et al., 2023].
We provide two further formal contributions. The first is a definition
of coherence for probabilistic forecasts that applies to both discrete and
continuous distributions. The second is a novel interpretation of the rec-
onciliation via conditioning, in which the base forecast distribution is con-
ditioned on the hierarchy constraints. This allows for a unified treatment
of the reconciliation of discrete and continuous forecast distributions. We
test our method exhaustively on temporal hierarchies reporting positive
results both for the accuracy and the efficiency of our method.
The paper is organized as follows. In Sec. 2, we introduce the notation
and the reconciliation of point forecasts. In Sec. 3, we introduce our ap-
proach to reconciliation via conditioning and we compare it to the existing
literature. In Sec. 4, we introduce the Bottom-Up Importance Sampling
algorithm. We empirically verify its correctness in Sec. 5, while in Sec. 6
we test it on different data sets. We present the conclusions in Sec. 7.
2