Skip to content

tatsu432/BDCM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dissusion Model in Causal Inference with Unmeasured Confounders

This repository is for the experiment conducted in "Dissusion Model in Causal Inference with Unmeasured Confounders" (IEEE SSCI 2023)" by Tatsuhiro Shimizu.

Abstract

We study how to extend the use of the diffusion model to answer the causal question from the observational data under the existence of unmeasured confounders. In Pearl's framework of using a Directed Acyclic Graph (DAG) to capture the causal intervention, a Diffusion-based Causal Model (DCM) was proposed incorporating the diffusion model to answer the causal questions more accurately, assuming that all of the confounders are observed. However, unmeasured confounders in practice exist, which hinders DCM from being applicable. To alleviate this limitation of DCM, we propose an extended model called Backdoor Criterion based DCM (BDCM), whose idea is rooted in the Backdoor criterion to find the variables in DAG to be included in the decoding process of the diffusion model so that we can extend DCM to the case with unmeasured confounders. Synthetic data experiment demonstrates that our proposed model captures the counterfactual distribution more precisely than DCM under the unmeasured confounders.

Citation

@article{shimizu2023diffusion,
  title={Diffusion Model in Causal Inference with Unmeasured Confounders},
  author={Shimizu, Tatsuhiro},
  journal={arXiv preprint arXiv:2308.03669},
  year={2023}
}

Requirements and Setup

# clone the repository
git clone https://github.com/tatsu432/BDCM

The versions of Python and necessary packages are specified as follows.

[tool.poetry.dependencies]
python = ">=3.9,<3.10"
obp = "0.5.5"
scikit-learn = "1.0.2"
pandas = "1.3.5"
scipy = "1.7.3"
numpy = "^1.22.4"
matplotlib = "^3.5.2"
seaborn = "^0.11.2"
hydra-core = "1.0.7"

Section 4: Synthetic Data Experiment

# How does BDCM perform in comparison with DCM under the existence of unmeasured confounders?
Result Table

SCM 1

Figure4
# Exapmle 10 (SCM 1 and simple structural equations)
SCM1_simple.ipynb
SCM1 simple
# Exapmle 11 (SCM 1 and complex structural equations)
SCM1_complex.ipynb
SCM1 comlex

SCM 2

Figure5
# Exapmle 12 (SCM 2 and simple structural equations)
SCM2_simple.ipynb
SCM2 simple
# Exapmle 13 (SCM 2 and complex structural equations)
SCM2_complex.ipynb
SCM2 comlex

SCM 3

SCM3
# Exapmle 14 (SCM 3 and simple structural equations)
SCM3_simple.ipynb
SCM3 simple
# Exapmle 15 (SCM 3 and complex structural equations)
SCM3_complex.ipynb
SCM3 comlex

SCM 4

SCM4
# Exapmle 16 (SCM 4 and simple structural equations)
SCM4_simple.ipynb
SCM4 simple
# Exapmle 17 (SCM 4 and complex structural equations)
SCM4_complex.ipynb
SCM4 comlex

SCM 5

SCM5
# Exapmle 18 (SCM 5 and simple structural equations)
SCM5_simple.ipynb
SCM5 simple
# Exapmle 19 (SCM 5 and complex structural equations)
SCM5_complex.ipynb
SCM5 comlex

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published