Visual walkthrough — Conditional probability
This page builds the formula from absolute zero. No formula is used before we can see it. By the end you will understand every symbol as an area you can point at. This is the visual companion to Conditional probability — read it slowly, one picture at a time.
Step 1 — The whole world is a box of area 1
WHAT. We start with the sample space: the collection of everything that could possibly happen. Draw it as a rectangle. We stretch the rectangle so its total area equals .
WHY area 1? Because probability is just "what fraction of all possibilities?" — and a fraction of the whole is easiest to see as area covered total area. If the total area is exactly , then "area of a region" is "its probability" directly, with no division. That single choice makes every later picture honest.
PICTURE. The outer black rectangle below is the world (read "omega", the Greek letter we use for everything). Its area is written inside: .

Step 2 — An event is a blob inside the box
WHAT. An event is just "some of the outcomes" — a coloured blob inside the box. Call one blob . The area of is its probability, written .
WHY a blob and not a number yet? Because we want to see how two events overlap. A bare number like "" hides the geometry. A blob shows exactly which outcomes belong to and which don't.
PICTURE. The shaded region is . Everything outside it is ("not B"). Since the whole box has area , the area of plus the area of must equal .

Every symbol here is an area you can point to.
Step 3 — Two events overlap: the intersection
WHAT. Now draw a second event as another blob. The two blobs generally overlap. That overlap — the outcomes that are in and in at the same time — is written (read "A intersect B"). Its area is .
WHY the intersection matters. Conditional probability is about the question "given B, how much A?". The only part of that can still happen once we know is true is the part of that lives inside — which is exactly . So this overlap is the star of the whole derivation.
PICTURE. The red lens in the middle is — where the two blobs share ground.

Step 4 — Learning throws the rest of the world away
WHAT. Someone tells you: " definitely happened." Every outcome outside is now impossible. We erase the whole box except the blob.
WHY erase? Because information removes possibilities. Before, our universe was the full box. Now our universe is only . Anything not in can no longer occur, so it should not count toward any fraction anymore.
PICTURE. The greyed-out region is now dead. The only surviving world is the blob (outlined in red). Inside it, the red lens is still alive — that is the only piece of that survived.

This is the whole idea of conditioning: shrink the universe to .
Step 5 — Re-measure inside the new, smaller world
WHAT. Inside the surviving world , we ask: what fraction of it is also ? That fraction is the conditional probability (read "probability of A given B").
WHY divide? Here is the crux. After Step 4 our surviving world is , whose area is — and that area is generally not . But probabilities must be fractions of the whole current world. So we must rescale back up to total area before we can read off a probability. Rescaling area up to means dividing every area inside by .
The surviving- region has area . Divide it by the surviving-world area :
PICTURE. Left: the shrunken world with the red lens inside it. Right: we blow up to fill a fresh unit box — the red lens grows by the same factor, and its new area is exactly .

Step 6 — The degenerate case: what if ?
WHAT. Suppose has zero area — it never happens. Then Step 5 asks us to divide by , which is meaningless.
WHY it breaks. You cannot "shrink the universe to and then measure fractions of it" if has no outcomes to shrink into. There is no surviving world to re-measure. That is exactly why the definition carries the fine print .
PICTURE. A box whose "" is a single line — zero area. Nothing survives conditioning; the fraction is undefined.

Step 7 — Two extreme overlaps: disjoint vs. contained
WHAT. We check the two limiting shapes the overlap can take, so no case surprises you.
Case A — no overlap (disjoint). If and never happen together, the lens vanishes: , so Knowing happened makes impossible.
Case B — swallows (containment). If lies entirely inside , then everywhere happens, happens too: , so Knowing happened makes certain.
WHY show both ends? Any real conditional probability lands between these extremes, . Seeing the endpoints proves the formula never produces nonsense.
PICTURE. Left: disjoint blobs → answer . Right: inside → answer .

Step 8 — Multiply the picture the other way = Bayes
WHAT. The red lens has one area, but we can build it from two directions:
- Start in world , then take the -fraction: .
- Start in world , then take the -fraction: .
Both give the same lens area, so we may set them equal and solve:
WHY this is powerful. It lets us flip the conditioning — computing from the reverse . That flip is the engine behind Bayes-Theorem and every classifier built on it, like Naive-Bayes-Classifier.
PICTURE. The same lens measured two ways: " then " (top path) and " then " (bottom path) meet at the identical shaded region.

The denominator itself is usually expanded by summing over pathways — that is the Law-of-Total-Probability, and stacking these multiplications gives the Chain-Rule-of-Probability.
The one-picture summary
Everything above collapses into a single storyboard: whole box → two blobs → learn → erase the rest → rescale → read the fraction.

Recall Feynman retelling (say it out loud)
Picture the world as a box with area exactly one, so area is probability. Draw two smudges, and ; where they overlap is "both happen", the red lens. Now a friend says "B for sure happened" — so cross out everything outside ; that dead region can't count anymore. Your world is now just the smudge, but it's smaller than one, so blow it back up to full size — divide every leftover area by . The lens grows with it, and its new size is the answer: . If had no area at all, there's nothing to blow up — undefined. If and never touch, the lens is empty and the answer is ; if sits wholly inside , the lens is and the answer is . Finally, that same lens can be sliced starting from instead of — set the two slices equal and you've just derived Bayes' theorem.
Recall
What does dividing by physically do? ::: It renormalizes — rescales the shrunken world back to total area so fractions are honest. When is undefined? ::: When ; there is no surviving world to measure. Disjoint gives ? ::: — knowing makes impossible. fully inside gives ? ::: — knowing makes certain. Setting the lens area equal from both directions yields what? ::: Bayes' theorem, .
Read the numbers-and-worked-examples companion back on Conditional probability, or the same story in Hinglish.