Skip to main content

Causal inference/uplift in Python

Project description

  • Causal inference/uplift in Python


GitHub

ApplicationIncluded DatasetsContributeReferencesLicense

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

  • Examples: share more applications
  • Issues: add, or see what's to be done

Similar Packages

The following are similar packages/modules to causeinfer:

Python:

Other Languages:

References

Full list of theoretical references

-

Project details


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)

Uploaded Source

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

Hashes for causeinfer-0.0.3.2.tar.gz
Algorithm Hash digest
SHA256 a99142b993cab25f23fc4fd16ce21e7d0658baa4d948734b349ad1c070901563
MD5 98db008bb01e7c46dda92b9e078fea74
BLAKE2b-256 05fa3804a425f6bf5d4bd325ccd44e78288d40d8c3360f0cfd7bcf33127ad97b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page