PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Causal Inference Python Packages

Python packages with the GitHub topic causal-inference. Sorted by monthly downloads, with stars and forks.
BiomedSciAI
causallib

A Python package for modular causal inference analysis and model evaluations

775K 835 111
py-why
econml

ALICE (Automated Learning and Intelligence for Causation and Economics) is a Microsoft Research project aimed at applying Artificial Intelligence concepts to economic decision making. One of its goals is to build a toolkit that combines state-of-the-art machine learning techniques with econometrics in order to bring automation to complex causal inference problems. To date, the ALICE Python SDK (econml) implements orthogonal machine learning algorithms such as the double machine learning work of Chernozhukov et al. This toolkit is designed to measure the causal effect of some treatment variable(s) t on an outcome variable y, controlling for a set of features x.

369K 5K 828
pgmpy
pgmpy

Python Toolkit for Causal and Probabilistic Reasoning

297K 3K 1K
py-why
causal-learn

Causal Discovery in Python. Learning causality from data.

192K 2K 279
py-why
dowhy

DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.

143K 8K 1K
uber
causalml

Uplift modeling and causal inference with machine learning algorithms

92K 6K 883
rdpackages
rdrobust

Robust Local Polynomial Methods for RD Designs

88K 99 41
maks-sh
scikit-uplift

:exclamation: uplift modeling in scikit-learn style in python :snake:

48K 818 107
DoubleML
doubleml

DoubleML - Double Machine Learning in Python

33K 793 127
cdt15
lingam

Python package for causal discovery based on LiNGAM.

31K 506 73
igerber
diff-diff

Difference-in-Differences causal inference in Python. Callaway-Sant'Anna, Synthetic DiD, Honest DiD, event studies. sklearn-like API, validated against R.

30K 405 55
iridae-dev
antecedent

Antecedent is a typed causal-analysis compiler whose output is a qualified scientific claim. It keeps identification, structural uncertainty, empirical support, statistical uncertainty, assumptions, implementation evidence and provenance separate and machine-checkable all the way through execution and serialization.

29K 3 1
rootcoder007
morie

Multi-domain Open Research and Inferential Estimation

29K 0 0
pymc-labs
causalpy

A Python package for causal inference in quasi-experimental settings

22K 1K 118
WillianFuks
tfcausalimpact

Python Causal Impact Implementation Based on Google's R Package. Built using TensorFlow Probability.

12K 679 75
brycewang-stanford
statspai

StatsPAI is the first Agent-native Python library for causal inference and applied econometrics — unified API, broad cross-method coverage, structured result objects, machine-readable schemas, Skills, an MCP server, and R/Stata parity validation.

12K 332 71
sdfordham
pysyncon

A python module for the synthetic control method

11K 84 21
Parvaz-Jamei
codontrace

CodonTrace Genesis — deterministic research software for digital evolution, causal mechanism auditing, replayable ALife experiments, and evidence-gated AI/evolution studies.

7K 3 0
causaldyn
causal-hybrid-control

Physics-structured dynamics with a learned causal residual, controlled by constrained optimal control / MPC.

6K 1 0
cdeust
hypermnesia-mcp

Cross-platform persistent memory MCP for Codex, Gemini CLI, Claude Code, and other local MCP hosts. 36 cited neuroscience mechanisms, local-first SQLite/PostgreSQL, hybrid retrieval, decay-based consolidation, and reproducible benchmarks. Claude adds optional automatic lifecycle hooks.

5K 73 14
y0-causal-inference
y0

❓y0 (pronounced "why not?") is for causal inference in Python

5K 74 12
cimo-labs
cje-eval

Causal Judge Evaluation: calibrate LLM-as-judge scores against oracle labels with valid uncertainty.

4K 45 6
FenTechSolutions
cdt

Package for causal inference in graphs and in the pairwise settings. Tools for graph structure recovery and dependencies are included.

4K 1K 198
YuminosukeSato
bsts-causalimpact

Bayesian CausalImpact for Python — R-compatible Gibbs sampler in Rust (PyO3), 30x faster, no TensorFlow

3K 20 1
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology