Conditional Probability
For two events in the same probability space, the law of conditional probability states that the probability of given that has happened is
This implies that the probability of is nonzero ().Non-Associativity , unless .
Conditional probabilities are non-associative. This means that generally,
Intuition
The joint probability is the probability that both and happen. It is restricted to the sample points that occur in both events. In a Venn diagram, it can be represented as the overlap between two circles, and :
\begin{document}
\begin{tikzpicture}
% Define circles for A and B
\draw[thick] (0,0) circle (2cm) node[left] {\(A\)};
\draw[thick] (2.5,0) circle (2cm) node[right] {\(B\)};
% Label A ∩ B
\begin{scope}
\clip (0,0) circle (2cm);
\fill[gray, opacity=0.15] (2.5,0) circle (2cm);
\end{scope}
\node at (1.25,0) {\(A \cap B\)};
% Label sample space
\draw[thick] (-3,-2.5) rectangle (6,2.5) node[below left] {\(\Omega\)};
\end{tikzpicture}
\end{document}By dividing the joint probability by the probability of the event that has already happened we are “zooming in” on the world where happened and renormalizing so that those remaining outcomes sum to 1. In effect, we:
- Throw out all outcomes where A didn’t occur.
- Rescale the probabilities of the leftover outcomes (i.e., , ) by so they total 1.
Essentially, becomes our new sample space.
Examples
Boys and Girls
A company is holding a dinner for working mothers with at least one son.
Jackson, a mother with two children, is invited. What is the probability that both her children are boys? . Let be the probability that her -th child is a boy. We need to find . We have: since and .
We have the following sample space:
A few days before the party, you are taking a walk and see your new colleague, Ms. Parker, who is known to have two children.
If you see her walking with one of her children, and that child is a boy, what is the probability that both children are boys? . Then, we are solving for since whether the observed child is a boy is independent of her other child being a boy.
Note the slight distinction in the two questions. Here, we know that one of her children is a boy. Label the observed child as
Scratched CDs
You just bought 3 used movie CDs from Blockbuster! Unfortunately for you, one of the CDs is scratched on one side, while a second one is scratched on both sides. In a fit of rage, you shove the CDs back in the bag and shuffle it.
Later in the day, you take out one of the CDs, and observe that it has a scratched side. What is the probability that the other side of the CD will be scratched too? , and therefore the probability is , since there are 3 clean sides and 3 scratched sides.
Here, it is easy to make a mistake here and say that the sample space is
However, we are recording each of the 6 sides here, rather than recording each CD. Therefore, the conditional sample space is , (i.e., the two sides of the double-scratched CD and the scratched side of the CD with a single scratched side). In of cases, the CD with both sides scratched is selected.
As a sanity check, consider being an indicator of whether the -th side is scratched. Then,
\mathbb{P}(S_{2} = 1 \mid S_{1} = 1) &= \frac{\mathbb{P}(S_{1} = 1 \cap S_{2} = 1)}{\mathbb{P}(S_{1}=1)} \
&= \frac{1/3}{1/2} \
&= 2/3.
\end{align}$$
Monty Hall Problem
You are a contestant on a game show and can choose to open one of 3 doors, two of them containing a goat, and one of them containing a brand new car. You choose one of the doors, and Monty Hall opens another one, knowing that he’s opening a door with a goat behind it.
Should you switch, or should you keep your original choice? be the events that the car is behind door A, B, or C. Then . Let's say you pick door A. This means that . If Monty opens door C, then , and so . In most cases, it is therefore better to switch.
Let
What is the sample space here? Consider a triple , which represents:
- A: The location of the prize.
- B: The initial door opened by the contestant.
- C: The door opened by Monty.
Note that some triples are not possible, e.g. , since Monty cannot open the door that contains the car or the door that the contestant has picked. It turns out that there are 12 different permutations of triples that can be made. These include:
We note that there are only two events that could happen: Monty has one door to pick (as in the first 6 triples), and Monty has two doors to pick (as in the last 6 triples). Then:
Note that in the first equation we multiply by 1 because Monty has 1 door to choose, and in the second equation we multiply by because he can choose between 2 doors.
Let’s suppose the contestant wants to switch doors. Now, let be the event that the contestant wins. Which sample points are in W? Since we are interested in the event that the contestant has to win, the only way this could happen is if they didn’t initially pick the prize door (that is, the first 6 triples). Therefore, the contestant has a chance of winning.