Skip to main content

Lets Python do AB testing analysis.

Project description

le_AB_logo

travis codecov bsd_3_license

le AB is a Python library for AB testing analysis.

⚡️ Quick start

Open In Colab

Before launching your AB test, you can compute the needed sample size per variation :

>>> from leab import before

>>> ab_test = before.leSample(conversion_rate=20,
...                           min_detectable_effect=2)
>>> ab_test.get_size_per_variation()

6347

After reaching the needed sample size, you can compare means obtained from A VS B :

>>> from leab import after
>>> from leab import leDataset

>>> data = leDataset.SampleLeAverage()

>>> ab_test = after.leAverage(data.A, data.B)
>>> teab_testst.get_verdict()

'Sample A mean is greater'

🛠 Installation

:snake: You need to install Python 3.6 or above.

Installation can be done by using pip.
There are wheels available for Linux, MacOS, and Windows.

pip install leab

You can also install the latest development version as so:

pip install git+https://github.com/tlentali/leab

# Or, through SSH:
pip install git+ssh://git@github.com/tlentali/leab.git

🥄 Philosophy

"Life is a sum of all our choices."
Albert Camus

Get ready to take a decision !

AB testing has never been more popular, especially on Internet based companies.
Even if each test is unique, some questions seem to be asked again and again :

  • when is my test going to be statistically significant ?
  • is A more successful than B ?
  • does A generate more than B ?

Strong statistical knowledge are required to handle it from start to end correctly.
To answer those questions in a simple and robust way, we built le AB.
Lets Python do AB testing analysis !

🔥 Features

Here are some benefits of using Le AB :

  • Sample size : How many subjects are needed for my AB test ?
  • Test duration : How many days are needed for my AB test ?
  • Rate of success : Does the rate of success differ across two groups ?
  • Average value : Does the average value differ across two groups ?
  • html auto-report : Generate a html report (example) for the sample size part.

Next release features :

  • html auto-report : Generate a html report for the after part.
  • sequential sampling : How many conversions are needed for a sequential AB test ?

🔗 Useful links

🎬 Media

  • Betclic Data Bi-monthly may 2020 (dispo in may 2020)

🙏 Thanks

This project takes its inspiration from Evan Miller great work, especially the following :

Thank you so much Evan M. for your work, it saved our lives so many times !

A big thanks to Max Halford too, who inspired us in the structure of this project, particularly for docs and tests.
Have a look at Creme-ml, it's just amazingly done !

To finish, thanks to all of you who use or are going to use this lib, hope it helps !

🖖 Contributing

Feel free to contribute in any way you like, we're always open to new ideas and approaches. If you want to contribute to the code base please check out the CONTRIBUTING.md file. Also take a look at the issue tracker and see if anything takes your fancy.

This project follows the all-contributors specification. Again, contributions of any kind are welcome!

tlentali
tlentali

📆 💻
JLouedec
JLouedec

📝
RomainSa
RomainSa

📝

📜 License

le AB is free and open-source software licensed under the 3-clause BSD license.

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

leab-0.1.4.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

leab-0.1.4-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file leab-0.1.4.tar.gz.

File metadata

  • Download URL: leab-0.1.4.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for leab-0.1.4.tar.gz
Algorithm Hash digest
SHA256 d6dc2c12cd65de4205e5d835b4808ac27990b41715925ce17e0fe666106e717e
MD5 9fb669fe4d72c5cabda9a6527b8e0203
BLAKE2b-256 940b14aa799606ea03decc1b38dd6b7fc3e6f0358c6cfcf1eae8c528a3f7cbd9

See more details on using hashes here.

File details

Details for the file leab-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: leab-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for leab-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 15851547a4f3655c8fc13e59a1654c3dfcdd1b718beb580d4ecc88ecfb150897
MD5 d5b5cffa76538eb23ca8d8a4625336e0
BLAKE2b-256 9d802221265c8cd91b86af5b951aae59fb9ac1165d3bb6d65d402611145a6c2d

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