Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›AP Statistics
  3. ›1 Exploring One-Variable Data and Collecting Data
  4. ›1.2 Variables

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.

  • 4 min read
  • 5 parts
  • 10 questions
  • Draft
Start a Quick 5 on this topic→Jump to the 10 questions
1/5A variable records one characteristic of every individual
  1. 1A variable records one characteristic of every individual
  2. 2Categorical variables place individuals into groups
  3. 3Quantitative variables measure how much or how many
  4. 4One quick test sorts any variable correctly
  5. 5Variables play different roles in a study
  6. Check your recall
  7. Practice: 10 questions
1

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 1 done

2

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.

Common mistake

Do not decide by whether the values contain digits. Ask whether adding or averaging them would mean anything. For zip codes, it would not.

Key term

categorical variable

A categorical variable is a variable whose values are labels that place each individual into one of several groups.

Part 2 done

Quick check

One question on the part you just read

Easy

Identify the categorical variable.
Show answer and explanation

Answer: C · Worked explanation

Favorite season puts each person in a group such as summer or winter, so its values are labels. The other three give numbers for which sums and averages make sense: a count of pets, a height, and a time. Those are quantitative variables.
3

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 3 done

4

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

FeatureCategoricalQuantitative
ValuesLabels or groupsNumbers with units
ExamplesEye color, zip codeHeight, number of siblings
AveragingNot meaningfulMeaningful
Typical questionHow many fall in each group?How large are the values?
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

Classify each variable: (a) a student’s zip code, (b) the number of text messages sent yesterday, (c) eye color, (d) height in centimeters.
  1. 1
    Zip code: the digits name a place, and an average describes nothing. Categorical.
  2. 2
    Text messages: a count, and an average makes sense. Quantitative.
  3. 3
    Eye color: the values are labels. Categorical.
  4. 4
    Height: a measurement in centimeters, and an average makes sense. Quantitative.

Answer: Categorical: (a) and (c). Quantitative: (b) and (d).

Part 4 done

Quick check

One question on the part you just read

Easy

Identify the best description of a quantitative variable.
Show answer and explanation

Answer: A · Worked explanation

A quantitative variable has numerical values that can be added or averaged meaningfully. It need not be whole numbers, since heights are quantitative and often include decimals. It also need not be measured with a tool, since counts such as the number of siblings are quantitative too.
5

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.

Exam tip

Name both variables in context when you state the roles. The same variable can be explanatory in one question and the response in another.

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.

Note read

Check your recall[12 marks]

5 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 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. 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. 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. 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. 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.

3.

Easy·Identify[1 mark]

A researcher records the weight of each of 20 puppies. Identify the individuals in this data set.
Show answer and explanation

Answer: B · Worked explanation

The individuals are the objects described by the data, which are the puppies. A weight is a value of the variable, not an individual. The researcher collects the data and is not described by it, and 20 is only how many individuals there are.
4.

Medium·Classify[1 mark]

Classify the variable “jersey number” recorded for each player on a team.
Show answer and explanation

Answer: D · Worked explanation

Jersey numbers are labels. A jersey with a larger number does not mean more of anything, so an average jersey number describes nothing real. Being written with digits does not make a variable quantitative. The test is whether arithmetic on the values has a meaning.
5.

Medium·Determine[1 mark]

A researcher records, for each of 60 cars, its fuel type (gas, diesel, or electric) and the miles driven last year. Determine how many quantitative variables are recorded.
Show answer and explanation

Answer: B · Worked explanation

Miles driven is a number with units for which averages make sense, so it is quantitative. Fuel type places each car in a group, so it is categorical. That gives one quantitative variable. The value 60 is the number of individuals, the cars, not a count of variables.
6.

Medium·Identify[1 mark]

Identify the response variable in a study of whether the grams of fertilizer given to a plant affect the centimeters it grows.
Show answer and explanation

Answer: A · Worked explanation

The response variable is the outcome measured, which is growth in centimeters. Grams of fertilizer is the explanatory variable, because it is used to explain the growth. The plant is the individual, and a single study has one outcome measured here, not a combined variable.
7.

Medium·Determine[1 mark]

A survey records favorite color, zip code, number of siblings, height in centimeters, and eye color for each student. Determine how many of these variables are categorical.
Show answer and explanation

Answer: C · Worked explanation

Favorite color, zip code, and eye color place students in groups, so three variables are categorical. Number of siblings and height are numerical, with meaningful averages. Answering 2 treats zip code as quantitative because it is written with digits. Answering 4 or 5 wrongly counts numerical variables as categorical.
8.

Hard·Explain[2 marks]

A student finds the mean zip code of a class and calls it meaningful. Explain what is wrong.
Show answer and explanation

Answer: B · Worked explanation

Zip codes are labels for places, so the variable is categorical. Arithmetic on labels has no meaning, and the result points to no real location or amount. The number of digits and the amount of variation do not decide this. The test is whether averaging the values describes something real.
9.

Hard[2 marks]

A researcher records hours of sleep and the number of late arrivals for each of 50 students. She asks whether sleep predicts late arrivals. A classmate says late arrivals is the explanatory variable because it is a count. Which statement is correct?
Show answer and explanation

Answer: D · Worked explanation

Roles come from the question asked. Sleep is used to predict late arrivals, so sleep is explanatory and late arrivals is the response. The kind of variable does not set its role, because both variables here are quantitative. The size of the values does not set the role either.
10.

Hard[2 marks]

For each of 50 students, a researcher records hours of sleep and a memory test score. One question asks whether sleep predicts memory score. A second question asks whether memory score predicts hours of sleep. Which statement is true for the second question?
Show answer and explanation

Answer: A · Worked explanation

The second question uses memory score to predict sleep, so the roles switch. The order in which values were recorded does not fix the roles. Both variables still have roles, since having numerical values does not remove them. A test score is a number with meaningful averages, so it is quantitative.

Keep going

Next topic1.3 One categorical variable: tables and summariesPrevious topic1.1 What data can tell us

More in Unit 1 · Exploring One-Variable Data and Collecting Data

  1. 1.1What data can tell usNotes · 10 questions
  2. 1.2VariablesNotes · 10 questions
  3. 1.3One categorical variable: tables and summariesNotes · 10 questions
  4. 1.4One categorical variable: graphsNotes · 10 questions
  5. 1.5One quantitative variable: graphsNotes · 10 questions
  6. 1.6Describing a distributionNotes · 10 questions
  7. 1.7Summary statisticsNotes · 10 questions
  8. 1.8Boxplots and summary graphsNotes · 10 questions
  9. 1.9Comparing distributionsNotes · 10 questions

All AP Statistics topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by College Board or any exam board.

On this page

0/5 read

  1. 1A variable records one characteristic of every individual
  2. 2Categorical variables place individuals into groups
  3. 3Quantitative variables measure how much or how many
  4. 4One quick test sorts any variable correctly
  5. 5Variables play different roles in a study
  6. Check your recall
  7. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe