A county health department records, for each restaurant it inspects, the number of violations found, whether it passed, and its five-digit permit number. Which of these is quantitative for these units?
Variables, parameters and statistics (with Module 0)
Name the observational unit, sort variables into quantitative and categorical, tell a parameter from a statistic, and read the Module 0 summaries: center, spread, shape and standard scores.
Key ideas
- Observational unit (case)
The entity each row of the data describes: a person, a hospital, a county, a day. Find it first by asking what one row represents.
Example A spreadsheet with one row per bike-share station has stations as its units, even if each row reports rider counts.
- Quantitative versus categorical
Quantitative variables take numbers where arithmetic means something (minutes, dollars, counts). Categorical variables sort units into groups. Numbers used as labels (zip codes, jersey numbers, codes like 1 = yes, 2 = no) stay categorical.
Example Test: would the average of this column mean anything? If not, it is categorical.
- Population
The full group you want to learn about. It can be finite (all registered voters in a state), hypothetical (all patients who could ever receive a treatment) or a process (every future flip of a coin).
- Parameter versus statistic
A parameter describes the population and is fixed but usually unknown. A statistic is computed from the sample and changes from sample to sample. Sample goes with Statistic; Population goes with Parameter.
Example STATS 250 notation: are parameters; the hats are the matching statistics.
- Center and skew (Module 0)
The mean is pulled toward a long tail; the median resists outliers. Right skew usually gives mean > median, left skew mean < median, symmetric data mean ≈ median.
- Spread and outliers (Module 0)
The SD is a typical distance from the mean. The IQR = Q3 − Q1 is the width of the middle 50%. A boxplot flags points more than 1.5 × IQR beyond a quartile.
- Standard score (z-score)
How many standard deviations an observation sits from the mean, with a sign for direction. Values below the mean get negative z-scores.
Formulas
Parameter and statistic pairs
| Summary | Parameter (population) | Statistic (sample) |
|---|---|---|
| Mean | ||
| Standard deviation | ||
| Proportion |
A campus breakfast survey
A dining office emails a random sample of 250 undergraduates at one university. Each student reports whether they usually skip breakfast, how many hours they slept last night, and their residence hall code (a three-digit number). 85 say they usually skip breakfast. Identify the unit, the variable types, the population, the parameter and the statistic.
Unit: one row is one undergraduate who answered.
Types: skips breakfast (yes/no) is categorical; hours slept is quantitative; the residence hall code is categorical even though it is written in digits, because averaging hall codes means nothing.
Population of interest: all undergraduates at this university (the sample of 250 is the subset we see).
Parameter: = the true (unknown) proportion of all undergraduates at this university who usually skip breakfast.
Statistic: , the proportion of the 250 sampled students who usually skip breakfast.
Units are students; one categorical and one quantitative response plus a categorical code; estimates the unknown for all undergraduates at the school.
Check yourself
A transit agency randomly samples 400 of its weekday riders; 62% of them say they would use a new express line. In this setting, 62% is:
A researcher studies all adults in a state using a random sample of 1,200. Select every quantity that is a parameter.
Online grocery delivery times at one store are strongly right-skewed: most orders arrive in 30 to 45 minutes, a few take over two hours. How do the mean and median compare?
Tomato plants in a greenhouse have mean height 40 cm and standard deviation 6 cm. What is the standard score of a plant that is 31 cm tall? Give the exact value (one decimal place).
Two classes took the same quiz. Class A's scores have IQR 8 points; class B's have IQR 15 points, and both have median 72. Which statement is supported?
A data set lists, for each U.S. county, its population, median household income and whether it has a public hospital. What is the observational unit?