Giter VIP home page Giter VIP logo

leab's Introduction

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

๐Ÿ 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://[email protected]/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

๐Ÿ™ 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.

leab's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.