Janus, an A/B Test Framework.
Project description
Janus
Janus is a simple and easy A/B Test Calculator that allows you to run A/B tests and get reports in a few lines of code.
It's developed mainly for website experiments. While many calculators only account for conversion analysis and consider only two variants, Janus allows multivariant tests and measure Conversion, Averge Ticket and Average Revenue Per User (ARPU) over variants, i.e, typical metrics for tests in marketplaces.
The engine name is an analogy to Janus, the god of changes and transitions.
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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77db7f82dcd0d331dfa868e205f085f1f50a84eb97b3c30b4f63e6caa55d5e80 |
|
MD5 | 2537eaf8c0fd9108e06ea199f65d7887 |
|
BLAKE2b-256 | 03537a43a7668ad660fb2f6bf289a2b0baa3aea123908510f9956a843aa83de8 |
Hashes for janus_web_ab_testing-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5893d34f07f683309219ae268eba2037c3fcbe151275b26bc9984cd111b45ed |
|
MD5 | 3a9a083c8fadd394eff0527424e57ae1 |
|
BLAKE2b-256 | 622297c9025ee975ee9e00129dc1b47e756a4bd9ea45bc530f138a4628eeaaba |