A survey asked 40 households which device they used to watch their most recent streamed show. Written out, the answers are a jumble: TV, Phone, TV, Laptop, TV, Tablet, Phone, and 33 more. Nobody can see the pattern in a list like that. Counting how many answers fall in each category turns the list into something you can read, and dividing by the total turns it into something you can compare.
Frequency tables
The frequency of a category is the number of observational units in it. A frequency table lists each category of a categorical variable next to its frequency. Here are the 40 answers, abbreviated (T = TV, P = Phone, L = Laptop, B = Tablet):
T P T L T B P T T L P T P T B T L T P T T P L T B T P T T L T P T T B P T L T P
Go through the list once, tallying each answer in its category, then check that the frequencies add up to the number of households:
| Device | Frequency |
|---|---|
| TV | 20 |
| Phone | 10 |
| Laptop | 6 |
| Tablet | 4 |
| Total | 40 |
The total row is the check that no answer was skipped or counted twice. Every household lands in exactly one category, so the frequencies must add to . Categories with no natural order can be listed in any order; ordering them from most to least frequent makes the table easier to read. If the categories have a natural order (Freshman, Sophomore, Junior, Senior, or Never, Sometimes, Often), keep that order.
Relative frequency
A count on its own doesn't tell you whether it's a lot. Ten Phone answers out of 40 is a quarter of the households; ten out of 400 would be a small minority. The relative frequency of a category is its count divided by the total:
A relative frequency table lists each category with its relative frequency:
| Device | Relative frequency |
|---|---|
| TV | |
| Phone | |
| Laptop | |
| Tablet | |
| Total |
Because the counts add to the total, the relative frequencies add to 1. When they're rounded, the sum can come out as 0.99 or 1.01; that's rounding, not an error. A sum like 0.92 or 1.10 means a category is missing or a count is wrong.
A relative frequency is a proportion, and the same information can be written several ways. The Phone category is 0.25 as a proportion or decimal, as a fraction, 25% as a percentage, and "1 in 4 households" in words. A ratio compares categories with each other: TV to Phone is , or 2 to 1, which says TV answers were twice as common as Phone answers. Every one of these comes from the same counts, so each can be turned into the others, as long as you know which categories are involved.
There is one thing a relative frequency table can't tell you: the sample size. A table showing 0.50, 0.25, 0.15, 0.10 fits 40 households or 4,000. If you know , multiply back to get counts: .
Using tables to back a claim
A claim about a categorical variable is supported when you can point to the specific counts or proportions that make it true. Three kinds of claim need different evidence.
Within one group. "Most households watched on a TV" needs a proportion above one half; here it is exactly 0.50, so "half" is accurate and "most" is not. "TV was the most common device" only needs TV to have the largest frequency, which it does. These are different claims: a category can be the most common with only 30% of the units, if every other category has less.
Between groups of different sizes. Compare relative frequencies, not counts. If 45 of 180 people in one town and 60 of 400 in another bike to work, the second town has more bikers but a smaller share: against . A claim about which group bikes more often is about the proportion.
Always in context. A justification names the category, the group and the number: "25% of the 180 surveyed workers in the first town bike to work, compared with 15% of the 400 surveyed in the second." A bare "0.25 > 0.15" doesn't say what was compared.
Worked examples
A city animal shelter reports that, of the 200 animals adopted last month, 15% were neither cats nor dogs, and cats outnumbered dogs 3 to 2. Make a frequency table and a relative frequency table for type of animal adopted.
Show solution
"Other" animals: . That leaves cats and dogs, split in the ratio 3 to 2. A 3-to-2 ratio means cats are of the cats and dogs and dogs are :
| Animal | Frequency | Relative frequency |
|---|---|---|
| Cat | 102 | |
| Dog | 68 | |
| Other | 30 | |
| Total | 200 |
Check: , and . The step that trips people up is the ratio: 3 to 2 compares cats with dogs, so its parts are fractions of the 170 cats and dogs, not of all 200 animals.
A report on the 500 new cars a dealership sold last year says: "Hybrids made up 18% of sales, and there were 3 gasoline cars sold for every 1 electric car." The dealership sells only hybrid, gasoline and electric cars. Use the report to find the number of each type sold.
Show solution
Hybrids: . Gasoline and electric together: . A ratio of 3 to 1 means electric cars are of those 410 and gasoline cars are :
Half a car can't be sold, so the report's figures can't all be exact: the 18% or the 3-to-1 ratio must have been rounded. The best you can say is that the dealership sold 90 hybrids (if 18% is exact), and about 102 or 103 electric cars and about 307 or 308 gasoline cars. Counts must be whole numbers, which makes them a quick check on any percentages or ratios you are given: convert back to counts and see whether they come out whole and add to .
A counselor surveyed all seniors at two high schools about their plans after graduation. The results are in the table.
| Plan | Northview | Southfield |
|---|---|---|
| Four-year college | 176 | 81 |
| Two-year college | 64 | 36 |
| Workforce | 48 | 45 |
| Military | 16 | 9 |
| Undecided | 16 | 9 |
| Total | 320 | 180 |
(a) Construct a relative frequency table for each school.
(b) A school board member says, "Northview has more seniors planning to go straight into the workforce, so going to work is more popular among Northview seniors." Do the data support this claim? Justify your answer.
(c) Is it accurate to say that a majority of seniors at each school plan to attend a four-year college? Justify your answer.
Show solution
(a) Divide each count by its own school's total (320 for Northview, 180 for Southfield):
| Plan | Northview | Southfield |
|---|---|---|
| Four-year college | ||
| Two-year college | ||
| Workforce | ||
| Military | ||
| Undecided | ||
| Total |
(b) No. Northview does have more such seniors (48 compared with 45), but it has many more seniors overall (320 compared with 180). Popularity is about the share of seniors, and only 15% of Northview seniors plan to enter the workforce, compared with 25% of Southfield seniors. Going straight to work is more popular among Southfield seniors.
(c) No. At Northview, , so a majority (55%) of seniors plan to attend a four-year college. At Southfield only 45% do, which is less than half, so it is not a majority there, even though four-year college is still the most common plan at Southfield.
Why these moves: in (a), each column is divided by its own total, because each school's proportions describe that school. Part (b) is a comparison of groups of different sizes, so the justification has to use proportions and say so. Part (c) turns "majority" into a number (more than 0.5) and checks it for each school separately.
Where students lose points
Check yourself
Question 1
In a relative frequency table of the blood types of 250 donors at a blood drive, type O has relative frequency 0.44, type A 0.38, and type B 0.12. The only other type is AB. How many donors had type AB blood?
- A
- B
- C
- D
Show answer
B
The relative frequencies must add to 1, so AB has , and donors. Choice C is the relative frequency, not the count the question asks for; choice A treats the percentage as a count.
- A
Question 2
At a summer camp, campers choose one elective. The ratio of campers choosing archery to those choosing canoeing is 5 to 3, and no camper chose anything else. What proportion of campers chose archery?
Show answer
For every 5 archery campers there are 3 canoeing campers, so archery campers make up 5 of every campers. A common slip is , which compares archery to canoeing rather than archery to all campers.
Question 3
In a survey, 72 of 240 adults in Town A and 90 of 360 adults in Town B said they own an electric bike. Which statement is supported by these data?
- A
Electric bikes are more common in Town B, because 90 is greater than 72.
- B
Electric bikes are more common in Town A, because 30% of surveyed adults there own one, compared with 25% in Town B.
- C
Electric bikes are equally common in the two towns, because the totals differ by the same amount as the counts.
- D
The two towns can't be compared, because the sample sizes are different.
Show answer
B
and , so a larger share of the surveyed adults in Town A own one. Choice A compares counts from groups of different sizes; choice D is wrong because relative frequencies are exactly the tool for comparing groups of different sizes.
- A
Question 4
A relative frequency table lists four categories with relative frequencies 0.33, 0.33, 0.17 and 0.17. Their sum is 1.00. Can you tell how many observational units there were? Explain.
Show answer
No. A relative frequency table doesn't record : these values fit 6 units (2, 2, 1, 1), 12 units (4, 4, 2, 2), or any multiple of 6, among others.
Relative frequencies are counts divided by the total, so the total cancels out of the table. You need to get back to counts.