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.

Last updated: October 2026

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 (NN): 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 NN.

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 400400 students in Years 7 to 9 at Greenvale Secondary College regarding their primary mode of transport to school:

Year LevelBusWalkCar / Drop-offRow Total
Year 7727238384040150150
Year 8686842423030140140
Year 9606020203030110110
Column Total200200100100100100400400

Suppose the cells for Year 7 Car (4040), Year 8 Row Total (140140), and Year 9 Bus (6060) were initially blank:

  1. Year 7 Car / Drop-off: The Year 7 row total is 150150, so 150−(72+38)=150−110=40150 - (72 + 38) = 150 - 110 = 40.
  2. Year 8 Row Total: All three interior cells in Year 8 are known, so 68+42+30=14068 + 42 + 30 = 140.
  3. Year 9 Bus: The Bus column total is 200200, so 200−(72+68)=200−140=60200 - (72 + 68) = 200 - 140 = 60. (You can cross-check this using the Year 9 row total: 110−(20+30)=60110 - (20 + 30) = 60.)

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 4242 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 TypeWording Cues in the QuestionFormulaCalculation for "Year 8" and "Walk" (Cell = 4242)
1. Joint Percentage"What percentage of all surveyed students are in Year 8 and walk to school?"Interior CellGrand Total N×100%\frac{\text{Interior Cell}}{\text{Grand Total } N} \times 100\%42400×100%=10.5%\frac{42}{400} \times 100\% = 10.5\%
2. Row-Conditional Percentage"Of the Year 8 students, what percentage walk to school?"Interior CellRow Total×100%\frac{\text{Interior Cell}}{\text{Row Total}} \times 100\%42140×100%=30.0%\frac{42}{140} \times 100\% = 30.0\%
3. Column-Conditional Percentage"Of the students who walk to school, what percentage are in Year 8?"Interior CellColumn Total×100%\frac{\text{Interior Cell}}{\text{Column Total}} \times 100\%42100×100%=42.0%\frac{42}{100} \times 100\% = 42.0\%

Before touching the calculator, always underline the phrase immediately following "of", "among", or "given that":

  • "What percentage of all students..." →\rightarrow Divide by the Grand Total (400400).
  • "What percentage of Year 8 students..." →\rightarrow Restrict your universe to the Year 8 Row Total (140140).
  • "Of the students who walk to school, what percentage..." →\rightarrow Restrict your universe to the Walk Column Total (100100).

Notice also that converse conditional percentages are not equal: 30.0%30.0\% of Year 8 students walk to school, whereas 42.0%42.0\% 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 2×22 \times 2 two-way table and a 2-set Venn diagram represent the exact same information:

Set A StatusIn Set BBNot in Set BB (B′B')Row Total
In Set AABoth AA and BB: n(A∩B)n(A \cap B)AA only: n(A∩B′)n(A \cap B')Total in AA: n(A)n(A)
Not in Set AA (A′A')BB only: n(A′∩B)n(A' \cap B)Neither AA nor BB: n((A∪B)′)n((A \cup B)')Total not in AA: n(A′)n(A')
Column TotalTotal in BB: n(B)n(B)Total not in BB: n(B′)n(B')Grand Total (NN)

The Inclusion-Exclusion Principle and Working Outward

If you add the total count in Set AA and the total count in Set BB, every student in the overlap A∩BA \cap B is counted twice. To find the number of students in at least one of the two sets (A∪BA \cup B), subtract the intersection once:

n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B)

Including the exterior region of students in neither set gives the universal total NN:

N=n(A∪B)+n(Neither)=n(A)+n(B)−n(A∩B)+n(Neither)N = n(A \cup B) + n(\text{Neither}) = n(A) + n(B) - n(A \cap B) + n(\text{Neither})

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 120120 Year 6 students, 6868 students sing in the Choir (CC), 5454 play in the Concert Band (BB), and 1818 participate in neither ensemble. How many students participate in Choir only?

  1. Subtract "Neither" from the universal total NN to find the union n(C∪B)n(C \cup B):
n(C∪B)=120−18=102 students in at least one ensemble n(C \cup B) = 120 - 18 = 102\text{ students in at least one ensemble}
  1. Find the intersection n(C∩B)n(C \cap B) using inclusion-exclusion:
n(C∩B)=n(C)+n(B)−n(C∪B)=68+54−102=122−102=20 students in both n(C \cap B) = n(C) + n(B) - n(C \cup B) = 68 + 54 - 102 = 122 - 102 = 20\text{ students in both}
  1. Work outward to find the exclusive crescent regions:
    • Choir only: n(C)−n(C∩B)=68−20=48n(C) - n(C \cap B) = 68 - 20 = 48 students.
    • Band only: n(B)−n(C∩B)=54−20=34n(B) - n(C \cap B) = 54 - 20 = 34 students.
  2. Check all four mutually exclusive regions sum to NN: 48+20+34+18=12048 + 20 + 34 + 18 = 120.

Worked Example 3: 3-Set Venn Diagram (Working Outward from the Triple Overlap)

Among 100100 Year 11 students selecting science electives, 4545 take Biology (BB), 4040 take Chemistry (CC), and 3535 take Physics (PP). Suppose 1818 take both Biology and Chemistry, 1313 take both Biology and Physics, 1515 take both Chemistry and Physics, and 88 take all three sciences. To find how many take none of the three sciences:

  1. Innermost triple intersection: n(B∩C∩P)=8n(B \cap C \cap P) = 8.
  2. Subtract 88 from each pairwise overlap to find the "exact two sciences" regions:
    • Biology and Chemistry only: 18−8=1018 - 8 = 10.
    • Biology and Physics only: 13−8=513 - 8 = 5.
    • Chemistry and Physics only: 15−8=715 - 8 = 7.
  3. Subtract all three overlap pieces from each circle total to find the "single science only" regions:
    • Biology only: 45−(10+8+5)=2245 - (10 + 8 + 5) = 22.
    • Chemistry only: 40−(10+8+7)=1540 - (10 + 8 + 7) = 15.
    • Physics only: 35−(5+8+7)=1535 - (5 + 8 + 7) = 15.
  4. Sum all seven interior regions and subtract from 100100:
n(B∪C∪P)=22+15+15+10+5+7+8=82  ⟹  n(None)=100−82=18 students n(B \cup C \cup P) = 22 + 15 + 15 + 10 + 5 + 7 + 8 = 82 \implies n(\text{None}) = 100 - 82 = 18\text{ students}
Test Your Knowledge

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?

A

80.0%

B

65.3%

C

51.2%

D

78.4%

Test Your Knowledge

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)?

A

42

B

24

C

60

D

84

Test Your Knowledge

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?

A

15.0%

B

30.0%

C

62.5%

D

37.5%

Sections you finish are checked off in the contents.