Skip to main content

bbprop

This package provides a statistical test for the difference of beta-binomial proportions.

Installation

pip3 install bbprop

or

pip3 install --user bbprop

Hypothesis test details

The aim of the test is to determine whether two values drawn from beta-binomial distributions are significantly different from one another.

The null hypothesis of the test is that two random variables B0 and B1 have beta-binomial distribtions with parameters theta0 = (n0, alpha0, beta0) and theta1 = (n1, alpha1, beta1), respectively.

The test statistic is the value x = abs(b0/n0 - b1/n1) where b0 and b1 are the number of successes drawn from B0 and B1.

The p-value is then the probability that x is greater than or equal to its observed value, given the predefined null distribution.

Examples

from bbprop import bbprop_cdf, bbprop_test
help(bbprop_cdf)
help(bbprop_test)
bbprop_cdf(0.1, [30, 12], [4, 5], [6, 5])
bbprop_test(0.1, [30, 12], [4, 5], [6, 5])

Release files for bbprop 0.0.7

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

Source distribution (sdist)

Source distribution for bbprop 0.0.7
File Size Uploaded
bbprop-0.0.7.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bbprop 0.0.7
File Interpreter ABI Platform
bbprop-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / bbprop-0.0.7.tar.gz

Download URL bbprop-0.0.7.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8cb9feb52d2e0737d736e79fccbc70fa096ed64eaa0f84250fd8be18c74e86f1
BLAKE2b-256 checksum
How to use checksums
bf8099bb2550a87ede2b458e7ae44309689858d9bdbd348a21178d327d919f5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.10

Release files / bbprop-0.0.7-py3-none-any.whl

Download URL bbprop-0.0.7-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb396aadd368c1b4d16ba1f098ce553bc94a900b380926ecb0a4c126b341a225
BLAKE2b-256 checksum
How to use checksums
587e99543c4f6661ec8e1b8ce4d10aedb00cbd5be42652e4bd91a80ac86e256d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.10

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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