Abstract
For a continuous random variable $Z$, testing conditional independence $X\indep Y|Z$ is known to be a particularly hard problem. It constitutes a key ingredient of many constraint-based causal discovery algorithms. We propose a novel Bayesian nonparametric conditional two-sample test for the case where $X$ is discrete and $Y, Z$ are continuous. By leveraging Pólya tree priors, we provide a fast, reliable way to perform Local Causal Discovery (LCD) that outperforms state-of-the-art frequentist methods.
Introduction
Causal discovery—the process of inferring causal relationships from observational data—is a fundamental task in modern science. A significant challenge arises when dealing with "mixed" datasets that contain both continuous measurements and discrete labels. Specifically, testing conditional independence $C \perp Y | X$, where $C$ is a binary context variable and $X, Y$ are continuous, is a notoriously difficult problem. Traditional methods often treat all variables as continuous, leading to unreliable inferences, or rely on computationally expensive simulations. This paper introduces a novel Bayesian nonparametric tool designed specifically for these mixed scenarios.
Methodology: Pólya Tree Priors
The authors bridge the gap in mixed-data testing by combining Pólya Trees (PT) with Conditional Optional Pólya Trees (cond-OPT). A Pólya tree models probability distributions by recursively partitioning the data space into increasingly smaller bins, as shown in the figure below.
The proposed conditional independence test compares two hypotheses:
- Null Hypothesis ($H_0$): The data follows a single conditional distribution $P(Y|X)$.
- Alternative Hypothesis ($H_1$): The data is split by the binary variable $C$ into two distinct conditional distributions $P(Y|X, C=0)$ and $P(Y|X, C=1)$.
By calculating the Bayes Factor—the ratio of marginal likelihoods under each hypothesis—the method determines the likelihood of conditional independence. Because Pólya trees offer closed-form expressions for these likelihoods, the test is computationally efficient and avoids the slow Markov Chain Monte Carlo (MCMC) simulations common in other Bayesian methods.
Local Causal Discovery (LCD)
The primary application of this test is Local Causal Discovery. LCD identifies causal links by testing specific independence patterns among a context variable $C$ and two other variables $X$ and $Y$. The researchers evaluated the test using synthetic Structural Causal Models (SCMs) representing various causal structures (linear, parabolic, sinusoidal) and the Sachs protein expression dataset, a benchmark in the field.
Results and Discussion
The proposed Pólya tree-based ensemble consistently outperformed state-of-the-art frequentist tests like the Generalized Covariance Measure (GCM) and Randomized Conditional Independence Test (RCoT) in terms of Area Under the Curve (AUC) for LCD tasks.
Key advantages identified include:
- Accuracy: Explicitly accounting for the binary nature of context variables significantly improves the recall of true causal links.
- Efficiency: The test is orders of magnitude faster than machine learning-based alternatives like the Classifier Conditional Independence Test (CCIT), making it practical for large-scale searches.
- Real-world Robustness: On the Sachs protein signaling data, the method produced a causal graph more aligned with expert knowledge than standard partial correlation methods, which often produce overly dense and noisy graphs.
Conclusion
While the method excels in low-dimensional settings with binary contexts, future work is needed to address the "curse of dimensionality" in high-dimensional conditioning sets and to extend the framework to multi-category discrete variables. Nonetheless, this Bayesian nonparametric approach represents a significant step forward in robust causal discovery for mixed data types.
Summary updated