AP Statistics · Unit 1 · Exploring One-Variable Data and Collecting Data
1.2 Variables
Classify variables as categorical or quantitative, and describe the role each variable plays in a study.
1/5A variable records one characteristic of every individual
Part 1 of 5: A variable records one characteristic of every individual
Picture a class survey. Each student reports a favorite subject, a height, and a number of siblings. Every student answers the same three questions. In a data table, each row is one student and each column is one characteristic.
Each student surveyed is an individual, one object that the data describe. Individuals can be people, animals, or things. A variable is a characteristic that can take different values from one individual to another.
A variable must actually vary. If every student in the survey were 15 years old, age would be a constant, not a variable.
Key terms · tap one for its definition
individual
An individual is a single person, animal, or object described by the data, and each individual has one value for every variable.
variable
A variable is any characteristic of an individual that can take different values, such as a measurement or a category.
Part 2 of 5: Categorical variables place individuals into groups
Favorite subject is the first kind of variable to sort out. A categorical variable puts each individual into a group or category. Eye color, favorite subject, and whether a student owns a pet are all categorical. Their values are labels, not amounts.
Sometimes the labels look like numbers. Zip codes, jersey numbers, and phone area codes are written with digits. They only name groups, so they are categorical.
Key term
categorical variable
A categorical variable is a variable whose values are labels that place each individual into one of several groups.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: C · Worked explanation
Part 3 of 5: Quantitative variables measure how much or how many
Height and number of siblings behave differently from favorite subject. A quantitative variable takes numerical values for which arithmetic makes sense. Height, number of siblings, and minutes spent on homework are quantitative.
Some quantitative variables come from counting, such as the number of siblings. Others come from measuring, such as height. Both kinds are quantitative.
Differences and averages of quantitative values have a clear meaning. Always state the unit. A height of 165 means little until we know whether it is centimeters or inches.
Key term
quantitative variable
A quantitative variable is a variable whose values are numbers, usually with units, for which sums and averages are meaningful.
Part 4 of 5: One quick test sorts any variable correctly
Now we can put the two types side by side. Some values fool us by their appearance. A locker number is a numeral, but it only identifies a locker. A count of text messages can be added up and averaged.
Categorical and quantitative variables compared
- Feature
- Values
- Categorical
- Labels or groups
- Quantitative
- Numbers with units
- Feature
- Examples
- Categorical
- Eye color, zip code
- Quantitative
- Height, number of siblings
- Feature
- Averaging
- Categorical
- Not meaningful
- Quantitative
- Meaningful
- Feature
- Typical question
- Categorical
- How many fall in each group?
- Quantitative
- How large are the values?
Use the averaging test whenever the type is unclear. Imagine finding the average of the values. If it describes something real, the variable is quantitative. If it describes nothing, the variable is categorical.
Worked example
Classifying variables
- Zip code: the digits name a place, and an average describes nothing. Categorical.
- Text messages: a count, and an average makes sense. Quantitative.
- Eye color: the values are labels. Categorical.
- Height: a measurement in centimeters, and an average makes sense. Quantitative.
Answer: Categorical: (a) and (c). Quantitative: (b) and (d).

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: A · Worked explanation
Part 5 of 5: Variables play different roles in a study
Classifying variables is only the first step. Studies often pair two variables. Suppose a teacher wants to know whether extra sleep goes with higher quiz scores.
The explanatory variable is the one used to explain or predict changes in the other. The response variable is the outcome we measure. Here, hours of sleep is explanatory and quiz score is the response.
Roles describe how we use the variables, not what they are. A variable is not explanatory by nature. Its role comes from the question being asked.
Key terms · tap one for its definition
explanatory variable
An explanatory variable is a variable used to explain or predict changes in another variable, called the response variable.
response variable
A response variable is a variable that measures the outcome of a study and may be affected by the explanatory variable.
Check your recall[12 marks]
5 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.Classify[3 marks]
Classify each variable as categorical or quantitative: (a) zip code, (b) number of siblings, (c) eye color.
Show mark schemeHide mark scheme
Model answer
(a) Categorical, because the digits only name a location. (b) Quantitative, because it is a count and averages make sense. (c) Categorical, because the values are labels.
- 1 mark for classifying zip code as categorical
- 1 mark for classifying number of siblings as quantitative
- 1 mark for classifying eye color as categorical
- 2.Explain[2 marks]
Explain why a zip code is a categorical variable even though it is written with digits.
Show mark schemeHide mark scheme
Model answer
The digits only name a place and place each individual in a group. Adding or averaging zip codes describes nothing real.
- 1 mark for stating that zip codes only name groups or places
- 1 mark for explaining that arithmetic on them has no meaning
- 3.Describe[2 marks]
Describe the difference between an explanatory variable and a response variable.
Show mark schemeHide mark scheme
Model answer
An explanatory variable is used to explain or predict changes in another variable. A response variable is the outcome that is measured.
- 1 mark for describing the explanatory variable as the one used to explain or predict
- 1 mark for describing the response variable as the outcome that is measured
- 4.Identify[2 marks]
Identify the explanatory variable and the response variable in a study asking whether hours of tutoring affect exam score.
Show mark schemeHide mark scheme
Model answer
The explanatory variable is hours of tutoring. The response variable is exam score.
- 1 mark for identifying hours of tutoring as the explanatory variable
- 1 mark for identifying exam score as the response variable
- 5.Justify[3 marks]
A survey codes favorite pet as 1 for dog, 2 for cat, and 3 for other. A student finds that the average code is 1.8. Justify why this average is not meaningful.
Show mark schemeHide mark scheme
Model answer
Favorite pet is categorical, and the numbers are only labels for the groups. Arithmetic on labels has no meaning, so an average of 1.8 describes no pet and no amount.
- 1 mark for identifying favorite pet as a categorical variable
- 1 mark for stating that the numbers are only labels
- 1 mark for concluding that the average describes nothing real

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyIdentify[1 mark]
Show answer and explanation
Answer: B · Worked explanation
MediumClassify[1 mark]
Show answer and explanation
Answer: D · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: B · Worked explanation
MediumIdentify[1 mark]
Show answer and explanation
Answer: A · Worked explanation
MediumDetermine[1 mark]
Show answer and explanation
Answer: C · Worked explanation
HardExplain[2 marks]
Show answer and explanation
Answer: B · Worked explanation
Hard[2 marks]
Show answer and explanation
Answer: D · Worked explanation
Hard[2 marks]
Show answer and explanation
Answer: A · Worked explanation