8.1 Two-Way Contingency Tables, Relative Frequencies, and Venn Diagrams
Key Takeaways
In a two-way contingency table, every row sums to its row marginal total, every column sums to its column marginal total, and both marginal sets sum to the exact same grand total N.
Always identify the reference group (denominator) before calculating a percentage: joint percentages divide by the grand total, row-conditional percentages divide by the row total, and column-conditional percentages divide by the column total.
A 2x2 binary two-way table maps directly to a 2-set Venn diagram: the four interior cells correspond to Both (A intersect B), A only, B only, and Neither.
By the inclusion-exclusion principle, n(A union B) = n(A) + n(B) - n(A intersect B); always populate a Venn diagram from the innermost intersection outward so overlap counts are never double-counted.
In 2-set and 3-set Venn diagram problems, always account for the exterior region representing individuals in neither category before equating the union to the universal total N.
School leaders and classroom teachers routinely cross-classify student cohorts across two or more categorical variables—such as Year Level vs. Attendance Tier, Campus vs. Transport Mode, or EAL/D Status vs. Benchmark Achievement. On the LANTITE Numeracy test, questions involving two-way contingency tables and Venn diagrams rarely require difficult arithmetic; instead, they test whether you can track missing marginal totals accurately and select the exact denominator demanded by the wording of the question.
Reading and Completing Two-Way Contingency Tables
A two-way (contingency) table organises counts across two categorical variables simultaneously. One variable defines the rows and the other defines the columns:
- Interior cells (joint frequencies): Each inner cell shows how many observations satisfy both that specific row category and that specific column category at the same time.
- Row marginal totals: The rightmost column records the total count for each row across all column categories.
- Column marginal totals: The bottom row records the total count for each column across all row categories.
- Grand total (): The bottom-right corner cell gives the total number of observations in the entire dataset. The sum of all row totals must equal the sum of all column totals, which equals .
When a LANTITE question presents a partially completed two-way table, never guess or solve cells out of order. Scan the table for any row or column that has only one missing entry, compute that missing value by subtraction, and repeat until every required cell is filled.
Worked Example 1: Completing a School Transport Table
Consider a survey of students in Years 7 to 9 at Greenvale Secondary College regarding their primary mode of transport to school:
| Year Level | Bus | Walk | Car / Drop-off | Row Total |
|---|---|---|---|---|
| Year 7 | ||||
| Year 8 | ||||
| Year 9 | ||||
| Column Total |
Suppose the cells for Year 7 Car (), Year 8 Row Total (), and Year 9 Bus () were initially blank:
- Year 7 Car / Drop-off: The Year 7 row total is , so .
- Year 8 Row Total: All three interior cells in Year 8 are known, so .
- Year 9 Bus: The Bus column total is , so . (You can cross-check this using the Year 9 row total: .)
The Three Denominators in a Two-Way Table
The single most common trap in two-way table questions is dividing the correct numerator by the wrong total. A single interior cell—such as the Year 8 students who walk to school in the table above—can produce three completely different relative frequencies depending on which reference group is specified in the prompt:
| Relative Frequency Type | Wording Cues in the Question | Formula | Calculation for "Year 8" and "Walk" (Cell = ) |
|---|---|---|---|
| 1. Joint Percentage | "What percentage of all surveyed students are in Year 8 and walk to school?" | ||
| 2. Row-Conditional Percentage | "Of the Year 8 students, what percentage walk to school?" | ||
| 3. Column-Conditional Percentage | "Of the students who walk to school, what percentage are in Year 8?" |
Before touching the calculator, always underline the phrase immediately following "of", "among", or "given that":
- "What percentage of all students..." Divide by the Grand Total ().
- "What percentage of Year 8 students..." Restrict your universe to the Year 8 Row Total ().
- "Of the students who walk to school, what percentage..." Restrict your universe to the Walk Column Total ().
Notice also that converse conditional percentages are not equal: of Year 8 students walk to school, whereas of walking students are in Year 8.
Translating Between Two-Way Tables and Venn Diagrams
When two categorical variables are binary (Yes/No, Member/Non-Member), a two-way table and a 2-set Venn diagram represent the exact same information:
| Set A Status | In Set | Not in Set () | Row Total |
|---|---|---|---|
| In Set | Both and : | only: | Total in : |
| Not in Set () | only: | Neither nor : | Total not in : |
| Column Total | Total in : | Total not in : | Grand Total () |
The Inclusion-Exclusion Principle and Working Outward
If you add the total count in Set and the total count in Set , every student in the overlap is counted twice. To find the number of students in at least one of the two sets (), subtract the intersection once:
Including the exterior region of students in neither set gives the universal total :
When constructing or reading any Venn diagram, follow one ironclad rule: always work from the innermost intersection outward.
Worked Example 2: 2-Set Co-Curricular Survey
In a cohort of Year 6 students, students sing in the Choir (), play in the Concert Band (), and participate in neither ensemble. How many students participate in Choir only?
- Subtract "Neither" from the universal total to find the union :
- Find the intersection using inclusion-exclusion:
- Work outward to find the exclusive crescent regions:
- Choir only: students.
- Band only: students.
- Check all four mutually exclusive regions sum to : .
Worked Example 3: 3-Set Venn Diagram (Working Outward from the Triple Overlap)
Among Year 11 students selecting science electives, take Biology (), take Chemistry (), and take Physics (). Suppose take both Biology and Chemistry, take both Biology and Physics, take both Chemistry and Physics, and take all three sciences. To find how many take none of the three sciences:
- Innermost triple intersection: .
- Subtract from each pairwise overlap to find the "exact two sciences" regions:
- Biology and Chemistry only: .
- Biology and Physics only: .
- Chemistry and Physics only: .
- Subtract all three overlap pieces from each circle total to find the "single science only" regions:
- Biology only: .
- Chemistry only: .
- Physics only: .
- Sum all seven interior regions and subtract from :
A school tracks 250 Year 10 students across whether they completed an optional numeracy module (Completed vs. Not Completed) and whether they achieved the term benchmark (Achieved vs. Below Benchmark). Overall, 160 students completed the module, 196 students achieved the benchmark, and 22 students neither completed the module nor achieved the benchmark. Of the students who completed the optional module, what percentage achieved the benchmark?
80.0%
65.3%
51.2%
78.4%
In a survey of 150 primary school students regarding after-school sports, 84 students play Basketball, 66 students participate in Swimming, and 24 students participate in neither activity. How many students play Basketball only (that is, play Basketball but do not participate in Swimming)?
42
24
60
84
A secondary school library records term borrowing across Year 7 (150 students) and Year 8 (150 students). During Term 2, 45 Year 7 students and 75 Year 8 students borrowed at least one biography. If a student is chosen from those who borrowed at least one biography, what percentage of that group are in Year 7?
15.0%
30.0%
62.5%
37.5%
Sections you finish are checked off in the contents.