Bootstrap aggregation and confidence measures to improve time series causal discovery

Kevin Debeire, Andreas Gerhardus, Jakob Runge, Veronika Eyring

Abstract

Learning causal graphs from multivariate time series is an ubiquitous challenge in all application domains dealing with time-dependent systems, such as in Earth sciences, biology, or engineering, to name a few. Recent developments for this causal discovery learning task have shown considerable skill, notably the specific time-series adaptations of the popular conditional independence-based learning framework. However, uncertainty estimation is challenging for conditional independence-based methods. Here, we introduce a novel bootstrap approach designed for time series causal discovery that preserves the temporal dependencies and lag-structure. It can be combined with a range of time series causal discovery methods and provides a measure of confidence for the links of the time series graphs. Furthermore, next to confidence estimation, an aggregation, also called bagging, of the bootstrapped graphs by majority voting results in bagged causal discovery methods. In this work, we combine this approach with the state-of-the-art conditional-independence-based algorithm PCMCI+. With extensive numerical experiments we empirically demonstrate that, in addition to providing confidence measures for links, Bagged-PCMCI+ improves in precision and recall as compared to its base algorithm PCMCI+, at the cost of higher computational demands. These statistical performance improvements are especially pronounced in the more challenging settings (short time sample size, large number of variables, high autocorrelation). Our bootstrap approach can also be combined with other time series causal discovery algorithms and can be of considerable use in many real-world applications.

Introduction

Causal discovery—the process of identifying "what causes what" from observational data—is essential in fields ranging from climate science to biology. However, when applied to time series, these algorithms often struggle with instability. Small noise fluctuations or limited sample sizes can lead to spurious links or missed connections. Furthermore, most existing tools provide a single point estimate of the causal graph without any measure of confidence or uncertainty.

While bootstrapping is a standard technique for uncertainty estimation in independent data, it cannot be directly applied to time series without destroying the temporal dependencies (e.g., lead-lag relationships) that define the system. This paper introduces Bagged-PCMCI+, a method that adapts bootstrap aggregation (bagging) to the temporal domain to improve both the accuracy and reliability of causal discovery.

The Bagged-PCMCI+ Framework

The proposed approach involves a two-step process designed to respect the "arrow of time" while leveraging the statistical benefits of bagging.

1. Temporal-Dependency Preserving Sampling

Instead of resampling individual time points, which would break the lag structure, the method resamples the indices of the moving windows used by the underlying causal discovery algorithm. This ensures that specific pairings (e.g., $X_{t-k}$ and $Y_t$) remain intact within each bootstrap sample.

2. Bagging and Confidence Estimation

The base algorithm (such as PCMCI+) is executed on $B$ different bootstrap versions of the data. The results are then aggregated:

  • Majority Voting: A link is included in the final "Bagged" graph only if it appears in a majority of the bootstrap runs. This acts as a noise filter, as spurious links tend to be inconsistent across samples.
  • Confidence Scores: The frequency of a link's appearance across samples provides a direct measure of confidence.
Overview of the Bagged-PCMCI+ workflow, illustrating bootstrap sampling, aggregation, and comparison with ground truth and standard PCMCI+

Experimental Evaluation

The researchers evaluated Bagged-PCMCI+ using extensive synthetic datasets featuring linear and nonlinear dependencies, various noise distributions (Gaussian and Weibull), and varying levels of autocorrelation. This allowed for a rigorous comparison against the known "ground truth" causal structures.

Key Insights

  • The "Noise-Canceling" Effect: Bagging effectively filters out false positives. While true causal links are stable across resampled datasets, spurious links are often artifacts of specific noise patterns and do not persist across the bootstrap ensemble.
  • Performance in Challenging Regimes: The improvements in precision and recall were most pronounced in difficult scenarios, such as small sample sizes, high-dimensional networks, or high autocorrelation.
  • Reliable Uncertainty Quantification: The edge frequency (how often a link was detected) served as a robust proxy for the actual probability of the link being correct.

Results and Discussion

Bagged-PCMCI+ consistently outperformed the standard PCMCI+ algorithm in terms of the Area Under the Precision-Recall Curve (PR-AUC). It significantly reduced the False Positive Rate (FPR), often maintaining it below the user-defined significance level ($\alpha$).

The primary trade-off is the increased computational demand, as the algorithm must be run multiple times. However, the process is "embarrassingly parallel," allowing for significant speedups on multi-core systems. Additionally, while majority voting does not strictly guarantee a Directed Acyclic Graph (DAG), the presence of cycles in the aggregated output can serve as a diagnostic tool for researchers, indicating potential violations of causal assumptions.

Conclusion

Bagged-PCMCI+ offers a modular "wrapper" approach that can be applied to various time series causal discovery algorithms. By providing both improved statistical performance and a much-needed measure of confidence, it represents a significant step toward more reliable causal inference in real-world time-dependent applications.

Paper Citation: Debeire, K., Gerhardus, A., Runge, J., & Eyring, V. (2024). Bootstrap aggregation and confidence measures to improve time series causal discovery. Proceedings of Machine Learning Research, vol 236:979–1007.

Summary updated

BibTeX
@inproceedings{debeire2024bootstrap,
  author = {Kevin Debeire and Andreas Gerhardus and Jakob Runge and Veronika Eyring},
  title = {{Bootstrap aggregation and confidence measures to improve time series causal discovery}},
  booktitle = {CLeaR},
  year = {2024},
  url = {https://openreview.net/forum?id=V6bmnIO8o9},
}
Figure