Conditional probability: $P(A|B)$ without getting it wrong
« Probability of A **given** B ». Simple formula, but 90% of errors come from picking the wrong universe. Here's how never to slip.
The formula
In English: among the cases where B happens, what fraction also realizes A.
The mental trick: « restrict the universe »
When you see , imagine that you ignore everything that isn’t B. Then count the proportion of A in this new universe.
A concrete example
In a class of 30:
- 12 are girls.
- 8 students wear glasses, including 5 girls.
Restrict to girls: 12 students. Among them, 5 wear glasses. So .
Verify with the formula
- .
- .
- ✓.
The costly mistake
in general.
Example: ≈ 100%. But is tiny.
Bayes’ formula (bonus)
Key of medicine, machine learning, and decision theory.
You draw a card from a deck of 52. Given the card is red, what's the probability it's a heart?
