Conditional Probability
Conditional probability measures the likelihood of an event given that another event has occurred.
Definition
The probability of given :
Read this as: “out of all the probability that belongs to , what fraction also belongs to ?”
Breaking down the formula:
- Numerator : the probability that both and happen — the overlap
- Denominator : the total probability of — the whole region we’re conditioning on
- The ratio: what share of ’s probability is also in ?
The formula is only defined when — you can’t condition on an event that never happens.
Venn Diagram Intuition
Events can be visualized as regions inside a rectangle representing the sample space. Two circles and represent two events — their areas correspond to the probabilities of those events occurring. In the Venn diagram demo, these two circles sit inside the rectangle. The overlap between the circles is .
The demo lets you adjust three values:
- P(A) — the probability of event (controls the size of circle A)
- P(B) — the probability of event (controls the size of circle B)
- P(A∩B) — the probability of both events occurring (controls how much the circles overlap)
The legend shows the probability of each region: A only, B only, A∩B, and neither.
The formulas at the bottom show two useful calculations:
P(A∪B) — the probability that or (or both) occurs:
We subtract because the overlap was counted twice — once in and once in .
P(A|B) — the conditional probability of given :
Try it: increase P(A∩B) while keeping P(B) the same. Watch how P(A|B) goes up — because a larger share of falls inside .
The set becomes a reduced sample space — a smaller sample space that contains only the outcomes where happened. Conditional probability is just ordinary probability computed inside this reduced sample space.
Special case: set P(A∩B) = P(B). Then P(A|B) = 1 — given that occurred, is certain (because contains all of ).
Example: Card Drawing
A deck has 52 cards. What’s the probability of drawing a King given that the card is a face card?
We zoom into the 12 face cards — the reduced sample space — and ask: what fraction are Kings? 4 out of 12.
Uniform Shortcut
When all outcomes are equally likely, conditional probability reduces to counting:
No need to compute probabilities first — just count outcomes within the reduced sample space .
Example: Rolling a Die
A fair six-sided die is rolled. What is the probability of getting an even number given that the roll is greater than 3?
- : roll → outcomes {4, 5, 6} →
- : even → outcomes {2, 4, 6}
- : even and → {4, 6} →
Notice: we never calculated or . We just shrunk the sample space to = {4, 5, 6} and counted how many of those are even.
Rules Still Work Inside the “Given” World
Once you condition on , you’re working in a smaller sample space — but all the probability rules you already know still apply:
Complement rule:
Addition rule: If and can’t both happen, then
Range:
Example
A jar has 10 marbles: 4 red, 3 blue, 3 green. You draw one at random. Given that it’s not green, what’s the probability it’s red or blue?
- : not green → 7 marbles (4 red + 3 blue)
- Red and blue can’t both happen, so:
This makes sense — if it’s not green, it must be red or blue!