                                 Relational Conformal Prediction for Correlated Time Series



Appendix

A. Proof of Prop. 3.1

                             c

As stated in Prop. 3.1, let Pt+H and Pψc indicate the probability distributions associated with the true data distribution at

t + H and with the learned quantile function Qψ , respectively. It follows from the definition of total variation distance

T V (P, Q) := supB |P (B) − Q(B)|, that for any event B

                                        c

                                      |Pt+H                              c

                                            (B) − Pψc (B)| ≤ T V (Pψc , Pt+H )     =⇒                                   (20)

                                       c

                                      Pt+H                             c

                                           (B) ≥ Pψc (B) − T V (Pψc , Pt+H ).                                           (21)

      α

For Ĉi,t in both Eq. 14 and Eq. 16 we have by construction that

                                                                 

                                              Pψc xit+H ∈ C   α

                                                             bi,t   = 1 − α.                                            (22)



Then, putting together Eq. 21 and Eq. 22 we obtain

                                                          

                                c

                                      xit+H ∈ C  α c                             c

                                                    (Xt+h ) ≥ 1 − α − T V Pψc , Pt+H

                                                                                     

                               Pt+H            bi,t                                    .



Hence, the proof is complete.



B. Hardware and software platforms

Benchmarks have been developed with Python (Van Rossum and Drake, 2009) and the following open-source libraries:



   • Numpy (Harris et al., 2020);

   • PyTorch (Paszke et al., 2019);

   • PyTorch Lightning (Falcon and The PyTorch Lightning team, 2019);

   • PyTorch Geometric (Fey and Lenssen, 2019);

   • Torch Spatiotemporal (Cini and Marisca, 2022).



Experiments were conducted on a server equipped with AMD EPYC 7513 CPUs and NVIDIA RTX A5000 GPUs. The code

for reproducing the computational experiments is available at https://github.com/andreacini/corel. For the

HopCPT, SPCI, NexCP, and SeqCP baselines we use the open-source implementation made available by Auer et al. (2023)1 .

In our setup for the experiment in Sec. 5.1, considering the METR-LA dataset and the baselines that require fitting a model,

training and testing require ≈ 3 days for SPCI, ≈ 11 hours for HopCPT, and ≈ 5 minutes for C O R EL.



C. Datasets

We considered several datasets from different application domains, real-world scenarios and a simulated controlled

environment. For the real world datasets we followed the pre-processing steps adopted by Cini et al. (2023b).



Air Quality Monitoring The AQI (Zheng et al., 2015) dataset consists of 8,760 hourly measurements of pollutant

PM2.5 from 437 monitoring stations in China. We use a window of W = 24 time steps and predict the 3-time-step-ahead

observations. For the STGNN base model, we build an adjacency matrix using a thresholded Gaussian kernel computed

from pairwise geographic distances (Shuman et al., 2013).



Traffic Forecasting We considered the METR-LA (Li et al., 2018) traffic forecasting dataset, consisting of 34,272

timesteps of measurements from 207 loop detectors sampled at 5-minute intervals in the Los Angeles County Highways. We

use a window of 12 time steps and predict the 12-time-step-ahead observations. For the STGNN base model, we followed

previous works (Wu et al., 2019) and built an adjacency matrix using a thresholded Gaussian kernel applied to geographic

distances.

   1

       https://github.com/ml-jku/HopCPT



                                                             14

