build and read a two-way table for two categorical variables, including row and column totals.
Phase 4: Build
Do Now. Not all data are numbers. Some answers are yes or no. Read how the U.S. Department of Agriculture reports one big yes-or-no question about American households.
The reading reports 115.7 million food-secure households and 18.3 million food-insecure households in 2024. How many households is that in all?
The reading opens over the lesson; close it to come back to exactly where you were.
Categorical data. Hours of sleep is numerical data. “Do you keep your phone in your bedroom at night: yes or no?” is categorical data, because each answer puts a person in a category. To compare two categorical variables for the same people, we use a two-way table.
How a two-way table works. One variable’s categories label the rows. The other’s label the columns. Each inside cell counts the people who fit both labels. The last column and last row hold the totals, called marginal totals. The bottom right cell is the grand total, and every person is counted in exactly one inside cell.
Worked example 1: Mia builds the phone and sleep table. In a sample survey of 100 eighth graders, 60 keep a phone in the bedroom at night. Of those 60, 18 get 8 or more hours of sleep, so 60 − 18 = 42 get fewer. Of the 40 without a phone, 24 get 8 or more hours, so 40 − 24 = 16 get fewer. Column totals: 18 + 24 = 42 and 42 + 16 = 58. Check: 42 + 58 = 100 and 60 + 40 = 100.
| Sample survey, 100 eighth graders | 8 or more hours of sleep | Fewer than 8 hours | Total |
|---|---|---|---|
| Phone in the bedroom at night | 18 | 42 | 60 |
| No phone in the bedroom | 24 | 16 | 40 |
| Total | 42 | 58 | 100 |
Worked example 2: Jordan builds a table from the ERS report. The page gives totals for all households and for households with children. Jordan subtracts to get households without children: food secure 115.7 − 29.9 = 85.8 million, food insecure 18.3 − 6.7 = 11.6 million. Row totals: 29.9 + 6.7 = 36.6 and 85.8 + 11.6 = 97.4. Check: 36.6 + 97.4 = 134.0, the grand total. He labels the subtracted row as our calculation from the ERS numbers.
| U.S. households, 2024 (millions) | Food secure | Food insecure | Total |
|---|---|---|---|
| With children under 18 | 29.9 | 6.7 | 36.6 |
| Without children (our subtraction) | 85.8 | 11.6 | 97.4 |
| All households | 115.7 | 18.3 | 134.0 |
Numbers into categories. A numerical answer can become categorical if we choose a cut-off, such as “8 or more hours” and “fewer than 8 hours.” The CDC’s sleep advice for teens, which we read next lesson, is a good reason to pick 8.
Use the phone and sleep sample table and the ERS table.
Build your panel’s first two-way table.
Complete this sample table and check the grand total two ways: 50 students; 20 are in a club and 12 of those read for fun every week; of the 30 not in a club, 18 read for fun every week.
Use the reading. Explain how Jordan found the without-children row, and why his check 36.6 + 97.4 = 134.0 matters.
A two-way table sorts each person twice and counts each person once.
Exit ticket: in the phone and sleep table, what is the difference between the 18 and the 42 in the first column?
Pacing: warm-up and reading 7 minutes, mini lecture 10, guided practice 13, independent 8, closure 2.
Sensitivity: food insecurity may touch some students’ lives. Treat it as a community planning number, never ask students about their own households, and mention that school meal programs and local food pantries exist to help.
Likely misconceptions: adding across a row and a column into the same total; counting a person twice; reading a marginal total as a cell.
Supports: color the row labels and column labels differently. Stretch: build the ERS table for very low food security if the page’s numbers allow it (it does not give a without-children value, so students must explain why they cannot).
Answer guide: warm-up 134.0 million; 18; 85.8; all students with under 8 hours; true; school team; 50. Club table: club and read 12, club and not 8, no club and read 18, no club and not 12; read total 30, not 20; grand total 50 both ways. Jordan subtracted the with-children counts from the all-households counts; the check shows the rows add back to the page’s total. Exit ticket: 18 is students with a phone who get 8 or more hours; 42 is everyone who gets 8 or more hours. ERS figures are for 2024, from the page opened 2026-11-20; the without-children row is our subtraction.
USDA Economic Research Service, Food Security in the U.S.: Key Statistics and Graphics · U.S. government work, public domain
The Economic Research Service, or ERS, is part of the U.S. Department of Agriculture. Every year it reports on food security: whether every member of a household could get enough food for an active, healthy life at all times during the year. A household is food insecure if, at times, it was unsure of having or could not get enough food because of too little money or other resources.
For 2024, the ERS page reports that 86.3 percent of U.S. households, about 115.7 million, were food secure. The other 13.7 percent, about 18.3 million households, were food insecure at some time during the year. Of those, 5.4 percent of all households, about 7.2 million, had very low food security.
The page also reports on households with children under 18. Among them, 81.6 percent, about 29.9 million, were food secure, and 18.4 percent, about 6.7 million, were food insecure. In about 3.3 million of those households, both children and adults were food insecure.
Notice that the page sorts each household two ways at once: by food security and by whether children live there. Sorting by two yes-or-no questions is exactly what a two-way table does. Today we will build that table, using subtraction to find the households without children.
Source: USDA Economic Research Service, Food Security in the U.S.: Key Statistics and Graphics (ers.usda.gov)