A Sample Efficient Conditional Independence Test in the Presence of Discretization

Boyang Sun, Yu Yao, Xinshuai Dong, Zongfang Liu, Tongliang Liu, Yumou Qiu, Kun Zhang

Introduction

In the field of causal discovery, researchers often aim to uncover the underlying structures of complex systems by testing for conditional independence (CI) between variables. However, a significant gap exists between theoretical models and real-world data collection. While many causal algorithms assume continuous variables, practical measurements are frequently discretized into "bins." Examples include Likert scales in psychology, income brackets in economics, or categorical ratings in finance.

This discretization introduces a fundamental challenge: even if two latent continuous variables are independent given a third, their discretized counterparts often fail to satisfy the same independence criteria. Standard CI tests, such as the Chi-square test or Fisher-z, frequently produce misleading results when applied to such data. This paper introduces DCT-GMM, a discretization-aware CI test that leverages the Generalized Method of Moments (GMM) to achieve high sample efficiency and accuracy in these "binned" environments.

The Problem: Information Loss and Mismatch

Previous attempts to address discretization, such as the original Discretization-Aware CI test (DCT), relied on binarizing data—reducing multi-category variables into simple binary indicators (0s and 1s). While this approach simplifies the mathematical relationship between latent and observed variables, it discards a substantial amount of information. In scenarios with small sample sizes, this information loss leads to low statistical power and high variance, making it difficult to recover the true causal graph.

Methodology: The DCT-GMM Approach

DCT-GMM improves upon previous methods by utilizing the full range of categorical information through a three-step framework:

1. The Latent Non-Paranormal Model

The authors assume that the observed discrete data originates from latent continuous variables. These variables are modeled as "non-paranormal," meaning they are Gaussian variables transformed by unknown monotonic functions. This assumption allows the model to handle a variety of distributions while maintaining the mathematical tractability of Gaussian copulas.

2. Covariance Estimation via GMM

Instead of simplifying the data to a single binary split, DCT-GMM treats the entire discretization grid as a source of information. For two variables with $M$ and $K$ categories, there are $M \times K$ possible cells. Each cell boundary provides an equation that relates the observed counts to the latent covariance.

Because there are typically more equations (constraints) than parameters to estimate, the problem is "over-identified." The authors apply the Generalized Method of Moments (GMM) to weight these constraints optimally. This approach minimizes the variance of the covariance estimator, making the test significantly more sample-efficient than methods that only use a subset of the available boundaries.

3. Nodewise Regression and CI Testing

To perform the actual independence test, the authors utilize nodewise regression. By estimating the precision matrix (the inverse of the covariance matrix) through this technique, they derive a test statistic that follows a standard normal distribution under the null hypothesis. This allows for the calculation of reliable p-values for conditional independence.

Experimental Evaluation

Synthetic Benchmarks

The authors evaluated DCT-GMM against traditional tests (Fisher-z, Chi-square) and the original DCT using synthetic datasets generated from various causal structures, including forks, chains, and complex Directed Acyclic Graphs (DAGs).

  • Sample Efficiency: In tests with as few as 200 samples, DCT-GMM maintained a stable Type I error rate while demonstrating significantly higher power than its predecessors.
  • Causal Accuracy: When used within graph reconstruction algorithms, DCT-GMM consistently achieved higher F1 scores and lower Structural Hamming Distance (SHD). Notably, as sample sizes increased, traditional tests often converged to the wrong structure due to discretization bias, whereas DCT-GMM converged to the correct latent truth.

Real-World Application: The Big Five Personality Traits

The method was applied to the Big Five Personality dataset, where traits are measured on a 5-point discrete scale. The goal was to identify known independence relationships within emotional stability variables. DCT-GMM successfully identified conditional independencies that traditional tests missed, even under highly conservative significance levels ($\alpha = 10^{-8}$).

Key Insights

  • Efficiency through Over-identification: The core strength of DCT-GMM lies in its ability to turn the "problem" of multiple category boundaries into a statistical advantage. By using GMM to aggregate information from every edge of the discretization grid, it achieves a lower-variance estimator.
  • Robustness to Discretization: Unlike standard tests that become more "confidently wrong" as more binned data is provided, DCT-GMM is specifically designed to account for the binning process, ensuring consistency in causal discovery.

Limitations and Future Directions

The primary limitation of DCT-GMM is its reliance on the Gaussian (non-paranormal) assumption for latent variables. If the underlying continuous data is heavily tailed or highly non-Gaussian, the bridge equations used to link discrete counts to latent covariance may lose accuracy. Future research may explore extending this GMM framework to non-Gaussian latent distributions or developing adaptive methods for learning discretization boundaries in high-dimensional settings.

Conclusion

DCT-GMM represents a significant advancement for researchers working with categorical or binned data. By moving beyond simple binarization and embracing the statistical richness of the Generalized Method of Moments, it provides a robust, sample-efficient tool for uncovering the latent causal structures that govern our world.

Summary updated

BibTeX
@inproceedings{sun2025sample,
  author = {Boyang Sun and Yu Yao and Xinshuai Dong and Zongfang Liu and Tongliang Liu and Yumou Qiu and Kun Zhang},
  title = {{A Sample Efficient Conditional Independence Test in the Presence of Discretization}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=rQK6IWHdzA},
}
Figure