Not sure which lesson to do first? Find your level and get a plan →

Statistics · Grade 3-5

Categorical Data

Categorical data is data that can be sorted into groups or categories, like colors, types, or names, rather than measured with numbers.


Quick Answer

Categorical data is data that can be sorted into groups or categories, like colors, types, or names, rather than measured with numbers. Favorite color, kind of pet and the way you get to school are all categorical: each answer is a label. You can count how many answers fall in each group and find the most common one, but you cannot average the labels. Show categorical data with a tally chart, bar graph, pictograph or pie chart. Numbers used as names, such as jersey numbers, are categorical too.

Why This Matters

Knowing your data is categorical tells you what you are allowed to do with it. You can say 'blue got 9 votes, the most of any color' or 'half the class walks to school'. You cannot say 'the average pet is a cat and a half'. It also picks the right graph: a bar graph for categories, while a line plot or line graph needs numbers on a number line.

Intuitive Explanation

Sort a bag of buttons into piles by color: red, blue, yellow, green. Each button goes into exactly one pile, and then you count the piles: 7 red, 4 blue, 6 yellow, 3 green. Color is categorical data. The answers are names of groups, and the only math you do is counting what is in each group and comparing the counts.

Now measure how wide each button is: 12 mm, 15 mm, 18 mm. That is numerical data. Measurements like these can be put in order on a number line, added and averaged. Categories can't. There is no 'average' of red and blue, and it makes no sense to say green is bigger than yellow.

Watch out for numbers that are really names. Soccer jersey numbers 7, 10 and 23 look like numbers, but adding them tells you nothing; they just name players. Bus route 12 is not 'twice' route 6. Ask yourself whether adding or averaging the values would make sense. If not, the data is categorical, even when it is written with digits.

Think of it like this. Categorical data is like sorting laundry into baskets: socks, shirts, towels. You can count what is in each basket and see which is fullest, but there is no 'average basket'. If the baskets have a natural order, like small, medium and large, you can line them up, but you still can't average them.

Core idea. When the answers are labels rather than amounts, you count each group and compare the counts; you cannot add, average or measure the labels themselves.


When to Use

Your data is categorical when the answers are words or labels: colors, types, names, yes or no, favorite anything. Count each group and find the most common one (the mode). Use a tally chart or frequency table to count, and a bar graph or pictograph to show the counts. If the answers are measurements or amounts, like heights or number of pets, the data is numerical; use a line plot instead.

Tip. Ask: Is each answer a name for a group, like a color or a pet type, that you can count but not add or average?

How to Recognize It

Look at the answers themselves and test what you can sensibly do with them.

  1. Are the answers words or labels, like red, cat, or soccer?

    Yes points to categorical data. Answers that are amounts, like 4 pets or 52 inches, are numerical data.

  2. If the answers are digits, would adding two of them mean anything?

    Jersey number 7 plus jersey number 12 means nothing, so those digits are labels and the data is categorical. Adding 7 cm and 12 cm of plant growth does mean something, so that data is numerical.

  3. Is the summary you need a count for each group, like 9 dogs and 6 cats?

    Counts per group fit categorical data, often shown in a Bar Graph. Needing a middle or typical amount points to numerical data.

  4. Could the answers be placed on a number line with equal steps between them?

    If not, use bars or pictures for each group. If yes, the data is numerical and a Line Plot (Dot Plot) can show it.

Categorical Data vs Numerical Data vs Bar Graph vs Line Plot (Dot Plot)

Data types and the graphs that show them get mixed up because a bar graph of counts has numbers on it. Ask whether each single answer is a name or an amount.

Categorical Data

Meaning
Categorical data sorts each answer into a named group, such as a color, a pet type, or a sport.
Key test
Each answer is a label; you can count labels but not average them.
Example
Ways to school: walk, bus, car, bus, walk, bike.

Numerical Data

Meaning
Numerical data is made of amounts that come from counting or measuring, so adding and averaging them makes sense.
Key test
Each answer is an amount with a size, like 12 minutes.
Example
Minutes to get to school: 5, 12, 12, 20, 8.

Bar Graph

Meaning
A bar graph shows one bar for each category, and the bar's height shows how many answers are in that group.
Key test
It is a display whose bars stand for categories and their counts.
Example
Bars for walk 6, bus 9, car 4, and bike 1 student.

Line Plot (Dot Plot)

Meaning
A line plot puts one mark per answer above a number line, so it needs number answers.
Key test
It is a display for number answers placed in order along a line.
Example
X's stacked above 5, 8, 12, 12, and 20 minutes on a number line.

Formula & Notation

Worked Examples

Example 1 — Count the categories

Easy

Twenty students voted for a field trip: zoo, museum, zoo, farm, zoo, aquarium, museum, zoo, farm, zoo, museum, aquarium, zoo, farm, museum, zoo, aquarium, farm, museum, zoo. How many votes did each place get, and which place won?
Show the steps and the answer
  1. List the categories: zoo, museum, farm, aquarium.

    Every vote is a place name, a label, so the data is categorical.

  2. Tally each vote in its row: zoo 8, museum 5, farm 4, aquarium 3.

    With categorical data, counting each group is the main thing you can do.

  3. Check the total: 8+5+4+3=20.

    The counts must add to the 20 votes, or a vote was missed.

  4. Find the most common category: zoo, with 8.

    The category with the biggest count is the mode, the 'typical' answer for labels.

Answer: Zoo 8, museum 5, farm 4, aquarium 3; the zoo won.

Takeaway: For categorical data, count each group, check the total, and report the most common category.

Example 2 — Digits that are only names

Standard

Five players have jersey numbers 4, 7, 10, 15 and 22. Their ages are 9, 10, 10, 11 and 10. Mila finds the average of each list. Which average means something?
Show the steps and the answer
  1. Average the ages: 9+10+10+11+105=505=10 years.

    Age is a measured amount, so an average age makes sense.

  2. Average the jersey numbers: 4+7+10+15+225=585=11.6.

    The arithmetic works, but no player wears 11.6 and the number describes nothing.

  3. Ask what a jersey number is: a name for a player, like 'Sara' or 'Ben'.

    Digits used as names are labels, so the jersey data is categorical.

Answer: Only the average age, 10 years, means something. The jersey numbers are categorical labels, so their average, 11.6, is meaningless.

Takeaway: Before averaging, ask whether the numbers measure an amount or just name something.

Example 3 — Find the mistake: an average pet

Application

Tom records each classmate's pet using codes: dog = 1, cat = 2, fish = 3. His data is 1, 1, 2, 3, 1, 2, 1, 3, 2, 1. He adds them up, 17, divides by 10, and writes: 'The average pet is 1.7, almost a cat.' Find the mistake and correct it.
Show the steps and the answer
  1. Notice that the codes are labels: Tom could just as well have used dog = 3 and fish = 1.

    With different codes the 'average' would change, which shows it measures nothing real.

  2. Count each category instead: dog 5, cat 3, fish 2.

    Counting groups is the right summary for categorical data.

  3. Check: 5+3+2=10 classmates, and the biggest count is dog.

    The most common category, the mode, replaces the average for labels.

Answer: There is no average pet. Dog is the most common pet (5 of 10), then cat (3) and fish (2).

Takeaway: Turning labels into code numbers doesn't make them amounts; count the categories and report the most common one.

Where You'll See It

  • Favorite-color survey

    Answers like red, blue, and green are categories — you can count how many chose each, but it makes no sense to 'average' the colors. That's categorical data.

  • Types of pets

    Cat, dog, fish, and bird sort classmates into groups. You can tally how many own each type, but you can't add or average 'dog' and 'fish' — these are categories, not measurements.

  • T-shirt sizes by name

    Labeling shirts S, M, L, XL groups them by category. You can count how many of each size, but the labels themselves aren't numbers you can average.

Common Mistakes

  1. The slip: You can find the mean of categorical data, like the 'average favorite color.'

    Why it's tempting: Averaging is what we do with data, so it feels like it should work everywhere. But category labels aren't numbers, so adding and dividing them is meaningless.

    Instead: For categorical data, summarize with counts, the mode (most common category), or percentages — never a mean. You can average numbers, not labels.

  2. The slip: If categories are written as numbers (like jersey #7, #12), the data is numerical.

    Why it's tempting: They look like numbers, so arithmetic seems allowed. But the numerals are just names/labels, not measured quantities.

    Instead: Ask whether arithmetic on the values is meaningful. Jersey numbers, zip codes, and bus-route numbers are categorical labels even though they're digits — you can count, not average, them.

  3. The slip: A line graph is a good way to display categorical data.

    Why it's tempting: Line graphs are common, so they seem like a safe default. But lines imply a continuous, ordered change between points, which categories don't have.

    Instead: Display categorical data with bar graphs, pictographs, or frequency tables. Reserve line graphs for numerical data that changes over time or a continuous scale.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Sort these into categorical or numerical data: eye colour, number of siblings, favourite sport, height in cm, shoe brand.

    Hint: Ask whether each answer is a label or an amount you can measure or count.

  2. A class of 20 voted for a favourite colour: blue 7, red 5, green 4, yellow 4. How many more students chose blue than green, and which colour is the mode?

    Hint: The mode is the category with the biggest count.

  3. In a survey of 25 students, 10 walk to school, 8 ride the bus and the rest come by car. How many come by car, and what fraction of the students walk?

    Hint: Subtract the known groups from 25 first.

  4. The players on a team wear jersey numbers 4, 7, 10, 12 and 23. Are jersey numbers categorical or numerical? Does finding their mean make sense?

    Hint: Does a bigger jersey number mean "more" of something?

  5. You recorded how many pets each of 15 classmates has: 0, 1, 2 or 3. Is this categorical data for a bar graph of categories, or numerical data for a line plot?

    Hint: Are the answers amounts or labels such as "dog" and "cat"?

  6. Zoe coded favourite pets as dog = 1, cat = 2, fish = 3. With the answers 1, 1, 2, 3, 3 she writes: "The average is 2, so the average student likes cats." Correct her.

    Hint: Are the codes amounts, or just names for groups?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Can categorical data have an order, like small, medium, and large?

Yes. T-shirt sizes, or ratings like bad, okay, and great, are categories that come in an order. You can line them up from smallest to largest and even find the middle one. But the steps between them are not equal measured amounts: the jump from small to medium is not a set number of inches. So you still count them in groups instead of averaging them.

If a bar graph of pets has numbers on it, isn't the data numerical?

No. The numbers up the side of the graph are counts of how many students fall in each group, like 9 dogs. The data itself is the answer each student gave: dog, cat, or fish. Counting turns categories into numbers you can compare, but each answer is still a label. You could not put 'dog' on a number line.

Can the same question give categorical or numerical data, depending on how I ask it?

Yes. 'Do you have any pets, yes or no?' gives categorical answers. 'How many pets do you have?' gives numerical answers like 0, 1, or 3. The second version tells you more, because you can find a typical number, but the first is quicker to answer. Decide what you want to know before you write the question.

What do I do with an answer that fits none of my categories?

Add an 'other' group, or a new group if several people give the same new answer. If your pet survey lists dog, cat, and fish, and one classmate says lizard, do not squeeze it into fish. Plan the groups before you ask, and leave room for answers you did not expect, so every answer has exactly one place to go.

Learning Path

← Before

Tally Chart
Categorical Data

You are here

You need the Tally Chart, the natural way to count categorical answers. This concept adds the big sorting question: are my answers labels or amounts? Next, the Bar Graph shows categorical counts side by side, while the Line Plot (Dot Plot) is for numerical data, so knowing the type tells you which one to draw.

See Also