CleverSphere

Two-Way Table Conditional Probability

For P(A | B), divide by the count in B, not by the grand total.

Worked example

Two-way table: passed (P) and attended lectures (A). What is P(P | A)?

Anot A
P1023
not P5448

Worked solution

  1. 1P(P | A) = number (P and A) / number A = 10 / (10 + 54) = 0.1563

Typical mistake: Dividing by the grand total instead of the total of the condition.

Try it yourself with new numbers

Your turn

Three problems of exactly this type with new numbers: first one to tap, then two to work out. Comma or point; fractions like 1/6 work too.

  1. 1 · Conditional probability
  2. 2
  3. 3

Two-way table: passed (P) and attended lectures (A). What is P(P | A)?

Anot A
P1658
not P5729

P

Formulas for this topic
  • P(A | B) = P(A ∩ B) / P(B)
  • Total probability: P(B) = P(B | A) · P(A) + P(B | Ā) · P(Ā)
  • Bayes: P(A | B) = P(B | A) · P(A) / P(B)

Typical mistake: Dividing by the grand total instead of the total of the condition.

Frequently asked questions

What is the typical mistake in "Conditional probability from a two-way table"?

Dividing by the grand total instead of the total of the condition.

Why is P(ill | positive) often small?

For rare diseases there are far more healthy people, so even a few false positives outnumber the true positives.