Analyze campaigns with segments derived from a predictive model, an uplift score, or any business rule.
Project description
Randomized Block Design Analysis
Module to analyze randomized block design in python. Blocks can be population segments derived from a predictive model, an uplift score, or any business rule. It assumes that individuals within each block are randomized in a treated and control groups. The sample size ratio between the treated and control groups can differ between blocks. When combining blocks, the Weighted Average Treatment Effect is calculated to avoid the counfounding effect of blocks and Simpson's paradox.
Users can:
- estimate the treatment effect for each block or group of blocks
- compare the treatment effect between blocks or group of blocks
- estimate the overall treatment effect of the campaign
Contributors
- Mathieu d'Acremont
- Audrey Lee
Installation
The latest version can be installed from PyPI:
pip install blockeval
Test
In a jupyter notebook, check if you can import the package functions:
from blockeval.analysis import *
from blockeval.utils import campaign_simulation
Example
This example notebook shows how to run a segment analysis on an uplift campaign and how to solve the Simpson's paradox.
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
Built Distribution
File details
Details for the file blockeval-0.1.0.tar.gz
.
File metadata
- Download URL: blockeval-0.1.0.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12fc1309f4879c591eb9bc9d53276702666fef12dfac50921b4acf2dca9ce712 |
|
MD5 | c5826e2ba42597a6819eefa9ace68725 |
|
BLAKE2b-256 | bc10626adf694e03eab34539fb5a9d26a98e2b8fc77700aaa6bba5e01efaf269 |
File details
Details for the file blockeval-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: blockeval-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9867f383ac1205f9e921f3d498687e0cbf9e55a1100aa2e8b3d287cc771fd7b5 |
|
MD5 | 48a79d58da69b950764d6e1c20e197d1 |
|
BLAKE2b-256 | a311a51a8d3c4cce6451be1bcee124204e6ac1a063bf4e6e9ff8977660733bb4 |