Course contentsShow
← Mathematics
Lesson 2793 of 3,12155. Probability — FoundationsFree lesson

Computing Conditional Probabilities from Tables

Calculate conditional probabilities using two-way frequency tables and contingency tables.

Computing Conditional Probabilities from Tables

What you'll learn: You'll master how to extract conditional probabilities directly from two-way frequency tables and contingency tables without memorizing complex formulas.

The Core Idea

When data is organized in a table showing how two categorical variables relate, conditional probabilities become simple arithmetic. A two-way frequency table (or contingency table) displays counts or frequencies for combinations of two events.

The key insight: To find P(A|B), restrict your attention to the row or column where B occurred, then find what fraction of those outcomes correspond to A.

How to Read the Table

Consider a table tracking 100 students by Grade Level and Club Membership:

                 | In Club | Not in Club | Row Total
-----------------+---------+-------------+----------
Freshman         |   15    |     25      |    40
Sophomore        |   30    |     30      |    60
-----------------+---------+-------------+----------
Column Total     |   45    |     55      |   100

Finding P(In Club | Freshman)

Step 1: Locate the "Freshman" row (this is your condition B).
Step 2: The row total is 40 — these are all the Freshman outcomes.
Step 3: Among these 40, find how many are "In Club": 15.
Step 4: P(In Club | Freshman) = 15/40 = 3/8

You're answering: "Of the Freshmen, what fraction are in a club?"

Finding P(Freshman | In Club)

Now the condition flips!

Step 1: Locate the "In Club" column (this is your new condition).
Step 2: Column total is 45.
Step 3: Among these 45, find Freshmen: 15.
Step 4: P(Freshman | In Club) = 15/45 = 1/3

Notice: P(A|B) ≠ P(B|A) in general!

The Pattern

  • Denominator: Total for the given condition (row or column)
  • Numerator: Count in the intersection of both events

Key Takeaway: When computing conditional probabilities from tables, always use the total from the condition's row or column as your denominator, and the cell count where both events occur as your numerator.