8A

Bernoulli trials and binomial probability

Bernoulli trials with two outcomes, binomial experiments with repeated independent trials, the binomial probability formula P(X = k) = nCk p^k q^(n−k), and probabilities of at least one and at most one success.

Many questions in probability come down to repeating the same yes-or-no experiment: does a seed germinate, does a free throw go in, is a part faulty? The binomial formula answers all of them at once, and it links probability to the binomial expansion you already know.

Bernoulli trials

A Bernoulli trial is an experiment with exactly two outcomes, called success ($X = 1$) and failure ($X = 0$). We write $P(\text{success}) = p$ and $P(\text{failure}) = q$, where $q = 1 - p$. For example, rolling a die and recording only "is it a $6$?" is a Bernoulli trial with $p = \tfrac16$.

The binomial probability formula

Take $n = 5$ trials and ask for exactly $2$ successes. One way is SSFFF, with probability $p \cdot p \cdot q \cdot q \cdot q = p^2q^3$, using independence. Every other arrangement of $2$ S's and $3$ F's has the same probability, and there are $\binom52 = 10$ arrangements (choose which $2$ of the $5$ places hold the S's). So $P(X = 2) = 10p^2q^3$.

Binomial probability
$$P(X = k) = \binom{n}{k}p^k q^{n - k}, \qquad k = 0, 1, 2, \ldots, n$$

These are exactly the terms of $(q + p)^n$. Since $q + p = 1$, the probabilities add to $1^n = 1$, as they must.

Example 1●

A die is rolled $5$ times. Find the probability of exactly two sixes.

$P(X = 2) = \binom52\left(\tfrac16\right)^2\left(\tfrac56\right)^3$
Success is rolling a 6, so p = 1/6 and q = 5/6, with n = 5 and k = 2.
$= 10 \times \dfrac{1}{36} \times \dfrac{125}{216} = \dfrac{1250}{7776} \approx 0.1608$
Multiply out: 10 arrangements, each with probability 125/7776.
The binomial distribution

Each bar is P(X = k). Click a bar to get P(X = k), P(X ≤ k) and P(X ≥ k).

Try this

For $X \sim \text{Bin}(8, 0.25)$, calculate $P(X = 2)$ with the formula, then click the bar to check. Use the readout to find $P(X \ge 3)$. Then set $p = 0.5$: why is the chart now symmetric?

At least and at most

"At least one" is quickest by the complement: the only way to fail is to get no successes at all, so $P(X \ge 1) = 1 - q^n$. "At most one" means $X = 0$ or $X = 1$, so add those two terms.

Example 2●●

An archer hits the target with probability $0.3$ on each shot. In $6$ shots, find the probability of at least one hit.

$P(X \ge 1) = 1 - P(X = 0) = 1 - 0.7^6$
The complement of at least one hit is no hits.
$= 1 - 0.117649 \approx 0.8824$
0.7⁶ = 0.117649.
Example 3●●

$10\%$ of items from a machine are faulty. In a box of $8$, find the probability that at most one is faulty.

$P(X \le 1) = 0.9^8 + \binom81(0.1)(0.9)^7$
At most one means 0 or 1 faulty.
$\approx 0.4305 + 0.3826 = 0.8131$
Evaluate each term and add.
Example 4●●●

Each ticket wins a prize with probability $0.2$. How many tickets must you buy for the chance of at least one prize to exceed $95\%$?

$1 - 0.8^n \gt 0.95$, so $0.8^n \lt 0.05$.
P(at least one) = 1 − 0.8ⁿ.
$n \ln0.8 \lt \ln0.05$, so $n \gt \dfrac{\ln0.05}{\ln0.8} \approx 13.4$.
Take logs. ln 0.8 is negative, so dividing by it reverses the inequality.
You need $14$ tickets.
n must be a whole number.

Your turn

A student guesses all $10$ questions of a multiple-choice quiz, each with $4$ options. Find the probability of exactly $3$ correct, to $4$ decimal places.

Show the working

$X \sim \text{Bin}\left(10, \tfrac14\right)$. $P(X = 3) = \binom{10}{3}\left(\tfrac14\right)^3\left(\tfrac34\right)^7 = 120 \times \dfrac{1}{64} \times 0.13348 \approx 0.2503$.

Flashcards
Binomial probability
$P(X = k) = \binom{n}{k}p^k q^{n - k}$, with $q = 1 - p$
Why the nCk factor?
It counts the orders in which $k$ successes can occur among $n$ trials.
At least one success
$1 - q^n$
Practice
  1. Which of these is not a binomial experiment?

  2. A fair coin is tossed $6$ times. Find the probability of exactly $4$ heads, correct to $4$ decimal places.

  3. $X \sim \text{Bin}(5, 0.4)$. Find $P(X = 0)$, correct to $4$ decimal places.

  4. $X \sim \text{Bin}(4, 0.3)$. Find $P(X = 2)$.

  5. For $X \sim \text{Bin}(n, p)$, the probability $P(X = k)$ equals:

  6. A die is rolled $4$ times. Find the probability of at least one six, correct to $4$ decimal places.

  7. Each email is spam with probability $0.05$. Of $10$ emails, find the probability that at most one is spam, correct to $4$ decimal places.

  8. A player wins a game with probability $0.1$. What is the least number of games so that the probability of at least one win is at least $0.99$?

  9. Exam style: $X \sim \text{Bin}(6, p)$ and $P(X = 2) = P(X = 3)$. Find $p$, correct to $2$ decimal places.

  10. Exam style: each seed germinates with probability $0.85$. Find the probability that at least $9$ of $10$ seeds germinate, correct to $4$ decimal places.

Formula sheet