bbprop-0.0.7
توضیحات
Hypothesis test for difference of beta-binomial proportions
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bbprop-0.0.7 |
| نام | bbprop |
| نسخه کتابخانه | 0.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Anthony Aylward |
| ایمیل نویسنده | aaylward@salk.edu |
| آدرس صفحه اصلی | https://gitlab.com/aaylward/bbprop |
| آدرس اینترنتی | https://pypi.org/project/bbprop/ |
| مجوز | - |
# bbprop
This package provides a statistical test for the difference of beta-binomial proportions.
## Installation
```sh
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
```python
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])
```
نیازمندی
| مقدار | نام |
|---|---|
| - | bbpmf |
| - | scipy |
نحوه نصب
نصب پکیج whl bbprop-0.0.7:
pip install bbprop-0.0.7.whl
نصب پکیج tar.gz bbprop-0.0.7:
pip install bbprop-0.0.7.tar.gz