Sub topic 9
Conditional Probability: Shrinking the Sample Space
Prerequisites and the core idea
Assume you can work with fractions, ratios, basic counting, and the notation for events. An event is a set of outcomes, such as “the sum of two dice is 8.”
Conditional probability answers this question:
> What is the probability of event \(A\), given that event \(B\) has already occurred?
It is written as \(P(A\mid B)\), read “the probability of A given B.” Once \(B\) is known, outcomes outside \(B\) are removed from consideration. The new sample space is \(B\).
The formula is
\[ P(A\mid B)=\frac{P(A\text{ and }B)}{P(B)}, \]
provided that \(P(B)\ne 0\).
A dice example
Roll two fair six-sided dice. Let:
- \(A\): the sum is 8
- \(B\): the first die shows an even number
There are 36 equally likely ordered outcomes. Event \(B\) restricts us to the 18 outcomes in which the first die is 2, 4, or 6.
Among those 18 outcomes, the sum is 8 in these three cases:
\[ (2,6),\ (4,4),\ (6,2). \]
Therefore,
\[ P(A\mid B)=\frac{3}{18}=\frac16. \]
Using the formula gives the same result:
\[ P(A\text{ and }B)=\frac{3}{36},\qquad P(B)=\frac{18}{36}, \]
so
\[ P(A\mid B)=\frac{3/36}{18/36}=\frac16. \]
| Quantity | Meaning | Value |
|---|---|---|
| \(P(B)\) | First die is even | \(18/36\) |
| \(P(A\text{ and }B)\) | First die is even and sum is 8 | \(3/36\) |
| \(P(A\mid B)\) | Sum is 8 among outcomes with an even first die | \(1/6\) |
The general multiplication rule
Rearranging the conditional probability formula gives
\[ P(A\text{ and }B)=P(B)P(A\mid B). \]
This rule is useful when the probability of \(B\) is known first, followed by the probability of \(A\) under the condition that \(B\) occurred.
For sequential experiments, ask whether the second probability changes after the first result. Drawing without replacement usually changes it.
from fractions import Fraction
# A bag contains 3 red and 2 blue marbles.
# Two marbles are drawn without replacement.
p_two_red = Fraction(3, 5) * Fraction(2, 4)
print(p_two_red) # 3/10The second factor is \(2/4\), not \(3/5\), because one red marble has already been removed.
Common GRE errors
- Using the original denominator: After conditioning on \(B\), count only outcomes in \(B\).
- Confusing “given” with “and”: \(P(A\mid B)\) is a ratio within \(B\), while \(P(A\text{ and }B)\) is a probability in the original sample space.
- Ignoring order: For two dice, \((2,6)\) and \((6,2)\) are different outcomes.
- Assuming independence: A condition changes the probability unless the events are independent. Independence means \(P(A\mid B)=P(A)\).
Exercise
Two cards are drawn from a standard deck without replacement. What is the probability that the second card is an ace, given that the first card was an ace?
Show answer
There are 3 aces among the 51 remaining cards, so the probability is \(3/51=1/17\).