Statistics and research

Binomial probability calculator

Exact binomial probabilities P(X = k), P(X ≤ k), P(X ≥ k) and the full distribution table for n trials with success probability p.

Runs in your browser. What you enter stays on this page and is not uploaded.

Results

P(X = 8)0.114397P(X ≤ 8)0.886669P(X ≥ 8)0.227728
P(X = 8)
0.114396739705
P(X < 8)
0.772271797418
P(X ≤ 8)
0.886668537123
P(X > 8)
0.113331462877
P(X ≥ 8)
0.227728202582
Mean np
6
Variance np(1 − p)
4.2
Standard deviation
2.049390153
Binomial distribution, n = 20, p = 0.3
xP(X = x)P(X ≤ x)P(X ≥ x)
00.000797922660.000797922661
10.00683933710.00763725980.99920208
20.0278458730.0354831320.99236274
30.0716036720.10708680.96451687
40.130420970.237507780.8929132
50.178863050.416370830.76249222
60.191638980.608009810.58362917
70.164261990.77227180.39199019
80.114396740.886668540.2277282
90.0653695660.95203810.11333146
100.0308170810.982855180.047961897
110.0120066550.994861840.017144816
120.00385928190.998721120.0051381615
130.00101783260.999738950.0012788796
140.000218106990.999957060.00026104701
153.7389769e-50.999994454.2940022e-5
165.0075583e-60.999999465.5502531e-6
175.0496387e-70.999999965.4269475e-7
183.6068848e-813.7730881e-8
191.6271661e-911.6620339e-9
203.4867844e-1113.4867844e-11

Cumulative probabilities come from the regularized incomplete beta function, so tiny tail probabilities keep their accuracy.

Method and limits

How to use it

Enter the number of independent trials n, the probability of success on each trial p, and a number of successes k. You get the probability of exactly, at most, fewer than, more than and at least k successes, and the table of the distribution.

Formulas

  • P(X = k) = C(n, k) pk (1 − p)n−k, computed with Loader’s saddle-point form so it stays accurate for n in the millions.
  • P(X ≤ k) = I1−p(n − k, k + 1), the regularized incomplete beta function; upper tails are computed directly, not as 1 minus a sum.
  • Mean np, variance np(1 − p).

Assumptions and limits

  • A fixed number of independent trials with the same probability of success.
  • For sampling without replacement from a small population use the hypergeometric distribution.
  • n up to 1 billion; the table shows the values with non-negligible probability (at most 401 rows).

Worked example

n = 20, p = 0.3, k = 8: P(X = 8) = 0.1144, P(X ≤ 8) = 0.8867, P(X ≥ 8) = 0.2277; mean 6, SD 2.049.

References

Related tools

Share this page

Remind me to visit Contifield

Adds a repeating reminder to your calendar, titled “Contifield Reminder: Visit www.contifield.com”.