Reading history

The Binomial Distribution

3 min read 1 views

Learn when to use B(n, p), the formula P(X = r) = ⁿCᵣ pʳ qⁿ⁻ʳ, at-least and at-most probabilities, and the mean np and variance npq.

A farmer plants six seeds. Each one has a 20% chance of not growing. What is the chance that exactly one fails? Situations like this, with repeated trials and two outcomes each time, follow the binomial distribution. This lesson shows when to use it, the formula, and how to find the mean and variance quickly.

In this lesson you will learn

  • What a random variable and a probability distribution are
  • The four conditions for a binomial distribution
  • The formula P(X = r) = ⁿCᵣ pʳ qⁿ⁻ʳ
  • How to find “at least” and “at most” probabilities
  • The mean np and variance npq

You should know probability, combinations and the binomial expansion.

Random Variables

A random variable X is a number that depends on chance, such as the number of heads in 3 coin tosses. Its probability distribution lists every possible value with its probability. The probabilities always add up to 1.

X = number of heads in 3 tosses

x          0     1     2     3
P(X = x)  1/8   3/8   3/8   1/8      total = 1

When Is It Binomial?

X follows a binomial distribution, written X ~ B(n, p), when:

  1. There is a fixed number of trials, n.
  2. Each trial has only two outcomes, “success” or “failure”.
  3. The chance of success, p, is the same every time.
  4. The trials are independent.

X counts the number of successes. We write q = 1 − p for the chance of failure.

The Formula

Binomial probability

P(X = r) = ⁿCᵣ pʳ qⁿ⁻ʳ, for r = 0, 1, 2, …, n

Here is why. One way to get r successes, such as SSF…F, has probability pʳqⁿ⁻ʳ. There are ⁿCᵣ ways to choose which trials are the successes. Multiply them together.

A fair coin is tossed 5 times. P(exactly 3 heads)?
n = 5, p = q = ½
P(X = 3) = ⁵C₃ (½)³(½)² = 10/32 = 0.3125

The Seed Example

X = number of seeds that fail,  X ~ B(6, 0.2)

P(X = 0) = 0.8⁶                    = 0.2621
P(X = 1) = 6 × 0.2 × 0.8⁵          = 0.3932
P(X = 2) = 15 × 0.2² × 0.8⁴        = 0.2458
P(X = 3) = 20 × 0.2³ × 0.8³        = 0.0819

P(at most 1 fails) = P(0) + P(1)   = 0.6554
P(at least 1 fails) = 1 − P(0)     = 0.7379
00.10.20.30.400.26210.39320.24630.08240.01556r = number of seeds that failP(X = r)X ~ B(6, 0.2)mean = np = 1.2

Use the complement

“At least one” is almost always quickest as 1 − P(none).

Mean and Variance

For X ~ B(n, p) there are short formulas.

MeasureFormulaSeeds, B(6, 0.2)
Mean (expected value)np1.2
Variancenpq0.96
Standard deviation√(npq)about 0.98

The mean makes sense: 20% of 6 seeds is 1.2 seeds on average.

Guessing in a Test

10 multiple-choice questions, 4 options each.
A student guesses every answer.  X ~ B(10, 0.25)

P(exactly 5 correct) = ¹⁰C₅ (0.25)⁵ (0.75)⁵
                     = 252 × 0.000977 × 0.2373
                     ≈ 0.058

Expected number correct = 10 × 0.25 = 2.5

Guessing gives only about a 6% chance of getting exactly half right.

Common Mistakes

  1. Leaving out ⁿCᵣ. pʳqⁿ⁻ʳ is the chance of one particular order only.
  2. Using binomial when p changes, for example drawing cards without putting them back.
  3. Mixing up “at least” and “more than”. “At least 2” includes 2; “more than 2” does not.
  4. Giving the variance as np. It is npq.

Practice Exercises

Exercise 1. A fair die is rolled 4 times. Find P(exactly two sixes).

Show answer

⁴C₂ (1/6)² (5/6)² = 6 × 25/1296 = 25/216 ≈ 0.116.

Exercise 2. X ~ B(50, 0.1). Find the mean and variance.

Show answer

Mean = 50 × 0.1 = 5. Variance = 50 × 0.1 × 0.9 = 4.5.

Exercise 3. A binomial variable has mean 4 and variance 3. Find n and p.

Show answer

npq ÷ np gives q = 3/4, so p = 1/4. Then n = 4 ÷ (1/4) = 16.

Frequently Asked Questions

Why is it called “binomial”?

The probabilities are the terms of the binomial expansion of (q + p)ⁿ. Since q + p = 1, they add up to 1ⁿ = 1.

What happens when n is very large?

The bar chart becomes smooth and bell-shaped. Then the normal distribution, with mean np and variance npq, gives a good approximation.

Summary

  • Use B(n, p) for n independent trials with two outcomes and a fixed p.
  • P(X = r) = ⁿCᵣ pʳ qⁿ⁻ʳ, where q = 1 − p.
  • “At least one” = 1 − P(none).
  • Mean = np, variance = npq.

Next: The Normal Distribution.

Lessons are also marked complete when you click Next.

Leave a Reply

Your email address will not be published. Required fields are marked *