Poisson-Binomial {RecordTest} | R Documentation |
The Poisson Binomial Distribution
Description
Density, distribution function, quantile function and random
generation for the Poisson binomial distribution with parameters
size
and prob
.
This is conventionally interpreted as the number of successes in
size * length(prob)
trials with success probabilities prob
.
Usage
dpoisbinom(x, size = 1, prob, log = FALSE)
ppoisbinom(q, size = 1, prob, lower.tail = TRUE, log.p = FALSE)
qpoisbinom(p, size = 1, prob, lower.tail = TRUE, log.p = FALSE)
rpoisbinom(n, size = 1, prob)
Arguments
x , q |
Vector of quantiles. |
size |
The Poisson binomial distribution has |
prob |
Vector with the probabilities of success on each trial. |
log , log.p |
Logical. If |
lower.tail |
Logical. If |
p |
Vector of probabilities. |
n |
Number of observations. |
Details
The Poisson binomial distribution with size = 1
and
prob
has density
for ; where
is the set of all subsets of
integers that can be selected from
.
is computed using Hong (2013) algorithm, see the reference
below.
The quantile is defined as the smallest value such that
, where
is the cumulative distribution function.
Value
dpoisbinom
gives the density, ppoisbinom
gives the
distribution function, qpoisbinom
gives the quantile function
and rpoisbinom
generates random deviates.
The length of the result is determined by x
, q
, p
or n
.
Author(s)
Jorge Castillo-Mateo
References
Hong Y (2013). “On Computing the Distribution Function for the Poisson Binomial Distribution.” Computational Statistics & Data Analysis, 59(1), 41-51. doi:10.1016/j.csda.2012.10.006.