Sums of beta-bernoulli random variables
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
betabernsum-0.1.2.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for betabernsum-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1830d3b2fbee424e51eb8106e622a655556651fd42b6f3c9f6ec49cbe865aad6 |
|
MD5 | b8e608530dc5c73de84f22b6a20afdeb |
|
BLAKE2b-256 | fac6648419c15f1a9bfaa80339547477a784a1c3a529a18e5a858763ba213ced |