Janus, an A/B Test Framework.
Project description
Janus
Janus is an A/B Test Engine to be used in a variety use cases, especially to measure conversion, ticket and ARPU difference between variants, i.e, typical metrics for tests in marketplaces. The engine name is an analogy to Janus, the god of changes and transitions.
This library came as an ideia of separate the statistical calculations in A/B Tests from other code that is typically used to manage tests and execute queries over the company's database, and hence usually carry proprietary code and even business logic, which should not be open sourced. There was the bud to build this library and get it open sourced.
Checkout the streamlit app from this repo.
Installation
Janus is distributed in pypi. You can install it by using:
pip install janus-web-ab-testing
You can now run a quick example of a A/B test:
from janus.variant import Variant
from janus.experiment import WebsiteExperiment
variant_A = Variant(
name="A",
impressions=1000,
conversions=100,
revenue=10000
)
variant_B = Variant(
name="B",
impressions=1000,
conversions=120,
revenue=9000
)
variants = [variant_A, variant_B]
experiment = WebsiteExperiment(variants, baseline_variant="A")
experiment.run()
experiment.print_reports()
See more in the quickstart notebook.
The Janus Website
My plan is to build a website to showcase the Janus library and to provide a simple interface to run A/B tests. However, only the library is almost ready, and the next steps would be:
- build a backend with FastAPI using the library
- build a frontend (JavaScript maybe)
- deploy the website
References
- What is A/B Testing
- VWO paper about bayesian A/B testing
- Agile A/B testing with Bayesian Statistics and Python
- Understanding Bayesian A/B testing (using baseball statistics)
- It’s time to re-think A/B testing
- Conjugate Priors
- Curso de Teste A/B Bayesiano do Lazy Programmer
- Binomial Distributions
- Bayes theorem
- The quick proof of Bayes Theorem
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
Built Distribution
Hashes for janus_web_ab_testing-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69b401c353598e414840cb9e5b1bcc275840fe451e1f9b810dca5db6c5f062d2 |
|
MD5 | 15306357f11ec3a5461eb310741a2b90 |
|
BLAKE2b-256 | 0b41e3acc4c2c33ad8101ee4955b31a53e38e7037ea2ad84ddf162e56b695c45 |
Hashes for janus_web_ab_testing-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b07e65cf02b1ff3d0a307dcbd1f526f983e13cf04fcf22f7e705890186adb852 |
|
MD5 | 10aeeaa5adbeae6e7ae6d4960dce89cc |
|
BLAKE2b-256 | 72dc89f381f01b4d5a334c57558689149d5e077b39524d4be2750f5af77b5b04 |