Examples#
Working example notebooks are available in the example folder.
The notebooks are grouped by topic. Within each group they run from introductory to advanced, so a group’s first notebook is the place to start.
Getting started#
The two canonical tours of the package: CATE estimation with the meta-learners, and uplift modeling with the tree-based learners.
Meta-learners#
Uplift and causal trees#
Evaluation and validation#
Validating a CATE model without ground truth: uplift and Qini curves, TMLE-based evaluation, calibration, and sensitivity analysis.
Interpretation and feature selection#
Neural models#
DragonNet and CEVAE, each with a comparison of its available backends. These
need the optional tf, torch or jax extras.
Instrumental variables#
Policy and value optimization#
Turning effect estimates into treatment decisions: policy learning, counterfactual unit selection and value optimization, and probabilities of causation.
- Policy Learner by Athey and Wager (2018) with Binary Treatment
- Unit Selection Based on Counterfactual Logic by Li and Pearl (2019)
- Counterfactual Value Estimation Using Outcome Imputation by Li and Pearl (2019)
- Calculating the Probabilities of Necessary and Sufficient Causation - Tian and Pearl (2000)
Datasets and benchmarks#
The benchmark leaderboard regenerates every number published on the Benchmark Datasets page; the simulation studies compare estimators on synthetic and semi-synthetic data.
- Benchmark Leaderboard
- Meta-Learner Benchmarks with Synthetic Data in Nie and Wager (2020)
- Meta-Learner Benchmarks with Semi-synthetic Data in Schuler, A., Jung, K., Tibshirani, R., Hastie, T., and Shah, N. Synth-validation: Selecting the best causal inference method for a given dataset (2017)
- Logistic Regression Based Data Generation Function for Uplift Classification Problem