Two-Way Tables

TipLearning Objectives
  • Interpret counts and proportions in two-way tables.
  • Compute joint, marginal, and conditional probabilities.
  • Translate real-world categories into table form.
  • Compare groups using proportions and conditional percentages.

Key Ideas

A two-way table organizes data into rows and columns, summarizing how two categorical variables relate. It allows you to compute:

  • Joint frequency: a specific cell inside the table (e.g., “freshmen who prefer A”).
  • Marginal frequency: totals of rows or columns.
  • Conditional probability: probability within a specific group.

\[ P(A \mid B) = \frac{\text{joint count of A and B}}{\text{total in category B}} \]

Example Two-Way Table

Below is a sample table showing how many students prefer Category A or Category B, separated by Group:

Category A Category B Row Total
Group 1 12 18 30
Group 2 8 22 30
Column Total 20 40 60

Interpreting the Table

  • Joint frequency example: 12 = Group 1 students who chose Category A.
  • Marginal frequency example: 40 = total students who chose Category B.
  • Conditional probability example:
    Probability a randomly chosen Group 1 student chose Category B:
    \[P(B \mid \text{Group 1}) = 18/30 = 0.6.\]

Common Problem Types

Finding Marginal Totals

Totals along the edges summarize each category.

Example:
If 15 like pizza and 10 like pasta, the total = 25.


Finding Joint Probabilities

Divide a specific cell by the grand total.

Example using sample table:
\[P(\text{Group 1 AND Category A}) = 12/60 = 0.20.\]


Conditional Probabilities (Given a row or column)

Restrict to the given row/column first.

Example:
Among 30 Group 2 students, 22 chose Category B:
\[P(B \mid \text{Group 2}) = 22/30 = 0.733\ldots\]


Comparing Groups Using Conditional Percentages

Use proportions, not raw counts.

Example:
Even though Group 2 has more B-choosers (22 vs 18),
Group 1 has a higher proportion choosing A (12/30 vs 8/30).


Filling in Missing Table Entries

Use totals to work backward.

Example:
If row total = 40, entries are 12 and 18 → missing = 10.


Strategies

  • Circle or highlight the “given” category for conditional problems.
  • Always use row/column totals (not whole-table totals) for conditional probabilities.
  • Use proportions when comparing groups.
  • Re-check that marginal totals match the internal cell sums.

Worked Examples

Example 1 — Conditional Probability

A table shows club participation by grade level.
If 25 juniors are in clubs out of 80 juniors total:

\[ P(\text{in club} \mid \text{junior}) = \frac{25}{80} = 0.3125 \]


Example 2 — Joint Probability

A cell count is 14 in a table with total 56 students:

\[ P(\text{that cell}) = \frac{14}{56} = \frac{1}{4} \]


Example 3 — Build a Two-Way Table

A class has 20 boys and 30 girls.
12 boys play sports; 18 girls play sports.

Play Sports Don’t Play Row Total
Boys 12 8 20
Girls 18 12 30
Column Total 30 20 50

Interpretation:

  • Joint freq (Girls ∧ Play): 18
  • Marginal (Play): 30
  • Conditional:
    \[P(\text{Play} \mid \text{Boys}) = 12/20 = 0.6\]
    \[P(\text{Play} \mid \text{Girls}) = 18/30 = 0.6\]
    Both groups play sports at the same rate.

Common Mistakes

WarningCommon Mistakes
  • Dividing by the whole table when the problem asks for a conditional.
  • Comparing raw counts instead of proportions.
  • Mixing up rows and columns when computing conditional probabilities.
  • Forgetting to check that row/column totals match the interior cells.

Practice Problems

  1. In a class of 40, 22 are seniors and 18 juniors. If 12 seniors work part-time, find
    \[P(\text{work} \mid \text{senior}).\]

  2. A table shows 8 students who like math and science out of 50 total.
    Find the joint probability.

  3. A row total is 30. Two entries are 11 and 9.
    Find the missing entry.

  4. Compare:

    • 15 of 25 boys play sports
    • 20 of 50 girls play sports
      Which group has the higher participation rate?
  1. \(12/22\)
  2. \(8/50 = 0.16\)
  3. \(30 - (11 + 9) = 10\)
  4. Boys: \(15/25 = 0.6\); Girls: \(20/50 = 0.4\) → Boys higher

Summary

  • Two-way tables organize and compare categorical data.
  • Joint = inside cell, marginal = totals, conditional = restrict first.
  • SAT/ACT often test conditional probabilities and comparisons between groups.
  • Read “given that” as “restrict to this row/column.”
  • Compare proportions, not raw counts.
  • Double-check marginal totals for consistency.