03:00

Probability: Part II
Grayson White
Math 141
Week 6 | Fall 2025
A survey was given to 100 Math 141 students in 2017. Some results are summarized below:
| Coffee | Tea | total | |
|---|---|---|---|
| First-year | 7 | 10 | 17 |
| Sophomore | 25 | 20 | 45 |
| Junior | 13 | 12 | 25 |
| Senior | 8 | 5 | 13 |
| total | 53 | 47 | 100 |
What is the probability that a random student prefers coffee?
What is the probability that a random student was a sophomore?
What is the probability that a random student was a sophomore and preferred coffee?
What is the probability that a random sophomore preferred coffee?
03:00
Conditional Probability: probability of something occurring, given that another event has already occurred.
We write the conditional probability of Event A given Event B has occurred as,
\[P(A\ | \ B)\]
In the previous example,
How do we calculate conditional probabilities?
\[ P(\text{Coffee} | \text{Sophomore} ) = \frac{P(\text{Sophomore and prefers Coffee})}{P(\text{Sophomore})} \]
In general,
Theorem: Conditional Probability Rule
The Conditional Probability of an event \(A\) given another event \(B\) is \[ P(A | B)= \frac{P(A \textrm{ and } B)}{P(B)} \]
In the next few slides, we’re going to use the concept of conditional probability to explore 4 more concepts:
Independence
Multiplication Rule
Law of Total Probability
Bayes’ Rule
We say two events are independent if knowing one occurs doesn’t change the probability that another occurs.
Theorem: Criteria for Independence
Two events \(A\) and \(B\) are independent if and only if \[ P(A | B) = P(A) \quad \text{and} \quad P(B | A) = P(B) \]
Q: Are the events “preferring coffee” (A) and “being a sophomore at Reed” (B) independent?
No! That’s because \(P(A)=\frac{53}{100}\) and \(P(A|B)=\frac{25}{45}\), so \(P(A)\neq P(A|B)\)
What if we want to know the probability that two events both occur?
Rearrange our formula for conditional probability!
\[\begin{align} P(A | B)&= \frac{P(A \textrm{ and } B)}{P(B)} \\ \implies P(A | B) P(B) &= P(A \textrm{ and } B) \end{align}\]
Theorem: Multiplication Rule
For any events \(A\) and \(B\), \[ P(A \textrm{ and } B ) = P(A|B) \times P(B) \]
Theorem: Multiplication Rule
For any events \(A\) and \(B\), \[ P(A \textrm{ and } B ) = P(A|B) \times P(B) \]
In the previous example…
and
Does it work?
\[ P(A|B) P(B) = (\frac{25}{45}) (\frac{45}{100}) = \frac{25}{100}\]
Checks out!
Consider two events:
In this scenario, notice for any student who prefers coffee (\(A\)), it’s possible…
Thus, \[ \begin{align} P(A) &= P(A\text{ and }B) + P(A\text{ and }B^c) \tag{Addition Rule}\\ &=P(A | B)P(B) + P(A|B^c)P(B^c) \tag{Multiplication Rule} \end{align} \]
Theorem: The Law of Total Probability
Let \(A\) and \(B\) be events. Then \[ P(A) = P(A | B)P(B) + P(A | B^c)P(B^c) \]
Suppose you’re a medical researcher interested in population health.
Q: What proportion of adults are generally healthy?
Let
This question is asking: \(P(A)=\)???
Theorem: The Law of Total Probability
Let \(A\) and \(B\) be events. Then \[ P(A) = P(A | B)P(B) + P(A | B^c)P(B^c) \]
We want to answer \(P(\text{Healthy})\).
Note that,
\[ \begin{align} P(\text{Healthy}) &= P(\text{Healthy}|\text{Doctor})P(\text{Doctor})+P(\text{Healthy}|\text{Doctor}^c)P(\text{Doctor}^c)\\ &= P(A|B)P(B) + P(A|B^c)P(B^c)\\ &= (.95)(.80) + (.70)(.20)\\ &= 0.90 \end{align} \]
Thus, 90% of adults are generally healthy!
What if we know \(P(B|A)\), but we want to know \(P(A|B)\)?
Theorem: Bayes’ Rule
Let \(A\) and \(B\) be events. Then, \[ P(A|B) = \frac{P(B | A)P(A)}{P(B)} \]
Proof: From the definition of multiplication rule, \[ \begin{align} P(A \text{ and } B) &= P(A|B)\times P(B)\\ P(A \text{ and } B) &= P(B|A)\times P(A) \end{align} \]
Setting these two equations equal, we find \[ \begin{align} P(A|B)\times P(B) &= P(B|A)\times P(A)\\ \implies P(A|B) &= \frac{P(B|A)P(A)}{P(B)} \end{align} \]
Suppose that we have a rapid COVID-19 test that:
Assume that the overall prevalence of COVID at the time of the test was 1%.
Q: Suppose a person takes this test and receives a positive diagnosis – what is the probability that the person has COVID?
12:00
Q: Suppose a person takes this test and receives a positive diagnosis – what is the probability that the person has COVID?
Test correctly diagnoses a person who does not have COVID 99% of the time
\(P(B^c | A^c) = 0.99\) and \(P(B | A^c) = 0.01\)
Test correctly diagnoses a patient who does have COVID 80% of the time.
\(P(B | A) = 0.80\) and \(P(B^c | A) = 0.20\)
The overall prevalence of COVID at the time of the test was 1%.
\(P(A) = 0.01\) and \(P(A^c) = 0.99\)
Bayes’ Rule:
\[ P (A | B) = P(B | A) \frac{P(A)}{P(B)} = 0.80 * \frac{0.01}{P(B)=\text{???}} \]
Law of Total Probability:
\[ P (B) = P(B | A) P(A) + P(B | A^c) P(A^c) = 0.80(0.01) + 0.01(0.99) = 0.0179 \]
Combining the above:
\[ \implies P (A | B) = 0.80 * \frac{0.01}{0.0179} \approx \boxed{0.447} \]
Theorem: Bayes’ Rule
Let \(A\) and \(B\) be events. Then \[ P(A|B) = \frac{P(B | A)P(A)}{P(B)} \]
Q: Consider Bayes’ Rule. Under what circumstances will \(P(A|B) = P(B|A)\)?
Q: Suppose \(P(B|A) = 1\):
Theorem: Bayes’ Rule
Let \(A\) and \(B\) be events. Then \[ P(A|B) = \frac{P(B | A)P(A)}{P(B)} \]
Q: Under what circumstances will \(P(A|B) = P(B|A)\)?
Answer: Whenever \(P(A)=P(B)\)
Q: Suppose \(P(B|A) = 1\):
A: Whenever A occurs, so does B.
A: \(P(A|B) = P(A)/P(B)\)