Probability distributions
Binomial probability mass
prob.binomial-pmfAlso called binomial pmf, binomial probability, binom pmf, binomial
Probability of exactly k successes in n independent trials, each succeeding with probability p.
Notation
number of trials
n ∈ ℤ, n ≥ 1
number of successes
k ∈ {0, …, n}
success probability per trial
p ∈ (0, 1)
Result: the probability
scalar
Worked examples
Each result is solved exactly and confirmed by two independent computations.
Given
Result
≈ 0.375
Given
Result
≈ 0.32768
Given
Result
≈ 0.444444444444
Common mistakes
Swaps p and 1 − p
Successes are weighted by 1 − p and failures by p; this is the probability of k failures.
Fix: Raise p to the power k and 1 − p to the power n − k.
Omits the binomial coefficient
The result is the probability of one particular sequence, not of any arrangement of k successes.
Fix: Multiply by n!/(k!(n − k)!).
Sources
NIST/SEMATECH e-Handbook, §1.3.6.6.18
NIST/SEMATECH e-Handbook of Statistical Methods. https://www.itl.nist.gov/div898/handbook/ Last updated 2022-04-27. doi:10.18434/M32189
DLMF, eq. 26.3.1
NIST Digital Library of Mathematical Functions. https://dlmf.nist.gov/ Release 1.2.8 of 2026-09-15. F. W. J. Olver, A. B. Olde Daalhuis, D. W. Lozier, B. I. Schneider, R. F. Boisvert, C. W. Clark, B. R. Miller, B. V. Saunders, H. S. Cohl, and M. A. McClain, eds.