Observed since 20 Oct, 17:29 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A package for streamlining the design, analysis, and decision-making of A/B tests
This package aims to make it easier for data scientists, analysts, and engineers to conduct statistically sound experiments. At its core is the ABLisk class. This class provides tools for designing, analyzing, and simulating A/B tests.
ABLiskThe main class provides the following methods and attributes:
ABLisk(bcr, mde, alpha = 0.05, power = 0.8, is_absolute_variation: bool = True, is_two_tailed: bool = True)
mde is absolute (default: True).get_sample_size()
get_experiment_results(n_ctrl, p_ctrl, n_trmt, p_trmt, plot, full_summary, from_dataset, dataset)
n_ctrl, n_trmt: Sample sizes of the control and treatment groups.p_ctrl, p_trmt: Conversion rates for control and treatment groups.plot: for visualization('KDE' or 'Confidence Intervals') or results summary and recommendations (None).full_summary: whether to pass the results summary as a string (to be printed) or as a tuple containing pieces of this same summary.from_dataset: whether to get sample size and proportions from an experiment dataset or bay manually inserting in their respective arguments.dataset: the csv file path or DataFrame with three arbitrary named columns describing the user ID, the variants ("treatment" or "control"), and whether the user as converted ({"yes", "no"} case-insensitive, 1, 0)pip install ablisk
from ablisk.core import ABLisk
ab_test = ABLisk(bcr = 0.1, mde = 0.02, alpha = 0.05, power = 0.8)
sample_size = ab_test.get_sample_size()
print(f"Required Sample Size: {sample_size}")
ab_test.get_experiment_results(n_ctrl = 500, p_ctrl = 0.1, n_trmt = 500, p_trmt = 0.12, plot_type = 'Error Bars')
💡 A more detailed example regarding the implementation of this tool is available on its respective notebook. You can view the notebook using nbviewer due to GitHub rendering limitations here.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please fork the repository, create a feature branch, and submit a pull request.
This project would not be possible without the massive contribution of Evan Miller regarding A/B testing methodologies and tools. Refer to his A/B Testing Sample Size Calculator for further details.
ablisk is the statistical engine of xplendid – the AI-assisted web application version for this module.
Connect with me:
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.4 | 24 Jan 2026 | 4 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 17:29 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:749c62c047c0658beaf35472831fcb816794b7c16fc95ccd82c84b0715bb4801