AP Statistics Variables and Categorical Data Displays Lesson (Free PDF)
This categorical data lesson for AP Statistics covers variables and categorical data displays (Common Core AP STAT 1.1, AP STAT 1.2, AP STAT 1.3, HSS-ID.A.1), with a free PDF to print.
A categorical variable sorts individuals into groups, such as favorite lunch. Its distribution tells which categories occur and how often, using counts or relative frequencies (proportions or percents). Display it with a bar graph or, when the categories add to a whole, a pie chart. Compare groups of different sizes with relative frequencies.
AP Statistics · Common Core State Standards: AP STAT 1.1, AP STAT 1.2, AP STAT 1.3, HSS-ID.A.1
Key facts in this categorical data lesson
- Individuals are the objects described by data; a variable is a trait that varies among them.
- Categorical variables name groups; quantitative variables are measured with numbers.
- Relative frequency = category count divided by total, and relative frequencies add to 1.
- Bar graphs have a zero baseline and gaps between bars; pie charts need parts of one whole.
- Compare different-sized groups with percents, not raw counts.
What are individuals and variables?
Statistics begins with data. The individuals are the people, animals, or things we collect information about. A variable is any characteristic that can take different values from one individual to another.
Be careful with numbers that act like labels. Zip codes and jersey numbers are categorical because averaging them has no meaning.
How do you display a categorical distribution?
The distribution of a categorical variable lists the categories and how often each occurs. A frequency table gives counts. A relative frequency table gives each count as a proportion or percent of the total.
In the survey of 120 students, \(\frac{42}{120}=0.35\) chose pizza, so 35% of the sample chose pizza.
When should you use a bar graph or a pie chart?
A bar graph works for any categorical data. Bars have equal widths, a gap between them, and a vertical axis that starts at 0. A pie chart is appropriate only when the categories cover the whole group exactly once.
- Name the variable and the individuals.
- Count the individuals in each category and find the total \(n\).
- Divide each count by \(n\) to get relative frequencies.
- Check that the relative frequencies add to 1 (or 100%).
- Graph the result, then describe the distribution in context.
How do you compare two categorical distributions?
When groups have different sizes, compare relative frequencies, not raw counts. In the graph below, only 16 ninth graders but 75 twelfth graders drive, yet the groups have 80 and 125 students, so the fair comparison is 20% against 60%.
A good description names the most and least common categories, uses percents, and mentions the context.
Categorical data lesson: questions and answers
Is a zip code a categorical or quantitative variable?
A zip code is categorical. Although it is written with digits, adding or averaging zip codes tells you nothing, so the digits only act as labels for locations.
What is the difference between frequency and relative frequency?
Frequency is the count of individuals in a category. Relative frequency is that count divided by the total number of individuals, written as a decimal or a percent.
Why must relative frequencies add to 1?
Every individual falls in exactly one category, so the pieces together account for the whole group. If they add to 0.94, a category is missing or a count was entered wrongly.
When is a pie chart a poor choice?
Avoid a pie chart when respondents could pick more than one category or when the categories leave out part of the whole. A bar graph handles these cases without distortion.
How do you describe a categorical distribution on the AP exam?
Name the variable in context, state the most and least common categories with percents or counts, and compare groups using relative frequencies. Never answer with only a list of numbers.
How to use this categorical data lesson
Read the definitions first, then follow the worked method line by line and redo the example on paper without looking. When every step makes sense, move on to the worksheet, then check yourself with the quiz.
Download the categorical data lesson as a PDF with the button below and keep it with your notes.
Download the categorical data lesson as a PDF with the button below and keep it with your notes.
All AP Statistics chapters: AP Statistics math.
More AP Statistics math
Lessons
See allConditional Probability and Independence Lesson
Graphs of Quantitative Data and Shape Lesson
Confidence Intervals for a Proportion Lesson
Random Variables, Expected Value and Combining Variables Lesson
Two Categorical Variables and Two-Way Tables Lesson
Inference for the Difference of Two Proportions Lesson
Worksheets
See allTests
See allInference for the Slope of a Regression Line Test with Point Values
t Intervals and t Tests for a Mean Test with Point Values
Variables and Categorical Data Displays Test with Point Values
Probability Rules and Simulation Test with Point Values
Graphs of Quantitative Data and Shape Test with Point Values
Conditional Probability and Independence Test with Point Values

























