Skip to main content

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


Download files

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

Source Distribution

blockeval-0.1.0.tar.gz (12.4 kB view hashes)

Uploaded Source

Built Distribution

blockeval-0.1.0-py3-none-any.whl (11.9 kB view hashes)

Uploaded Python 3

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