Two-way tables organize categorical data for two variables — use them to spot patterns and relative frequencies.
A two-way table (also called a contingency table) displays the frequencies of two categorical variables simultaneously. Rows represent one category and columns represent another. You can analyze joint frequencies (individual cells), marginal frequencies (row and column totals), and relative frequencies (proportions).
Survey of 100 students:
Soccer Basketball Total
Grade 7: 18 12 30
Grade 8: 35 35 70
Total: 53 47 100
P(soccer | grade 8) = 35/70 = 50%
P(soccer | grade 7) = 18/30 = 60%
Grade 7 students prefer soccer at a higher rate.Reading a two-way table:
Joint Frequency
Marginal Frequency
To compare groups fairly, use relative frequencies (proportions), not raw counts — especially when group sizes differ.
Remember This!
Always check that row totals and column totals add up to the grand total. If they do not, there is an error in the table.
In a two-way table: 40 students prefer math, 60 prefer science. Of the 40 math-preferrers, 25 are in grade 7. What fraction of math-preferrers are in grade 7?