Skip to content

This repository is the official implementation of Detecting hidden confounding in observational data using multiple environments.

License

Notifications You must be signed in to change notification settings

RickardKarl/detect-hidden-confounding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detecting hidden confounding in observational data using multiple environments

Abstract

A common assumption in causal inference from observational data is that there is no hidden confounding. Yet it is, in general, impossible to verify the presence of hidden confounding factors from a single dataset. Under the assumption of independent causal mechanisms underlying the data generating process, we demonstrate a way to detect unobserved confounders when having multiple observational datasets coming from different environments. We present a theory for testable conditional independencies that are only absent during hidden confounding and examine cases where we violate its assumptions: degenerate & dependent mechanisms, and faithfulness violations. Additionally, we propose a procedure to test these independencies and study its empirical finite-sample behavior using simulation studies and semi-synthetic data based on a real-world dataset. In most cases, our theory correctly predicts the presence of hidden confounding, particularly when the confounding bias is large.

Experiments

All our experiments can be reproduced using the .ipynb files in the /notebooks folder, except for the experiment from Example 1 which was run with the .R script in the same folder.

See requirements.txt file for required Python packages. The experiments were run in Python 3.10.

About

This repository is the official implementation of Detecting hidden confounding in observational data using multiple environments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published