AP Statistics Unit 8 Inference for Categorical Data

Topic 8.4: Expected Counts in Two-Way Tables

Calculating Expected Counts from Row Totals, Column Totals, and the Table Total
Video Follow-Along Worksheet
↻ Already did this one? It stays open even after it’s checked off — just change any answer and click ✓ Check Answers again (no need to Reset). ✨ Grade with AI only ever raises your grade. Make sure you’re signed in so your changes save.
Learning Objectives: Essential Knowledge:

Key Vocabulary

Two-Way TableA table that summarizes counts for two categorical variables.
Expected CountThe count predicted for a cell if there is no relationship between the two variables.
Observed CountThe actual count recorded in a cell of the table.
Row TotalThe total count across one row of the table.
Column TotalThe total count down one column of the table.
Table TotalThe grand total of all counts in the table.
No RelationshipThe assumption that the row and column variables are not associated.
CellA single interior box in a two-way table where a row and column meet.
Subtraction ShortcutUsing row totals and column totals to find remaining expected counts after some are calculated.
KeyA label that explains what numbers in parentheses represent.

Video 1: Expected Counts in Two-Way Tables

[0:00 – 7:51]
1. [0:23] The main question for this lesson is how to calculate in two-way tables of categorical data.
2. [1:07] A two-way table summarizes data for categorical variables.
Context — Where Do You Go To School? [1:30 – 1:49] A random sample of parents with school-aged children was taken in 2019, and a separate random sample was taken in 2020. Parents were asked what type of school their children attended.
School Type 2019 Sample 2020 Sample Row Total
Public 266 163 429
Private/Parochial/Charter 16 21 37
Home 38 30 68
Column Total 320 214 534
3. [2:01] Expected counts in a two-way table are calculated assuming there is no between the two categorical variables.
4. [2:22] The first totals to compute are the .
5. [2:31] Next, compute the for each year.
6. [2:40] The table total for the school example is .
7. [3:26] Because 429/534 = 0.8034, about of the 2019 sample would be expected to attend public school if there is no relationship.
8. [3:51] The expected count for Public in 2019 is .
9. [4:10] The general expected-count formula divides by the .
Expected Count Rule [4:10 – 6:00]
Expected count = (row total × column total) / table total
  1. Find the row totals, column totals, and the table total.
  2. Use the formula for one or two cells to get started.
  3. Use subtraction with row totals and column totals to find remaining interior cells when possible.
  4. Do not calculate expected counts for the totals row or totals column.
10. [4:38] The expected count for Private/Parochial/Charter in 2019 is .
11. [5:29] Using subtraction from the 2019 column total, the expected count for Home in 2019 is .
12. [5:45] Using subtraction from the Public row total, the expected count for Public in 2020 is .
13. [6:00] The expected count for Private/Parochial/Charter in 2020 is .
14. [6:00] The expected count for Home in 2020 is .
15. [6:00] We do not calculate expected counts for the .
16. [6:00] If expected counts are written in parentheses, include a clear to identify them.
Practice Context — Are You Working? [6:35 – 7:02] A random sample of 2,000 adults recorded education level and employment status. Education level is shown in the columns, and employment status is shown in the rows.
Employment Status No HS Diploma HS Diploma
No College
HS Diploma
Some College
Row Total
Employed 206 548 1186 1940
Unemployed 14 22 24 60
Column Total 220 570 1210 2000
17. [6:35] In the practice table, education level is represented by the .
18. [6:35] Employment status is represented by the .
19. [7:02] The expected count for Employed and No HS Diploma is .
20. [7:02] The expected count for Employed and HS Diploma / No College is .
21. [7:02] After calculating a few expected counts with the formula, the remaining cells can often be found by .

Key Takeaways

[Summary]
  1. Expected counts in a two-way table are based on the assumption of no relationship between the two categorical variables.
  2. Always start with the row totals, column totals, and table total.
  3. Use expected count = (row total × column total) / table total.
  4. Use subtraction to finish the table once enough expected counts are known.
  5. Do not compute expected counts for the totals, and label parentheses with a clear key if expected counts are shown in the table.

Reflection Questions

[AI-Graded]
R1. Explain how the school-type-by-year table is used to calculate expected counts. Include the assumption of no relationship, the row totals and column totals, the table total 534, the formula (row total × column total) / table total, the expected count 257.1 for Public in 2019, and how subtraction gives the remaining expected counts.
R2. Explain how the employment example uses both the expected-count formula and the subtraction shortcut. Include the totals 1940, 60, 220, 570, 1210, and 2000, the expected counts 213.4 and 552.9 for the first two employed cells, the remaining expected counts 1173.7, 6.6, 17.1, and 36.3, and why totals do not get expected counts.

Exit Ticket

A random sample of 2,000 adults produced the following observed counts for employment status by education level: Employed = 206, 548, 1186 and Unemployed = 14, 22, 24. The column totals are 220, 570, and 1210.

Class Responses (Esc to close)

Click a "Class" button next to a question to see responses.