Algorithmic Causal Effect Identification with causaleffect

Martí Pedemonte, Jordi Vitrià, Álvaro Parafita
7/9/2021
cs.MScs.AImath.ST

Official code: pedemonte96/causaleffect (38 stars, Python, MIT, last commit 2026-10-02).

Abstract

Our evolution as a species made a huge step forward when we understood the relationships between causes and effects. These associations may be trivial for some events, but they are not in complex scenarios.

Show full abstract

To rigorously prove that some occurrences are caused by others, causal theory and causal inference were formalized, introducing the $do$-operator and its associated rules. The main goal of this report is to review and implement in Python some algorithms to compute conditional and non-conditional causal queries from observational data. To this end, we first present some basic background knowledge on probability and graph theory, before introducing important results on causal theory, used in the construction of the algorithms. We then thoroughly study the identification algorithms presented by Shpitser and Pearl in 2006, explaining our implementation in Python alongside. The main identification algorithm can be seen as a repeated application of the rules of $do$-calculus, and it eventually either returns an expression for the causal query from experimental probabilities or fails to identify the causal effect, in which case the effect is non-identifiable. We introduce our newly developed Python library and give some usage examples.

View on arXivView PDF

Code Implementations(1)

MIT

Python package to compute conditional and non-conditional causal effects.

385PythonJun 16, 20212 months agoMIT

Similar Papers

Cite this paper

@article{pedemonte2021algorithmic,
  title  = {Algorithmic Causal Effect Identification with causaleffect},
  author = {Martí Pedemonte and Jordi Vitrià and Álvaro Parafita},
  year   = {2021},
  eprint = {2107.04632},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.04632}
}

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/2107.04632.svg)](https://codeofpaper.com/paper/2107.04632)

Discussion