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])
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bbprop-0.0.7.tar.gz | 3.4 kB | Without provenance | Details for bbprop-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bbprop-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for bbprop-0.0.7-py3-none-any.whl |
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
|
Security for bbprop 0.0.7
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.