AP Statistics Variables and Categorical Data Displays Lesson: Notes and Examples (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.
Key takeaway: This lesson helps AP Statistics students classify variables, build frequency tables, and display categorical data with bar graphs and pie charts.
- Topic: Variables and Categorical Data Displays (AP Statistics)
- Content: One-page lesson with a definition, a worked example and key facts
- Standards: AP STAT 1.1, AP STAT 1.2, AP STAT 1.3, HSS-ID.A.1
- Answers: Explanations included
- Format: Free printable PDF, US Letter, black and white
Key takeaway: A clear AP Statistics lesson on Variables and Categorical Data Displays, with definitions, rules and worked examples: what are individuals and variables, how do you display a categorical distribution and when should you use a bar graph or a pie chart. Read it before the practice worksheet; free to print or download as a PDF.
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.
This lesson helps AP Statistics students classify variables, build frequency tables, and display categorical data with bar graphs and pie charts. You learn to compute relative frequencies and to describe a distribution in words.
First, the lesson defines individuals and variables, and separates categorical from quantitative variables. Next, it shows how to build frequency and relative frequency tables. Then it explains when a bar graph or a pie chart is the better display. After that, it warns about misleading graphs, including axes that do not start at zero. Finally, it shows how to compare groups of different sizes with percents. Plan about 30 minutes.
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.
Common mistakes with this categorical data lesson
- Students call a numerical code a quantitative variable. However, a zip code or a jersey number names a group, so ask whether arithmetic on the values makes sense.
- Students compare groups by counts when the groups differ in size. Instead, convert to percents, because percents adjust for group size.
- Students draw a bar graph with touching bars. Because bars for categories are separate, leave gaps between them.
How to study this chapter
- First, for each variable, ask whether the values name groups or measure amounts. Then classify it as categorical or quantitative.
- Also, check that relative frequencies add to 1, or percents add to 100. A total that is off signals a missing category or a rounding slip.
- Parents can look at a graph in a news story with the student and ask whether the axis starts at zero and whether the comparison is fair.
Download the categorical data lesson as a PDF with the button below and keep it with your notes.
More questions about categorical data lesson
What is a mode in a categorical distribution?
The mode is the category with the highest frequency, which makes it the most common response. A categorical variable has no mean, so the mode is the main measure of center. If two categories tie for the highest frequency, the distribution has two modes.
When should you use a pie chart instead of a bar graph?
Use a pie chart only when the categories are parts of one whole and there are few slices. A bar graph is better when there are many categories or when the categories do not add to a whole, such as a check-all-that-apply question.
How do you find the central angle of a pie slice?
Multiply the relative frequency by 360 degrees to get the central angle. A category with 25 percent gets an angle of 90 degrees. Then check that all the angles add to 360 degrees, which also confirms that the percents add to 100.
All AP Statistics chapters: AP Statistics math.
Free printable PDF
AP Statistics Variables and Categorical Data Displays Lesson: Notes and Examples
Download PDFMore AP Statistics math
Lessons
See allTwo Categorical Variables and Two-Way Tables Lesson: Notes and Examples
Binomial and Geometric Distributions Lesson: Notes and Examples
Inference for the Slope of a Regression Line Lesson: Notes and Examples
t Intervals and t Tests for a Mean Lesson: Notes and Examples
Scatterplots and Correlation Lesson: Notes and Examples
Confidence Intervals for a Proportion Lesson: Notes and Examples
Worksheets
See allMean, Median, Standard Deviation and Outliers Worksheets with Answers
Chi-Square Tests Worksheets with Answers
Inference for the Difference of Two Means Worksheets with Answers
Experimental Design and Random Assignment Worksheets with Answers
Inference for the Difference of Two Proportions Worksheets with Answers
Confidence Intervals for a Proportion Worksheets with Answers
Tests
See allFive-Number Summary, Boxplots and Comparing Distributions Test with Answer Key
Significance Tests for a Proportion Test with Answer Key
Inference for the Difference of Two Proportions Test with Answer Key
Variables and Categorical Data Displays Test with Answer Key
Conditional Probability and Independence Test with Answer Key
Scatterplots and Correlation Test with Answer Key
Quizzes
See allInference for the Slope of a Regression Line Quiz: 10 Questions with Answers
Five-Number Summary, Boxplots and Comparing Distributions Quiz: 10 Questions with Answers
Binomial and Geometric Distributions Quiz: 10 Questions with Answers
Least-Squares Regression and Residuals Quiz: 10 Questions with Answers
Chi-Square Tests Quiz: 10 Questions with Answers
Confidence Intervals for a Proportion Quiz: 10 Questions with Answers

























