Poisson binomial distribution

From testwiki
Revision as of 08:39, 3 February 2025 by 212.237.172.20 (talk) (Should be P1...Pn, as P0 is not defined)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Template:Probability distribution In probability theory and statistics, the Poisson binomial distribution is the discrete probability distribution of a sum of independent Bernoulli trials that are not necessarily identically distributed. The concept is named after Siméon Denis Poisson.

In other words, it is the probability distribution of the number of successes in a collection of n independent yes/no experiments with success probabilities p1,p2,,pn. The ordinary binomial distribution is a special case of the Poisson binomial distribution, when all success probabilities are the same, that is p1=p2==pn.

Definitions

Probability Mass Function

The probability of having k successful trials out of a total of n can be written as the sum [1]

Pr(K=k)=AFkiApijAc(1pj)

where Fk is the set of all subsets of k integers that can be selected from {1,2,3,...,n}. For example, if n = 3, then F2={{1,2},{1,3},{2,3}}. Ac is the complement of A, i.e. Ac={1,2,3,,n}A.

Fk will contain n!/((nk)!k!) elements, the sum over which is infeasible to compute in practice unless the number of trials n is small (e.g. if n = 30, F15 contains over 1020 elements). However, there are other, more efficient ways to calculate Pr(K=k).

As long as none of the success probabilities are equal to one, one can calculate the probability of k successes using the recursive formula [2] [3]

Pr(K=k)={i=1n(1pi)k=01ki=1k(1)i1Pr(K=ki)T(i)k>0

where

T(i)=j=1n(pj1pj)i.

The recursive formula is not numerically stable, and should be avoided if n is greater than approximately 20.

An alternative is to use a divide-and-conquer algorithm: if we assume n=2b is a power of two, denoting by f(pi:j) the Poisson binomial of pi,,pj and * the convolution operator, we have f(p1:2b)=f(p1:2b1)*f(p2b1+1:2b).

More generally, the probability mass function of a Poisson binomial can be expressed as the convolution of the vectors P1,,Pn where Pi=[1pi,pi]. This observation leads to the Direct Convolution (DC) algorithm for computing Pr(K=0) through Pr(K=n):

// PMF and nextPMF begin at index 0
function DC(p1,,pn) is 
     declare new PMF array of size 1
     PMF[0] = [1]
     for i = 1 to n do 
          declare new nextPMF array of size i + 1
          nextPMF[0] = (1 - pi) * PMF[0]
          nextPMF[i] = pi * PMF[i - 1]
          for k = 1 to i - 1 do
               nextPMF[k] = pi * PMF[k - 1] + (1 - pi) * PMF[k]
          repeat
          PMF = nextPMF
     repeat
     return PMF
end function

Pr(K=k)will be found in PMF[k]. DC is numerically stable, exact, and, when implemented as a software routine, exceptionally fast for n2000. It can also be quite fast for larger n, depending on the distribution of the pi.[4]

Another possibility is using the discrete Fourier transform.[5]

Pr(K=k)=1n+1l=0nClkm=1n(1+(Cl1)pm)

where C=exp(2iπn+1) and i=1.

Still other methods are described in "Statistical Applications of the Poisson-Binomial and conditional Bernoulli distributions" by Chen and Liu[6] and in "A simple and fast method for computing the Poisson binomial distribution function" by Biscarri et al.[4]

Cumulative distribution function

The cumulative distribution function (CDF) can be expressed as:

Pr(Kk)=l=0kAFliApijAc(1pj) ,

where Fl is the set of all subsets of size l that can be selected from {1,2,3,...,n}.

It can be computed by invoking the DC function above, and then adding elements 0 through k of the returned PMF array.

Properties

Mean and Variance

Since a Poisson binomial distributed variable is a sum of n independent Bernoulli distributed variables, its mean and variance will simply be sums of the mean and variance of the n Bernoulli distributions:

μ=i=1npi
σ2=i=1n(1pi)pi

Entropy

There is no simple formula for the entropy of a Poisson binomial distribution, but the entropy is bounded above by the entropy of a binomial distribution with the same number parameter and the same mean. Therefore, the entropy is also bounded above by the entropy of a Poisson distribution with the same mean.[7]

The Shepp–Olkin concavity conjecture, due to Lawrence Shepp and Ingram Olkin in 1981, states that the entropy of a Poisson binomial distribution is a concave function of the success probabilities p1,p2,,pn.[8] This conjecture was proved by Erwan Hillion and Oliver Johnson in 2015.[9] The Shepp–Olkin monotonicity conjecture, also from the same 1981 paper, is that the entropy is monotone increasing in pi, if all pi1/2. This conjecture was also proved by Hillion and Johnson, in 2019.[10]

Chernoff bound

The probability that a Poisson binomial distribution gets large, can be bounded using its moment generating function as follows (valid when sμ and for any t>0):

Pr[Ss]exp(st)E[exp[tiXi]]=exp(st)i(1pi+etpi)=exp(st+ilog(pi(et1)+1))exp(st+ilog(exp(pi(et1))))=exp(st+ipi(et1))=exp(sμslogsμ),

where we took t=log(s/μ). This is similar to the tail bounds of a binomial distribution.

Approximation by Binomial Distribution

A Poisson binomial distribution PB can be approximated by a binomial distribution B where μ, the mean of the pi, is the success probability of B. The variances of PB and B are related by the formula

Var(PB)=Var(B)i=1n(piμ)2

As can be seen, the closer the pi are to μ, that is, the more the pi tend to homogeneity, the larger PB's variance. When all the piare equal to μ, PB becomes B, Var(PB)=Var(B), and the variance is at its maximum.[1]

Ehm has determined bounds for the total variation distance of PB and B, in effect providing bounds on the error introduced when approximating PB with B. Let ν=1μ and d(PB,B) be the total variation distance of PB and B. Then

d(PB,B)(1μn+1νn+1)i=1n(piμ)2((n+1)μν)

d(PB,B)Cmin(1,1nμν)i=1n(piμ)2

where C1124.

d(PB,B) tends to 0 if and only if Var(PB)/Var(B) tends to 1.[11]

Approximation by Poisson Distribution

A Poisson binomial distribution PB can also be approximated by a Poisson distribution Po with mean λ=i=1npi. Barbour and Hall have shown that

132min(1λ,1)i=1npi2d(PB,Po)1ϵλλi=1npi2

where d(PB,B) is the total variation distance of PB and Po.[12] It can be seen that the smaller the pi, the better Po approximates PB.

As Var(Po)=λ=i=1npi and Var(PB)=i=1npii=1npi2, Var(Po)>Var(PB); so a Poisson binomial distribution's variance is bounded above by a Poisson distribution with λ=i=1npi, and the smaller the pi, the closer Var(Po) will be to Var(PB).

Computational methods

The reference [13] discusses techniques of evaluating the probability mass function of the Poisson binomial distribution. The following software implementations are based on it:

  • An R package poibin was provided along with the paper,[13] which is available for the computing of the cdf, pmf, quantile function, and random number generation of the Poisson binomial distribution. For computing the PMF, a DFT algorithm or a recursive algorithm can be specified to compute the exact PMF, and approximation methods using the normal and Poisson distribution can also be specified.
  • poibin - Python implementation - can compute the PMF and CDF, uses the DFT method described in the paper for doing so.

See also

Template:Portal

References

Template:ProbDistributions