1 / 21
Categorical Data and Two-Way Tables | Lesson 1 of 2

Categorical Data and Two-Way Tables

You will be able to:

  • Tell categorical data from measurement data
  • Build a two-way frequency table
  • Name joint, marginal, and grand-total frequencies
Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Learning Objectives for This Lesson

By the end of this lesson, you will be able to:

  1. Distinguish categorical data from measurement data
  2. Explain why scatter plots fail for categories
  3. Construct a two-way frequency table from data
  4. Identify joint frequencies, marginal frequencies, and the grand total
Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Scatter Plots Only Work for Numbers

A working numeric scatter beside an axis labeled yes and no that cannot be plotted

  • Height vs. shoe size → a scatter plot works
  • "Eat breakfast?" yes/no → you can't plot "yes"
Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

A New Tool for Categories

An empty two-by-two two-way table frame with row, column, and total labels

When both variables are categories, organize the data in a two-way table.

Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

The Two Fundamental Kinds of Data

  • Measurement data: numbers where arithmetic makes sense — height, score
  • Categorical data: labels or categories — yes/no, color, pet type
  • The data type decides the display
Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Anatomy of a Two-Way Table

Two-way table with interior cells, margins, and corner color-coded and labeled

Rows and columns are the categories; the interior, margins, and corner each have a name.

Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Joint Frequency Counts Both Traits

  • A joint frequency sits in an interior cell
  • It counts subjects with both the row trait and the column trait
  • Example: students who eat breakfast and feel tired
Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Marginal Frequency Counts One Trait

  • A marginal frequency sits in a total row or total column
  • It counts subjects with one trait, ignoring the other
  • Example: all students who eat breakfast, tired or not
Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

The Grand Total Counts Everyone

  • The grand total is the corner cell
  • It counts all subjects in the survey
  • It equals the sum of any total row or total column
Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Quick Check: Name the Parts

In a two-way table, which number counts students with both traits — and which counts one trait?

Match "joint" and "marginal" to each before advancing.

Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Build From Raw Data: Frame and Tally

A two-way table frame with tally marks accumulating in the cells

  • Step 1: Draw the frame — rows, columns, totals
  • Step 2: Tally each student into one cell
Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Step 3: Record the Joint Frequencies

Tired Not Tired Total
Breakfast 5 13 18
No Breakfast 9 3 12
Total 14 16 30
Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Step 4: Verify the Totals

  • Rows: , and
  • Columns: , and
  • Grand total:
Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Verification Is a Built-In Check

  • The margins must reconcile both ways
  • Row totals sum = column totals sum = grand total
  • Disagreement means a miscount somewhere
Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Build a Table From a Description

Prefer Math Prefer Reading Total
Play Sport 12 3 15
No Sport 4 6 10
Total 16 9 25
Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Quick Check: Draw the Skeleton

A survey asks 50 people: pet (dog / no dog) and home (house / apartment).

Sketch the two-way table skeleton — rows, columns, totals — before advancing.

Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Your Turn: Name and Explain

Using the breakfast table:

  1. Point to one joint frequency and say what it means
  2. Point to one marginal frequency and say what it means

Explain both in context before comparing.

Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Your Turn: Complete the Table

There are 60 students. 35 are girls. 20 girls play an instrument. 10 boys play an instrument.

Complete the full two-way table and verify the totals.

Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Your Turn: Build It Yourself

Raw data lists 24 students by (Walks to school?, Packs lunch?).

  1. Draw the frame and tally each student
  2. Record the counts and verify the totals

Build the whole table on your own first.

Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Same Question, but a New Tool

✓ Categorical data needs a two-way table, not a scatter plot
✓ Interior cells are joint; margins are marginal; corner is grand total
✓ Verify by reconciling the totals both ways

Grade 8 Math | 8.SP.A.4
Categorical Data and Two-Way Tables | Lesson 1 of 2

Coming Up Next: Finding Association

Next lesson, you'll turn these counts into percentages — relative frequencies — which is how you actually detect whether the two variables are associated.

Grade 8 Math | 8.SP.A.4