A/B-testing
A/B testing is process which allows developer/data scientist to analyze and evaluate, the performance of products in an experiment. In this process two or more versions of a variable (web page, page element, products etc.) are shown to different segments of website visitors at the same time to determine which version leaves the maximum impact and drives business metrics.
In A/B testing, A refers to the original testing variable. Whereas B refers to a new version of the original testing variable. Impact of the results can be evaluated based on,
- Conversion Rate
- Significance test
Documentation can be found on- ab-testing-analysis.readthedocs.io
Installation & Usage
- Installing the library from pypi - It has only dependency on pandas & numpy
pip install ab-testing-analysis
-
Usages & working sample - Tutorial
-
Example code,
from ab_testing import ABTest
from ab_testing.data import Dataset
df = Dataset().data()
ab_obj = ABTest(df,response_column='Response',group_column='Group')
print(ab_obj.conversion_rate(),'\n','-'*10)
print(ab_obj.significance_test(),'\n','-'*10)
print(df.head())
Output:
Conversion Rate Standard Deviation Standard Error
A 20.20% 0.401 0.018
B 22.20% 0.416 0.0186
----------
z statistic: -0.77 p-value: 0.439
Confidence Interval 95% for A group: 16.68% to 23.72%
Confidence Interval 95% for B group: 18.56% to 25.84%
The Group A fail to perform significantly different than group B.
The P-Value of the test is 0.439 which is above 0.05, hence Null hypothesis Hₒ cannot be rejected.
----------
Users Response Group
0 IS36FC7AQJ 0 A
1 LZW2YNYHZG 1 A
2 9588IGN0RN 1 A
3 HSAH1TYQFF 1 A
4 5D9G147941 0 A
Contribution
All contributions, bug reports, bug fixes, documentation improvements, enhancements, and ideas are welcome.
A detailed overview on how to contribute can be found in the contributing guide.
Code of Conduct
As contributors and maintainers to this project, you are expected to abide by code of conduct. More information can be found at Code of conduct
License
Misc links and information,
Recent talk in The Data Science Hub @ Northeastern University
Slide deck for library demo - AB Test analysis - PPT/Deck
Colab Notebook for walkthrough - Notebook ipynb
Metadata
Release files for ab-testing-analysis 1.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ab_testing-analysis-1.2.8.tar.gz | 8.0 kB | Without provenance | Details for ab_testing-analysis-1.2.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ab_testing_analysis-1.2.8-py3-none-any.whl | Python 3 | none | any | Details for ab_testing_analysis-1.2.8-py3-none-any.whl |
Total release size: 16.2 kB
Release files / ab_testing-analysis-1.2.8.tar.gz
| Download URL | ab_testing-analysis-1.2.8.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e56e3e6c705cc29e7212646647ce8e451fa2b045cebfa0ee27c8b97fa7ebbb79
|
|
BLAKE2b-256 checksum How to use checksums |
c69c98cb3c8c31c4c0ca16d459397b222bb44b70690c20803fd97a69a416b710
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Release files / ab_testing_analysis-1.2.8-py3-none-any.whl
| Download URL | ab_testing_analysis-1.2.8-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c88b1ca229518e377eefa01a41c165309a5b88e698af6539a84aa63c83057599
|
|
BLAKE2b-256 checksum How to use checksums |
6a27cacef7f54880f06a7566ffcd689f3abb64bee9faa5e0dabe4eb22e63bf25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for ab-testing-analysis 1.2.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.