Skip to main content

Categorical Data in AP Statistics

In AP Statistics, categorical data comes from a variable that places each individual into a group or category (like eye color or preferred study method). It is summarized with counts and proportions and displayed with bar graphs or pie charts, not with means or histograms.

This definition is part of Fiveable's AP Statistics review, which also has guided practice questions.

Verified for the 2027 AP Statistics exam•Last updated October 2026•Fiveable Content Team

What is Categorical Data?

Categorical data comes from a categorical variable, which puts each individual into one of several groups. Think favorite study location, political party, or type of vehicle. The key test is simple. Ask whether it makes sense to average the values. If it doesn't, the data is categorical. You can't find the "mean" of Library, Dorm, and Coffee Shop.

Since you can't do arithmetic on categories, you summarize them by counting. That means frequency tables (counts) and relative frequency tables (proportions or percents), as covered in Topic 1.3. Then you graph them with bar graphs, pie charts, and segmented or side-by-side bar graphs (Topic 1.4). Categories with no natural order (colors, majors) are on a nominal scale. Categories with a meaningful order but no fixed spacing (small/medium/large, survey ratings) are on an ordinal scale. One catch: numbers can be categorical too. A zip code or jersey number is a label, not an amount.

Why Categorical Data matters in AP® Statistics

Categorical data is one of the two basic data types in AP Stats, and it shapes almost every choice you make afterward. In Unit 1, it decides which summaries and graphs are appropriate (Topics 1.3 and 1.4). Proportions, not means, are its main summary statistic. In Unit 3, it comes back as the raw material for chi-square tests for homogeneity and independence (Topics 3.14 and 3.15). There you ask whether the distribution of a categorical variable differs across groups, or whether two categorical variables are associated. If you misidentify the variable type at the start, every later step goes wrong. You'd pick the wrong graph, the wrong summary, or the wrong test.

Keep studying AP® Statistics Unit 2

How Categorical Data connects across the course

Quantitative Data (Unit 1)

Categorical data answers "which group?" and quantitative data answers "how much?" That one distinction sorts your whole toolkit. Bar graphs and proportions go with categories. Histograms, means, and standard deviations go with numbers.

Bar Graphs, Pie Charts, and Segmented Bar Graphs (Unit 1)

Every categorical graph is really just a picture of a frequency table. Bars show counts or percents for each category, and the gaps between bars are a reminder that the categories are separate. A pie chart only works when the categories form the parts of one whole.

Chi-Square Tests for Homogeneity and Independence (Unit 3)

A chi-square test is the inference version of comparing bar graphs. It asks whether the differences between observed and expected counts in a table of categorical data are too big to blame on chance. The chi-square statistic measures that gap.

Nominal vs. Ordinal Scales (Unit 1)

Both are categorical, but ordinal categories have a natural order. That order lets you arrange bars logically (low to high), but it still doesn't let you average the categories.

Is Categorical Data on the AP® Statistics exam?

Expect categorical data to show up in three main ways.

  • Identifying variable type. MCQs often ask whether a variable is categorical or quantitative, sometimes with tricky numeric labels like area codes.
  • Choosing and critiquing graphs. Practice questions ask which graph best compares the distribution of preferred study methods across three majors. The answer is a segmented or side-by-side bar graph, because you're comparing a categorical variable across groups. Others ask which display is LEAST appropriate for counts like Library (80), Dorm (60), Coffee Shop (40), Other (20). A histogram, dotplot, or boxplot is wrong here because those need quantitative data. You may also need to spot misleading graphs. A bar graph whose y-axis starts at 20% instead of 0% exaggerates differences between categories. Pie chart questions test whether the categories really make up one whole.
  • Inference with chi-square. In Unit 3, you set up and carry out chi-square tests on tables of categorical counts. That means stating hypotheses in context, computing expected counts, checking conditions (random sampling, such as a simple random sample, and large enough expected counts), and comparing a p-value to a significance level.

No released FRQ has used the phrase "categorical data" verbatim. Still, nearly every FRQ that involves a two-way table or a chi-square test depends on you recognizing categorical variables.

Categorical Data vs Quantitative Data

Quantitative data records numerical amounts where arithmetic makes sense, like height or test scores. Categorical data records group membership, even when the groups have number labels. Ask yourself, "Would the average mean anything?" The average of five people's heights does. The average of their zip codes doesn't, so zip codes are categorical.

Key things to remember about Categorical Data

  • Categorical data places each individual into a group, so you summarize it with counts and proportions instead of means or standard deviations.

  • Numbers can be categorical when they act as labels, like zip codes, jersey numbers, or phone area codes.

  • Bar graphs, pie charts, and segmented or side-by-side bar graphs fit categorical data, while histograms, dotplots, and boxplots do not.

  • A bar graph with a y-axis that doesn't start at zero can make small differences between categories look huge, which is a common exam critique.

  • Chi-square tests for homogeneity and independence in Unit 3 are the inference tools built specifically for categorical data.

  • Nominal categories have no natural order, while ordinal categories do, but both are still categorical.

Frequently asked questions about Categorical Data

What is categorical data in AP Statistics?

Categorical data comes from a variable that sorts individuals into groups, like preferred study location or political affiliation. You summarize it with frequency or relative frequency tables and display it with bar graphs or pie charts (Topics 1.3 and 1.4).

Can categorical data be numbers?

Yes. If the numbers are just labels, like zip codes or jersey numbers, the variable is categorical, because averaging them would be meaningless.

How is categorical data different from quantitative data?

Categorical data tells you which group an individual belongs to. Quantitative data measures an amount you can do math with. Categorical data uses bar graphs and proportions, while quantitative data uses histograms, means, and standard deviations.

Can you use a histogram for categorical data?

No. Histograms show quantitative data on a number line. For categorical counts like Library (80), Dorm (60), Coffee Shop (40), and Other (20), use a bar graph or, if the categories form one whole, a pie chart.

Which test do you use for categorical data on the AP Stats exam?

For tables of counts across categories, you use a chi-square test, either for homogeneity (comparing distributions across groups) or for independence (checking association between two variables in one sample). These are covered in Topics 3.14 and 3.15, and both require checking that expected counts are large enough.