Skip to main content

A python library dedicated for A/B testing analysis for experiment testing

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 Standar Error
A          19.80%              0.398        0.0178
B          18.80%              0.391        0.0175 
 ----------
z statistic: 0.40	p-value: 0.689
Confidence Interval 95% for A group: 16.31% to 23.29%
Confidence Interval 95% for B group: 15.38% to 22.22%

The Group A fail to perform significantly different than group B.
The P-Value of the test is 0.689 which is above 0.05, hence Null hypothesis Hₒ cannot be rejected. 
 ----------
        Users  Response Group
0  7PI90FXM9P         0     A
1  24WYZXYSO2         0     A
2  A2APLMELIB         0     A
3  XMU2COFEWQ         0     A
4  B9L2IKKMBD         0     A

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.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

ab_testing_analysis-0.2.4-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ab_testing-analysis-0.2.4.tar.gz
Algorithm Hash digest
SHA256 a9027dbe4d9e516897ec38764f17c34d30aaf4bb6c97aa099447bd8dc72104b6
MD5 8cd93d35ee1a770edbaa4ebf536da1d3
BLAKE2b-256 c1f44e400e1d543be52cdd0c828e48855de281ffaef46f7aa81b214b296793fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ab_testing_analysis-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 872954a45eebbee07bfaa5abd9c23bf2aaa9368f5fe1a9bdcc119948044b8565
MD5 72926b4e7fc8720995a1fe25e64e6871
BLAKE2b-256 17f6ae1b3c7d9421e11cc9e6072fe79afb465e35bb4ddced008b5f0d2891ac8e

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