Skip to main content

A package for running AB tests in a Bayesian framework.

Project description

Bayesian AB Test Report Builder

Build Status PyPI version

Baker Moran

This allows AB testers to create a standard report for test results with python. Handles multiple variant tests, with a variety of prior function types. This is meant to be an abstraction from the nitty gritty of the details of Bayesian statistics. That said, some knowledge about which prior function to use etc. will be helpful for the user.

Example Output for a conversion rate test

alt text

Installation

  • Install via pip (or specify pip3)

    pip install BayesABTest
    

    OR

  • Download files from PyPi and install

Package Functions and Classes

ab_test_model

Class implementing out of the box AB testing functionality. Simple, easy to use AB testing with many different prior function types, all in one clean interface.

ab_test_dist_explorer

Functions allowing a user to explore different distributions with simple to user interface. Allows a user to visually learn about bayesian statistics, and inform proper prior function choice when doing Bayesian AB testing.

Appendix

Learning

For a documentation explaining and motivating the use of Bayesian statistics to evaluate A/B tests, see documentation

Acknowledgements

There is a lot of documentation out there about a Bayesian framework of A/B testing. Some of the specific articles are listed below. Most of the work I came across was written in R, and I set out to create a Python implementation. The visuals were inspired by a standard template we use at Root, first written by https://github.com/zachurchill-root.

Articles Reference:

Version History

  • 0.1.0-prealpha - 12/02/2019
  • 1.0.0-alpha - 12/27/2019
  • 1.0.1-alpha - 01/02/2020
  • 1.0.2-alpha - 06/17/2020
  • 1.0.3-alpha - 06/17/2020
  • 1.0.4-alpha - 06/22/2020
  • 1.0.5-alpha - 06/22/2020
  • 1.0.6-alpha - 06/22/2020
  • 1.0.7-alpha - 07/09/2021
  • 1.0.8-alpha - 03/29/2022
  • 1.0.9-alpha - 03/29/2022

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

BayesABTest-1.0.9.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

BayesABTest-1.0.9-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file BayesABTest-1.0.9.tar.gz.

File metadata

  • Download URL: BayesABTest-1.0.9.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for BayesABTest-1.0.9.tar.gz
Algorithm Hash digest
SHA256 66402a7cf70ac9877eea78fb8afdb3f3548ddaf3d7adb9b0ee8e11c686c1d136
MD5 8403413d94924c79c8d224fd61a16bd8
BLAKE2b-256 99dcb2226b17a48d086a7ea531dfac70f5c3219d90a7809175a1512366257b32

See more details on using hashes here.

File details

Details for the file BayesABTest-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: BayesABTest-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for BayesABTest-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 83946b123f343e30503cb8b3475932a6b1cee7cb10bd7ca934117a8053c4b55b
MD5 58683435026a8a999804e80da9b30437
BLAKE2b-256 1e3e45587b6fdcec6880140e8d02a945ef7553297543bdfa590b65bfeb8b7d30

See more details on using hashes here.

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