EconML estimates how treatment effects vary across individuals using machine learning on observational or experimental data. It unifies econometrics-style causal methods behind one Python API.
Overview
EconML is a Python package from the ALICE research effort for estimating heterogeneous treatment effects. It measures how a treatment variable affects an outcome while conditioning on features, and how that effect changes with covariates.
The library implements double machine learning, causal forests, meta-learners, doubly robust estimators, and instrumental-variable variants. Many estimators support flexible machine learning nuisances such as forests, boosting, lasso, or neural nets while retaining causal interpretations and, where enabled, valid confidence intervals.
Interpretability helpers include tree and policy interpreters for conditional average treatment effects and SHAP-style summaries. Cross-validation utilities help with first-stage model and causal model selection. Policy learning methods can recommend treatments directly from observational data.
EconML builds on familiar Python data and machine learning stacks and installs from PyPI. Documentation and notebooks cover recommendation experiments, pricing heterogeneity, and multi-treatment attribution scenarios.
Key features
- Double machine learning estimators
- Causal and orthogonal random forests
- Meta-learners and doubly robust models
- Instrumental variable estimators
- CATE interpretability utilities
- Offline policy learning
- Inference with confidence intervals
- scikit-learn compatible workflows
Use cases
- A/B tests with imperfect compliance
- Personalized discount sensitivity
- Multi-treatment outreach attribution
- Observational causal effect studies
- Heterogeneous pricing experiments