Skip to main content

A/B testing analysis toolbox for monitoring and reporting experiment results

Project description

A/B-testing

ab-testing-logo

Pypi Format PyPI - Downloads License SocialMedia


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

Installation & Usage

  • Installing the library from pypi - It has only dependency on pandas & numpy
pip install ab-testing-analysis
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

MIT

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

ab_testing-analysis-0.2.7.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

ab_testing_analysis-0.2.7-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file ab_testing-analysis-0.2.7.tar.gz.

File metadata

  • Download URL: ab_testing-analysis-0.2.7.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for ab_testing-analysis-0.2.7.tar.gz
Algorithm Hash digest
SHA256 4cceb8be6ab39dac18d3f5d0d303d0fa42f9676708134854fd01a7293da9c931
MD5 d14b28c7d8a6eb8620b4c89884e084dc
BLAKE2b-256 29f326f57bb3eb2ecd2096264fbb1f1788cf49279b88ebe0f35070c5407e0a32

See more details on using hashes here.

File details

Details for the file ab_testing_analysis-0.2.7-py3-none-any.whl.

File metadata

File hashes

Hashes for ab_testing_analysis-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d497788e7fc2d902b219a0e05e16d1c9d987a4c592a488c2f8d0134a48bbde46
MD5 4294f22328f7b5430cdaed4842573d65
BLAKE2b-256 39b0f4ee3d4116cfab5a28e4388bde13beb2e4168173a07bbc57cb41714b3881

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