Description Usage Arguments Details Value References Author(s) Examples
Density, distribution function, quantile function and random generation for the Poisson binomial distribution with the option of using the ShiftConvolvePoibin method.
1 2 3 4 5 6 7 |
x |
Either a vector of observed numbers of successes (or vector of quantiles as dbinom/pbinom refers to) or NULL. If NULL, probabilities of all possible observations are returned. |
probs |
Vector of probabilities of success of each Bernoulli trial. |
method |
Character string that specifies the method of computation
and must be either |
log.p |
logical; if TRUE, probabilities p are given as log(p). |
lower.tail |
Logical value indicating if results are P[X ≤ x]
(if |
p |
Vector of probabilities for computation of quantiles. |
n |
Number of observations. If |
Computing the Poisson Binomial Distribution using ShiftConvolve
A package which uses exponential shifting and Fast Fourier Transformations with the minFFT library to compute the distribution of the Poisson Binomial Distribution
dpoisbin
gives the density, ppoisbin
computes the distribution
function, qpoisbin
gives the quantile function and rpoisbin
generates random deviates.
Peres, N., Lee, A., and Keich, U. (2020). Exactly computing the tail of the Poisson-Binomial Distribution. arXiv:2004.07429
Andrew Ray Lee, Noah Peres and Uri Keich
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.