01 / 20

Conditional Probability
in Models

Find \( P(A \mid B) \) as the fraction of B's outcomes that also belong to A, and interpret it in context.

Statistics & Probability

What Is Conditional Probability?

A conditional probability measures the chance that event \( A \) happens given that event \( B \) has already happened. We write it as \( P(A \mid B) \), read as "the probability of A given B."

The Condition Shrinks the World

Full Sample Space
\(A\)
\(B\)
given B New World = B only A and B

Why Does This Matter?

Medical Tests
Given a positive result, what is the chance a patient actually has the disease?
Surveys
Given that a person is a senior, what is the chance they prefer online classes?
Games
Given the first card was red, what is the chance the second is also red?

The Formula

$$ P(A \mid B) = \frac{P(A \text{ and } B)}{P(B)} $$

In a two-way table or count model, this becomes a simple fraction of counts:

$$ P(A \mid B) = \frac{\text{number in both } A \text{ and } B}{\text{number in } B} $$

Reading a Two-Way Table

Likes Sports No Sports Total
Boys301040
Girls204060
Total5050100

\( P(A \mid B) \) vs \( P(B \mid A) \)

These two are not the same! The order matters because the denominator changes.

\( P(\text{Sports} \mid \text{Boy}) \)
Denominator = Boys = 40
\( = \frac{30}{40} = 0.75 \)
\( P(\text{Boy} \mid \text{Sports}) \)
Denominator = Sports = 50
\( = \frac{30}{50} = 0.60 \)

How to Apply It

1
Identify the condition \( B \). This is the "given" event — it sets your new sample space.
2
Count the total for \( B \). This becomes your denominator.
3
Count the overlap. How many of those \( B \) outcomes also satisfy \( A \)? That is your numerator.
4
Divide and interpret. State the fraction as a probability in context.

Example 1: Survey Table

OnlineIn-PersonTotal
Seniors181230
Juniors104050
Total285280

Example 2: Venn Diagram

S = 100 students
\(A\): Music
\(B\): Art
25 15 30 30

Example 3: Interpreting the Model

DefectiveGoodTotal
Machine X694100
Machine Y2148150
Total8242250

Common Mistakes

✕ Wrong Denominator
Using the grand total instead of the condition's total. The denominator must be \( B \), not everyone.
✕ Flipping the Condition
Computing \( P(B \mid A) \) when asked for \( P(A \mid B) \). Order matters!
✕ Forgetting Context
Leaving the answer as a bare fraction without interpreting it in terms of the model.

Quick Summary

StepWhat to DoExample
ConditionIdentify event \( B \)"Senior"
DenominatorTotal count of \( B \)30
NumeratorOverlap of \( A \) and \( B \)18
Result\( \frac{\text{count in } A \text{ and } B}{\text{count in } B} \)\( \frac{18}{30} = 0.6 \)
InterpretState in context"60% of seniors..."

Question 1 of 5

In a class, 40 students are Boys and of those 30 like sports. What is \( P(\text{Sports} \mid \text{Boy}) \)?

Question 2 of 5

Which fraction correctly defines \( P(A \mid B) \) in a count model?

Question 3 of 5

Of 45 art students, 15 also take music. What is \( P(\text{Music} \mid \text{Art}) \)?

Question 4 of 5

A test gives 8 defective parts total; 6 came from Machine X. Given a part is defective, what is \( P(\text{Machine X}) \)?

Question 5 of 5

Why is \( P(A \mid B) \) usually different from \( P(B \mid A) \)?

Key Takeaways

1
The condition shrinks the sample space to just \( B \).
2
\( P(A \mid B) = \frac{\text{number in both } A \text{ and } B}{\text{number in } B} \) — overlap over the condition's total.
3
Order matters: \( P(A \mid B) \neq P(B \mid A) \) in general.
4
Always interpret your answer in terms of the model's context.

You've Got Conditional Probability!

Find the condition, count \( B \), count the overlap, divide, and interpret in context. That's all there is to \( P(A \mid B) \).