Classifying variables
Classify the variable family first, then choose a subtype. The meaning and origin of the values matter more than whether the values are written as words or digits
- Find the variable family Values that name or group things are categorical. Values that are counted or measured are numerical \(\displaystyle \text{names or groups}\Rightarrow\text{categorical},\quad\text{counts or measurements}\Rightarrow\text{numerical}\)
- Separate categorical variables Nominal categories are names only. Ordinal categories have an inherent order \(\displaystyle \text{car, bus, train}\Rightarrow\text{nominal},\quad\text{poor < fair < good}\Rightarrow\text{ordinal}\)
- Separate numerical variables Discrete variables arise from counting. Continuous variables arise from measuring and can take values in a range \(\displaystyle \text{number of pets}=0,1,2,\ldots\Rightarrow\text{discrete},\quad\text{height}=\text{a measured value}\Rightarrow\text{continuous}\)
- Look past numeric codes Digits used as labels do not make a variable numerical. Check what the values represent \(\displaystyle \text{rating codes }1,2,3,4,5\Rightarrow\text{ordinal categorical}\)
Worked example
A school survey records each student's satisfaction with the canteen as 1 = very low, 2 = low, 3 = medium, 4 = high or 5 = very high. Classify the variable
- \(\displaystyle \text{The values are ordered response codes, not counts.}\)The digits name levels of satisfaction rather than counting objects
- \(\displaystyle \text{categorical}\)The values describe response groups
- \(\displaystyle \text{ordinal}\)The response groups have an inherent order from very low to very high
Common mistakes
Difficulty levels
Questions about this topic
What makes a variable categorical?+
A categorical variable records names or groups. Arithmetic on the category labels is not meaningful
What is the difference between nominal and ordinal data?+
Nominal categories have no inherent order. Ordinal categories have a meaningful order, even when their labels are words or numeric codes
What is the difference between discrete and continuous data?+
Discrete data arise from counting particular values. Continuous data arise from measuring and can take any value in a range
Can I use a calculator?+
No. This topic is practised without a calculator
Which year level and chapter is this?+
Year 12, VCE Units 3 & 4, General Mathematics, chapter 1: Data distributions