Parameters $\mathbf {p} \in [0,1]^{n)$ — success probabilities for each of the n trials k ∈ { 0, …, n } $\sum \limits _{A\in F_{k))\prod \limits _{i\in A}p_{i}\prod \limits _{j\in A^{c))(1-p_{j})$ $\sum \limits _{l=0}^{k}\sum \limits _{A\in F_{l))\prod \limits _{i\in A}p_{i}\prod \limits _{j\in A^{c))(1-p_{j})$ $\sum \limits _{i=1}^{n}p_{i)$ $\sigma ^{2}=\sum \limits _{i=1}^{n}(1-p_{i})p_{i)$ ${\frac {1}{\sigma ^{3))}\sum \limits _{i=1}^{n}(1-2p_{i})(1-p_{i})p_{i)$ ${\frac {1}{\sigma ^{4))}\sum \limits _{i=1}^{n}(1-6(1-p_{i})p_{i})(1-p_{i})p_{i)$ $\prod \limits _{j=1}^{n}(1-p_{j}+p_{j}e^{t})$ $\prod \limits _{j=1}^{n}(1-p_{j}+p_{j}e^{it})$ $\prod \limits _{j=1}^{n}(1-p_{j}+p_{j}z)$ 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 $p_{1},p_{2},\dots ,p_{n)$ . The ordinary binomial distribution is a special case of the Poisson binomial distribution, when all success probabilities are the same, that is $p_{1}=p_{2}=\cdots =p_{n)$ .

## Definitions

### Probability Mass Function

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

$\Pr(K=k)=\sum \limits _{A\in F_{k))\prod \limits _{i\in A}p_{i}\prod \limits _{j\in A^{c))(1-p_{j})$ where $F_{k)$ is the set of all subsets of k integers that can be selected from {1,2,3,...,n}. For example, if n = 3, then $F_{2}=\left\{\{1,2\},\{1,3\},\{2,3\}\right\)$ . $A^{c)$ is the complement of $A$ , i.e. $A^{c}=\{1,2,3,\dots ,n\}\setminus A$ .

$F_{k)$ will contain $n!/((n-k)!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, $F_{15)$ 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  

$\Pr(K=k)={\begin{cases}\prod \limits _{i=1}^{n}(1-p_{i})&k=0\\{\frac {1}{k))\sum \limits _{i=1}^{k}(-1)^{i-1}\Pr(K=k-i)T(i)&k>0\\\end{cases))$ where

$T(i)=\sum \limits _{j=1}^{n}\left({\frac {p_{j)){1-p_{j))}\right)^{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=2^{b)$ is a power of two, denoting by $f(p_{i:j})$ the Poisson binomial of $p_{i},\dots ,p_{j)$ and $*$ the convolution operator, we have $f(p_{1:2^{b)))=f(p_{1:2^{b-1)))*f(p_{2^{b-1}+1:2^{b)))$ .

Another possibility is using the discrete Fourier transform.

$\Pr(K=k)={\frac {1}{n+1))\sum \limits _{l=0}^{n}C^{-lk}\prod \limits _{m=1}^{n}\left(1+(C^{l}-1)p_{m}\right)$ where $C=\exp \left({\frac {2i\pi }{n+1))\right)$ and $i={\sqrt {-1))$ .

Still other methods are described in "Statistical Applications of the Poisson-Binomial and conditional Bernoulli distributions" by Chen and Liu.

## 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:

$\mu =\sum \limits _{i=1}^{n}p_{i)$ $\sigma ^{2}=\sum \limits _{i=1}^{n}(1-p_{i})p_{i)$ For fixed values of the mean ($\mu$ ) and size (n), the variance is maximal when all success probabilities are equal and we have a binomial distribution. When the mean is fixed, the variance is bounded from above by the variance of the Poisson distribution with the same mean which is attained asymptotically[citation needed] as n tends to infinity.

### 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.

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 $p_{1},p_{2},\dots ,p_{n)$ . This conjecture was proved by Erwan Hillion and Oliver Johnson in 2015. The Shepp-Olkin monotonicity conjecture, also from the same 1981 paper, is that the entropy is monotone increasing in $p_{i)$ , if all $p_{i}\leq 1/2$ . This conjecture was also proved by Hillion and Johnson, in 2019 

### Chernoff bound

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

{\begin{aligned}\Pr[S\geq s]&\leq \exp(-st)\operatorname {E} \left[\exp \left[t\sum _{i}X_{i}\right]\right]\\&=\exp(-st)\prod _{i}(1-p_{i}+e^{t}p_{i})\\&=\exp \left(-st+\sum _{i}\log \left(p_{i}(e^{t}-1)+1\right)\right)\\&\leq \exp \left(-st+\sum _{i}\log \left(\exp(p_{i}(e^{t}-1))\right)\right)\\&=\exp \left(-st+\sum _{i}p_{i}(e^{t}-1)\right)\\&=\exp \left(s-\mu -s\log {\frac {s}{\mu ))\right),\end{aligned)) where we took ${\textstyle t=\log \left(s\left/\sum _{i}p_{i}\right.\right)}$ . This is similar to the tail bounds of a binomial distribution.

## Computational methods

The reference  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, 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.