Abstract: Learning causal graphs from multivariate time series is a 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 inferring cause-and-effect relationships from observational data—is a cornerstone of fields like climate science, neuroscience, and economics. While algorithms like PCMCI+ have become adept at identifying these relationships in multivariate time series, they suffer from a major practical limitation: they typically output a single "best guess" graph without a measure of uncertainty.
In real-world applications, data is often noisy and finite. Researchers need to know if a discovered link represents a robust physical relationship or a statistical fluke. Standard uncertainty estimation techniques, like the classic bootstrap, fail for time series because they assume data points are independent and identically distributed (i.i.d.). Randomly resampling individual time points destroys the temporal order and lag structures (e.g., $X$ at time $t-1$ causes $Y$ at time $t$) that causal discovery algorithms aim to identify.
Methodology: Temporal-Dependency Preserving Bootstrap
To address these challenges, we introduce a specialized bootstrap aggregation ("bagging") framework designed for time series. The core innovation is a temporal-dependency preserving bootstrap. Instead of resampling raw data points, the method resamples the indices of the moving windows that the causal discovery algorithm uses internally. This ensures that the relationship between a variable and its lagged parents remains intact within each bootstrap sample.
The framework consists of three main steps:
- Bootstrapping: Generate $B$ (e.g., 100 or 200) different versions of the dataset using the preserving sampling approach.
- Ensemble Learning: Run a base causal discovery algorithm (primarily PCMCI+, but also PC and LPCMCI) on each version to produce an ensemble of $B$ causal graphs.
- Aggregation & Confidence:
- Bagging: Use majority voting at the edge level to create a single final graph. If a link appears in the majority of the bootstrap runs, it is included in the final output.
- Confidence Scoring: The frequency of a link’s appearance across the ensemble serves as a "confidence measure." For instance, a link appearing in 90% of runs is significantly more reliable than one appearing in only 51%.
Experimental Setup and Datasets
The study evaluates the framework using extensive synthetic datasets generated via structural causal processes, allowing for direct comparison against a known "ground truth." The experiments covered:
- Model Types: Linear models with Gaussian and mixed noise (Gaussian and Weibull), as well as nonlinear models.
- Complexity: Variations in the number of variables ($N$), time series length ($T$), autocorrelation strength ($a$), and maximum time lags ($\tau_{max}$) to simulate challenging real-world regimes.
- Benchmarks: Bagged-PCMCI+ was benchmarked against the standard, non-bootstrapped PCMCI+ algorithm.
Key Results and Insights
The experiments yielded several critical insights into the benefits of bagging for causal discovery:
Bagging as a Regularizer: Bagging does more than just measure uncertainty; it actively improves the discovery process. Random finite-sample errors (false positives) tend to be inconsistent across bootstrap samples and are effectively filtered out during the majority voting process.
Performance in Challenging Regimes: Statistical gains are most pronounced in difficult settings characterized by small sample sizes, many variables, and high autocorrelation. In these scenarios, base algorithms are prone to "overfitting" noise; bagging provides the necessary stability to maintain high precision and recall.
Reliable Confidence Measures: The bootstrap frequency of a link proved to be a reliable proxy for the "true" probability of detection. Mean absolute errors for these confidence measures often fell between 1% and 4% for lagged links.
Robustness to Parameterization: The method is robust to "over-parameterization" of the maximum time lag ($\tau_{max}$), meaning the algorithm remains stable even if the user specifies a lag limit higher than the true underlying process.
Limitations and Future Directions
While effective, the approach has some trade-offs:
- Computational Cost: Running the base algorithm 100 times is significantly slower. However, the process is "embarrassingly parallel" and can be easily distributed across multiple CPU cores.
- Acyclicity: Because majority voting is performed edge-by-edge, the final aggregated graph might contain cycles, even if the underlying system is acyclic.
- Confidence Bias: There is a slight positive bias in confidence estimates for links with true detection frequencies in the 40-60% range.
Future work may explore more sophisticated aggregation methods, such as those that minimize Structural Hamming Distance while enforcing acyclicity constraints.
Summary updated