A-B_testing_kit
ab-testing-kit is a Python package designed to facilitate A/B testing for data analysis. It provides utilities to perform statistical tests to compare two groups and determine if there are significant differences between them.
Features
- Normality Test: Check if the data in both test and control groups follow a normal distribution using the Shapiro-Wilk test.
- Variance Equality Test: Assess if the variances between two groups are equal using Levene’s test.
- A/B Testing: Perform A/B testing using Student’s T-test, Welch’s T-test, or Mann-Whitney U test based on the data characteristics.
Installation
You can install ab-testing-kit from PyPI using pip:
pip install ab-testing-kit
Usage
Here's a quick guide on how to use ab-testing-kit for performing A/B testing.
Importing the Package
from ab_testing_kit import ab_test
Sample data
test_group = pd.DataFrame({ 'metric': [2.5, 3.6, 3.8, 2.9, 3.4] })
control_group = pd.DataFrame({ 'metric': [3.2, 3.3, 2.8, 3.0, 3.1] })
Perform A/B testing
`result = ab_test(test_group, control_group, column='metric', alpha=0.05, center='mean')
print("Statistic:", result['statistic']) print("P-value:", result['pvalue'])`
Functions
_normality_test(test, control, column, alpha) Tests if the data in both test and control groups are normally distributed.
Metadata
Release files for ab-testing-kit 0.1.5
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 | |
|---|---|---|---|---|
| ab_testing_kit-0.1.5.tar.gz | 5.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ab_testing_kit-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / ab_testing_kit-0.1.5.tar.gz
| Download URL | ab_testing_kit-0.1.5.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d11622c627dcd8e3da332b7bef1f1bdf915ad6c2c42118ed834f863fe70aff58
|
|
BLAKE2b-256 checksum How to use checksums |
a2b959a48726653cb1a6e15b155d5442c53acc875b7d77655da69a4b9ff8f17c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.9
|
Release files / ab_testing_kit-0.1.5-py3-none-any.whl
| Download URL | ab_testing_kit-0.1.5-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4586fb6ba0fdbdbd28d5fb6a9baee753210e862f11e18c8023c1f5d6003ee0eb
|
|
BLAKE2b-256 checksum How to use checksums |
850c21e224c0469096d70d043451b7b0f752f237909d7cf4b6de4280d24a64bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.9
|
Security for ab-testing-kit 0.1.5
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.