Abstract
Identifying relationships among stochastic processes is a core objective in many fields, such as economics. While the standard toolkit for multivariate time series analysis has many advantages, it can be difficult to capture nonlinear dynamics using linear vector autoregressive models. This difficulty has motivated the development of methods for causal discovery and variable selection for nonlinear time series, which routinely employ tests for conditional independence. In this paper, we introduce the first framework for conditional independence testing that works with a single realization of a nonstationary nonlinear process. We also show how our framework can be used to test for independence. The key technical ingredients of our framework are time-varying nonlinear regression, estimation of local long-run covariance matrices of products of error processes, and a distribution-uniform strong Gaussian approximation.
Introduction: The Challenge of Nonstationarity
At the heart of causal discovery and variable selection is conditional independence (CI) testing—determining if a variable $X$ is independent of $Y$, given a set of conditioning variables $Z$. In many real-world applications, such as macroeconomics, climate science, or finance, data is inherently nonstationary (its statistical properties change over time) and nonlinear.
Most existing CI tests assume that data points are independent and identically distributed (i.i.d.) or, at minimum, stationary. When applied to a single realization of a nonstationary process, these standard tests often fail catastrophically, exhibiting high Type I error rates—essentially "hallucinating" causal links where none exist. This paper addresses this gap by introducing a framework capable of handling nonstationary, nonlinear dynamics from a single timeline.
Methodology: The dynamic Generalized Covariance Measure (dGCM)
The proposed dynamic Generalized Covariance Measure (dGCM) test determines conditional independence by analyzing the residuals of time-varying predictions. The core intuition is that if $X \perp Y \mid Z$, then the residuals from predicting $X$ from $Z$ and $Y$ from $Z$ should be uncorrelated.
The framework follows a four-step process:
- Time-Varying Nonlinear Regression: The system employs black-box models to predict $X$ and $Y$ based on $Z$. The specific implementation, Sieve-dGCM, uses a sieve estimator with Legendre polynomials to capture relationships that evolve smoothly over time.
- Residual Analysis: Residuals (prediction errors) are calculated for both models.
- Test Statistic Construction: The test statistic is derived from the maximum partial sum of the products of these residuals over the observed time horizon.
- Significance via Gaussian Approximation: To calculate p-values, the framework uses a bootstrap procedure justified by a "distribution-uniform strong Gaussian approximation." This step accounts for the high-dimensional, nonstationary nature of the time series by estimating local long-run covariance matrices.
Key Insights
Rate Double Robustness
A significant theoretical advantage of dGCM is its "rate double robustness." The test remains valid as long as the product of the convergence rates of the two regression models is sufficiently fast. This means that even if one regression model is imperfect, a highly accurate second model can compensate, maintaining the integrity of the CI test.
Avoiding Differencing
Traditional time series analysis often relies on differencing data to achieve stationarity. However, differencing can destroy underlying causal signals or induce spurious correlations. By explicitly modeling time-varying relationships, dGCM avoids these pitfalls, preserving the original structure of the data.
Empirical Results
Synthetic Benchmarks
In controlled simulations involving nonstationary, nonlinear time-varying autoregressive processes, standard CI tests (such as the original GCM or Residual Prediction Tests) exhibited near 100% false positive rates. In contrast, Sieve-dGCM successfully controlled the Type I error at the target 5% level while maintaining significant power to detect actual dependencies.
Real-World Application: Global Stock Markets
The authors applied dGCM to daily log returns of four major stock indices: the S&P 500, FTSE 100, Hang Seng, and Nikkei 225. The test successfully identified known market dependencies related to trading hours. For instance, it correctly identified that the FTSE (UK) incorporates information from the earlier-closing Hang Seng (Hong Kong), but the reverse is not true, matching the sequential nature of global market operations.
Conclusion and Future Work
The dGCM framework provides a robust solution for conditional independence testing in complex, nonstationary environments. While it requires a sufficient sample size to model evolving relationships and assumes a degree of "smoothness" in nonstationarity, it represents a major step forward for causal discovery. Future research will focus on extending the framework to handle abrupt structural breaks and integrating it into automated causal discovery pipelines.
Summary updated