3B

Conditional probability

Conditional probability P(A | B) from two-way tables, Venn diagrams and the formula P(A ∩ B) ÷ P(B).

Extra information changes probabilities. The chance a random person is over $180$ cm tall is small. The chance given that they play professional basketball is much bigger. Conditional probability is how we update a probability once we know something has happened.

Shrinking the sample space

$P(A \mid B)$ is read "the probability of $A$ given $B$". Once we know $B$ has happened, every outcome outside $B$ is off the table. So we count only inside $B$.

Example 1●

A die is rolled and shows an even number. What is the probability it is a $6$?

New sample space: $\{2, 4, 6\}$
Given 'even', the only possible outcomes are 2, 4 and 6.
$P(6 \mid \text{even}) = \dfrac13$
One of these three is a 6.

Without the extra information, $P(6) = \tfrac16$. Knowing the roll was even doubled the chance.

From a two-way table

Example 2●●

$50$ students were asked whether they own a pet ($P$) and whether they learn a musical instrument ($M$).

$M$$M'$Total
$P$$12$$18$$30$
$P'$$8$$12$$20$
Total$20$$30$$50$

Find (a) $P(M \mid P)$ (b) $P(P \mid M)$.

(a) $P(M \mid P) = \dfrac{12}{30} = 0.4$
Given P, we look only at the P row: 30 students. Of those, 12 learn music.
(b) $P(P \mid M) = \dfrac{12}{20} = 0.6$
Given M, we look only at the M column: 20 students. Of those, 12 own a pet.

The formula

Example 2 used $\dfrac{n(A \cap B)}{n(B)}$. Divide the top and bottom by the total, and the counts become probabilities:

Conditional probability
$$P(A \mid B) = \frac{P(A \cap B)}{P(B)} = \frac{n(A \cap B)}{n(B)}$$
Example 3●●

$P(A) = 0.5$, $P(B) = 0.4$ and $P(A \cup B) = 0.7$. Find $P(A \mid B)$.

$P(A \cap B) = 0.5 + 0.4 - 0.7 = 0.2$
The formula needs the overlap. Get it from the addition rule.
$P(A \mid B) = \dfrac{0.2}{0.4} = 0.5$
Divide the overlap by the probability of the given event, B.

Your turn

Two coins are tossed. Given that at least one shows a head, what is the probability that both are heads?

Show the working

The outcomes are HH, HT, TH, TT. "At least one head" removes TT, leaving three equally likely outcomes. Only HH has two heads, so the probability is $\dfrac13$, not $\dfrac12$.

Flashcards
$P(A mid B)$
$\dfrac{P(A \cap B)}{P(B)}$: divide by the event you are given.
'Given that' means
Shrink the sample space to that event, then count inside it.
Practice
  1. A die shows an even number. What is the probability it is a $6$?

  2. $P(A \cap B) = 0.12$ and $P(B) = 0.4$. Find $P(A \mid B)$.

  3. Of $80$ people, $32$ wear glasses ($G$), $20$ are left-handed ($L$) and $8$ are both. Find $P(L \mid G)$ as a decimal.

  4. Using the same $80$ people, find $P(G \mid L)$ as a decimal.

  5. Two coins are tossed. Given that at least one is a head, the probability of two heads is:

  6. $P(A) = 0.6$ and $P(A \cap B) = 0.3$. Find $P(B \mid A)$.

  7. In a two-way table, to find $P(\text{Year 10} \mid \text{plays sport})$ you divide by:

  8. $P(A) = 0.5$, $P(B) = 0.4$ and $P(A \cup B) = 0.75$. Find $P(A \mid B)$.

  9. Challenge: two dice are rolled and the total is $8$. Find the probability that at least one die shows a $6$, as a decimal.

  10. Challenge: $P(A) = 0.5$, $P(B) = 0.25$ and $P(B \mid A) = 0.3$. Find $P(A \mid B)$.

Formula sheet