AP Statistics Variables and Categorical Data Displays Lesson: Notes and Examples (Free PDF)

Categorical data lesson – Maths PDFCover of the book AP Statistics Math Lessons (PDF)Download as a PDFThe AP Statistics math lessons bookPrintable PDFSee the book ›


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

Key facts
  • 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.

Two kinds of variables
A categorical variable puts each individual into a group or category, such as favorite lunch or the sport a student plays. A quantitative variable takes numerical values for which arithmetic makes sense, such as height in inches or minutes spent on homework.
VariableA trait thatdiffers by individualCategoricallabels or groups(eye color, sport)Quantitativenumbers that measure(height, age)
A variable is categorical when it places individuals into groups and quantitative when it measures them with numbers.

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.

01020304050Number of students42Pizza27Burgers18Salad33TacosFavorite lunch
Bar graph of the lunch survey. Each bar height is a count; the bars do not touch.
LunchCountRelative frequencyPizza420.350Burgers270.225Salad180.150Tacos330.275Total1201.000
Relative frequency = count divided by total. The relative frequencies add to 1.

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.

Pizza: 35%Burgers: 22.5%Salad: 15%Tacos: 27.5%
A pie chart shows the same data as parts of one whole. Use it only when the slices add to 100%.
  1. Name the variable and the individuals.
  2. Count the individuals in each category and find the total \(n\).
  3. Divide each count by \(n\) to get relative frequencies.
  4. Check that the relative frequencies add to 1 (or 100%).
  5. 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%.

010203040506070Percent of group2512Walk5528Bus2060CarGrade 9Grade 12How students get to school
Comparing groups of different sizes works best with percentages (relative frequencies).

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.

Voter.. post

Free printable PDF

AP Statistics Variables and Categorical Data Displays Lesson: Notes and Examples

US Letter63 KBPrints in black and white

Download PDF

More AP Statistics math

Lessons

See all

Worksheets

See all

Tests

See all

Quizzes

See all