Causal Discovery in Semi-Stationary Time Series

Shanyun Gao, Raghavendra Addanki, Tong Yu, Ryan A. Rossi, Murat Kocaoglu

Most causal discovery algorithms assume that the underlying "rules" of a system never change. However, real-world data—like weather patterns, transportation systems, or retail trends—is often seasonal or periodic. This paper introduces PCMCI$_{\Omega}$, a non-parametric algorithm designed to identify causal relationships in "semi-stationary" time series where mechanisms cycle through a finite set of states. By correctly identifying the period of these changes, the algorithm can untangle complex, recurring causal structures that baffle standard stationary models.

The Challenge of Non-Stationarity

In causal discovery, the goal is to determine if variable $X$ causes variable $Y$ purely from observational data. A common assumption in this field is stationarity: the underlying causal mechanism (the rule determining $Y$ based on $X$) remains constant over time.

However, the real world is rarely that simple. Consider household electricity consumption: the causal drivers at 2:00 PM (air conditioning, office equipment) differ vastly from those at 2:00 AM (refrigeration, standby power). This is known as non-stationarity. Specifically, many systems are semi-stationary, meaning they cycle through a few different causal regimes periodically (e.g., daily, weekly, or seasonally).

Illustration of a semi-stationary time series with periodic causal mechanisms.

Existing tools usually fail in these environments. They either assume stationarity—and thus get confused by the changing rules—or require strict parametric assumptions, such as assuming every relationship is a simple linear equation. The authors tackle the challenge of finding causal graphs in these periodic systems without forcing the data into a rigid mathematical framework.

Introducing PCMCI$_{\Omega}$

The authors propose PCMCI$_{\Omega}$, an evolution of the well-known PCMCI algorithm. The "$\Omega$" represents the periodicity of the system. The method operates in a few clever stages:

  1. Initial Screening: It uses a standard approach to find a "superset" of potential causal parents for every variable.
  2. Periodicity Estimation: This is the core innovation. The algorithm tests different possible periods ($\omega$). For each guess, it partitions the time series into chunks that should share the same causal mechanism.
  3. Conditional Independence (CI) Testing: Within these partitions, it performs non-parametric CI tests. If the guess for the period is correct, the data in that partition is stationary, and the tests will accurately identify the true causal parents.
  4. The "Turning Point" Rule (Sparsity Principle): The authors discovered that guessing the wrong period mixes different causal mechanisms, making the resulting causal graph look artificially dense (more edges). By looking for the period that yields the most "sparse" (simplest) graph, the algorithm identifies the true underlying periodicity of the system.

Key Results and Insights

The researchers validated their approach using both synthetic and real-world data, including a climate case study of monthly surface pressure and air temperature anomalies in the Pacific and Atlantic oceans.

  • Periodicity Accuracy: In synthetic tests, the algorithm was highly effective at identifying the correct period $\omega$. As shown below, accuracy improves significantly as the total time series length ($T$) increases.
Accuracy of periodicity estimation and runtime across different time series lengths.
  • Superior Precision: Compared to baselines like standard PCMCI, VARLiNGAM, and DYNOTEARS, PCMCI${\Omega}$ demonstrated significantly higher precision. While other models often "over-guessed" causal links (high recall but low precision due to "illusory parents" created by shifting mechanisms), PCMCI${\Omega}$ successfully filtered out false positives.
  • Climate Discovery: In the real-world climate dataset, the algorithm suggested that the causal influence of Atlantic air temperature on the Central Pacific actually disappears every quarter. This points to a seasonal "gating" of causal effects that previous stationary models completely missed.

Limitations and Future Directions

While powerful, PCMCI$_{\Omega}$ has a few limitations:

  • Data Hunger: Because the algorithm partitions the data based on the period, the "effective" sample size for each CI test is much smaller than the total dataset. It requires long time series to be reliable.
  • Strict Periodicity: The model assumes the period is fixed and discoverable. It might struggle with "soft" non-stationarity, where mechanisms change gradually or unpredictably rather than in a clean cycle.
  • Hidden Variables: Like many causal discovery methods, it assumes "causal sufficiency"—meaning there are no unobserved hidden variables confounding the observed ones. Extending the model to handle latent confounders is a critical next step for future research.

Summary updated

BibTeX
@inproceedings{gao2023causal,
  author = {Shanyun Gao and Raghavendra Addanki and Tong Yu and Ryan A. Rossi and Murat Kocaoglu},
  title = {{Causal Discovery in Semi-Stationary Time Series}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=dYeUvLUxBQ},
}
Figure