Abstract
Conditional independence (CI) testing is a fundamental component of causal discovery. This paper introduces a non-parametric CI test that leverages a k-nearest-neighbor estimator for conditional mutual information (CMI) combined with a novel local permutation scheme. This approach addresses the limitations of existing methods, particularly in handling nonlinear dependencies and high-dimensional conditioning sets, while maintaining robust calibration and statistical power even for small sample sizes.
Introduction: The Challenge of Conditional Independence
At the heart of causal discovery lies the challenge of testing for conditional independence (CI). To determine if variable $X$ causes $Y$, researchers must often verify if $X$ and $Y$ are independent given a set of background variables $Z$ (denoted $X \perp Y | Z$).
For continuous data, this task is notoriously difficult when relationships are nonlinear or $Z$ is high-dimensional. Existing methods typically suffer from two main issues:
- Parametric assumptions: Assuming linear or additive relationships can lead to false negatives or false positives when these assumptions are violated.
- Calibration issues: Advanced non-parametric methods, such as kernel-based tests (e.g., KCIT), often rely on analytical approximations of the null distribution that fail for small datasets, resulting in unreliable p-values.
Methodology
Jakob Runge proposes a two-part solution to these challenges:
1. The Nearest-Neighbor Estimator
The test utilizes the Kozachenko-Leonenko k-nearest neighbor estimator to calculate CMI directly. Unlike fixed-bandwidth methods, nearest-neighbor approaches are "locally adaptive"—the search area (hypercubes) shrinks in dense regions and expands in sparse ones. This allows the test to handle non-smooth distributions more efficiently than global kernel methods.
2. The Local Permutation Scheme
To determine the p-value, a "null distribution" representing the case where $X \perp Y | Z$ is required. Standard global shuffling of $X$ values destroys the $X-Z$ relationship, which must be preserved. Runge’s local permutation shuffles $X$ values only among samples with very similar $Z$ values. This breaks the $X-Y$ link while maintaining the $X-Z$ dependence.
Key Insights and Calibration
The effectiveness of the proposed CMIknn test hinges on its local nature and parameter selection:
- Local vs. Global: Local permutations ensure the test remains "well-calibrated." For a 5% significance level, the test produces a 5% false positive rate even with small samples ($n < 500$).
- The $k$ Trade-off: The test involves two primary parameters: $k_{CMI}$ (for estimation) and $k_{perm}$ (for the permutation). A recommended rule-of-thumb is to set $k_{CMI}$ to 10-20% of the sample size and keep $k_{perm}$ small (5-10) to maximize power without sacrificing calibration.
Results and Evaluation
The method was evaluated using synthetic post-nonlinear models and a real-world Air Quality dataset. Key findings include:
- Superior Calibration: CMIknn showed significantly lower Kolmogorov-Smirnov (KS) statistics compared to state-of-the-art kernel tests (RCIT, RCoT), indicating p-values much closer to the true uniform distribution under the null.
- Higher Power: In scenarios with highly nonlinear dependencies, such as oscillatory sinusoidal noise, CMIknn maintained high detection power where kernel methods often failed.
- Efficiency: While computationally intensive due to the permutation scheme, CMIknn is faster than some kernel methods for smaller datasets when parallelized.
Limitations and Future Directions
The primary limitation is computational scaling. Relying on empirical permutations requires repeating CMI estimation hundreds of times, creating a bottleneck for very large datasets or high-dimensional graphs. Future work may explore analytical approximations for the k-NN estimator's null distribution to reduce the reliance on expensive permutations.
Summary updated