Categorical Data

Definitionnoun phrase

What is categorical data in statistics?

Categorical data are data that sort people or things into groups, or categories, such as eye color, favorite sport or a yes/no answer. The values are labels, not measurements, so you count how many fall in each category and show the counts with a bar graph, a pie chart or a two-way table.

In Spanish
datos categóricos
Also called
qualitative data, categorical variable, nominal data
Grade level
6-8
Grade 6Grade 8Algebra 1StatisticsCCSS 8.SP.A.4CCSS HSS-ID.B.5SATACTAPGED

Categorical Data in a picture

From categorical answers to a bar graphTwelve answer tiles: apple, banana or grape. Counting the categories gives apple 5, banana 4 and grape 3, shown as a bar graph with three separate bars.12 answers to “What is your favorite fruit?”applebananaapplegrapebananaapplegrapeapplebananaapplebananagrapecount each category ↓0123455apple4banana3grape
Categorical answers are labels. You cannot add or average “apple” and “grape”, so you count each category and graph the counts.

Formal definition and notation

A categorical (qualitative) variable places each individual into one of several groups. Its values are names or labels, even when they are written as numbers, such as ZIP codes or jersey numbers, so arithmetic on them has no meaning. Categorical data are summarized with counts, percents or relative frequency in each category, and the mode is the only measure of center that applies. Data that are counts or measurements are quantitative (numerical) instead.

Symbol Read it as Meaning
f frequency the count of individuals in one category
fn f over n the relative frequency of a category out of n individuals

Key facts

  • Ask: does averaging the values make sense? If not, the data are categorical.
  • Numbers can be categories: ZIP codes, phone area codes and jersey numbers are labels.
  • Summarize with counts and percents. The mode (the most common category) is the only “average” that applies; there is no mean or median of eye colors.
  • Bar graphs for categorical data have gaps between the bars, unlike a histogram.
  • Two categorical variables together go in a two-way table, which can show an association.
  • Some categories have a natural order, such as small, medium, large; these are called ordinal.

Categorical Data examples, step by step

Example 1: Categorical or numerical?

Warm-up

A survey records each student’s shoe brand, height, blood type and number of siblings. How many of these variables are categorical?

  1. Shoe brand: a name. Categorical.
  2. Height: a measurement in inches. Numerical.
  3. Blood type: a label such as A or O. Categorical.
  4. Number of siblings: a count. Numerical.

Answer: Two variables are categorical: shoe brand and blood type.

Example 2: Percent in a category

Core

In a survey of 40 students, 14 chose soccer, 10 chose basketball and 16 chose another sport. What percent chose soccer?

  1. Relative frequency: 1440.
  2. 1440 = 0.35 = 35%.

Answer: 35% of the students chose soccer.

Example 3: Choosing the right summary

Test-style

A pet store records the type of 25 pets sold: 11 dogs, 8 cats, 4 fish and 2 birds. Which measure of center makes sense, and what percent of the sales does it represent?

  1. Pet type is categorical, so a mean or median of “dog, cat, fish” has no meaning.
  2. The mode is the most common category: dog, with 11.
  3. 1125 = 0.44 = 44%.

Answer: Only the mode makes sense: dog, which is 44% of the sales.

Common mistakes

✗ MistakeAveraging number labels: the mean ZIP code of the class is 90{,}210.5.
✓ InsteadZIP codes are categories. Report counts or the most common ZIP code instead.

Numbers that name things are labels, so adding them gives a meaningless result.

✗ MistakeDrawing a histogram (touching bars on a number scale) for favorite colors.
✓ InsteadUse a bar graph with gaps between the bars, in any order you like.

Categories are not points on a number line, so there is no scale for the bars to sit on.

✗ MistakeCalling “number of siblings” categorical because the answers are 0, 1, 2 or 3.
✓ InsteadNumber of siblings is a count, so it is numerical (quantitative).

The test is not how many different answers there are, but whether the values are amounts.

Not to be confused with

Categorical Datavs.Numerical (quantitative) data

Numerical data are counts or measurements, such as height in cm or minutes of homework, so a mean makes sense. Categorical data are labels, such as hair color.

Categorical Datavs.Data

Data are any collected facts or values. Categorical data are one kind, the kind that sorts individuals into groups.

Quick check: 3 questions

Question 1 of 3

Which variable is categorical?

Show answer and explanation

Answer: B. A ZIP code is a label for a place; averaging ZIP codes means nothing. Temperature, age and distance are measurements, so they are numerical.

Question 2 of 3

Which display is a good choice for categorical data such as favorite music genre?

Show answer and explanation

Answer: A. A bar graph shows one bar per category. Histograms and box plots need numbers on a scale, and a scatter plot needs two numerical variables.

Question 3 of 3

Of 30 survey responses, 12 are “yes.” What is the relative frequency of “yes”?

Show answer and explanation

Answer: D. 1230 = 0.4 = 40%. 12% treats the count as a percent, 0.4% forgets to multiply by 100, and 60% is the share that did not answer yes.

Categorical Data: frequently asked questions

Is categorical data the same as qualitative data?

Yes. Statistics books use both names for data that place individuals into groups, such as hair color or type of car. The opposite is quantitative (numerical) data, which are counts or measurements. Some books add that ordered categories, such as small, medium and large, are ordinal, and unordered ones are nominal.

Can categorical data be numbers?

Yes. ZIP codes, jersey numbers, phone numbers and student ID numbers are written with digits, but they only name things. A good test: ask whether the mean would make sense. The mean of two jersey numbers tells you nothing, so those numbers are categorical.

Practice and tools

Sources

  1. OpenStax, Introductory Statistics 2e, 1.2 Data, Sampling, and Variation in Data and Sampling
  2. Common Core State Standards, High School Statistics and Probability, Interpreting Categorical and Quantitative Data (HSS-ID.B.5)
  3. Common Core State Standards, Grade 8 Statistics and Probability (8.SP.A.4)

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 8.SP.A.4, CCSS HSS-ID.B.5

Cite this entry

Effortless Math Team. “Categorical Data.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/categorical-data/

Flashcard

TermCategorical Datalabels, not amounts
DefinitionData that sort individuals into groups, like favorite fruit or blood type. Summarize by counting each category: apple 5, banana 4, grape 3.
Study the full deck

Browse all terms in the Math Dictionary · More statistics terms · Random term