Introduction: What Do a Variable’s Values Represent?
In What Is a Variable in Statistics, you learned that a variable records information about individuals. In Identifying the Observational Unit, you practiced asking what one row of a data set describes. Now connect those ideas: once you know what each row describes, ask what kind of information each variable records.
A variable might describe a person’s preferred way to travel, the distance they travel, or how many days they were absent. Some variables place individuals into groups; others record numerical amounts that can be meaningfully counted or measured. Recognizing the difference helps you describe data clearly and is an important early step before choosing how to summarize or display them.
Classify by Meaning, Not Appearance
To classify a variable, first identify what it describes and what its possible values mean. Then ask whether those values identify groups or represent meaningful numerical amounts. The distinction is about the information the variable carries, not simply whether its values are written using words or digits.
For a categorical variable, each value names a group. Examples include a person’s usual travel mode, a package’s delivery status, or a plant’s variety. A category might be written as a word, a phrase, or even a symbol. The key is that its role is to identify a group rather than report an amount.
For a quantitative variable, values are numerical counts or measurements. Examples include the number of deliveries attempted, a trip’s distance in kilometers, or a plant’s height in centimeters. In each case, the numerical differences communicate something meaningful: a difference of 2 centimeters describes a height difference, and a difference of 2 deliveries describes a count difference.
Use the one-row question from the tutorial on identifying the observational unit: what person, object, group, or event does a record describe?
Be specific. For example, does it record the travel mode for each student, or the number of minutes each student travels?
Do they identify groups, or do they express counts or measurements whose numerical differences make sense in context?
Call the variable categorical or quantitative, and give the reason tied to what its values mean.
Keep the observational unit and the variable type separate. The unit answers, “What does one row describe?” The variable type answers, “What kind of information does this column record?” A data set about students can contain both categorical and quantitative variables; the type is determined one variable at a time.
Worked Examples: Classifying Variables in Context
Worked Example: A Student Commute Survey
A school surveys students about their trips to school. Each row describes one student. The survey records the student’s usual travel mode, the trip’s duration in minutes, the number of days the student arrived late during the past month, and the grade level the student is in. Classify all four variables.
Usual travel mode: Possible values include walking, bicycle, bus, or car. These values place each student into a travel group; they are not amounts. This is a categorical variable.
Trip duration in minutes: A value such as 18 minutes records how long the student’s trip takes. A difference of 5 minutes represents a meaningful difference in duration. This is a quantitative variable.
Number of late arrivals during the past month: Values such as 0, 1, or 3 count events for each student. A difference of 2 means two additional late arrivals. This is a quantitative variable.
Grade level: Values such as ninth, tenth, eleventh, and twelfth grade identify groups of students. Even though the grade levels can be ordered, the recorded value identifies a student’s group rather than measuring an amount. This is a categorical variable.
Answer: The four variables are categorical, quantitative, quantitative, and categorical, respectively. The observational unit is one student, but the variables do not all have the same type.
This example also shows why it helps to state the variable precisely. “Late” could describe a category, such as whether a student was late on a particular day. “Number of late arrivals” instead counts events. The wording identifies what is recorded and helps determine the variable type.
Worked Example: Monitoring Greenhouse Seedlings
A gardener records one row for each seedling. The data include the plant variety, height in centimeters, and number of leaves observed on a particular day. Classify these three variables.
Plant variety: Values might be “basil,” “mint,” or “parsley.” Each value names a group of seedlings. Plant variety is a categorical variable.
Height in centimeters: A value such as 12 centimeters measures the seedling’s height. Subtracting two heights gives a meaningful difference in centimeters. Height is a quantitative variable.
Number of leaves: Values such as 6 or 9 count leaves on the seedling. These are meaningful numerical amounts, so the number of leaves is a quantitative variable.
Answer: Plant variety is categorical; height and number of leaves are quantitative. The unit—one seedling—stays the same for all three variables, while the kind of information changes from column to column.
Counts and measurements are both quantitative, though they describe amounts in different ways. A count tells how many individual items or events there are. A measurement describes an amount such as length, time, or mass. For this tutorial, the important point is that both record numerical values with meaningful differences.
Worked Example: Records From a Community Library
A library reviews its checkout records. Each row describes one checkout transaction. For each transaction, the library records the item’s format, the replacement cost in dollars, and whether the item was returned on time. Classify these three variables.
Item format: Values might include print book, audiobook, or DVD. These values identify groups of items, so format is a categorical variable.
Replacement cost in dollars: A value such as 14 dollars records an amount of money. A difference of 3 dollars between replacement costs is meaningful. Replacement cost is a quantitative variable.
Returned on time: Values such as “yes” and “no” place each transaction into one of two groups. This is a categorical variable, not a count or measurement.
Answer: Item format is categorical, replacement cost is quantitative, and returned-on-time status is categorical. Together with the four commute variables and three seedling variables, these examples classify ten variables.
A Useful Caution About Values That Look Numerical
The digits you see are not enough to classify a variable. Ask what the digits mean in context. A value that represents an amount can be quantitative, while a digit used only as a label can represent a category. For example, a recorded trip time of 12 minutes is an amount; a route number such as 12 could simply name a route.
This caution does not change the basic distinction: categorical variables describe groups, and quantitative variables describe numerical amounts. It reminds you to interpret a variable’s meaning instead of classifying it by its appearance. The next tutorial looks more closely at numerical-looking values that function as categories.
Common Mistakes and AP Exam Tips
- Calling every number quantitative. A number might identify a category rather than measure or count an amount. Explain what the number means before classifying the variable.
- Calling every variable with words categorical without checking its meaning. Words can be used to report a quantity, such as a written duration like “twelve minutes.” The meaning, not the format, determines the type.
- Confusing a group with a count of group members. “Travel mode” identifies a group and is categorical. “Number of students who take the bus” is a count and is quantitative.
- Classifying a whole data set instead of each variable. One data set can include both types. State the type for each variable being asked about.
- Giving only a label without a reason. A complete response connects the classification to the values: “Trip duration is quantitative because it measures time in minutes, and differences in minutes are meaningful.”
For a strong AP Statistics response, name the variable, classify it, and briefly explain what its values represent. If the context is unclear, describe the interpretation you are using. This makes your reasoning visible rather than relying on the variable’s name alone.
Check Your Understanding
For each variable, classify it as categorical or quantitative and briefly explain what its values represent.
- A sports club records each member’s preferred position on a team.
- A wildlife team records the mass, in grams, of each tagged frog.
- A delivery service records the number of packages on each delivery route during one shift.
- A school records whether each student participates in a music group.
- A repair shop records the amount of time, in minutes, spent on each repair.