Menu
Sign up Sign in

AI SL · 13.2

Probability Distributions

13.2.4

The binomial distribution

13.2.4

The binomial distribution

Target: I can test a situation against the four conditions for a binomial distribution and say which condition fails. (+3 more)

By the end of this section

Key points

The four conditions

  • A random variable X is binomial when there is a fixed number of trials, n.
  • Each trial has two outcomes: a success or a failure.
  • The trials are independent of each other.
  • The probability of success, p, is the same in every trial.
  • Choosing without replacement from a small group breaks the last two conditions. Choosing a few from a very large population does not.

The notation

  • If X is binomial with n trials and probability of success p, write X ~ B(n, p). Read it as "X is distributed binomially".
  • X counts the number of successes. It can only take the values 0, 1, 2, …, n.
  • n and p are the parameters. Success means the thing X counts, whatever the context calls it.
  • Always define X and write X ~ B(n, p) before you use the calculator.

Which probability do I need?

  • Exactly k: binomial pdf, \(P(X = k)\).
  • At most k: binomial cdf with lower = 0 and upper = k, \(P(X \le k)\).
  • X is a whole number, so \(P(X < k) = P(X \le k-1)\).
  • \(P(X > k) = 1 - P(X \le k)\) and \(P(X \ge k) = 1 - P(X \le k-1)\).
  • \(P(a \le X \le b) = P(X \le b) - P(X \le a-1)\). On the calculator, set lower = a and upper = b.

On the calculator

Binomial pdf: exactly k

  • Enter n, p and the value k.
  • The answer is the probability of exactly k successes, P(X = k).
  • Write the setting you used: n, p and x.

Screenshot and video to come

Binomial cdf: at most k, or between a and b

  • Enter n, p, a lower value and an upper value.
  • The answer is the probability that X lies from the lower to the upper value, inclusive.
  • For P(X ≤ k) set lower = 0 and upper = k.
  • Write the settings you used: n, p, lower and upper.

Screenshot and video to come

Explore: the binomial distribution

n trials, each a success with probability p. X is the number of successes. Choose which values of X to add up, or press a bar.

=

E(X) = np
Var(X) = np(1 − p)
Standard deviation

Move a slider to change the distribution.

  1. Set p = 0.5. What do you notice about the shape? What happens as p moves towards 0 or towards 1?
  2. Where is the tallest bar, compared with E(X) = np?
  3. Set lower = 3 and upper = n. Which single "at most" probability would you take away from 1 to get the same answer?
  4. Keep p fixed and make n larger. What happens to the spread, and to the height of the tallest bar?

Worked examples

Problems like the ones in class. Pick one, try it, then open the working.
Is it binomial?

A bag holds 6 red counters and 4 green counters. Three counters are taken out at random, one after the other, and not put back. X is the number of red counters taken. Can X be modelled by a binomial distribution? First find the probability that the second counter is red, given that the first was red.

Working
  1. Fixed number of trials?

    Yes: 3 counters.

    A fixed number of trials is the first condition.

  2. Two outcomes?

    Yes: red or green.

    Red is a success, green a failure.

  3. Same probability each time?

    P(1st red) = 6/10 = 0.6. P(2nd red | 1st red) = 5/9 = 0.556

    After a red counter is removed, 5 reds are left among 9 counters. The probability changed.

  4. Conclude

    Not binomial.

    The trials are not independent and p is not constant, because the counters are not put back.

Video walkthrough coming
Writing X ~ B(n, p)

A large batch of light bulbs contains 8% that are faulty. A sample of 25 bulbs is chosen at random. X is the number of faulty bulbs in the sample. Show that X is binomial and write down its distribution. Give the value of p.

Working
  1. Check the conditions

    25 trials; faulty or not; independent (large batch); p = 0.08 each time.

    A sample of 25 from a large batch changes the proportion by almost nothing, so the trials count as independent.

  2. Name n and p

    n = 25, p = 0.08

    n is the number of trials. p is the probability of a success, the thing X counts.

  3. Write it

    X ~ B(25, 0.08)

    Read it as: X is distributed binomially with n = 25 and p = 0.08.

Video walkthrough coming
Exactly k: the pdf

Each loaf from a bakery is underbaked with probability 0.15, independently of the others. A box holds 12 loaves. X is the number of underbaked loaves in a box. Find the probability that exactly 3 loaves are underbaked.

Working
  1. Define X

    X ~ B(12, 0.15)

    State the distribution first.

  2. Choose the pdf

    From the calculator: binomial pdf with n = 12, p = 0.15, x = 3

    Exactly one value of X: use binomial pdf.

  3. Answer

    P(X = 3) = 0.172

    3 significant figures.

Video walkthrough coming
At most k: the cdf

Use the same boxes of 12 loaves, X ~ B(12, 0.15). Find the probability that at most 2 loaves are underbaked.

Working
  1. Choose the cdf

    From the calculator: binomial cdf with n = 12, p = 0.15, lower = 0, upper = 2

    At most 2 adds the probabilities from 0 up to 2. Lower is 0, upper is 2.

  2. Answer

    P(X ≤ 2) = 0.736

    The cdf adds up everything from the lower to the upper value.

Video walkthrough coming
At least k: the upper tail

Each seed in a packet germinates with probability 0.8, independently. A packet has 15 seeds. X is the number that germinate. Find the probability that at least 13 seeds germinate.

Working
  1. Rewrite

    P(X ≥ 13) = 1 − P(X ≤ 12)

    X is a whole number, so the values 13 and above are everything except 0 to 12.

  2. Choose the cdf

    From the calculator: binomial cdf with n = 15, p = 0.8, lower = 0, upper = 12

    Lower is 0, upper is 12.

  3. Subtract

    P(X ≤ 12) = 0.6020, so P(X ≥ 13) = 1 − 0.6020 = 0.398

    A check: set lower = 13 and upper = 15 for the same answer.

Video walkthrough coming
Between two values

A call centre makes 18 calls. Each call independently ends in a sale with probability 0.4. X is the number of sales. Find the probability that there are at least 5 but fewer than 9 sales.

Working
  1. Write with whole numbers

    P(5 ≤ X < 9) = P(5 ≤ X ≤ 8)

    Fewer than 9 means up to 8.

  2. Choose the cdf

    From the calculator: binomial cdf with n = 18, p = 0.4, lower = 5, upper = 8

    Set the lower value to 5 and the upper value to 8.

  3. Answer

    P(5 ≤ X ≤ 8) = 0.643

    Check: P(X ≤ 8) − P(X ≤ 4) = 0.7368 − 0.09417.

Video walkthrough coming