AP Statistics · Topic 1.2 · Reading guide, about 6 min

Observational units, parameters and kinds of data

Identify observational units and variables, separate parameters from statistics, and classify data as categorical or quantitative.

In one minute

Before you can graph or summarize anything, you need to know what each row of your data is and what is recorded about it. This topic gives names to those two things, then sorts the information you record into types, because the type of a variable decides which graphs and summaries make sense.

It also separates two kinds of numbers: those that describe a whole population and those that describe only a sample. That split is the foundation of statistical inference in Units 3 and 4.

Key terms

Observational unit
The individual person, object or event on which data are recorded; each row of a data table is usually one unit.
Variable
A characteristic that can take different values from one observational unit to another.
Parameter
A number that describes a population, such as the true mean sleep time of all students at a school. Usually unknown.
Statistic
A number computed from a sample, used to estimate a parameter. It changes from sample to sample.
Categorical variable
A variable whose values are labels or groups, such as favorite lunch or homeroom number; also called a qualitative variable.
Quantitative variable
A variable whose values are numbers on which arithmetic such as averaging makes sense; also called a numerical variable.
Discrete variable
A quantitative variable whose possible values can be counted, often whole numbers like siblings or goals.
Continuous variable
A quantitative variable that can take any value in an interval, usually from measuring, like height or time.

Observational units and variables

The observational unit is the thing you observe. In a table where each row is a student, the unit is a student. If each row is a game, a car, a day or a lake, that is the unit. A variable is a characteristic recorded for each unit, and it is a column in the table. One data set can hold many variables on the same units.

Variables do not have to be typed numbers or short words. Data can include photographs, audio recordings, video and free text. A photo of each student's lunch tray is data; so is the text of a review. Usually you turn such data into variables you can analyze, for example "contains a vegetable (yes or no)" or "number of words in the review".

Parameters and statistics

A parameter describes a whole population: the mean commute time of all 800 students at a school, the proportion of all voters in a city who support a bond measure. A statistic describes a sample: the mean commute time of the 40 students you asked, the proportion of 500 surveyed voters who support the bond. A handy memory aid is that Parameter goes with Population and Statistic goes with Sample.

The reason this matters is that a parameter is a fixed number you usually cannot know, while a statistic is something you can compute. A statistic is used to estimate a parameter. But a statistic usually differs from the parameter, because a sample includes only some of the population, and a different random sample would include different individuals and give a different value. This sample-to-sample variation is the central idea of inference. In this course, parameters use symbols such as pp, μ\mu and σ\sigma, while statistics use p^\hat{p}, xˉ\bar{x} and ss.

Categorical or quantitative

A categorical (or qualitative) variable places each unit into a group. A quantitative (or numerical) variable records a number that measures or counts something, so that adding and averaging mean something. A quick test: ask whether the average of the values would make sense. The average favorite lunch is nonsense, so it is categorical. The average height is meaningful, so height is quantitative.

Quantitative variables split further. Discrete variables take countable values, such as the number of siblings or the number of free throws made; you cannot have 2.5 siblings. Continuous variables can take any value in an interval, such as a plant's height or the time to run a mile. Continuous variables are the result of measuring, and recorded values are rounded only because instruments have limited precision.

A trap: numbers used as labels are categorical. Zip codes, phone numbers, student ID numbers and jersey numbers are numbers, but averaging them is meaningless, so they are categorical variables.

Sorting variables
VariableTypeReason
Homeroom numberCategoricalThe number is a label; averaging room numbers means nothing
Number of siblingsQuantitative, discreteCountable whole-number values
Minutes of homework last nightQuantitative, continuousMeasured; can be any value in an interval
Favorite lunchCategoricalValues are groups of food choices

Worked example

Invented scenario. A school has N=800N = 800 students. A researcher randomly selects 5 students and records for each one the homeroom number, the number of siblings and the hours slept last night. The sleep times are 7, 6.5, 8, 6 and 7.5 hours.

The observational unit is a student (each row describes one). The variables are homeroom number (categorical), number of siblings (quantitative, discrete) and hours slept (quantitative, continuous).

The statistic: the sample mean is xˉ=(7+6.5+8+6+7.5)/5=35/5=7.0\bar{x} = (7 + 6.5 + 8 + 6 + 7.5)/5 = 35/5 = 7.0 hours. The parameter is μ\mu, the mean sleep time of all 800 students. We do not know μ\mu. The statistic xˉ=7.0\bar{x} = 7.0 is an estimate of it, and a different group of 5 students could well give 6.4 or 7.6.

In context: "The 5 sampled students slept an average of 7.0 hours. This is a statistic that estimates the mean sleep time of all 800 students, which is the parameter." Naming both the statistic and the parameter, and saying which is which, is the full answer.

How it connects

  • Back to 1.1: the population and sample defined there are exactly the groups that parameters and statistics describe.
  • Forward to 1.3: counts and proportions summarize a categorical variable.
  • Forward to 1.5: histograms, dotplots and stemplots display a quantitative variable, so the type you identify here picks the graph.
  • Forward to 3.1: point estimates and bias in estimation return to the statistic versus parameter idea.

Common mistakes

  • Calling a statistic a parameter. If the number came from a sample, it is a statistic, even if it is called "the average of the survey".
  • Treating label numbers as quantitative. Zip codes and jersey numbers are categorical. Ask whether averaging them would mean anything.
  • Confusing discrete with categorical. Discrete variables are numerical counts; categorical variables are groups. "Number of pets" is discrete quantitative; "type of pet" is categorical.
  • Expecting the statistic to equal the parameter. It usually will not, and this is normal, not a mistake in the data.

How it shows up on the exam

  • A table of data is described and you name the observational unit and classify each variable.
  • A scenario gives a number and asks whether it is a parameter or a statistic, and what it estimates, in context.
  • A question asks which graph or summary is suitable, which depends on whether a variable is categorical or quantitative.

Check yourself

  1. In a table where each row is a basketball game, what is the observational unit, and is "points scored" discrete or continuous?
  2. Why is a student ID number categorical even though it is a number?
  3. You survey 100 of the 2,000 members of a gym. Which number is a parameter and which is a statistic: the mean age of all members, or the mean age of your 100?
  4. Why would a second random sample of 100 members probably give a different statistic?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.