Necessary and sufficient conditions for causal feature selection in time series with latent common causes

Atalanti-Anastasia Mastakouri, Bernhard Schölkopf, Dominik JanzingICML 2021

Identifying "what causes what" in time series data is a cornerstone of scientific inquiry, essential for everything from predicting climate shifts to understanding economic cycles. For decades, Granger causality has been the standard tool for this task. However, it suffers from a critical flaw: it assumes "causal sufficiency"—the premise that every relevant variable has been observed. In reality, hidden factors (latent common causes) frequently influence both the candidate cause and the effect, leading to false positive discoveries.

While alternative methods exist, they often come with significant drawbacks. Algorithms like FCI require an exhaustive, computationally heavy search over all possible time lags and variable combinations. Others, like seqICP, require experimental interventions that are often impossible to perform on historical observational data.

To address this, researchers have introduced SyPI (Systematic Path Isolation), a novel algorithm designed to identify causes in time series data even in the presence of latent confounders.

The SyPI Methodology: Systematic Path Isolation

Instead of attempting full causal graph discovery, SyPI focuses strictly on feature selection—isolating the specific path between a candidate cause ($X^i$) and a target variable ($Y$). This targeted approach reduces the computational complexity to $O(n)$, where $n$ is the number of candidate causes, offering a massive speedup over traditional combinatorial searches.

SyPI relies on a few key technical innovations:

  • The Two-Test Approach: SyPI determines causality using just two conditional independence (CI) tests per candidate. First, it checks if the candidate and target are dependent given a specific conditioning set. Second, it verifies if the past of the candidate becomes independent of the target once the candidate's current value and the conditioning set are known. Proving that these two tests are both necessary and sufficient is a major theoretical contribution that minimizes the risk of multiple-testing errors.
  • Smart Conditioning Sets: Rather than searching blindly, SyPI directly constructs a "separating set" ($S^i$) designed to block interfering paths from other observed variables, effectively boosting the signal-to-noise ratio.
  • Graphical Constraints: The framework relies on specific assumptions, including stationarity and treating the target as a "sink node," to make the isolation mathematically tractable.

Empirical Validation and Key Results

The research team evaluated SyPI using both simulated environments and real-world economic data.

In simulations involving up to 30 time series and varying numbers of hidden variables, SyPI demonstrated remarkable robustness. It maintained a False Positive Rate (FPR) below 1.5%, significantly outperforming baseline methods like Lasso-Granger (which reached up to 16% FPR) and PCMCI (up to 25% FPR).

The real-world evaluation utilized official EU records of dairy product prices (e.g., Raw Milk, Butter, Whey Powder) from Germany, Ireland, and the UK. Because the production pipeline (Raw Milk $\rightarrow$ Butter) is a known ground truth, it served as an ideal testbed:

  • High Precision: SyPI correctly identified 'Raw Milk' as the direct cause of 'Butter' prices in both the German and Irish datasets.
  • The "UK Test": To test robustness against hidden confounders, the researchers intentionally hid the 'Raw Milk' data in the UK dataset. Impressively, SyPI correctly identified no causes, successfully avoiding the trap of flagging correlated but non-causal dairy products—a common failure point for other algorithms.

Limitations and Future Directions

While SyPI marks a significant step forward for observational causal discovery, the authors note a few limitations that pave the way for future research:

  1. Single-Lag Assumption: The theoretical proof for "completeness" (finding all direct causes) currently assumes single-lag dependencies, where a cause affects a target at one specific time delay. While the method remains "sound" (avoids false positives) with multiple lags, it may miss certain complex causal relationships.
  2. Target as a Sink: The current mathematical guarantees assume the target variable does not cause any of the candidate variables. Future iterations could relax this by testing causal directions bidirectionally.
  3. Linearity: The primary experiments were conducted on linear systems. Although the SyPI framework theoretically supports non-linear CI tests (such as Kernel CI), evaluating the computational and performance impacts of non-linear testing remains a logical next step.

By isolating causal paths and efficiently handling hidden variables, SyPI offers a highly scalable, robust tool for researchers looking to extract genuine causal signals from noisy, real-world time series data.

Summary updated

BibTeX
@inproceedings{mastakouri2021necessary,
  author = {Atalanti-Anastasia Mastakouri and Bernhard Schölkopf and Dominik Janzing},
  title = {{Necessary and sufficient conditions for causal feature selection in time series with latent common causes}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=Fp2_jrBjZFg},
}
Figure