Probability and statistics · University

Conditional probability

P(A | B)

The idea

The probability of A when you already know that B happened.

The board

  1. P(A | B) = P(A ∩ B)P(B) — you only look at the world where B is true.
  2. A die: P(6 | even) = 1/61/2 = 13 — of 2, 4, 6 only one is a 6.
  3. Independent: P(A | B) = P(A) — B tells you nothing about A.
  4. Then P(A ∩ B) = P(A) · P(B).

The most common mistake

Mixing up P(A | B) and P(B | A). P(sick | positive test) ≠ P(positive test | sick).

The trick

The condition “shrinks the universe” — you count only inside it.

Problems

A die. P(>3 | even)?

  • 23
  • 13
  • 12
  • 16
Show the answer

23 — Even: 2, 4, 6; >3: 4, 6.

Two coins. P(2 heads)?

  • 14
  • 12
  • 1
  • 13
Show the answer

14 — Independent: ½ · ½.

Take the lesson · exercises and XPFree, no sign-up needed.

You need to know

Leads to