How to Calculate a Binomial Probability

Calculates the probability of exactly r successes in n trials with success probability p, as nCr × p^r × (1−p)^(n−r).

This is the probability of getting exactly rr successes in nn trials when each trial succeeds with probability pp.

P(X=r)=nCrpr(1p)nrP(X = r) = {}_nC_r \, p^r (1-p)^{n-r}

The formula has three parts:

Example

Toss a coin 10 times and ask for exactly 3 heads, so n=10n = 10, r=3r = 3 and p=0.5p = 0.5.

P(X=3)=10C3×0.53×0.57=120×11024=0.1171875P(X = 3) = {}_{10}C_3 \times 0.5^3 \times 0.5^7 = 120 \times \dfrac{1}{1024} = 0.1171875

About 11.7%.

When it applies

The binomial distribution is only valid when all four of these hold:

Drawing tickets without replacing them breaks the third condition, because the probability shifts with every draw. That case needs the hypergeometric distribution instead.

Where it is used

Coin tosses, counts of defective parts, batting averages, the number of people agreeing in a survey. As nn grows, the binomial distribution is well approximated by a normal one.