Detecting hidden confounding in observational data using multiple environments

Rickard K. A. Karlsson, Jesse H. Krijthe
5/27/2022
stat.MEcs.LGstat.ML

Official code: RickardKarl/detect-hidden-confounding (8 stars, Python, MIT, last commit 2025-06-27).

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 this assumption from a single dataset.

Show full abstract

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 when there is 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, the proposed procedure correctly predicts the presence of hidden confounding, particularly when the confounding bias is large.

View on arXivView PDF

Code Implementations(1)

MIT

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

81Python, Jupyter NotebookMay 24, 20221 years agoMIT

Similar Papers

Cite this paper

@article{karlsson2022detecting,
  title  = {Detecting hidden confounding in observational data using multiple environments},
  author = {Rickard K. A. Karlsson and Jesse H. Krijthe},
  year   = {2022},
  eprint = {2205.13935},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.13935}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.13935.svg)](https://codeofpaper.com/paper/2205.13935)

Discussion