Skip to main content

Add your description here

Project description

le_AB_logo

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

🐍 You need to install Python 3.12 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 ?

🔗 Useful links

🙏 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.11.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leab-0.1.11-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leab-0.1.11.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for leab-0.1.11.tar.gz
Algorithm Hash digest
SHA256 88e04bb6edb15765c78139d1c0644df32162ba5a9a766e54e1d247a9ddbdc69d
MD5 060022772f62840e93dc5833bf4b6aa7
BLAKE2b-256 72e81cb8a18eab7fc299298522cde7582ba64df68384032f9c58a246ca7962f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: leab-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for leab-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 a7def6c75193f1eb5abe51fa0ad49fe7653bd4820107d04255fcb0b098b6bf7a
MD5 1f0f11e26c35ab3f11be0c5abe06e623
BLAKE2b-256 f198f278239e38df2c401dbb223d9c1e1d35c255db83852b33dca79c9c7f2461

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page