Tutorials › AP Statistics › Context-Specific Variables in School and Social Surveys

Variables and investigative questions · Tutorial 16 of 1000

Context-Specific Variables in School and Social Surveys

Learn to identify the student or other observational unit and classify school-survey responses such as grade level, favorite subject, and homework time.

Beginner 9 min read

What You'll Learn

  • Name the observational unit for each school-survey variable.
  • Classify grade level as an ordered category, even when recorded with numbers.
  • Distinguish favorite-subject categories from numerical measurements.
  • Define homework time with a time frame and units.
  • Tell when grouping homework time into ranges changes its variable type.
  • Recognize when a school survey describes schools rather than individual students.

Start With Who or What Each Response Describes

In Context-Specific Variables in Health Studies, you practiced classifying recorded information about people in a particular setting. School surveys use the same reasoning, but their wording can be easy to misread. “Grade,” for example, might mean a student’s grade level or a score on an assignment. Those are not the same variable.

As in Identifying the Observational Unit, begin by asking what one case represents. If a survey asks students about their grade level, favorite subject, and homework time, the observational unit is one student who responds—not the school, the class, or the survey question. Each variable describes that student. Naming the unit makes clear who each recorded value belongs to.

Definition: In a school survey, identify the observational unit before classifying a variable. For a survey completed by students, the unit is typically one responding student. Then classify each recorded characteristic according to what its values mean: a category or a numerical count or measurement.

The categories-versus-quantities distinction from Categorical Versus Quantitative Variables still applies. A number written in a response is not automatically a measurement, as explained in Spotting Numerical Variables That Are Really Categorical. Likewise, a word response can be categorical even if the categories can be listed in a useful order.

Grade Level: Ordered Categories, Not a Measured Amount

Suppose a student survey records each respondent’s current grade level as 9th, 10th, 11th, or 12th grade. The observational unit is one responding student. The variable is that student’s current grade level, and it is categorical. The values place students into school-grade groups.

These categories have a meaningful order: 9th grade comes before 10th grade, which comes before 11th and 12th. So grade level is an ordinal categorical variable, as in Ordinal Categories and Rating Scales. The order is meaningful, but the category numbers do not measure an amount. The difference between 9th and 10th grade is not a one-unit measurement in the same sense as a difference of one hour in homework time.

If the survey stores grade levels as 9, 10, 11, and 12, those values still identify categories. Calculating their average would not describe the average amount of something that students have. The digits are grade labels with an order, not measurements. A useful classification names the unit as well as the variable: “For each responding student, current grade level is an ordinal categorical variable.”

Key distinction: “Grade level” describes a student’s ordered school-grade category. “Grade on a test” usually describes a score, such as points earned or a percentage, and may be quantitative. Name the exact recorded characteristic and the observational unit before classifying it.

Favorite Subject: A Category With No Required Order

A survey might ask each student to choose a favorite subject from mathematics, English, science, social studies, arts, or another listed option. Here the unit is one responding student, and the variable is the subject that student identifies as a favorite. It is categorical because each response names a group or category.

Unlike grade level, favorite-subject categories do not have a natural order. Listing mathematics before science does not make mathematics “less” or “more” than science. This is a nominal categorical variable: its categories are names without a meaningful ranking. If a computer stores mathematics as 1, English as 2, and science as 3, the numbers are codes, not measurements.

The wording of the survey also matters. “Choose one favorite subject” records one category per student. “Select every subject you enjoy” permits several selections for the same student, so the recorded answers do not have the same one-response structure. State the response rule when it helps explain what the variable records. In either version, the unit remains one responding student; the subject selections describe that student.

Homework Time: A Quantity Needs a Time Frame and Units

If each student reports the amount of time spent on homework, the variable may be quantitative because it records a duration. But “homework time” is not yet a precise definition. Does it mean time spent last night, on a typical school night, or across an entire week? Are students reporting minutes or hours? Does it include all subjects or one assignment?

A clearer definition might be: “For each responding student, the total time spent on homework on the previous school night, reported in minutes.” The unit is one responding student; the recorded quantity is a duration; the unit of measurement is minutes; and the time frame is the previous school night. These details help ensure that the values have a clear meaning, as practiced in Defining Variables Precisely With Units.

A duration remains quantitative even if students round their answers to whole minutes or the survey offers response options such as 30, 45, or 60 minutes. The values still represent amounts of time. However, if the survey instead asks students to choose “under 30 minutes,” “30 to under 60 minutes,” or “60 minutes or more,” it records categories rather than exact durations. Those time-range categories have an order, so the variable is ordinal categorical. This is another case where the recording rule—not just the topic—determines the variable type.

Definition: Describe a homework-time variable by naming the observational unit, the duration being recorded, its units (such as minutes or hours), and the relevant time frame. Exact durations are quantitative; selected duration ranges are categorical.

Work Through School-Survey Examples

Worked Example: Classifying Grade Level

A fictional school survey asks each student who responds to select a current grade level: 9th, 10th, 11th, or 12th. Identify the observational unit and classify the variable. Explain why the numbers do not make it quantitative.

Observational unit: One case represents one responding student. The answer describes that student, not the student’s school or class.

Variable and type: The variable is the responding student’s current grade level. It is categorical and ordinal because its values are groups with a meaningful order from 9th through 12th grade.

Why not quantitative? The numbers label grade categories. A difference between grade labels does not measure an amount that the student has. Thus, a complete classification is: “For each responding student, current grade level is an ordinal categorical variable.” If the survey instead recorded a student’s numerical score on a course assignment, that would describe a different variable.

Worked Example: Favorite Subject and Its Response Rule

A fictional student survey asks each respondent to choose one favorite subject from a list: mathematics, English, science, or arts. Identify the unit and classify the response. Then explain what changes if the survey allows students to select every subject they enjoy.

Observational unit: One case is one responding student in the survey.

One choice: The variable is the subject chosen as that student’s favorite. It is categorical because the responses name subjects. It is nominal because the subjects have no inherent order. The recorded answer describes the responding student’s preference; it is not a numerical score.

Multiple choices: If each student may select every subject they enjoy, the survey can record several subject selections for the same student. The unit is still one responding student, but the response rule is different: the record can include multiple categories rather than one favorite. The survey description should state this rule so readers know what the student’s answers represent.

Check for numeric codes: If the survey uses 1 for mathematics, 2 for English, 3 for science, and 4 for arts, those values are identifiers for categories. Their numerical order does not rank how much a student likes a subject.

Worked Example: Defining Homework Time Clearly

A fictional survey asks students, “How long did you spend on homework last night?” Students enter a number of minutes. Identify the observational unit, classify the variable, and improve the variable description.

Observational unit: One case is one responding student. Each reported value describes that student’s homework time.

Classification: The variable is quantitative because the number of minutes measures a duration. A difference of 15 minutes represents a meaningful difference in reported time. Whole-number responses do not turn the duration into categories.

Precise description: State the variable as “the total number of minutes each responding student spent on homework during the previous night.” This gives the unit of observation (one responding student), the quantity (total homework duration), the units (minutes), and the time frame (the previous night). If the survey intended homework for one subject only, that restriction would also need to be stated.

Change the response format: Suppose students instead select “under 30 minutes,” “30 to under 60 minutes,” or “60 minutes or more.” The unit remains one responding student, but the variable is now ordinal categorical: each response is a time-range category, not an exact number of minutes.

Worked Example: Sort a Short School-Survey Inventory

A fictional survey of students records each respondent’s current grade level (9th through 12th), favorite subject (one choice from a list), and average homework time on a typical school night in hours. Name the observational unit, classify each variable, and identify a useful detail in each definition.

Observational unit: One case is one responding student. All three recorded characteristics describe that student.

Variable recorded for each responding studentTypeUseful detail
Current grade levelOrdinal categoricalValues are grade groups with a meaningful order.
Favorite subject, one choiceNominal categoricalThe response rule allows one subject; subject names have no natural order.
Average homework time on a typical school nightQuantitative measurement“Average,” “typical school night,” and hours clarify the duration and its time frame.

Interpret the inventory: The survey has three variables, each recorded for the same observational unit: one responding student. Grade level is not quantitative merely because its categories use numbers. Favorite subject is not quantitative merely because a computer might assign codes to its labels. Homework time is quantitative because the reported hours measure duration. If the survey grouped that duration into ranges instead, its recorded variable would be categorical.

When the Unit Is a School Instead of a Student

A school survey does not always use individual students as its observational units. Suppose a district records each school’s total enrollment, whether the school offers an arts program, and the school’s average student homework time. If each row represents one school, then the unit is one school, and each recorded value describes that school. Enrollment is a count, program availability is categorical, and average homework time is quantitative if it is recorded as a duration.

The unit depends on what one case represents, not on the general topic of education or on who filled out a form. A student might provide information about their school, but if the data set has one row per student, the student is the unit. If it has one row per school, the school is the unit. As in Reading a Data Table: Rows, Columns, and Cases, ask what one row describes before naming the unit.

Key takeaway: In a school survey, name the observational unit for every variable description. Grade level is an ordered category, favorite subject is a category without a natural order, and exact homework duration is quantitative when its time frame and units are clear.

Common Mistakes and AP Exam Tips

  • Calling the school the unit because the survey is about school. State what one case represents. If one row is one student, say “one responding student,” even when the question asks about the student’s school.
  • Calling grade level quantitative because it uses digits. Explain that grade-level numbers identify ordered categories; they do not measure an amount. Distinguish grade level from a score on an assignment.
  • Giving favorite-subject categories an invented ranking. Subject names do not have a natural order. Classify a one-choice favorite-subject response as nominal categorical.
  • Writing only “homework time.” State the duration, units, and time frame—for example, total minutes last night or average hours on a typical school night.
  • Confusing a duration with duration ranges. Exact minutes or hours are quantitative. A selected range such as “under 30 minutes” is categorical, even though the category describes a quantity.
  • Leaving out the unit of observation in a list. A strong response links the characteristic to its case: “For each responding student, the variable is…” This makes clear whose grade level, preference, or homework time is recorded.

For full-credit classification, name the observational unit, state the variable precisely, classify it by what its values mean, and briefly justify the type. Include units and a time frame for homework duration. When values are digits, explain whether they measure amounts or simply label categories. These short details make a school-survey inventory clear and defensible.

Check Your Understanding

For each situation, name the observational unit and classify the variable or variables. Include a brief explanation of what the responses mean.

  1. A survey records each respondent’s current grade as 9, 10, 11, or 12. What is the unit, and why is grade level not a quantitative measurement?
  2. Each student chooses one favorite subject from a list. Classify the variable and state whether the subject categories have a natural order.
  3. A survey records the number of minutes each student spent on homework the previous night. What is the unit, variable type, unit of measurement, and time frame?
  4. Students select “less than 30 minutes,” “30 to under 60 minutes,” or “60 minutes or more” for homework time. How does the variable type differ from exact minutes?
  5. A data set has one row per school and records each school’s total enrollment. What is the observational unit, and what type of variable is enrollment?
===