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

Causal Inference Python Packages

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

A Python package for modular causal inference analysis and model evaluations

3.3M 826 110
pgmpy
pgmpy

Python Toolkit for Causal and Probabilistic Reasoning

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

593K 5K 815
py-why
causal-learn

Causal Discovery in Python. Learning causality from data.

296K 2K 265
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.

238K 8K 1K
uber
causalml

Uplift modeling and causal inference with machine learning algorithms

94K 6K 862
rdpackages
rdrobust

Robust Local Polynomial Methods for RD Designs

89K 94 42
maks-sh
scikit-uplift

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

55K 808 105
cdt15
lingam

Python package for causal discovery based on LiNGAM.

51K 497 72
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.

46K 278 40
pymc-labs
causalpy

A Python package for causal inference in quasi-experimental settings

28K 1K 109
rootcoder007
morie

MORIE: multi-domain scientific computing toolkit (Python + R) for observational causal inference, survey methods, and criminal-justice analytics — home of the MRM (Multilevel Reconciliation Methodology) framework.

25K 0 0
DoubleML
doubleml

DoubleML - Double Machine Learning in Python

23K 750 117
noumenal-ai
causal-worlds

Generate fictional-but-coherent causal operations worlds (executable sim + time-series + ground-truth causal answer-key) from a natural-language description — for benchmarking causal-discovery and control agents.

17K 4 0
WillianFuks
tfcausalimpact

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

13K 674 77
huawei-noah
gcastle

Trustworthy AI related projects

10K 1K 251
FenTechSolutions
cdt

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

8K 1K 202
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.

7K 266 52
y0-causal-inference
y0

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

7K 72 11
cdeust
neuro-cortex-memory

Persistent memory for Claude Code — 36 neuroscience mechanisms, 97 papers. Reproducible via `make reproduce`: LongMemEval-S R@10 98.2% / MRR 0.915 (n=500), LoCoMo R@10 91.5% / MRR 0.805 (n=1982), BEAM-100K retrieval-proxy MRR 0.55. Clean-DB, single-process, production recall path. PostgreSQL + pgvector.

6K 65 11
paul-krug
pytorch-tcn

(Realtime) Temporal Convolutions in PyTorch

6K 203 17
YuminosukeSato
bsts-causalimpact

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

6K 18 1
cimo-labs
cje-eval

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

6K 43 4
bernardodionisi
differences

difference-in-differences in Python

5K 112 27
    • Data from PyPI, GitHub, ClickHouse, and BigQuery