In short
The observational units are the people or things data are collected from. A variable is a characteristic that changes from unit to unit. A categorical variable puts units into groups; a quantitative variable is a number you could sensibly average, and it is either discrete (countable values) or continuous (any value in a range). A parameter describes a population; a statistic describes a sample.
What you need to know
- Identify the observational units, variables, parameters and statistics in a study.
- Classify a variable as categorical or quantitative.
- Classify a quantitative variable as discrete or continuous.
- Explain why some number-valued variables are categorical.
Units and variables
Every data set is a table: each row is an observational unit (a student, a car, a day, a hospital) and each column is a variable measured on it. Before analysing anything, say what one row is. In a study of 200 cars at a toll booth, the observational units are the cars; the variables might be vehicle type, number of passengers and waiting time.
| Student | Grade | Transport to school | Travel time (min) | Siblings |
|---|---|---|---|---|
| A | 11 | Bus | 35 | 2 |
| B | 12 | Walk | 12 | 0 |
| C | 11 | Car | 20 | 1 |
Categorical or quantitative?
A categorical variable places each unit into one of several groups: transport to school (bus, walk, car), blood type, or whether a patient recovered (yes or no). A quantitative variable takes numerical values for which arithmetic makes sense: travel time, height, number of siblings.
The test is whether an average would mean something. Grade (11 or 12) is written as a number, but in this data set it labels a group, so it is treated as categorical. PIN codes, phone numbers and jersey numbers are numbers that are really labels, so they are categorical too. The same is true of a rating such as 1 = poor to 5 = excellent when it labels groups: report how many chose each rating rather than an average that hides the spread of opinions.
Quantitative variables come in two kinds. A discrete variable takes countable values with gaps between them, such as number of siblings (0, 1, 2, …). A continuous variable can take any value in an interval, such as travel time or height; the only limit is how precisely we measure.
Parameters and statistics
The population is the whole group you want to learn about; a sample is the part you actually measure. A number describing the population is a parameter (usually unknown), and a number describing the sample is a statistic (calculated from data). A quick memory aid: parameter goes with population, statistic with sample.
If a survey of 400 randomly chosen voters finds that 56% support a new road, 56% is a statistic. The true percentage of all voters who support it is the parameter, which the statistic estimates.
Key terms
- Observational unit
- The person or thing each row of data describes.
- Categorical variable
- A variable that places each unit into a group or category.
- Quantitative variable
- A variable with numerical values for which arithmetic, such as averaging, makes sense.
- Discrete variable
- A quantitative variable with countable values.
- Continuous variable
- A quantitative variable that can take any value in an interval.
- Parameter
- A number that describes a population.
- Statistic
- A number that describes a sample.
Common mistakes
Calling any variable recorded as a number quantitative.
Ask whether averaging makes sense; PIN codes and jersey numbers are categorical.
Calling a sample percentage a parameter.
A value calculated from sample data is a statistic; the parameter is the population value it estimates.
Confusing the observational units with the variables.
Units are rows (who or what); variables are columns (what is recorded).
How this topic is tested
- Start a free-response answer by identifying the variable and its type: it tells you which method is right.
- Use the words 'parameter' and 'statistic' precisely; examiners check them.
- If a question asks for the observational units, name them in context: 'the 120 seventh-grade students', not 'people'.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · SP 2 · Collect Data
A hospital records each patient's blood type, age in years, number of previous visits and whether they were admitted. How many of these variables are categorical?
Question 2 · SP 2 · Collect Data
Which quantitative variable is discrete?
Question 3 · SP 4 · Interpret Results
In a random sample of 250 households in a city, the mean monthly electricity bill is ₹2,140. Which statement is correct?
Question 4 · SP 3 · Analyze Data
A data set records each student's roll number. How should roll number be treated?
Question 5 · SP 1 · Formulate Questions
Which pair matches a population with its parameter?
Free-response practice
Write your answer first, then mark it against the scoring guide.
Practices 1 and 2 (short) · 5 points
A researcher randomly selects 80 smartphones sold in a city last year and records the brand, the screen size in inches, the number of apps installed, and whether the phone has been repaired.
- (a) Identify the observational units.
- (b) Classify each variable as categorical or quantitative, and each quantitative variable as discrete or continuous.
- (c) The mean screen size of the 80 phones is 6.3 inches. Explain whether 6.3 is a parameter or a statistic.
Scoring guide: one point for each of the following
Part (a)
- The 80 smartphones selected.
Part (b)
- Brand and repaired (yes/no) are categorical.
- Screen size is quantitative and continuous.
- Number of apps is quantitative and discrete.
Part (c)
- It is a statistic, because it describes the sample of 80 phones, not all phones sold in the city.
Connected topics
Frequently asked questions
Is a yes/no variable categorical?
Yes. A variable with two categories is called binary, and it is the kind of variable Unit 3 uses for proportions.
Can a variable be both categorical and quantitative?
The same characteristic can be recorded either way. Age in years is quantitative; age group (under 18, 18–64, 65+) is categorical.
Why are parameters usually unknown?
Measuring the whole population is usually too costly or impossible, so we estimate parameters with statistics from samples.