3.4: Conditional Probability
Learning Objectives
- Calculate the conditional probability that event \begin{align*}A\end{align*} occurs, given that event \begin{align*}B\end{align*} occurs.
Sometimes, we wish to change the probability of an event when we are bound to certain conditions. For example, we know that the probability of observing an even number on a throw of a die is \begin{align*}0.5\end{align*} (simple event \begin{align*}A\end{align*}). However, suppose that we throw the die and the result is a number that is \begin{align*}3\end{align*} or less (simple event \begin{align*}B\end{align*}). Would the probability of observing an even number on that particular throw still be \begin{align*}0.5\end{align*}? The answer is no because with the introduction of the event \begin{align*}B\end{align*}, we have reduced our sample space from \begin{align*}6\end{align*} simple events to \begin{align*}3\end{align*} simple events. In other words, with the introduction of a particular condition (the event \begin{align*}B\end{align*}) we have changed the probability of a particular outcome. The Venn diagram below shows the reduced sample space for this experiment given that event \begin{align*}B\end{align*} has occurred.
The only even number in the sample space \begin{align*}B\end{align*} is the number \begin{align*}2\end{align*}. We conclude that the probability that \begin{align*}A\end{align*} occurs, given that \begin{align*}B\end{align*} occurs is \begin{align*}1:3\end{align*}, or \begin{align*}1/3\end{align*}. We denote it by the symbol \begin{align*}P(A|B)\end{align*}, which reads "the probability of \begin{align*}A\end{align*}, given \begin{align*}B\end{align*}". So for the die toss experiment, we write
\begin{align*}P(A|B) = \frac{1} {3}.\end{align*}
Conditional Probability of Two Events
- Definition Conditional Probability
- If \begin{align*}A\end{align*} and \begin{align*}B\end{align*} are two events, then the probability of the event \begin{align*}A\end{align*} to occur, given that event \begin{align*}B\end{align*} occurs is called a conditional probability. We denote it by the symbol \begin{align*}P(A|B)\end{align*}, which reads "the probability of \begin{align*}A\end{align*} given \begin{align*}B\end{align*}."
However, we want to show a systematic way of calculating conditional probabilities. Take the ratio of the probability of the part of \begin{align*}A\end{align*} that falls within the reduced sample space \begin{align*}B\end{align*} (i.e., the intersection of the two sample spaces \begin{align*}A\end{align*} and \begin{align*}B\end{align*}) to the total probability of the reduced sample space.
To calculate the conditional probability that event \begin{align*}A\end{align*} occurs, given that event \begin{align*}B\end{align*} occurs, take the ratio of the probability that both \begin{align*}A\end{align*} and \begin{align*}B\end{align*} occur to the probability that \begin{align*}B\end{align*} occurs. That is,
\begin{align*}P(A|B) = \frac{P(A \cap B)} {P(B)}\end{align*}
For our example above, the die toss experiment, we proceed as follows:
\begin{align*}& \text{A} = \left \{ \text{observe an even number}\right \}\\ & \text{B} = \left \{\text{observe a number less than or equal to 3}\right \}\end{align*}
We use the formula,
\begin{align*}P(A | B) = \frac{P(A \cap B)} {P(B)}\end{align*}
and get,
\begin{align*}P(A|B) = \frac{P(A \cap B)} {P(B)} = \frac{P(2)} {P(1) + P(2) + P(3)} = \frac{1/6} {3/6} = \frac{1} {3}\end{align*}
Example:
A medical research center is conducting experiments to examine the relationship between cigarette smoking and cancer in a particular city in the US. Let A represent an individual that smokes and let \begin{align*}C\end{align*} represent an individual that develops cancer. So \begin{align*}AC\end{align*} represents an individual who smokes and develops cancer, \begin{align*}AC'\end{align*} represents an individual who smokes but does not develop cancer and so on. We have four different possibilities, simple events, and they are shown in the table below along with their associated probabilities.
Simple Events | Probabilities |
---|---|
\begin{align*}AC\end{align*} | \begin{align*}0.10\end{align*} |
\begin{align*}AC'\end{align*} | \begin{align*}0.30\end{align*} |
\begin{align*}A'C\end{align*} | \begin{align*}0.05\end{align*} |
\begin{align*}A'C'\end{align*} | \begin{align*}0.55\end{align*} |
Figure: A table of probabilities for combinations of smoking \begin{align*}(A)\end{align*} and developing cancer \begin{align*}(C)\end{align*}.
How can these simple events be studied, along with their associated probabilities, to examine the relationship between smoking and cancer?
Solution:
We have
\begin{align*}& \text{A:} \left \{\text{individual smokes}\right \}\\ & \text{C:} \left \{\text{individual develops cancer}\right \}\\ & \text{A':} \left \{\text{individual does not smoke}\right \}\\ & \text{C':} \left \{\text{individual does not develop cancer}\right \}\end{align*}
A very powerful way of determining the relationship between cigarette smoking and cancer is to compare the conditional probability that an individual gets cancer, given that he/she smokes with the conditional probability that an individual gets cancer, given that he/she does not smoke. In other words, we want to compare \begin{align*}P(C|A)\end{align*} with \begin{align*}P(C|A')\end{align*}:
\begin{align*}P(C | A) = \frac{P(A \cap C)} {P(A)}\end{align*}
Before we enter our data into the formula, we need to calculate the value of the denominator. \begin{align*}P(A)\end{align*} is the probability of the individuals who smoke in the city under consideration. To calculate it, remember that the probability of an event is the sum of the probabilities of all its simple events. Thus
\begin{align*}P(A) & = P(AC) + P(AC')\\ & = 0.10 + 0.30 \\ & = 0.40 \\ & = 40 \%\end{align*}
This tells us that according to this study, the probability of finding a smoker, selected at random from the sample space (the city), is \begin{align*}40 \%\end{align*}. Continuing on with our calculations,
\begin{align*}P(C | A) = \frac{P(A \cap C)} {P(A)} = \frac{P(AC)} {P(A)} = \frac{0.10} {0.40} = 0.25 = 25 \%\end{align*}
Similarly, we calculate the conditional probability of a nonsmoker that develops cancer:
\begin{align*}P(C | A') = \frac{P(A' \cap C)} {P(A')} = \frac{P(A'C)} {P(A')} = \frac{0.05} {0.60} = 0.08 = 8 \%\end{align*}
Where \begin{align*}P(A') = P(A'C) + P(A'C') = 0.05 + 0.55 = 0.6 = 60 \%\end{align*}. It is also equivalent to using the complementary relation \begin{align*}P(A') = 1 - P(A) = 1 - 0.40 = 0.60.\end{align*}
So what is our conclusion from these calculations? We can clearly see that there exists a relationship between smoking and cancer: The probability that a smoker develops cancer is \begin{align*}25 \%\end{align*} and the probability that a nonsmoker develops cancer is only \begin{align*}8 \%\end{align*}. Taking the ratio between the two probabilities, \begin{align*}25 \% \div 8 \% = 3.125,\end{align*} which means a smoker is more than three times more likely to develop cancer than a nonsmoker. Keep in mind, however, that it would not be accurate to say that smoking causes cancer but it does suggest a strong link between smoking and cancer.
Lesson Summary
- If \begin{align*}A\end{align*} and \begin{align*}B\end{align*} are two events, then the probability of the event \begin{align*}A\end{align*} to occur, given that event \begin{align*}B\end{align*} occurs is called a conditional probability. We denote it by the symbol \begin{align*}P(A|B),\end{align*} which reads "the probability of \begin{align*}A\end{align*} given \begin{align*}B\end{align*}."
- Conditional probability can be found with the equation \begin{align*}P(A|B) = \frac{P(A \cap B)} {P(B)}\end{align*}.
Review Questions
- If \begin{align*}P(A) = 0.3, P(B) = 0.7,\end{align*} and \begin{align*}P(A \cap B) = 0.15,\end{align*} Find \begin{align*}P(A|B)\end{align*} and \begin{align*}P(B|A)\end{align*}.
- Two fair coins are tossed. i. List the possible outcomes in the sample space. ii. Two events are defined as follows: \begin{align*}& \text{A:} \left \{\text{At least one head appears} \right \} \\ & \text{B:} \left \{\text{Only one head appears} \right \}\end{align*} Find \begin{align*}P(A), P(B), P(A \cap B), P(A|B),\end{align*} and \begin{align*}P(B|A)\end{align*}
- A box of six marbles contains two white, two red, and two blue. Two marbles are randomly selected without replacement and their colors are recorded. i. List the possible outcomes in the sample space. ii. Let the following events be defined: \begin{align*}& \text{A:} \left \{\text{Both marbles have the same color}\right \} \\ & \text{B:} \left \{\text{Both marbles are red}\right \} \\ & \text{C:} \left \{\text{At least one marble is red or white}\right \}\end{align*} Find \begin{align*}P(B|A), P(B|A'), P(B|C), P(A|C),\end{align*} and \begin{align*}P(C|A')\end{align*}
Review Answers
- \begin{align*}0.21, 0.5\end{align*}
- \begin{align*}3/4, 1/2, 1/2, 1, 2/3\end{align*}
- \begin{align*}1/3, 0, 1/14, 1/7, 1\end{align*}
My Notes/Highlights Having trouble? Report an issue.
Color | Highlighted Text | Notes |
---|---|---|
Show More |