A Kernel Independence Test for Random Processes

Kacper Chwialkowski, Arthur GrettonICML 2014

Introduction

Standard statistical tests for independence typically assume that data points are independent and identically distributed (i.i.d.). However, in fields like finance, neuroscience, or audio processing, data frequently takes the form of random processes (time series). In these scenarios, an observation at time $t$ is heavily influenced by what happened at $t-1$.

Applying standard i.i.d. tests to time series data introduces a major problem: a high rate of false positives. Standard tests often use a "bootstrap" or permutation method to simulate independence by randomly shuffling the data. While shuffling breaks the connection between two signals, it also destroys the internal "memory" or temporal structure of each signal. Consequently, the test perceives the signals as white noise, leading it to mistakenly claim a significant relationship exists when it doesn't (Type I error).

This paper extends the powerful Hilbert-Schmidt Independence Criterion (HSIC) to time series. The authors propose a novel "Shift HSIC" procedure that remains robust and accurate even when data points are not i.i.d., allowing for the detection of complex, non-linear dependencies without being fooled by internal temporal structures.

Methods: The Shift HSIC

The researchers build upon the Hilbert-Schmidt Independence Criterion (HSIC), which measures the distance between the joint distribution of two variables and the product of their marginals in a Reproducing Kernel Hilbert Space (RKHS). If this distance is zero, the variables are independent.

The core innovations in this paper include:

  1. Asymptotic Analysis: The authors mathematically establish how the HSIC statistic behaves when applied to "mixing" random processes (processes where the influence of the past decays over time).
  2. The Shift HSIC: Instead of randomly permuting the data—which destroys temporal structure—they propose shifting one time series relative to the other by a large enough lag. This preserves the internal dependencies (autocorrelation) of each signal while effectively decoupling them from each other to simulate the null hypothesis of independence.
  3. Non-parametric Flexibility: Unlike classical methods that look for linear correlation, this kernel-based approach can find any type of statistical dependence without assuming a specific functional form.

Key Insights

  • Permutation is the Enemy of Time Series: The standard bootstrap is fundamentally incompatible with time series. Turning a structured signal into white noise via shuffling creates a "null distribution" that is too narrow, leading to an explosion of false positives.
  • Shifting as a Surrogate: Shifting one signal by a random lag is a "structure-preserving" way to test for independence. It keeps the signals' autocorrelation intact while breaking their cross-correlation.
  • Non-linear Detection: Signals can be completely uncorrelated in the linear sense but highly dependent in a statistical sense. The kernel method detects these hidden patterns that standard correlation tests miss.

Experimental Results

The authors evaluated their method using both synthetic autoregressive (AR) processes and real-world Foreign Exchange (Forex) data.

Robustness to False Positives

In experiments with independent AR processes, the standard Bootstrap HSIC saw its false positive rate climb toward 100% as temporal dependence increased. In stark contrast, the Shift HSIC stayed rock-solid at the target 5% significance level.

False positive rates comparing Bootstrap and Shift methods

Superior Power on Non-linear Data

To test detection power, the authors generated AR processes coupled via "Extinct Gaussian" innovations—creating signals that are dependent but have zero linear correlation. The Shift HSIC successfully detected these dependencies, whereas linear covariance tests missed them entirely.

True positive rates showing Shift HSIC outperforming Covariance

Real-world Discovery

When applied to Forex residuals (the parts of the signal linear models couldn't explain) from January 2013, the Shift HSIC discovered significant non-linear dependencies between currency pairs like EUR/RUB and USD/JPY that were invisible to standard covariance-based tests.

Limitations and Future Work

  • Instantaneous Focus: The current test primarily looks for "instantaneous" dependence (whether $X_t$ and $Y_t$ are related). While the authors touch on lagged dependencies, the main theoretical framework is built for the instantaneous case.
  • Mixing Assumptions: The proofs rely on the processes being "mixing" (having a decaying memory). Very "long-memory" processes might still pose a challenge.
  • Future Directions: The authors suggest extending this work to test for independence across all time lags simultaneously, which would involve analyzing the Hilbert-Schmidt norm of cross-spectral density operators.

Summary updated

BibTeX
@inproceedings{chwialkowski2014kernel,
  author = {Kacper Chwialkowski and Arthur Gretton},
  title = {{A Kernel Independence Test for Random Processes}},
  booktitle = {International Conference on Machine Learning},
  year = {2014},
  url = {https://openreview.net/forum?id=XVDvDfFj8d},
}
Figure