Poisson Binomial
The Poisson binomial distribution is the discrete probability distribution of a sum of independent Bernoulli trials that are not necessarily identically distributed. That is, it is the number of successes in a sequence of n independent yes/no experiments where the success probabilities vary.
The package contains a single class PoissonBinomial.
Parameters: p : array-like the probabilities of success for each of the Bernouilli trials
Attributes: pmf : array-like probability mass function the probability of n successes where 0<=n<=len(p) cdf : array-like, cumulative distribution function the probability of n or less successes where 0<=n<=len(p)
Methods:
x_or_less(x) : float, probability of achieving x or less successes
x_or_more(x) : float, probability of achieving x or more successes
The class PoissonBinomial implements a closed-form expression for the cdf of the Poisson binomial distribution,derived in "On computing the distribution function for the Poisson binomial distribution" by Yili Hong (2013).
The approach is based on finding the discrete fourier transform function for the characteristic function (CF) for the Poisson binomial distribution.
Release files for poisson-binomial 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| poisson_binomial-0.0.2.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| poisson_binomial-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.2 kB
Release files / poisson_binomial-0.0.2.tar.gz
| Download URL | poisson_binomial-0.0.2.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0024472bd4224b0ee53892ea2a57171cba4b3b6f2e9aead26d96b1510617d4c
|
|
BLAKE2b-256 checksum How to use checksums |
8ad20305d34bc467011a5dbaee4682540170adfef1a08c943e6a342e3f6c50e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Release files / poisson_binomial-0.0.2-py3-none-any.whl
| Download URL | poisson_binomial-0.0.2-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49b473720e8ccc1d7254e9b8b711da92b9b47063fde36a40bf8b47bad0688d27
|
|
BLAKE2b-256 checksum How to use checksums |
b04a4cdccf64f0fe900c072345f93a3880b21caa85c3c33450c7cf1c11f57dc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|