                                  Relational Conformal Prediction for Correlated Time Series



multivariate) time series independently and cannot account            observations up to time step t (excluded). Time series are

for dependencies among correlated time series.                        assumed to be homogenous, i.e., all the variables (observ-

                                                                      ables) describe the same physical quantity (e.g., temperature

In this paper, we propose Conformal Relational Predic-

                                                                      or energy consumption). Analogously, Ut ∈ RN ×du indi-

tion (C O R EL), a novel CP approach leveraging graph

                                                                      cates the du -dimensional exogenous covariates associated

representations and graph deep learning (GDL) for quan-

                                                                      with each time series. We assume that the i-th time series is

tifying uncertainty in correlated time series forecasting.

                                                                      generated by a stochastic time-invariant process such as

In our framework, a spatiotemporal graph neural net-

                                                                                        xit ∼ p xit |X<t , U<t .

                                                                                                              

work (STGNN) (Jin et al., 2023; Cini et al., 2023a) is trained                                                                  (1)

on a calibration set to approximate the quantile function of

the distribution of prediction residuals. Relationships among         Let us hypothesize the existence of a sparse predictive

time series, assumed to be sparse, are learned end-to-end             causality à la Granger (Granger, 1969), i.e., we assume

from the observed residuals owing to a graph structure learn-         that the values of a single time series are related to the val-

ing module integrated into the processing. Our approach               ues of a (small) subset of other time series in the collection.

estimates the error quantile function for each time series            The extension of the framework to collections of multivari-

at each time step, by conditioning the shared uncertainty             ate time series is orthogonal to the proposed approach (e.g.,

quantification model on past observations at neighboring              see Feldman et al. 2023); we focus on the univariate case to

nodes (as defined by the learned graph structure). Finally,           maintain a contained scope. The problem of dealing with

an adaptive component is added to handle potential non-               non-stationary processes will be discussed in Sec. 3.4.

stationarities by relying on a small set of parameters specific

to each time series. Our approach can be applied to the resid-        Forecasting We are interested in a model that pro-

uals generated by any point forecasting model, even those             duces point forecasts by predicting the unknown H-steps-

that completely disregard potential relationships among the           ahead (H ≥ 0) observation Xt+H given a window W ≥ 1

input time series.                                                    of past observations Xt−W :t and the associated exogenous

                                                                      variables Ut−W :t as

Our main novel contributions can be summarized as follows.

                                                                                   ct+H = Fθ (Xt−W :t , Ut−W :t ).

                                                                                   X                                             (2)

   • The first application of GDL to CP for time series;

                                                                      Fθ denotes a generic parametric model family, i.e., a simple

   • A novel, sound, and effective CP method able to quan-            recurrent neural network (RNN) for univariate time series.

     tify uncertainty from observations across a collection           Given a trained model, our objective is to build a confidence

     of correlated time series;                                       interval around predictions X

                                                                                                  ct+H . Note that the following

                                                                      easily extends to multi-step predictions X  ct:t+H , but we

   • A family of graph-based architectures to estimate un-            focus on forecasting the single time step H to simplify the

     certainty that shares most of the learnable parameters           presentation and discussion.

     among the processed time series, while including node-

     level parameters that dynamically adapt to changes in            Uncertainty quantification Our objective is to estimate

     each target sequence.                                                  α c

                                                                      PIs, Ci,t (Xt+H ), such that

                                                                                                        

Empirical results show that C O R EL achieves state-of-the-art                   P xit+H ∈ Ci,t α

                                                                                                    Xct+H    ≥ 1 − α,     (3)

performance compared to existing CP approaches for time

series in several datasets and under different scenarios.             where α is the desired confidence level. If the interval

                                                                      satisfies Eq. 3, we say that the PI achieves marginal coverage

2. Preliminaries                                                      1 − α. Similarly, we say that the PI provides conditional

                                                                      coverage 1 − α if

This section introduces the problem settings and the prelim-                                                    

inary concepts that serve as foundations for our approach.                P xit+H ∈ Ci,t  α

                                                                                              Xct+H X<t , U<t ≥ 1 − α. (4)



                                                                      Conditional coverage provides stronger guarantees and it is

2.1. Problem Formulation

                                                                      often harder to achieve (Angelopoulos et al., 2024). In the

Consider a collection of N correlated time series. Denote             following, we will omit the dependence of the interval on the

by xit ∈ R the scalar target variable associated with the             forecasts and simply write Ci,tα

                                                                                                       . Among uncertainty quan-

i-th time series at time step t; Xt ∈ RN ×1 indicates the             tification methods, we are interested in post-hoc approaches

N stacked target variables w.r.t. the entire time series col-         that can build confidence intervals for any given pre-trained

lection. Xt:t+T indicates the sequence within time interval           point predictor Fθ without requiring any modification of the

[t, t + T ); conversely, with the shorthand X<t refers to             base forecasting architecture.



                                                                  2

