All formulas

Probability distributions

Binomial probability mass

prob.binomial-pmfAlso called binomial pmf, binomial probability, binom pmf, binomial

P(k)=(nk)pk(1−p)n−kP(k) = \binom{n}{k} p^{k} (1 - p)^{n - k}

Probability of exactly k successes in n independent trials, each succeeding with probability p.

Notation

nn

number of trials

n ∈ ℤ, n ≥ 1

kk

number of successes

k ∈ {0, …, n}

pp

success probability per trial

p ∈ (0, 1)

P(k)P(k)

Result: the probability

scalar

Worked examples

Each result is solved exactly and confirmed by two independent computations.

  1. Given

    n=4,k=2,p=0.5n = 4, k = 2, p = 0.5

    Result

    P(k)=38\displaystyle P(k) = \frac{3}{8}

    ≈ 0.375

  2. Given

    n=5,k=0,p=0.2n = 5, k = 0, p = 0.2

    Result

    P(k)=10243125\displaystyle P(k) = \frac{1024}{3125}

    ≈ 0.32768

  3. Given

    n=3,k=1,p=1/3n = 3, k = 1, p = 1/3

    Result

    P(k)=49\displaystyle P(k) = \frac{4}{9}

    ≈ 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

    doi.org
  • 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.

    dlmf.nist.gov