Two-Way Tables & Relative Frequencies (College Board AP® Statistics)

Study Guide

Dan Finlay

Written by: Dan Finlay

Reviewed by: Lucy Kirkham

Two-way tables

What is a two-way table?

  • A two-way table is used when there are two categorical variables

    • e.g. the school year and favorite subject of a random sample of students

  • The rows represent one variable and the columns represent the other variable

  • The number in a cell of a two-way table represents the frequency of the data, which satisfies the relevant values of both variables

    • This is called the cell frequency or the joint frequency

  • The totals for each row and each column are usually included in a two-way table

    • These are called marginal frequencies

Table listing favorite subjects (math, science, languages) of 9th and 12th graders, with marginal, joint, and total frequencies. Total: 50 students.
Example of a two-way table showing the frequencies of people in different school years and different favorite subjects

Joint, marginal & conditional relative frequencies

What are joint relative frequencies?

  • The joint relative frequencies are the proportions of the total that belong to each cell

  • To calculate a joint relative frequency for a cell

    • divide the joint (cell) frequency by the total frequency

      • e.g. divide the number of students in the 9th grade who say math is their favorite subject by the total number of students

  • If a two-way table is used to display joint relative frequencies then the total for the table is 1

What are marginal relative frequencies?

  • The marginal relative frequencies are the proportions of the total that belong to each row or column

  • To calculate a marginal relative frequency for a row or column

    • divide the marginal frequency by the total frequency

      • e.g. divide the number of students in the 9th grade by the total number of students

  • If a two-way table is used to display joint relative frequencies then each row or column will add up to the corresponding marginal relative frequency

Two two-way tables showing favorite school subjects by grade. The first shows frequencies and the second shows relative frequencies.
Example of joint and marginal relative frequencies

What are conditional relative frequencies?

  • A conditional relative frequency is the proportion of the total of a row or column that belongs to that cell

    • e.g. the proportion of students in the 9th grade who say math is their favorite subject is a conditional relative frequency

  • To calculate a conditional relative frequency

    • divide the joint (cell) frequency by the relevant marginal frequency

      • e.g. divide the number of students in the 9th grade who say math is their favorite subject by the total number of students in the 9th grade

  • If a two-way table is used to display conditional relative frequencies which are conditional of the row variable

    • then the conditional relative frequencies in each row will add up to 1

  • If a two-way table is used to display conditional relative frequencies which are conditional of the column variable

    • then the conditional relative frequencies in each column will add up to 1

Three tables illustrating the distribution and conditional probabilities of students' favorite subjects (Math, Science, Languages) across 9th and 12th grades.
Example of conditional relative frequencies

Last updated:

You've read 0 of your 5 free study guides this week

Sign up now. It’s free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Dan Finlay

Author: Dan Finlay

Expertise: Maths Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.

Lucy Kirkham

Author: Lucy Kirkham

Expertise: Head of STEM

Lucy has been a passionate Maths teacher for over 12 years, teaching maths across the UK and abroad helping to engage, interest and develop confidence in the subject at all levels.Working as a Head of Department and then Director of Maths, Lucy has advised schools and academy trusts in both Scotland and the East Midlands, where her role was to support and coach teachers to improve Maths teaching for all.