Statistics & probability

Poisson binomial probability calculator for unequal success chances

Calculate the full distribution of a sum of independent Bernoulli trials with unequal success probabilities and a selected count interval.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Calculate the full distribution of a sum of independent Bernoulli trials with unequal success probabilities and a selected count interval.

THE FORMULAP_j(k)=(1−p_j)P_(j−1)(k)+p_jP_(j−1)(k−1); E[X]=Σp_i; Var(X)=Σp_i(1−p_i).

A worked example

For probabilities 0.2, 0.5 and 0.8, the PMF for zero through three successes is 0.08, 0.42, 0.42 and 0.08. Exactly two successes has probability 0.42; the mean is 1.5 and variance 0.57.

Good to know

1–300 independent trial probabilities in [0,1]; requested integer count interval within 0–n. Dynamic-programming PMF/CDF, floating numerical evaluation. No dependence adjustment, fitted-probability uncertainty or Poisson approximation presented as exact.

Count successes when trial chances differ

The ordinary binomial model uses one common success probability for every trial. The Poisson binomial distribution keeps the trials independent but allows each probability to differ. Its random variable is still a count: the number of successful trials, with possible values from zero to the number of entered probabilities. The name does not mean that the count is Poisson-distributed.

Examples include independent components with different reliability estimates or planned trials with different success chances. The input probabilities are treated as supplied constants. The calculator does not infer them from a small sample, account for uncertainty in their estimates or establish independence from the numerical values alone. Those assumptions must come from the application.

The default PMF is symmetric: 0.08, 0.42, 0.42 and 0.08 for zero through three successes0123.08.42.42.08
Scroll across to see the full diagram.
The default PMF is symmetric: 0.08, 0.42, 0.42 and 0.08 for zero through three successes.

Compare this with the Binomial probability calculator. Compute the success-count law for independent Bernoulli trials with different entered probabilities; the ordinary binomial page assumes one shared probability.

Enter probabilities and a count interval

Paste one probability for each Bernoulli trial. Values must lie between zero and one, including the endpoints, and the supported list contains one to three hundred trials. Enter minimum and maximum success counts as integers. Equal endpoints request one exact count; a wider interval adds the probability masses for every included count.

The trial order does not affect the mathematical distribution. Reordering probabilities is therefore a useful check. Keeping a probability of zero or one is also meaningful: a zero-probability trial never contributes a success, while a probability-one trial contributes one certain success. Neither should create a division by zero or require an approximation.

Build the distribution one trial at a time

Before any trial, the probability of zero successes is one. Adding a trial splits each existing mass into a failure contribution at the same count and a success contribution one count higher. The recurrence combines those contributions. Repeating this update constructs the entire probability mass function without enumerating all possible success and failure sequences.

This dynamic program is exact in its probability model and subject to floating-point rounding in its numerical evaluation. Its cost grows quadratically with the number of trials, which motivates the browser input cap. A full PMF gives interval and tail probabilities from one consistent distribution rather than using unrelated approximations for each requested summary.

Read the CDF and interval endpoints carefully

The cumulative probability at k is the chance of at most k successes. An inclusive interval from a to b therefore has probability F(b) minus F(a−1), with the lower boundary handled explicitly when a is zero. For a very small upper tail, directly summing its PMF entries avoids subtracting two numbers extremely close to one.

A request such as at least two successes includes two, three and all larger attainable counts. Exactly two includes only one PMF entry. Stating the endpoints avoids a common ambiguity in verbal probability questions. The output includes the distribution so that the relationship between the selected event and individual counts can be inspected.

Verify the three-trial example

For probabilities 0.2, 0.5 and 0.8, all three fail with probability 0.8 times 0.5 times 0.2, which is 0.08. All three succeed with probability 0.2 times 0.5 times 0.8, also 0.08. The remaining mass is split between one and two successes, each with probability 0.42.

The mean is the sum of the three probabilities, giving 1.5. The variance is 0.2 times 0.8 plus 0.5 times 0.5 plus 0.8 times 0.2, giving 0.57. These moment formulas provide an independent check on the displayed PMF: its weighted mean and variance should agree with those direct sums.

Do not replace unequal chances with an average silently

A binomial distribution with the same number of trials and the average success probability has the same mean, but generally a different variance and PMF. In the default, that substitute uses three trials at probability 0.5 and has variance 0.75 instead of 0.57. Matching the mean is therefore insufficient to match count probabilities.

A Poisson approximation is another distinct approximation that can be useful in suitable rare-event settings. This page does not apply it behind the scenes. The full dynamic-programming result remains the reference within the supported size, and the calculator does not label an approximate model as an exact unequal-probability calculation.

Check independence before using the result

Shared environments can make apparently different trials dependent. For example, several components can fail together because they use one power supply. Listing separate marginal failure probabilities does not encode that shared event. Dependence can change the count distribution even when every individual probability is correctly specified.

Use a joint model or dependence bounds when only partial dependence information is known. Use the ordinary binomial page when every independent trial has the same chance and its simpler presentation is sufficient. This page is for the distinct task of retaining heterogeneous independent probabilities and exposing their full count distribution.

A few questions, answered

Is this a Poisson distribution?

No. It is a sum of independent Bernoulli variables, and its support is the finite range 0 through n.

Can some probabilities be zero or one?

Yes. They represent impossible and certain successes and are handled directly.

Does entering the average probability give the same answer?

It preserves the mean but generally changes the variance and probability distribution.

What does an interval include?

Both entered integer endpoints and every success count between them.

Find your calculator

Start typing to explore the library.