Skip to main content

Tools for statistical analysis of A/B test results.

ABBA provides several statistical tools for analysis of binomial data, typically resulting from A/B tests:

  • Wald and Agresti-Coull confidence intervals on binomial proportions

  • Confidence intervals on the difference and ratio of two binomial proportions

  • Hypothesis tests for inequality of two binomial proportions

  • Multiple test correction for control of familywise error rate

Some simple example usage:

>>> import abba.stats
>>> abba.stats.confidence_interval_on_proportion(
...     num_successes=50, num_trials=200, confidence_level=0.99)
ValueWithInterval(value=0.25, lower_bound=0.17962262748069852, upper_bound=0.33643200973247306)

>>> experiment = abba.stats.Experiment(
...     num_trials=5, baseline_num_successes=50, baseline_num_trials=200)
>>> results = experiment.get_results(num_successes=70, num_trials=190)
>>> results.relative_improvement
ValueWithInterval(value=0.4736842105263157, lower_bound=-0.014130868125315277, upper_bound=0.90421878236700903)
>>> results.two_tailed_p_value
0.047886616311815511

ABBA requires SciPy for underlying statistical functions.

For more info, see the docstrings, unit tests, and the ABBA website (including an interactive Javascript version) at http://www.thumbtack.com/labs/abba/.

Metadata

Release files for ABBA 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ABBA 0.1.0
File Size Uploaded Provenance
ABBA-0.1.0.tar.gz 6.3 kB Without provenance Details

Release files / ABBA-0.1.0.tar.gz

Download URL ABBA-0.1.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b733c8f7b88bfa8e3148396339c163bb3ffdbca661ccea334080d4aa5453ea53
BLAKE2b-256 checksum
How to use checksums
a931a4625be8bdd38abaf442c066fc8f2ee217aba448ec9c298e1ec0f08b4e1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ABBA 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page