Variables: What Does Each Record Describe?
A spreadsheet can contain names, numbers, photographs, and comments. Before calculating anything, ask what each row describes and what each entry measures. That small pause prevents mistakes such as treating a postal code as a measured distance or calling a sample average a population fact.
Units, Variables, and Summaries
An observational unit is the item or individual from which a datum is collected. A variable is a characteristic that can change from one unit to another. In a study of apartment energy use, an apartment is the unit. Monthly electricity use, floor area, heating type, and a photograph of the meter can all supply information about that apartment.
| Apartment | Electricity, kWh | Floor area, square metres | Heating type | Meter photograph | Resident comment |
|---|---|---|---|---|---|
| A01 | 340 | 65.4 | Electric | Image of A01 meter reading | “Usually empty in daytime” |
| A02 | 280 | 54.8 | Gas | Image of A02 meter reading | “Someone works from home” |
| A03 | 410 | 79.2 | Electric | Image of A03 meter reading | “Three residents” |
The apartment identifier helps join records; it is not electricity consumption. The observations in the photograph and text columns can be coded or inspected for useful information. A sound recording might supply a noise-level measurement or a category such as traffic noise. A video might show an event count. Photographs, sounds, videos, and text can therefore contribute meaningful data, but the study still needs a clear definition of what is measured from each source.
A parameter describes a population. It can be a numerical attribute or a numerical summary of the variable of interest. If we want the mean monthly electricity use of every apartment in a particular building, that full-building mean is a parameter. A statistic describes a sample: the mean for 20 measured apartments is a statistic. In symbols, a population mean is often and a sample mean is .
The sample mean is usually not exactly the unknown population mean. A different sample may produce a different statistic. Nevertheless, a well-designed sample can provide information for making an inference about the population parameter. “Sample” and “population” refer to the study’s intended group; they cannot be inferred from whether a value has many decimal places.
Worked Example: Two Averages
A school wants the mean height of all 600 current students. It measures a random sample of 30 students and obtains a mean of 166.2 cm. The observational unit is a student, height is the variable, and 166.2 cm is a statistic. The mean height of all 600 students is the parameter. We may use the sample statistic to estimate that parameter, but we cannot rename 166.2 cm as the exact population mean simply because it was calculated correctly.
Categorical or Quantitative?
A categorical, or qualitative, variable records a category name or group label: heating type, transport mode, or whether a lamp works. A quantitative, or numerical, variable records a measured or counted quantity and generally has units: kilometres traveled, grams of leftovers, or number of occupants. Arithmetic on quantitative values has a contextual meaning. Doubling a 20-minute trip gives 40 minutes; averaging apartment labels A01 and A03 has no comparable meaning.
Digits alone do not make a variable quantitative. A bus route number identifies a route; subtracting route 7 from route 9 does not measure a two-unit difference in transportation. A satisfaction response coded 1 through 5 is a category with an order unless the study provides a justified quantitative scale. Always return to what the recorded values mean.
Worked Example: A Cafeteria Record
For each tray, a student records the meal type, the number of unopened milk cartons, and leftover food mass in grams. Meal type is categorical. The carton count and food mass are quantitative because they record a count and a measurement. The tray is the observational unit, even though people chose and ate the meals.
Discrete and Continuous Quantitative Variables
A discrete quantitative variable has a countable set of possible values. The set may be finite, such as the number of functioning bulbs in a box of 12, or countably infinite in an idealized setting, such as a nonnegative whole-number count with no stated upper limit. “Countable” means the possible values can be listed in sequence; it does not require that the list end.
A continuous quantitative variable is modeled as able to take any value in a specified interval. A length between 10 and 20 cm could be 12 cm, 12.5 cm, 12.51 cm, and values between those values. The ideal possible values are not a countable list, and every pair of distinct possible lengths has other possible lengths between them. The quantity is measured rather than counted.
Recorded precision is a separate issue. A ruler may round length to the nearest millimetre, producing a finite list of recorded values. That does not make the underlying length a count of objects. State whether you are discussing the underlying quantity or the rounded records. Likewise, a discrete count can have a very large range and still be discrete.
| Variable | Type | Reason |
|---|---|---|
| Number of unopened cartons on a tray | Quantitative, discrete | Possible values are whole-number counts |
| Underlying leftover mass | Quantitative, continuous | The model permits all masses within an interval |
| Meal type | Categorical | Values name groups |
| Tray identifier | Categorical identifier | Digits or labels identify a tray, not an amount |
Independent Practice
Use the information in each question to make your own calculation, representation, or argument. Explain what your result means in its setting.
Original generated practice for the Fall 2026 course.
Glossary and deeper reading · 8 refreshers
These editorial refreshers supplement the reading. Definitions and examples are added guidance; original source wording and recorded answers remain in their original context.
-
Sample
A sample is the subset of a population actually studied. How it is selected matters for the conclusions that can be drawn about the population. For example, 60 selected students may be a sample from a school’s full enrollment.
-
Population
A population is the full set of individuals or measurements a study aims to describe. It must be defined clearly before deciding whether a sample supports generalization. For example, all students enrolled in a particular school this year form a population.
-
Observation
An observation is a recorded value or set of values for an individual or occasion. The individual may be a person, object, or event rather than a human subject. For example, one plant’s measured height is an observation in a plant-growth study.
-
Population parameter
A population parameter is a numerical feature of the population or probability model being studied. It is fixed for that defined population, although its value may be unknown. For example, the true proportion of all enrolled students who walk to school is a parameter.
Read more: Population parameter in the captured Statistics reading →
-
Mean
The mean is a measure of center often called an average. For a finite data set, the arithmetic mean is the sum of the values divided by their number; for a random variable, the mean is its probability-weighted expected value when that value exists. Means can be pulled toward extreme values and are not generally resistant. For example, the arithmetic mean of 2, 4, and 9 is 5.
-
Sample statistic
A statistic is a numerical summary calculated from sample data. Its value can change when a different sample is selected from the same population. For example, the proportion of walkers among 60 sampled students is a statistic.
Read more: Sample statistic in the captured Statistics reading →
-
Statistical inference
Statistical inference uses data and a study design to draw conclusions beyond the observed values. Random sampling supports population generalization, while well-conducted random assignment supports treatment-effect conclusions. For example, a random sample can estimate a school-wide preference without surveying every student.
Read more: Statistical inference in the captured Statistics reading →
-
Quantitative variable
A quantitative variable records a numerical count or measurement for each individual. Differences between its values have a meaningful numerical interpretation. For example, the number of books borrowed and the mass of a backpack are quantitative variables.
Read more: Quantitative variable in the captured Statistics reading →