Lesson 1: Univariate data and types of variables
Classify the variables in a surf club survey
SkillClassifying variables
Worked example
A Sunshine Coast surf life saving club surveys its members. Classify each variable as categorical (nominal or ordinal) or numerical (discrete or continuous).
- (a) Patrol team (Red, Blue, Gold, Green)
- (b) Experience level (beginner, intermediate, advanced)
- (c) Number of patrols completed this season
- (d) Time taken to swim 400 m in the ocean
- (e) Postcode of home address
Step 1: Patrol team
The values are the names of teams. They are labels with no natural order, so patrol team is categorical, nominal.
Step 2: Experience level
The values are labels, but they have a natural order: beginner, then intermediate, then advanced. Experience level is categorical, ordinal.
Ordinal categories can be ranked, even though you can't do arithmetic with them.
Step 3: Number of patrols
You count patrols: 0, 1, 2, … A member can't complete 7.4 patrols, so this is numerical, discrete.
Step 4: Swim time
You measure time, and it can take any value in a range (7 min 41.3 s, 7 min 41.35 s, …). Swim time is numerical, continuous.
Step 5: Postcode
A postcode such as 4558 is written with digits, but it is a label for an area. Adding or averaging postcodes means nothing, so postcode is categorical, nominal.
The test is whether arithmetic on the values makes sense, not whether they are written with digits.
Answer
(a) Categorical, nominal. (b) Categorical, ordinal. (c) Numerical, discrete. (d) Numerical, continuous. (e) Categorical, nominal.
Try a similar one
A fresh question of the same kind, checked as you answer, with hints and a full solution.
Method
Ask whether the values are labels (categorical) or counts and measurements (numerical).
Categorical: is there a natural order? Yes, ordinal. No, nominal.
Numerical: counted, discrete. Measured, continuous.
Check for numbers used as labels. They are categorical.
Watch out for
Calling postcode numerical because it is written with digits.
Calling a measured variable discrete because it was rounded when it was recorded.