The Computer Will Average Anything
Four columns of data, five summaries each: which ones mean something?
1. Commute times: quantitative continuous
Minutes can take any value in a range. Drag each summary into a box, or use its menu.
As a group: does each summary make sense for a continuous variable?
2. Pets per household: quantitative discrete
Whole-number counts: 0, 1, 2, 3…
As a group: does each summary make sense for a discrete count?
3. Spice level: qualitative ordinal
Ordered categories, stored as codes 1 to 4.
As a group: does each summary make sense for ordered categories?
4. Pizza topping: qualitative nominal
Categories with no order, stored as codes 1 to 4. The toppings average 2.25, the same as the spice levels. Some nominal columns have only two codes, 0 and 1, like treat in the lalonde data.
As a group: does each summary make sense for unordered categories, including 0/1 columns?
Your group's table
✓ matches the key · ≈ also defensible · ✗ see that row's step · blank: that row isn't committed yet.
5. A new survey
A course survey asks “How useful was this class?” on a scale from 1 (not at all) to 5 (extremely). The report says: mean 3.8, standard deviation 0.9, median 4, most common answer 4.
Which of the reported numbers are not suitable summaries for this kind of data?
6. Where else does this bite?
As a group: think of data from your own life or another class where categories are stored as numbers (a zip code, say, but find your own). Which summary would someone be tempted to compute that means little or nothing? What would you report instead?
Points to compare
- A computer stores codes as numbers and will compute anything. The type comes from what the numbers measure.
- Two questions settle most cells: Is there an order? (median, the lowest and highest category) Is a step of 1 the same size everywhere? (mean, SD, range as a number)
- Counts and shares (and so the mode) work for every type. For raw continuous values the mode only helps once values are rounded or grouped.
- What to report instead: counts or the % in each category (nominal); the median, the mode and the % in each category (ordinal).
You should now be able to:
- say which summaries fit each of the four types, and why (steps 1 to 4);
- spot a mean or SD that treats ordered labels as amounts (steps 3 and 5);
- explain why the mean of a 0/1 column is a share, but the mean of other category codes means nothing (step 4).
Assumptions
- dataThe four columns are invented, eight values each, chosen so the arithmetic is easy to follow.
- simplificationStandard deviation divides by n − 1, as R's
sd()and spreadsheets' STDEV do. Range is reported as max − min. - interpretationThe computer's answers are what a spreadsheet's AVERAGE, MEDIAN, MODE, STDEV and MAX − MIN give for the stored codes.
Left out: interval versus ratio scales, and weighted or trimmed means.