A tool to analyze AB tests data from Mixpanel funnels
Project description
MIXpanel Bayesian AB test Analysis tool (MixBABA)
This tool is intended to consume a JSON file containing details about a Mixpanel funnel and output the results of the analysis made whithin a Bayesian framework.
You can find details about the data processing here.
Installation
From PyPi
Just easy as:
pip install mixbaba
From sources
To install this package you have to clone the repository:
git clone https://github.com/NaturalCycles/MixBABA.git
You can run the unit tests, to ensure the tool will work:
cd MixBABA
python setup.py test
And then you can install the tool via PIP:
pip install .
Usage
You can find the full documentation here, but if you want a short guide read the following.
To use MixBABA you have need:
- a JSON file containing a list of the funnels together with the details about them (an example is in this repository)
- the "API secret" to connect to Mixpanel; You can find your one in the settings dialog of the Mixpanel web application.
Then you can launch the analysis via command line:
mixbaba -f [funnel_file.json] -k [API secret]
The tool will extract the data relative to the funnel from Mixpanel, and the output will be put in the same directory as CSV files, as many as the funnels specified in the JSON file given in input.
By default no output will be sent to the console. If you want a CSV file as output you can ask it with
mixbaba -f [funnel_file.json] -k [API secret] -o csv
Example result
This is the standard output format for the analysis of a funnel
Group | Control Impressions | Control Conversions | test Impressions | test Conversions | test CR improvement | test Probability |
---|---|---|---|---|---|---|
All.All | 34164 | 253 | 31105 | 284 | 0.232387 | 0.992551 |
goal.PREVENT | 6175 | 25 | 6016 | 37 | 0.500153 | 0.947624 |
goal.PLAN | 1561 | 5 | 1411 | 5 | 0.106157 | 0.568093 |
$country_code.US | 16631 | 224 | 15438 | 242 | 0.163448 | 0.95048 |
$country_code.SE | 8024 | 23 | 7275 | 35 | 0.654391 | 0.974175 |
Or, if you specify the option -of long
at the command launch:
Discriminant | Cohort | Comment | Control Impressions | Control Conversions | test Impressions | test Conversions | test CR improvement | test Probability |
---|---|---|---|---|---|---|---|---|
None | All | Result for test is OK! | 34164 | 253 | 31105 | 284 | 0.232387 | 0.992551 |
user.goal | PREVENT | Result for test is uncertain. | 6175 | 25 | 6016 | 37 | 0.500153 | 0.947624 |
user.goal | PLAN | Result for test is uncertain. | 1561 | 5 | 1411 | 5 | 0.106157 | 0.568093 |
user.$country_code | US | Result for test is OK! | 16631 | 224 | 15438 | 242 | 0.163448 | 0.95048 |
user.$country_code | SE | Result for test is OK! | 8024 | 23 | 7275 | 35 | 0.654391 | 0.974175 |
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file mixbaba-0.1.1.tar.gz
.
File metadata
- Download URL: mixbaba-0.1.1.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4056431b6f06f0d18f87603207aea9f662255718edc63c1055e89c32b26593b1 |
|
MD5 | 137e6e471c1ca8004b06588644a324ff |
|
BLAKE2b-256 | 40a40d0867a42e6c824a2233b53b28949993101a6ea23e28e8a4d11aefffdb98 |
File details
Details for the file mixbaba-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: mixbaba-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f52f00572209ba6a8283f98850dcbe84b89421530f75b714b439262b40aa392d |
|
MD5 | 024bef90241d9852a5b0e1087d67aa9e |
|
BLAKE2b-256 | 4282784bbd80d30bd165bb52a60eca16c87aaa65c0a65b40c547bc8b83cc9373 |