In short
A frequency table lists each category and how many units fall in it. A relative frequency table turns counts into proportions (count ÷ total), which is what lets you compare groups of different sizes. For a categorical variable, the main summary statistics are these proportions, and the category with the largest one is the mode.
What you need to know
- Construct frequency and relative frequency tables for one categorical variable.
- Calculate proportions and percentages from counts.
- Describe a categorical distribution using summary statistics in context.
- Explain why relative frequencies are needed to compare groups of different sizes.
From raw data to a table
Raw categorical data are a list: bus, walk, bus, car, bicycle, bus, … A frequency table counts how many units fall in each category. A relative frequency table divides each count by the total, giving the proportion (or percentage) in each category. The relative frequencies always add to 1, or 100%, apart from rounding.
| Transport | Frequency | Relative frequency |
|---|---|---|
| Bus | 54 | 54/120 = 0.45 |
| Walk | 30 | 30/120 = 0.25 |
| Car | 24 | 24/120 = 0.20 |
| Bicycle | 12 | 12/120 = 0.10 |
| Total | 120 | 1.00 |
Describing the distribution
The distribution of a categorical variable tells you which categories occur and how often. Describe it with proportions in context: "In this sample, the bus is the most common way to travel to school (45% of students), followed by walking (25%), travelling by car (20%) and cycling (10%)." The most common category is the mode.
There is no mean or median for a categorical variable like transport: the categories have no numerical values to average and often no natural order. Summary statistics for categorical data are counts, proportions and percentages.
Why relative frequency matters
Suppose School A has 80 students who walk and School B has 60. It is tempting to say School A has more walkers, but if School A has 400 students and School B has 200, the proportions are 80/400 = 0.20 and 60/200 = 0.30. A larger share of School B walks. Counts answer "how many"; proportions answer "what fraction", and only proportions compare groups of different sizes fairly.
Proportions also connect this topic to the rest of the course. In Unit 2 a relative frequency becomes a probability: if 45% of the students in a large school take the bus, the probability that a randomly chosen student takes the bus is about 0.45. In Unit 3 the sample proportion p̂ becomes the starting point for estimating the population proportion p with a confidence interval, and for testing claims such as "more than 40% of students take the bus". Everything there begins with calculating p̂ correctly here.
Key terms
- Frequency table
- A table showing the count of units in each category.
- Relative frequency
- The proportion of units in a category: count divided by total.
- Distribution
- The categories or values a variable takes and how often each occurs.
- Mode
- The category (or value) that occurs most often.
- Sample proportion (p̂)
- The proportion of a sample with a characteristic.
Common mistakes
Comparing raw counts between groups of different sizes.
Convert to proportions or percentages before comparing.
Reporting a 'mean' or 'median' of a categorical variable.
Summarise categorical variables with counts, proportions and the mode.
Relative frequencies that do not add to 1.
Check the total; small differences should only come from rounding.
How this topic is tested
- Show the division (54/120 = 0.45) so the method earns credit even if you slip on arithmetic.
- When describing, name the variable, the categories and the group, and give proportions.
- If two groups have different sizes, say explicitly that you compared proportions.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · SP 3 · Analyze Data
In a sample of 250 shoppers, 85 paid by card. What is the relative frequency of paying by card?
Question 2 · SP 3 · Analyze Data
A relative frequency table for blood type shows O: 0.38, A: 0.29, B: 0.26 and AB. What is the relative frequency for AB?
Question 3 · SP 4 · Interpret Results
Club X has 30 members who play chess out of 150; Club Y has 24 out of 80. Which statement is correct?
Question 4 · SP 3 · Analyze Data
Which is an appropriate summary statistic for the variable 'favourite subject'?
Question 5 · SP 3 · Analyze Data
A survey records whether each of 400 adults has a library card; 0.62 do. How many adults in the survey have a library card?
Free-response practice
Write your answer first, then mark it against the scoring guide.
Practices 3 and 4 (short) · 4 points
A random sample of 160 visitors to a museum was asked how they heard about it: social media (64), friends or family (48), the museum's website (32) or a newspaper (16).
- (a) Construct a relative frequency table.
- (b) Describe the distribution in context.
Scoring guide: one point for each of the following
Part (a)
- Social media 0.40, friends or family 0.30, website 0.20, newspaper 0.10.
- Relative frequencies are correctly computed as count/160 and total 1.
Part (b)
- Social media was the most common source (40% of the sampled visitors).
- It is followed by friends or family (30%), the website (20%) and newspapers (10%), with the variable and group named.
Connected topics
Frequently asked questions
Should I use proportions or percentages?
Either is fine if you are consistent and label them. Proportions (0.45) are used in formulas; percentages (45%) read naturally in sentences.
What is a 'distribution' for categorical data?
The list of categories with how often each occurs, as counts or proportions.
How many decimal places should I give?
Two or three decimal places for proportions is usually enough; never round so much that the comparison you are making disappears.