Two-Way Tables

A two-way table sorts data by two categories at once: one runs across the columns, the other down the rows. Each inner cell is a count of items that match both labels — its row label and its column label. The totals sit in the margins: a Total column on the right adds up each row, a Total row along the bottom adds up each column.

Suppose we ask every pupil in a class whether they walk, take the bus, or come by car, and we split that by boys and girls. One category (travel) goes across, the other (boys/girls) goes down:

WalkBusCarTotal
Boys85215
Girls67215
Total1412430

Read across the boys' row: 8 + 5 + 2 = 15. Read down the walk column: 8 + 6 = 14. The grand total in the bottom-right corner, 30, is reached either way — across the margins (15 + 15) or along them (14 + 12 + 4) — because every pupil is counted in exactly one cell.