Probability mass function for a beta-binomial distribution
Project description
betabernsum
Sums of beta-bernoulli variables
Installation
For Python:
pip3 install betabernsum
or
pip3 install --user betabernsum
For R:
library(devtools)
install_github("anthony-aylward/betabernsum")
Examples
In Python:
from betabernsum import bbs_pmf, bbs_cdf, bbs_test
help(bbs_pmf)
help(bbs_cdf)
help(bbs_test)
bbs_pmf(5, [30, 12], [4, 5], [6, 5], independent=False)
bbs_cdf(5, [30, 12], [4, 5], [6, 5], independent=False)
bbs_test(5, [30, 12], [4, 5], [6, 5], independent=False)
In R:
library(betabernsum)
help(dbbs)
help(pbbs)
help(bbs_test)
dbbs(5, c(30, 12), shape1 = c(4, 5), shape2 = c(6, 5), independent = FALSE)
pbbs(5, c(30, 12), shape1 = c(4, 5), shape2 = c(6, 5), independent = FALSE)
bbs_test(5, c(30, 12), shape1 = c(4, 5), shape2 = c(6, 5), independent = FALSE)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bbpmf-0.0.3.tar.gz
(2.5 kB
view details)
Built Distribution
bbpmf-0.0.3-py3-none-any.whl
(3.0 kB
view details)
File details
Details for the file bbpmf-0.0.3.tar.gz
.
File metadata
- Download URL: bbpmf-0.0.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef027b715ffdb18224b3791211ec72a89518c43e287d0cc9fafb5dd28ec4f93e |
|
MD5 | 96905832b437582be9458261448740df |
|
BLAKE2b-256 | c381b8ead3a4f8da24738eb8d8ebb6dc1c0f06193c135b18724f73ac709a4d03 |
File details
Details for the file bbpmf-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: bbpmf-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da19c4a5eda3058fdd1d3dea0f89d565ce747a58f365965b70f1def43ff92125 |
|
MD5 | 25ae25bcd77c0a31e601e70cc8c4bc46 |
|
BLAKE2b-256 | d3f354277dc8998f4affa4a8a3f7495344b09bb75d3560eb141dd1d0e01fc242 |