Skip to main content

No project description provided

Project description

causalkit: A Rust Package for Causal Inference

causalkit is a rust package that implements a set of algorithms for causal inference modeling. Currently, it supports two tree-based algorithms for individual treatment effect estimation with binary response and continuous response respectively. Given an intervention T and response Y, it estimates the individual treatment effect (ITE) for each sample. Both algorithms support multiple treatments, e.g. for an intervention with K treatments (control, treatment_1, treatment_2, ..., treatment_K), it will output the uplift in treatment effect for each treatment_i against control.

  • Tree-based algorithms
    • Binary Response: Uplift Random Forest on KL-Divergence [1]
    • Continuous Response: Uplift Random Forest with honest estimation [2]

This modeling approach can be applied to problems where the personalized effectiveness of an intervention T to target users is concerned.

Installation

It requires python version >=3.8. To use it in python, install as follows

pip install causalkit

You can also download the source code from this github repository and build the python library by yourself via maturin.

Usage

Please check the jupyter notebook in the example folder to learn how to use the library.

References

Literature

  1. Stefan Wager, Susan Athey. "Estimation and Inference of Heterogeneous Treatment Effects using Random Forests" arXiv preprint arXiv:1510.04342 (2015).
  2. Susan Athey, Guido Imbens. "Recursive Partitioning for Heterogeneous Causal Effects" arXiv preprint arXiv:1504.01132 (2015).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

causalkit-0.1.3-cp312-none-win_amd64.whl (308.6 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

causalkit-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (454.3 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

causalkit-0.1.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (453.7 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

causalkit-0.1.3-cp310-cp310-macosx_11_0_arm64.whl (399.4 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

causalkit-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (454.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

causalkit-0.1.3-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (454.2 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

causalkit-0.1.3-cp39-cp39-macosx_11_0_arm64.whl (400.1 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

causalkit-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (455.2 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

causalkit-0.1.3-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (454.6 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

causalkit-0.1.3-cp38-cp38-macosx_11_0_arm64.whl (400.3 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

Supported by

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