Skip to content
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

891K 836 110
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.

414K 5K 838
py-why
causal-learn

Causal Discovery in Python. Learning causality from data.

326K 2K 287
pgmpy
pgmpy

Python Toolkit for Causal and Probabilistic Reasoning

308K 3K 1K
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.

206K 8K 1K
uber
causalml

Uplift modeling and causal inference with machine learning algorithms

97K 6K 894
DoubleML
doubleml

DoubleML - Double Machine Learning in Python

53K 805 135
maks-sh
scikit-uplift

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

47K 821 109
cdt15
lingam

Python package for causal discovery based on LiNGAM.

46K 513 77
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.

33K 415 57
pymc-labs
causalpy

A Python package for causal inference in quasi-experimental settings

30K 1K 131
sdfordham
pysyncon

A python module for the synthetic control method

29K 85 22
rdpackages
rdrobust

Robust Local Polynomial Methods for RD Designs

27K 99 44
rootcoder007
morie

Multi-domain Open Research and Inferential Estimation

20K 0 0
brycewang-stanford
statspai

StatsPAI is an 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.

18K 389 78
iridae-dev
antecedent

Antecedent is a causal-science compiler and evidence-aware runtime that turns declared scientific questions, models, and evidence into executable analyses and qualified results.

14K 3 1
WillianFuks
tfcausalimpact

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

10K 683 75
causaldyn
causal-hybrid-control

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

7K 1 0
y0-causal-inference
y0

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

6K 76 15
Abel-ai-lab
andrey-core

Accelerated, accurate, agentic causal discovery

6K 13 4
rdpackages
rddensity

Manipulation Testing Using Local Polynomial Density Methods

5K 12 9
dvbn
powermean

Powermean package (Python version)

5K 0 0
bernardodionisi
differences

difference-in-differences in Python

5K 116 25
rootcoder007
crimlab

Statistical Toolkit for Criminology and Sociolegal Research: R, Python, the command line, Go, Rust, Java and JavaScript over one C++17 core

4K 0 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology