Skip to content

Unit 1: Exploring One-Variable Data and Collecting Data

Tabular Representation and Summary Statistics for One Categorical Variable

Build frequency and relative frequency tables for a categorical variable, move between counts, proportions, percents and ratios, and use them to back a claim.

Topic 1.3 · 8 min read

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:

DeviceFrequency
TV20
Phone10
Laptop6
Tablet4
Total40

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 n=40n = 40. 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:

relative frequency=frequency of the categorytotal number of observational units.\text{relative frequency} = \frac{\text{frequency of the category}}{\text{total number of observational units}}.

A relative frequency table lists each category with its relative frequency:

DeviceRelative frequency
TV20/40=0.5020/40 = 0.50
Phone10/40=0.2510/40 = 0.25
Laptop6/40=0.156/40 = 0.15
Tablet4/40=0.104/40 = 0.10
Total1.001.00

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, 1040=14\frac{10}{40} = \frac{1}{4} 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 20:1020 : 10, 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 nn, multiply back to get counts: frequency=relative frequency×n\text{frequency} = \text{relative frequency} \times n.

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: 45180=0.25\frac{45}{180} = 0.25 against 60400=0.15\frac{60}{400} = 0.15. 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

Worked exampleExample 1: reading a relative frequency table backward

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: 0.15×200=300.15 \times 200 = 30. That leaves 200−30=170200 - 30 = 170 cats and dogs, split in the ratio 3 to 2. A 3-to-2 ratio means cats are 35\frac{3}{5} of the cats and dogs and dogs are 25\frac{2}{5}:

cats=35(170)=102,dogs=25(170)=68.\text{cats} = \tfrac{3}{5}(170) = 102, \qquad \text{dogs} = \tfrac{2}{5}(170) = 68.
AnimalFrequencyRelative frequency
Cat102102/200=0.51102/200 = 0.51
Dog6868/200=0.3468/200 = 0.34
Other3030/200=0.1530/200 = 0.15
Total2001.001.00

Check: 102+68+30=200102 + 68 + 30 = 200, and 102:68=3:2102 : 68 = 3 : 2. 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.

Worked exampleExample 2: when the forms don't agree

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: 0.18×500=900.18 \times 500 = 90. Gasoline and electric together: 500−90=410500 - 90 = 410. A ratio of 3 to 1 means electric cars are 14\frac{1}{4} of those 410 and gasoline cars are 34\frac{3}{4}:

electric=14(410)=102.5,gasoline=34(410)=307.5.\text{electric} = \tfrac{1}{4}(410) = 102.5, \qquad \text{gasoline} = \tfrac{3}{4}(410) = 307.5.

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 nn.

Worked exampleExample 3: exam-style free response

A counselor surveyed all seniors at two high schools about their plans after graduation. The results are in the table.

PlanNorthviewSouthfield
Four-year college17681
Two-year college6436
Workforce4845
Military169
Undecided169
Total320180

(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):

PlanNorthviewSouthfield
Four-year college176/320=0.55176/320 = 0.5581/180=0.4581/180 = 0.45
Two-year college64/320=0.2064/320 = 0.2036/180=0.2036/180 = 0.20
Workforce48/320=0.1548/320 = 0.1545/180=0.2545/180 = 0.25
Military16/320=0.0516/320 = 0.059/180=0.059/180 = 0.05
Undecided16/320=0.0516/320 = 0.059/180=0.059/180 = 0.05
Total1.001.001.001.00

(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, 0.55>0.500.55 > 0.50, 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

  1. 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?

    1. A

      66

    2. B

      1515

    3. C

      0.060.06

    4. D

      6060

    Show answer

    B

    The relative frequencies must add to 1, so AB has 1−0.44−0.38−0.12=0.061 - 0.44 - 0.38 - 0.12 = 0.06, and 0.06×250=150.06 \times 250 = 15 donors. Choice C is the relative frequency, not the count the question asks for; choice A treats the percentage as a count.

  2. 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

    58=0.625\dfrac{5}{8} = 0.625

    For every 5 archery campers there are 3 canoeing campers, so archery campers make up 5 of every 5+3=85 + 3 = 8 campers. A common slip is 53\frac{5}{3}, which compares archery to canoeing rather than archery to all campers.

  3. 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?

    1. A

      Electric bikes are more common in Town B, because 90 is greater than 72.

    2. B

      Electric bikes are more common in Town A, because 30% of surveyed adults there own one, compared with 25% in Town B.

    3. C

      Electric bikes are equally common in the two towns, because the totals differ by the same amount as the counts.

    4. D

      The two towns can't be compared, because the sample sizes are different.

    Show answer

    B

    72/240=0.3072/240 = 0.30 and 90/360=0.2590/360 = 0.25, 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.

  4. 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 nn: 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 nn to get back to counts.

Go deeper