Two-way tables and conditional probability
Probability within one row of a table.
A two-way table counts people by two things at once. P(A given B) means: only look at the B group. Divide the number who are A within B by the total of B.
Example: Of 30 ninth graders, 18 play a sport. P(sport | ninth grade)?
- 18/(18 + 12) — Only the ninth-grade row
- 18/30
- 3/5 — Simplify
Why it works: Given means you only look at the group that matches. The chance is a share of that group, not of everyone.
Tip: The “given” part tells you which row or column becomes your new total.