Lune

AAAI2023Top-tier venue

Nearest-Neighbor Sampling Based Conditional Independence Testing

Shuai Li, Ziqi Chen, Hongtu Zhu, Christina Dan Wang, Wang Wen

Abstract

The conditional randomization test (CRT) was recently proposed to test whether two random variables X and Y are conditionally independent given random variables Z. The CRT assumes that the conditional distribution of X given Z is known under the null hypothesis and then it is compared to the distribution of the observed samples of the original data. The aim of this paper is to develop a novel alternative of CRT by using nearest-neighbor sampling without assuming the exact form of the distribution of X given Z. Specifically, we utilize the computationally efficient 1-nearest-neighbor to approximate the conditional distribution that encodes the null hypothesis. Then, theoretically, we show that the distribution of the generated samples is very close to the true conditional distribution in terms of total variation distance. Furthermore, we take the classifier-based conditional mutual information estimator as our test statistic. The test statistic as an empirical fundamental information theoretic quantity is able to well capture the conditional-dependence feature. We show that our proposed test is computationally very fast, while controlling type I and II errors quite well. Finally, we demonstrate the efficiency of our proposed test in both synthetic and real data analyses.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Efficient Ensemble Conditional Independence Test Framework for Causal Discovery cites Residual Similarity Based Conditional Independence Test and Its Application in Causal Discovery
  • Efficient Ensemble Conditional Independence Test Framework for Causal Discovery cites K-Nearest-Neighbor Local Sampling Based Conditional Independence Testing
  • Conditional Diffusion Models Based Conditional Independence Testing cites K-Nearest-Neighbor Local Sampling Based Conditional Independence Testing
  • Score-based Generative Modeling for Conditional Independence Testing cites K-Nearest-Neighbor Local Sampling Based Conditional Independence Testing
  • Score-based Generative Modeling for Conditional Independence Testing cites Conditional Diffusion Models Based Conditional Independence Testing
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. K-Nearest-Neighbor Local Sampling Based Conditional Independence TestingShuai Li, Yingjie Zhang, Hongtu Zhu, Christina Dan Wang et al.NeurIPS 2023 · 15 citations
  2. Efficient Ensemble Conditional Independence Test Framework for Causal DiscoveryZhengkang Guan, Kun KuangICLR 2026 · 6 citations
  3. Conditional Diffusion Models Based Conditional Independence TestingYanfeng Yang, Shuai Li, Yingjie Zhang, Zhuoran Sun et al.AAAI 2025 · 4 citations
  4. Score-based Generative Modeling for Conditional Independence TestingYixin Ren, Chenghou Jin, Yewei Xia, Li Ke et al.KDD 2025

Builds on1

  1. Residual Similarity Based Conditional Independence Test and Its Application in Causal DiscoveryHao Zhang, Shuigeng Zhou, Kun Zhang, Jihong GuanAAAI 2022 · 22 citations

Related papers

  1. Conditional independence testing under misspecified inductive biasesFelipe Maia Polo, Yuekai Sun, Moulinath BanerjeeNeurIPS 2023 · 8 citations
  2. Diffeomorphic Information Neural EstimationBao Duong, Thin NguyenAAAI 2023 · 10 citations
  3. A Conditional Randomization Test for Sparse Logistic Regression in High-DimensionBinh T. Nguyen, Bertrand Thirion, Sylvain ArlotNeurIPS 2022 · 7 citations
  4. An Asymptotic Test for Conditional Independence using Analytic Kernel EmbeddingsMeyer Scetbon, Laurent Meunier, Yaniv RomanoICML 2022 · 18 citations
  5. A Sample Efficient Conditional Independence Test in the Presence of DiscretizationBoyang Sun, Yu Yao, Xinshuai Dong, Zongfang Liu et al.ICML 2025
Dusk over the sea between two cliffs drawn in fine vertical lines