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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ab_testing-analysis-0.2.6.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.6.tar.gz
Algorithm Hash digest
SHA256 cd697436a607543015813d6b4dc085bac7b4f2bee9a62376cf9c16c6416f7f46
MD5 c5b7a92687a78d1413090cd5cbd7cc01
BLAKE2b-256 8095b926b4e2b2ff648ca7489b1549ed363dccd0acab6cc9ecce0fc2ef60db5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ab_testing_analysis-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f60e49a2e3ac239cbe35255cb26990141abf76ee4b29f996aefc06858d73921a
MD5 a8e82736c088fbc001c4c48854b41f02
BLAKE2b-256 3888cc6a6adfc24a00b01b30ce555948d420dc8a31de6702703b21762a28f286

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