Causal inference/uplift in Python
Project description
-
Causal inference/uplift in Python
Application • Included Datasets • Contribute • References • License
Installation
pip install causeinfer
Application
Causal inference algorithms:
1. The Two Model Approach
- Separate models for treatment and control groups are trained and combined to derive average treatment effects.
2. Interaction Term Approach - Lo 2002
- An interaction term between treatment and covariates is added to the data to allow for a basic single model application.
3. Response Transformation Approach - Lai 2006; Kane, Lo and Zheng 2014
- Units are categorized to allow for the derivation of treatment effected covariates through classification.
4. Generalized Random Forest - Athey, Tibshirani, and Wager 2019
- An application of an honest causalaity based splitting random forest.
Evaluation metrics:
1. Qini and AUUC Scores
- Comparisons across stratefied, ordered treatment response groups are used to derive model efficiency
2. GRF Confidence Intervals
- Confidence intervals are created using GRF's standard deviation across trials
Included Datasets
Contribute
Similar Packages
The following are similar packages/modules to causeinfer:
Python:
- https://github.com/uber/causalml
- https://github.com/Minyus/causallift
- https://github.com/jszymon/uplift_sklearn
- https://github.com/duketemon/pyuplift
- https://github.com/microsoft/EconML
- https://github.com/wayfair/pylift/
Other Languages:
- https://github.com/grf-labs/grf (R/C++)
- https://github.com/imbs-hl/ranger (R/C++)
- https://github.com/soerenkuenzel/causalToolbox/X-Learner (R/C++)
- https://github.com/soerenkuenzel/forestry (R/C++)
- https://github.com/cran/uplift/tree/master/R (R)
References
Full list of theoretical references
-
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
causeinfer-0.0.3.2.tar.gz
(12.9 kB
view details)
File details
Details for the file causeinfer-0.0.3.2.tar.gz.
File metadata
- Download URL: causeinfer-0.0.3.2.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0.post20191030 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a99142b993cab25f23fc4fd16ce21e7d0658baa4d948734b349ad1c070901563
|
|
| MD5 |
98db008bb01e7c46dda92b9e078fea74
|
|
| BLAKE2b-256 |
05fa3804a425f6bf5d4bd325ccd44e78288d40d8c3360f0cfd7bcf33127ad97b
|