One Categorical Variable: Tables and Summaries
A categorical data set can be hard to read one response at a time. A table brings the observations together without changing what was measured. Its rows should account for every observation, and its labels should make clear what the counts and proportions describe.
Build Frequency Tables
Suppose twelve students report their usual way to school:
Bus, Bike, Walk, Bus, Car, Bus, Bike, Walk, Bus, Car, Bike, Bus.
A frequency table records the number of observational units in each category. Here, count students, not letters in the category names. Tallying every response gives five bus, three bike, two walk, and two car responses. The frequencies sum to twelve, the number of recorded students. If a category has no observations, a zero-frequency row can still make the set of possible categories clear.
A relative frequency table divides each count by the total number of observations. It gives the proportion of units in the category. For bus, . The denominator is all twelve recorded students, not only students who took motorized transport.
| Usual mode | Frequency, students | Relative frequency | Percentage |
|---|---|---|---|
| Bus | 5 | 5/12 | About 41.7% |
| Bike | 3 | 3/12 | 25% |
| Walk | 2 | 2/12 | About 16.7% |
| Car | 2 | 2/12 | About 16.7% |
| Total | 12 | 1 | 100% before rounding |
Worked Example: Check Before You Report
The displayed percentages sum to 100.1% because three entries were rounded to one decimal place. The exact fractions sum to 1. This is a rounding effect, not a thirteenth student. Keep exact counts or fractions while calculating, then use an appropriate reported precision. A total of eleven counts, in contrast, would indicate that an observation was omitted or classified incorrectly.
Describe the Category Information
Percentages, relative frequencies, and ratios can communicate the same category information. Three bike users out of twelve students can be written as , or as the count-to-total ratio 3:12, simplified to 1:4. State what the ratio compares. A bike-to-bus ratio of 3:5 answers a different comparison unless the rest of the table is also known.
The table supports claims about this sample. “Bus is the most common reported mode among these twelve students” follows from 5 being the largest frequency. “Half the students bike or walk” does not follow: there are 3+2=5 such students, or about 41.7%. A good description combines the category names, a numerical comparison, and the group represented by the data.
Worked Example: Counts and Proportions Together
Suppose another sample has 40 bus users out of 100 students. That sample contains more bus users than this twelve-student sample, but its bus proportion is 40%, slightly below 5/12. Counts describe how many observed units belong to a category. Proportions describe the share of a specified total. They are both useful, but a comparison of shares should not rest on counts alone when sample sizes differ.
To build a table, define non-overlapping category rules, classify each unit once, count every unit, check the total, and label proportions with their denominator. To describe it, choose a claim and point to the counts or relative frequencies that support it. The table makes the evidence visible; the contextual sentence explains why those numbers matter.
Independent Practice
Use the information in each question to make your own calculation, representation, or argument. Explain what your result means in its setting.
Original generated practice for the Fall 2026 course.
Glossary and deeper reading · 4 refreshers
These editorial refreshers supplement the reading. Definitions and examples are added guidance; original source wording and recorded answers remain in their original context.
-
Categorical variable
A categorical variable records a group or label for each individual. Numeric labels still count as categories when arithmetic on them has no meaningful interpretation. For example, favorite school subject is categorical, even if each subject receives a numbered code.
Read more: Categorical variable in the captured Statistics reading →
-
Observation
An observation is a recorded value or set of values for an individual or occasion. The individual may be a person, object, or event rather than a human subject. For example, one plant’s measured height is an observation in a plant-growth study.
-
Frequency table
A frequency table lists the number of observations in each category or numerical interval. Its counts add to the total number of observations when the groups do not overlap and cover all observations. For example, a table can record how many students chose each lunch option.
Read more: Frequency table in the captured Statistics reading →
-
Relative frequency
Relative frequency is a group’s count divided by the total count. It can be written as a proportion or multiplied by 100 to give a percentage. For example, 8 choices out of 20 have relative frequency 0.4, or 40%.
Read more: Relative frequency in the captured Statistics reading →