Testing Conditional Independence on Discrete Data using Stochastic Complexity

Alexander Marx, Jilles Vreeken

Alexander Marx and Jilles Vreeken
Presented at AISTATS 2019

Abstract

Conditional Independence (CI) testing is a cornerstone of causal discovery, yet traditional statistical tests often struggle with discrete data when samples are scarce or the conditioning set is large. We present SCI (Stochastic complexity based Conditional Independence), a robust method grounded in the Minimum Description Length (MDL) principle. By leveraging Stochastic Complexity, SCI provides a data-dependent threshold for independence that naturally mitigates the curse of dimensionality and significantly reduces Type II errors in causal network discovery.

Introduction

In the field of causal discovery, determining whether two variables $X$ and $Y$ are independent given a third set $Z$ is essential for identifying direct causal links. However, standard tools like the $G^2$ test or Conditional Mutual Information (CMI) estimators face significant hurdles in practical applications. Specifically, when data is limited, these tests tend to over-identify dependencies. Furthermore, as the size of the conditioning set $Z$ increases, the number of possible states grows exponentially—a phenomenon known as the "curse of dimensionality"—leading to unreliable asymptotic assumptions and arbitrary p-value thresholds.

Methodology: Algorithmic Independence and SCI

To overcome the limitations of traditional statistics, the authors pivot to the concept of algorithmic independence. Under this framework, two variables are considered independent if the shortest program required to describe them jointly is equal to the sum of the programs required to describe them individually.

Since Kolmogorov complexity is uncomputable, SCI approximates this using Stochastic Complexity via Normalized Maximum Likelihood (NML). The complexity of a variable $X$ is defined as:

$$S(X) = n\hat{H}(X) + \log C_k^n$$

Where:

  • $n\hat{H}(X)$: Represents the Shannon entropy, capturing the information content of the data.
  • $\log C_k^n$: Represents the "regret" term, which accounts for the inherent complexity of the model class given $n$ samples and $k$ states.

The Natural Threshold

The innovation of SCI lies in its decision criterion: $SCI = S(X|Z) - S(X|Z, Y)$. The regret terms act as an automatic, data-dependent threshold. If the addition of $Y$ does not improve the description of $X$ by more than the "cost" of increasing the model's complexity, the variables are declared independent.

Figure 2: Scaling of the independence threshold $t$ as the size of the conditioning set $|\mathcal{Z}|$ increases.

As shown in Figure 2, the threshold $t$ adapts dynamically to the size of the conditioning set. This allows SCI to remain sensitive to true dependencies while avoiding the false positives that plague traditional tests in high-dimensional spaces.

Empirical Evaluation and Results

The authors evaluated SCI using both synthetic d-separation sets and the "Alarm" network, a standard Bayesian benchmark for medical diagnostics.

Sample Efficiency and Error Reduction

A critical advantage of SCI is its performance in data-scarce environments. Traditional estimators often require a massive number of samples to converge to a correct independence decision. In contrast, SCI demonstrates superior sample efficiency.

Figure 3: Comparison of error rates between $SCI_f$ and the standard estimator $\hat{I}$ as a function of sample size.

Figure 3 highlights that the factorized NML variant ($SCI_f$) converges to near-zero error significantly faster than the standard mutual information estimator $\hat{I}$. This robustness to small sample sizes makes it particularly valuable for real-world datasets where observations are expensive or limited.

Causal Network Discovery

When integrated into the PC algorithm for causal discovery, SCI outperformed $G^2$ and CMI-based tests on the Alarm network, achieving a higher F1 score. Notably, SCI maintained high recall in Markov Blanket recovery. While other tests became overly conservative and missed edges as the conditioning set grew, SCI’s adaptive thresholding allowed it to correctly identify relevant variables without succumbing to noise.

Conclusion

SCI introduces a principled approach to conditional independence testing by replacing arbitrary statistical thresholds with the math of stochastic complexity. By effectively balancing explanatory power against model complexity, SCI provides a robust solution for discrete causal discovery, particularly in high-dimensional and data-limited scenarios. Future work aims to extend this framework to continuous data and provide formal proofs for the observed sub-linear sample complexity.

Summary updated

BibTeX
@inproceedings{marx2019testing,
  author = {Alexander Marx and Jilles Vreeken},
  title = {{Testing Conditional Independence on Discrete Data using Stochastic Complexity}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2019},
}
Figure