Causal Inference on Time Series using Structural Equation Models

Jonas Peters, Dominik Janzing, Bernhard SchölkopfarXiv 2012

Introduction: The Challenge of Time Series Causality

Inferring cause-and-effect relationships from observational time series data is a fundamental challenge in science. While traditional methods like Granger causality are widely used, they suffer from significant limitations: they struggle with instantaneous effects (where $X_t$ causes $Y_t$ within the same time step), hidden confounders, and nonlinear relationships. Most critically, when their underlying assumptions are violated, these methods often fail "loudly" by outputting confident but incorrect causal claims.

This paper introduces TiMINo (Time Series Models with Independent Noise), a framework designed to handle nonlinear and instantaneous effects while providing a built-in "sanity check" to avoid false conclusions.

The TiMINo Framework: Structural Equations and Independent Noise

TiMINo extends Functional Causal Models (also known as Structural Equation Models) to the time series domain. The core assumption is that a variable $X_t$ can be modeled as a function of its direct causes (past and instantaneous) plus an independent noise term.

The Algorithm

  1. Fitting: The algorithm iterates through variables, fitting regression models (e.g., linear AR, GAMs, or Gaussian Processes) to predict each variable from the others.
  2. Independence Testing: After fitting, it tests whether the residuals are statistically independent of the past and of each other using criteria like the Hilbert-Schmidt Independence Criterion (HSIC).
  3. Causal Discovery: If a variable's residuals are independent, it is identified as a "sink" (an effect). The algorithm works backward to construct a Directed Acyclic Graph (DAG). If no such independence is found, the algorithm outputs "I do not know" rather than guessing.

Experimental Evaluation: Accuracy and Scalability

TiMINo was evaluated against synthetic and real-world datasets, including the Gas Furnace and Old Faithful datasets. In linear Gaussian scenarios with instantaneous effects, TiMINo (linear) achieved 83% accuracy, significantly outperforming Granger causality (13%) and TS-LiNGAM (19%). When equipped with nonlinear models like GAMs or GPs, it maintained high accuracy (94-95%) on complex data where traditional linear methods failed completely.

The proportion of correct (blue) and incorrect (black) answers as a function of time series length. TiMINo's accuracy improves significantly with more data, reaching high reliability for sufficiently long series.

As shown in the figure above, the reliability of the model is tied to the length of the time series. While performance is high for larger samples, the method remains conservative with smaller datasets to avoid false positives.

Robustness to Hidden Confounders

A key strength of TiMINo is its handling of hidden common causes. In scenarios where a hidden variable $Z$ influences both $X$ and $Y$, traditional methods often infer a direct causal link between $X$ and $Y$ that does not exist.

Comparison of causal discovery methods under hidden confounding. The top-left DAG illustrates a system with a hidden variable $Z$. The bar charts show that as the confounder parameter $a$ increases, TiMINo (top-right) correctly opts for 'no decision' while TS-LiNGAM (bottom-left) and Granger causality (bottom-right) produce false positives.

By requiring residual independence, TiMINo identifies that the model class is insufficient to explain the data when a confounder is present. As illustrated in the comparison above, TiMINo correctly remains undecided ("no decision") as the confounder strength increases, whereas Granger causality and TS-LiNGAM increasingly output incorrect causal directions.

Limitations and Future Directions

While robust, TiMINo's reliance on independence tests means it can be conservative. Small sample sizes may lack the statistical power to reject dependence, leading to an "I do not know" output. Conversely, extremely large samples might detect trivial deviations from the model, also resulting in an undecided state. Future work involves extending the framework to heteroscedastic models, improving preprocessing for trends and periodicities, and developing faster search methods for systems with non-instantaneous feedback loops.

Summary updated

BibTeX
@misc{peters2012causal,
  author = {Jonas Peters and Dominik Janzing and Bernhard Schölkopf},
  title = {{Causal Inference on Time Series using Structural Equation Models}},
  year = {2012},
  eprint = {1207.5136},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1207.5136},
}
Figure