DWG NO. 13.3 — Lesson 3 of 3

Conditional Probability and Two-Way Tables

Unit 13: Probability and Geometric Modeling · ~15–30 min

Objective

Calculate conditional probabilities from two-way frequency tables and determine whether two events are independent.

Two-way frequency tables

A two-way table organizes counts across two categories at once — one along the rows, one along the columns — so you can see how they overlap. Row and column totals (and a grand total) make it easy to pull out probabilities directly from counts.

Likes sportsDoesn't like sportsTotal
Grade 9542680
Grade 10422870
Total9654150

Conditional probability

Conditional probability asks: given that one event has already happened, what's the probability of another? "P(B given A)" is written P(B | A), and it means you restrict your attention to only the outcomes where A happened, then ask how many of those also satisfy B.

P(B | A) = P(A and B) ÷ P(A)

With a two-way table, this is even more direct — just work with counts instead of probabilities:

P(B | A) = (count of A and B) ÷ (row or column total for A)
A B A and B

P(B | A) restricts the sample space to circle A, then asks what fraction of it overlaps with B.

Independence

Two events are independent if knowing one happened doesn't change the probability of the other — that is, P(B | A) = P(B). If the conditional probability differs from the plain probability, the events are dependent.

Worked Example 1 · Conditional probability from a table
ProblemUsing the two-way table above, find P(likes sports | Grade 9).
1.Restrict to the Grade 9 row: 80 students total, 54 of whom like sports.
2.P(likes sports | Grade 9) = 54/80 = 27/40 = 0.675.
P(likes sports | Grade 9) = 0.675
Worked Example 2 · Formula with given probabilities
ProblemP(A) = 0.4 and P(A and B) = 0.12. Find P(B | A).
1.P(B | A) = P(A and B) ÷ P(A) = 0.12 ÷ 0.4.
P(B | A) = 0.3
Worked Example 3 · Testing for independence
ProblemUsing the two-way table above, determine whether liking sports is independent of grade level.
1.Overall P(likes sports) = 96/150 = 0.64. Compare to P(likes sports | Grade 9) = 54/80 = 0.675 (from Example 1).
2.Since 0.675 ≠ 0.64, knowing a student is in Grade 9 changes the probability they like sports.
The events are dependent, not independent

Guided practice