Abstract
Conditional independence (CI) tests are widely used in statistical data analysis, e.g., they are the building block of many algorithms for causal graph discovery. The goal of a CI test is to accept or reject the null hypothesis that $X \perp \!\!\! \perp Y \mid Z$, where $X \in \mathbb{R}, Y \in \mathbb{R}, Z \in \mathbb{R}^d$. In this work, we investigate conditional independence testing under the constraint of differential privacy. We design two private CI testing procedures: one based on the generalized covariance measure of Shah and Peters (2020) and another based on the conditional randomization test of Candès et al. (2016) (under the model-X assumption). We provide theoretical guarantees on the performance of our tests and validate them empirically. These are the first private CI tests with rigorous theoretical guarantees that work for the general case when $Z$ is continuous.
Introduction
Conditional Independence (CI) testing is a fundamental tool in statistics, answering whether variable $X$ provides additional information about $Y$ once $Z$ is accounted for. This is essential for causal discovery and clinical trials—for instance, determining if a treatment $X$ affects an outcome $Y$ after controlling for confounding factors $Z$.
However, CI testing on sensitive data, such as medical records, poses significant privacy risks. Releasing a simple p-value can inadvertently leak information about individuals in the dataset. While Differential Privacy (DP) offers a robust framework for data protection, existing private CI tests have largely been restricted to categorical data. This paper introduces the first DP tests for CI that handle continuous variables with rigorous theoretical guarantees.
Proposed Methods
The authors develop two private CI tests, each catering to different assumptions and data scenarios:
1. PrivGCM (Private Generalized Covariance Measure)
The standard GCM regresses $X$ on $Z$ and $Y$ on $Z$, then tests if the product of the resulting residuals is zero. To privatize this, the authors add Laplace noise to the residual products. A key challenge is the "unbounded sensitivity" of the test statistic; a single outlier could theoretically change the result infinitely. To address this, the authors assume $X$ and $Y$ are bounded and employ Kernel Ridge Regression (KRR) to ensure residuals have bounded sensitivity. They prove that the noisy test statistic still converges to a standard Gaussian distribution, enabling valid p-value calculation.
2. PrivCRT (Private Conditional Randomization Test)
PrivCRT operates under the "model-X" assumption, where the distribution of $X|Z$ is known. It compares the observed test statistic against a set of "fake" statistics generated by resampling $X$ from its conditional distribution. To maintain privacy, the authors release a noisy version of the rank of the true statistic using a novel DP score function and the Report Noisy Max mechanism. This innovation provides a way to privately estimate ranks, a technique with broad utility beyond CI testing.
Experimental Evaluation
The tests were evaluated using both synthetic and real-world datasets. Synthetic data allowed for controlled testing of independence ($\beta=0$) versus dependence ($\beta > 0$) across varying model complexities ($s$) and dimensions of $Z$.
Error Control and Model Complexity
A critical finding is that PrivGCM and PrivCRT maintain consistent Type-I error control even as model complexity increases. In contrast, existing private baselines like private Kendall’s $\tau$ or "Test-of-Tests" often fail to control error, particularly with high-dimensional $Z$.
Interestingly, the privacy noise in PrivGCM can act as a stabilizer. In cases where regression models might underfit or overfit, the non-private GCM may reject the null hypothesis too frequently. The added DP noise "buffers" these errors, helping to keep the Type-I error within desired limits.
Statistical Power
Both private tests demonstrate asymptotic power, meaning the probability of correctly rejecting a false null hypothesis approaches 1 as the sample size $n$ increases.
The authors also tested the methods on the "Concrete Compressive Strength" dataset from the UCI repository. In this realistic, non-linear setting, PrivGCM's power converged to that of the non-private version as the sample size reached approximately $10^3$.
Discussion and Conclusion
This work bridges a significant gap in private statistical testing. While PrivCRT is generally more powerful when $X|Z$ is known, PrivGCM offers a more flexible approach for observational data where such distributions are unknown.
Future work includes relaxing the boundedness assumption for PrivGCM, perhaps by using high-probability bounds to move toward approximate DP. Additionally, extending these univariate tests to multivariate $X$ and $Y$ remains an important open challenge for the field. By providing the first private CI tests for continuous variables with rigorous guarantees, this research enables safer and more reliable causal analysis on sensitive datasets.
Summary updated