Two-way tables: joint, marginal and conditional proportions

Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

About this lesson

Algebra I › Two-variable statistics

To save a PDF, choose “Save as PDF” in the print dialog.

Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits

Two-way tables: joint, marginal and conditional proportions

Two-variable statistics. two-way tables, scatter plots, line of best fit, residuals, correlation coefficient

Warm-up

Three quick questions from earlier lessons.

  1. A survey of 23 students records the following. Tick all the categorical variables.
    1. Eye color
    2. ZIP code
    3. Takes the bus to school (yes/no)
    4. Height in cm
    5. Number of siblings
  2. Area codes such as 770 are numbers. Is the area code of a phone number a quantitative variable?
    1. No: it is categorical, a label that only looks like a number
    2. Yes: its values are numbers
    3. Yes, a discrete quantitative variable
  3. A study measures the resting heart rate of 29 runners. What are the cases (observational units)?
    1. The 29 runners
    2. The heart rates
    3. The number 29

Discover

In a class, 12 of 20 girls and 9 of 15 boys play a sport. Who is more likely to play, a girl or a boy?

  1. Equally likely: 60% each
  2. A girl: 12 is more than 9

Key idea

A two-way table counts cases by two categorical variables.

Joint proportion: a cell ÷ grand total. Marginal proportion: a row or column total ÷ grand total. Conditional proportion: a cell ÷ its row (or column) total: the proportion within one group.

Worked example

Pets: 30 cat owners (18 adults, 12 children), 50 dog owners (35 adults, 15 children).

Joint: adults with cats =1880= \tfrac{18}{80}
Cell ÷ 80.
Marginal: adults =5380= \tfrac{53}{80}
Column total ÷ 80.
Conditional: adults among cat owners =1830=0.6= \tfrac{18}{30} = 0.6
Within cat owners.

Your turn, guided

Your turn: children among dog owners.

0.30.3
15 of 50.

Practice ★

  1. A survey asked 145 people whether they exercise weekly. Under 30: 22 yes, 43 no. Age 30 or over: 27 yes, 53 no. What proportion of the under-30s exercise weekly?
  2. A survey asked 121 people whether they exercise weekly. Under 30: 59 yes, 12 no. Age 30 or over: 23 yes, 27 no. What proportion of the under-30s exercise weekly?
  3. A survey asked 150 people whether they exercise weekly. Under 30: 41 yes, 40 no. Age 30 or over: 19 yes, 50 no. What proportion of the under-30s exercise weekly?

Watch out!

Practice ★★

  1. A survey asked 124 people whether they exercise weekly. Under 30: 21 yes, 50 no. Age 30 or over: 31 yes, 22 no. What proportion of all the people exercise weekly?
  1. A survey asked 140 people whether they exercise weekly. Under 30: 47 yes, 17 no. Age 30 or over: 37 yes, 39 no. What proportion of all the people are under 30 and exercise weekly?
  2. A survey asked 135 people whether they exercise weekly. Under 30: 44 yes, 25 no. Age 30 or over: 10 yes, 56 no. What proportion of all the people are under 30 and exercise weekly?

Exit ticket

Three questions to check you have got it.

  1. A survey asked 145 people whether they exercise weekly. Under 30: 22 yes, 43 no. Age 30 or over: 27 yes, 53 no. What proportion of the under-30s exercise weekly?
  2. A survey asked 121 people whether they exercise weekly. Under 30: 59 yes, 12 no. Age 30 or over: 23 yes, 27 no. What proportion of the under-30s exercise weekly?
  3. A survey asked 150 people whether they exercise weekly. Under 30: 41 yes, 40 no. Age 30 or over: 19 yes, 50 no. What proportion of the under-30s exercise weekly?

Summary card

Two-way tables

  • Joint: cell / total. Marginal: margin / total.
  • Conditional: cell / its group total.

Watch out: name the group you condition on.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Of 150 students, 50 play an instrument, 40 play a club sport, and 12 do both. How many do neither?
Sources and credits

Written with this source as a starting point:

sedifier rewrote the text and added its own examples and exercises.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits