Catalog PyPI
PACKAGE EXPLORERView in registry

ab-testing-kit

PyPI

Useful functions for A/B testing and data exploration

Versions collected1
Direct dependencies7From release 0.1.5
Last observed20 Oct, 17:45 UTC

README

Version 0.1.5 documentation

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.51 Aug 20247

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:45 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b5f9dade874e30118cbffeb1e09d4a83cde10046365eb7a2549f6d02be2ea6fa