Look out of the window. What's the chance it's raining right now? Maybe you'd guess low. But now suppose I tell you one extra fact: the sky is grey and heavy. Suddenly your answer jumps up. Nothing about the weather changed — but what you know did, and that shifted the probability.
That is the whole idea of conditional probability: the chance of one thing once you already know that another thing has happened. "The chance of rain, given a grey sky." "The chance of passing, given you revised." The little word given is doing all the work — it hands you a clue, and a good clue changes the odds.
Sometimes you already know that one thing has happened, and you want the
chance of another. The conditional probability of
Knowing that
On a
Here
A bag holds 3 red and 2 blue counters. You take one out, keep it, then take a second — without replacement. The first pick changes what's left in the bag, so it changes the odds of the second pick. That "changed" second-pick chance is a conditional probability.
Say the first counter was red. Now the bag holds only 2 red and 2 blue — 4 counters. So
Notice it is not
A survey asked 50 students whether they walk to school and whether they own a bike:
| Owns a bike | No bike | Total | |
|---|---|---|---|
| Walks to school | 12 | 8 | 20 |
| Does not walk | 18 | 12 | 30 |
| Total | 30 | 20 | 50 |
Question: given that a student walks to school, what's the chance they own a bike? "Given they walk" throws away the 30 non-walkers — we live inside the walk row only, which has 20 students. Of those 20, twelve own a bike:
Compare that with the plain chance of owning a bike,
Suppose
Turned around, this is also how you build the "and" probability from a tree:
Swapping the two around is one of the most common — and most damaging — mistakes in all of probability. They are different questions with wildly different answers.
Think about measles and a rash. The probability of a rash given measles is very high — measles almost always brings a rash. But the probability of measles given a rash is very low — heaps of things cause rashes (heat, allergies, other bugs), and measles is rare. Same two events, condition flipped, answers at opposite ends.
The trap is called the base-rate fallacy: people quietly ignore how rare the
thing itself is. Untangling
Get conditional probability backwards in a courtroom and it has a name: the prosecutor's fallacy. A lawyer says "the chance of this DNA matching if the defendant were innocent is one in a million — so they're surely guilty." But that quietly swaps two very different things: the chance of a match given innocence is NOT the chance of innocence given a match. In a big city, a one-in-a-million match might still point at several innocent people. Real convictions have been overturned once mathematicians pointed this out.
The flip side: this same idea, done right, is one of the most powerful tools in modern
science and technology. Every time a spam filter decides an email is junk, a medical test is
interpreted, or an AI model updates a guess from new evidence, it is computing a conditional
probability. The humble