pymc-labs/CausalPy
A Python package for causal inference in quasi-experimental settings observed · 2026-09-01
Health v2 · maintenance only
94/100
- Activity 100
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 59
- age_days: 1442
- days_rel: 36
- days_push: 2
- n_releases_24m: 8
Adoption not part of the score
1185 stars · 114 forks observed · 2026-09-01
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
CausalPy is a Python package for causal inference in quasi-experimental settings, offering methods like difference-in-differences, synthetic control, regression discontinuity, and interrupted time series. It provides Bayesian estimation via PyMC with full uncertainty quantification, plus OLS via scikit-learn, with decision-ready effect summaries and plots.
Use cases
- estimate causal effects of an intervention without a randomized experiment
- run a difference-in-differences analysis in Python
- build a synthetic control model to measure a policy impact
- analyze interrupted time series around a product launch
- perform regression discontinuity analysis
- get Bayesian credible intervals for treatment effects
- measure lift from a marketing campaign or A/B-like test
When to choose
- you need quasi-experimental causal inference methods in Python
- you want Bayesian uncertainty quantification for causal effect estimates
- you want publication-quality plots and effect summaries with HDI and ROPE
When to avoid
- you need fully randomized A/B experiment analysis tooling
- you need a non-Python or GUI-based statistics environment
- you only need simple descriptive statistics or dashboards
Facets
library · maturity active
data-science machine-learning math data-science analytics machine-learning python causal-inference quasi-experiments bayesian pymc difference-in-differences synthetic-control statistics
2 sources
- readme: https://github.com/pymc-labs/CausalPy · fetched 2026-09-01 · ef1c31eccc31
- registry_pypi: https://pypi.org/pypi/causalpy/json · fetched 2026-08-29 · 3fa2c21480ef
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pymc-labs/CausalPy | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="pymc-labs/CausalPy")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem