How to calculate a binomial probability

The binomial probability formula calculates the chance of observing exactly kk successes in nn independent trials.

It applies only when there is a fixed number of trials, each with exactly two possible outcomes, and the probability of success remains constant across every trial.

The setup

Identify the four required parameters: nn (the total number of trials), kk (the target number of successes), pp (the probability of success on a single trial), and 1p1-p (the probability of failure). Verify that the trials are strictly independent.

The steps

  1. Calculate the binomial coefficient, which represents the number of ways to choose kk successes from nn trials: (nk)=n!k!(nk)!\binom{n}{k} = \frac{n!}{k!(n-k)!}.
  2. Compute the probability of the required successes: pkp^k.
  3. Compute the probability of the required failures: (1p)nk(1-p)^{n-k}.
  4. Multiply the components to find the total probability: P(X=k)=(nk)pk(1p)nkP(X = k) = \binom{n}{k} p^k (1-p)^{n-k}.

Checking the result

Verify that the final calculated probability satisfies 0P(X=k)10 \le P(X=k) \le 1. If you calculate P(X=k)P(X=k) for all possible values of kk from 00 to nn, their total sum must equal exactly 11.

Common errors

A frequent mistake is swapping the values of pp and 1p1-p, which evaluates the wrong outcome. Another common error is applying this formula to dependent trials, such as drawing cards from a deck without replacement.

Worked example

A biased coin has a 0.6 probability of landing on heads. If the coin is flipped 5 times, what is the probability it lands on heads exactly 3 times?

Identify parameters: n=5n = 5, k=3k = 3, p=0.6p = 0.6. Calculate the binomial coefficient: (53)=5!3!(53)!=1206imes2=10\binom{5}{3} = \frac{5!}{3!(5-3)!} = \frac{120}{6 imes 2} = 10. Compute success probability: pk=0.63=0.216p^k = 0.6^3 = 0.216. Compute failure probability: (1p)nk=(10.6)53=0.42=0.16(1-p)^{n-k} = (1-0.6)^{5-3} = 0.4^2 = 0.16. Multiply the terms: P(X=3)=10imes0.216imes0.16=0.3456P(X=3) = 10 imes 0.216 imes 0.16 = 0.3456.

FAQ

Run your own problem

References: OpenStax Introductory Statistics, Chapter 4: Discrete Random Variables · Khan Academy, Statistics and Probability: Binomial probability formula

See also