Poisson Binomial Calculator for Varying Trial Probabilities

Enter groups of independent trials and their individual chances. Compare the full success-count distribution to the same number of trials with a single average chance. See which counts enter the selected probability and where the shortcut differs.

Discrete probability

Compare varying success chances with their average

Trial groups and count criterion

Enter trial count and success percentage on each line. Use up to 24 independent trials in total.

Using the average chance gives a higher probability.

Probability for the selected count

At least 3 successes across 4 trials

Varying chances
15.57%
Exact 1557/10000
Same average chance
31.25%
Exact 5/16
Varying minus equal
−15.68 pp
Percentage-point difference
Expected successes
2
Common average chance 50%

Variance changes from 9/25 with the entered chances to 1 with the same average chance.

Possible success counts with entered chances: 0 through 4.

See which counts contribute

Distribution of success counts

Linear scale · tallest bar ≈68.86%

Unequal and equal probability distributionsSide-by-side probabilities for varying chances and an equal chance with the same mean. Selected counts 3 through 4 give 15.57% and 31.25%, respectively.Success count 0–4
Varying chances Same average chance Included counts
View exact probabilities by count
Exact probability for every success count
CountVaryingEqualIncluded
081/100001/16No
1369/25001/4No
23443/50003/8No
3369/25001/4Yes
481/100001/16Yes

Export the probability worksheet

Save input groups, exact probabilities, and which counts enter the selected total.

View CSV text

How to use this calculator

  1. Enter one group per line as trial count followed by success percentage.
  2. Choose At least, At most or Exactly and enter a success count from zero through the total number of trials.
  3. Read the probability difference and each variance. Switch to the log scale to see very small nonzero masses.
  4. Open the exact probabilities by count or download the worksheet CSV.

The Formula

The mathematical logic powering this calculation is:

Let pⱼ be the chance of success on independent trial j. Start with mass M₀(0)=1. When adding trial j, use Mⱼ(k)=(1−pⱼ)Mⱼ₋₁(k)+pⱼMⱼ₋₁(k−1). Probability outside the previously reachable indexes is zero. This multiplies the generating factors (1−pⱼ)+pⱼz, whose zᵏ coefficient is the probability of exactly k successes.

For the comparison, use the same number of trials and replace all pⱼ with p̄=Σpⱼ/n. Both models have mean Σpⱼ. The variance with varying chances equals Σpⱼ(1−pⱼ), and the equal-chance variance equals n p̄(1−p̄). Their variance difference equals Σ(pⱼ−p̄)². The direction and size of the selected probability difference can change with the criterion and the count.

Exactly uses one count. At most adds counts up to and including the threshold. At least adds counts at or above it. The worksheet applies these rules to both distributions and subtracts the equal-chance probability from the varying-chance probability. The difference is shown in percentage points.

Use one through 24 independent trials with two outcomes per trial and groups of positive whole counts. Rates run from 0% through 100% with up to six decimal places. Each group repeats its entered probability for the specified trials. Common integer denominators keep both distributions exact, including a nonterminating average chance. Percent labels and plot positions are rounded. The paired charts share one vertical scale.

Worked Example

If you input:

  • Trial groups: Two trials at 90%, two trials at 10%
  • Criterion: At least 3 successes

Result:

The true varied-chance probability is 15.57%. Replacing all four probabilities by the same 50% gives 31.25%, a difference of −15.68 percentage points. The expected count is 2 in both models.

Frequently Asked Questions

How does this differ from an ordinary binomial calculation?

An ordinary binomial calculation uses the same probability for every trial. Here the trial chances can differ while the two distributions share a mean. They coincide point for point when every entered chance is equal.

Does the equal-chance comparison always overestimate?

The equal-chance model has at least as much variance, but the probability comparison depends on the event. It can overestimate one count criterion and underestimate another. The worksheet compares the exact selected event in both models.

Can a trial have 0% or 100% chance?

Yes. A 0% trial never adds a success. A 100% trial adds one. The distribution and its minimum and maximum possible counts reflect both cases.

Can I model correlated trials or sampling without replacement?

The model assumes independent yes/no trials with probabilities supplied in advance. Correlated outcomes and finite populations sampled without replacement need different probability models.

Similar Calculators