AP Statistics · Unit 1 · Exploring One-Variable Data and Collecting Data
1.3 One categorical variable: tables and summaries
Organize categorical data in frequency tables, read two-way tables, and calculate relative frequencies, marginal proportions, and conditional proportions.
1/5A frequency table counts individuals in each category
- A frequency table counts individuals in each category
- Relative frequencies show each category’s share of the whole
- A two-way table organizes two categorical variables together
- Marginal and conditional proportions answer different questions
- Compare groups with proportions, not raw counts
- Check your recall
- Practice: 10 questions
Part 1 of 5: A frequency table counts individuals in each category
Suppose 30 students each name a favorite pet. The answers arrive as a messy pile. A table can make the pile readable.
Count how many students gave each answer. The count for one category is its frequency. Listing every category with its frequency gives a frequency table. Frequencies are counts, so they are whole numbers.
Favorite pets of 30 students
- Pet
- Dog
- Frequency
- 12
- Pet
- Cat
- Frequency
- 9
- Pet
- Fish
- Frequency
- 4
- Pet
- Other
- Frequency
- 5
- Pet
- Total
- Frequency
- 30
The frequencies must add to the number of individuals. Here, . If the sum is off, a student was missed or counted twice.
Key terms · tap one for its definition
frequency
The frequency of a category is the number of individuals in the data set that fall in that category.
frequency table
A frequency table is a table that lists every category of a variable with its frequency, so that the frequencies add to the total.
Part 2 of 5: Relative frequencies show each category’s share of the whole
Counts depend on how many individuals were asked, so shares are often more useful. The relative frequency of a category is its share of all individuals. Divide the frequency by the total. It can be written as a decimal, a fraction, or a percent. A percent is the proportion times 100, so 0.40 is 40%.
In words, relative frequency is the frequency divided by the total. In symbols:
Worked example
Relative frequencies of pets
- Dog: .
- Cat: .
- Fish: .
- Other: .
- Check: .
Answer: Dog 40%, cat 30%, fish about 13.3%, and other about 16.7%.
Key term
relative frequency
The relative frequency of a category is its frequency divided by the total number of individuals, a proportion between 0 and 1.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: A · Worked explanation
Part 3 of 5: A two-way table organizes two categorical variables together
Often we record two categorical variables for each individual. A single frequency table cannot show both. A two-way table puts the categories of one variable in rows and the other in columns. Each cell counts the individuals in that combination.
Lunch choice by grade for 100 students
- Grade 9
- School lunch
- 30
- Packed lunch
- 20
- Total
- 50
- Grade 10
- School lunch
- 18
- Packed lunch
- 32
- Total
- 50
- Total
- School lunch
- 48
- Packed lunch
- 52
- Total
- 100
The totals along the edges are called marginal total values. Each describes one variable alone and ignores the other. The corner total is the number of individuals overall.
Read a cell by finding its row and column together. Thirty Grade 9 students choose school lunch, for example. Check that the row totals and the column totals both add to 100. A mismatch means a count was entered wrongly.
Key terms · tap one for its definition
two-way table
A two-way table is a table of frequencies for two categorical variables, with one variable in the rows and the other in the columns.
marginal total
A marginal total is the sum of a row or a column in a two-way table, giving the frequency for one variable alone.
Part 4 of 5: Marginal and conditional proportions answer different questions
Using the lunch table, we can ask about all students or about one grade. A marginal relative frequency divides a marginal total by the overall total. For school lunch, .
A conditional relative frequency divides a cell count by the total of its own row or column. It describes one group only. Read the question carefully: wording such as “of the Grade 9 students” signals a conditional proportion.
Worked example
A conditional proportion
- The question is about Grade 9, so the denominator is the Grade 9 total, 50.
- The numerator is the Grade 9 students choosing school lunch, 30.
- Grade 9: .
- Grade 10: .
Answer: 60% of Grade 9 students choose school lunch, compared with 36% of Grade 10 students.
Key terms · tap one for its definition
marginal relative frequency
A marginal relative frequency is a marginal total divided by the overall total of a two-way table.
conditional relative frequency
A conditional relative frequency is a cell count divided by the total of its row or column, describing one group only.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: B · Worked explanation
Part 5 of 5: Compare groups with proportions, not raw counts
Conditional proportions let us compare groups fairly, even when the group sizes differ. Suppose 20 of 25 students in Class X buy school lunch, and 30 of 50 in Class Y do. Class Y has more buyers, but its share is lower: against .
When conditional proportions differ clearly between groups, the variables show an association. In the lunch table, school lunch is more common in Grade 9 than in Grade 10.
If the proportions are nearly equal across groups, there is little sign of association. Either way, the table describes only the individuals in it. It does not show that one variable causes the other.
Key term
association
An association exists between two categorical variables when the conditional relative frequencies of one differ across the categories of the other.
Check your recall[12 marks]
5 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.Calculate[2 marks]
A survey of 40 students finds that 14 walk, 10 bike, and 16 take the bus to school. Calculate the relative frequency of students who take the bus.
Show mark schemeHide mark scheme
Model answer
Relative frequency is frequency divided by total: , or 40%.
- 1 mark for dividing the frequency 16 by the total 40
- 1 mark for obtaining 0.40 or 40%
- 2.Describe[2 marks]
Describe the difference between a marginal relative frequency and a conditional relative frequency.
Show mark schemeHide mark scheme
Model answer
A marginal relative frequency divides a marginal total by the overall total and describes everyone together. A conditional relative frequency divides by the total of one row or column and describes one group.
- 1 mark for describing the marginal relative frequency as using the overall total
- 1 mark for describing the conditional relative frequency as using the total of one row or column
- 3.Determine[3 marks]
A survey of 80 adults gives this table. Under 30: 20 prefer tea and 30 prefer coffee. Age 30 and over: 18 prefer tea and 12 prefer coffee. Determine the marginal relative frequency of preferring tea and the conditional relative frequency of preferring tea among adults 30 and over.
Show mark schemeHide mark scheme
Model answer
The tea total is , so the marginal relative frequency is . Among adults 30 and over, the total is 30, so the conditional relative frequency is .
- 1 mark for finding the tea total of 38
- 1 mark for obtaining the marginal relative frequency 0.475
- 1 mark for obtaining the conditional relative frequency 0.60 using the total of 30
- 4.Explain[2 marks]
Explain why comparing raw counts can mislead when two groups have different sizes.
Show mark schemeHide mark scheme
Model answer
A larger group tends to have larger counts even when its share is the same or smaller. Relative frequencies divide by each group’s total, so groups of any size can be compared fairly.
- 1 mark for stating that a larger group tends to give larger counts regardless of share
- 1 mark for explaining that relative frequencies use each group’s total and so allow a fair comparison
- 5.Justify[3 marks]
Using the same table of 80 adults, justify whether tea preference appears to be associated with age group.
Show mark schemeHide mark scheme
Model answer
Among adults under 30, prefer tea. Among adults 30 and over, do. These conditional relative frequencies differ clearly, so there is an association between age group and preference in these adults.
- 1 mark for calculating both conditional relative frequencies, 0.40 and 0.60
- 1 mark for comparing them and noting that they differ clearly
- 1 mark for concluding that there is an association in these adults

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyIdentify[1 mark]
Show answer and explanation
Answer: C · Worked explanation
MediumCalculate[1 mark]
Show answer and explanation
Answer: D · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: A · Worked explanation
MediumCalculate[1 mark]
Show answer and explanation
Answer: B · Worked explanation
Medium[1 mark]
Show answer and explanation
Answer: C · Worked explanation
Hard[2 marks]
Show answer and explanation
Answer: A · Worked explanation
Hard[2 marks]
Show answer and explanation
Answer: D · Worked explanation
Hard[2 marks]
Show answer and explanation
Answer: B · Worked explanation