Classifying and representing data for HSC Maths Standard 2
“Classify data relating to a single random variable as categorical (nominal or ordinal) or numerical (discrete or continuous), and select and use an appropriate graphical display for the data type”
Classify a single variable with two questions. First, is each value a label (categorical) or a number you can count or measure (numerical)? Second, split again: categorical is nominal (no order) or ordinal (ordered); numerical is discrete (whole-number counts) or continuous (measured on a scale). The type then decides the display: column, sector and divided bar graphs for categorical data; dot plots, stem-and-leaf plots and histograms for numerical data. Match the graph to the type and justify the choice.
What this dot point is asking
NESA wants you to look at any variable and place it correctly in the data-type family: first decide whether it is categorical or numerical, then pick the right sub-type (nominal or ordinal for categorical, discrete or continuous for numerical). The second half of the dot point is the payoff: the type of data decides which graph is appropriate, so a wrong classification leads to a wrong display. The skill is tested constantly, because almost every Data Analysis question begins with data that you must read correctly before you can summarise or graph it. The arithmetic is trivial here; the marks live in two clean decisions and in justifying your choice of display.
The answer
Every variable answers two questions in turn. Question one: is each value a label, or is it a number you can count or measure and do arithmetic with? Labels make the variable categorical; counts and measurements make it numerical. Question two depends on the first answer. If categorical, ask whether the categories have a natural order: ordered means ordinal, unordered means nominal. If numerical, ask whether the values are counted in whole steps or measured on a continuous scale: counted means discrete, measured means continuous. The tree below runs both questions in one picture.
Categorical data: nominal versus ordinal
A categorical variable sorts each item into a named group. The values are labels, not amounts, so arithmetic on them is meaningless: there is no "average eye colour". Categorical data splits in two:
- Nominal categories are just different names with no natural order. Eye colour, suburb, blood type, favourite sport and nationality are nominal. You could list the categories in any order without losing meaning.
- Ordinal categories have a natural order even though they are still labels. Clothing sizes (S, M, L, XL), survey responses (strongly disagree to strongly agree), school year groups and movie ratings (poor to excellent) are ordinal. Sorting them from lowest to highest makes sense.
The test is simple: if you can rank the categories sensibly, the variable is ordinal; if ranking them would be arbitrary, it is nominal.
Numerical data: discrete versus continuous
A numerical variable takes values that are genuine numbers you can count or measure and do arithmetic with (a mean, for instance). Numerical data also splits in two:
- Discrete data is counted in whole steps, so only separated values are possible. The number of siblings, cars in a household, goals in a match or rooms in a house are discrete: you cannot have siblings.
- Continuous data is measured on a scale and can take any value in a range, limited only by the precision of the instrument. Height, mass, time, temperature and volume are continuous: a height could be cm, cm or cm.
The test is whether the values come in countable jumps (discrete) or can sit anywhere on a number line (continuous).
Classify a single variable with two questions. (1) Is each value a label (categorical) or a number you can count or measure (numerical)? (2a) If categorical, do the categories have a natural order (ordinal) or not (nominal)? (2b) If numerical, is it counted in whole steps (discrete) or measured on a scale (continuous)? Then match the display to the type: categorical data suits column, sector and divided bar graphs; numerical data suits dot plots, stem-and-leaf plots and histograms.
Choosing an appropriate display
The type of data decides which graph is appropriate, and a marker checks that your display fits the type:
- Categorical (nominal or ordinal): a column (bar) graph to compare group frequencies, a sector (pie) graph when the categories are parts of one whole, or a divided bar graph. For ordinal data, keep the categories in their natural order along the axis so the trend is readable. The bars in a column graph for categorical data are drawn with gaps, because the categories are separate.
- Numerical discrete (small range): a dot plot (one dot per observation stacked above each value) or a column/frequency graph, which show every count and any clustering.
- Numerical continuous (or a large range): a histogram of data grouped into class intervals, which reveals the shape of the distribution (its centre, spread and skew). Unlike a column graph, a histogram's bars touch, because the scale is continuous.
- A stem-and-leaf plot suits numerical data when you want to keep the actual data values visible.
Two displays to avoid: a sector graph for continuous data (there are no natural slices), and a histogram for nominal categories (there is no numerical scale to group).
How exam questions ask about classifying data
The command words are predictable, and each points to the same routine:
- "Classify the variable ..." or "What type of data is ...?" means run the two questions: categorical or numerical first, then the sub-branch.
- "... categorical or numerical" asks only for the first split; "... discrete or continuous" tells you the variable is already numerical and wants the second split.
- "Choose / suggest an appropriate display (or graph) for ..." means name a graph that fits the data type and justify it by naming the type ("a column graph, because the data is categorical").
- "Explain why [a given graph] is not suitable ..." wants the type-mismatch reason (for example, "a sector graph needs categories that are parts of a whole, but continuous heart-rate data has no natural categories").
- "Give an example of a ... variable" asks you to invent one of the named type, so keep a ready example of each of the four types.
Two tasks of the kind exams set: first classify a mixed batch of variables fully, then choose and justify a display for each of three data sets. The same two questions drive every answer.
Classify five variables from a school survey
A Year 11 survey records these five variables about each student: house colour (red, blue, green, gold), shoe size, resting heart rate in beats per minute, level of agreement with a new uniform (disagree, neutral, agree), and number of siblings. Classify each fully.
- House colour - run the two questions
- The values are labels (categorical), and the four houses have no natural order, so house colour is categorical nominal.
- Shoe size
- Shoe sizes such as , , are counted on a whole-and-half-step scale and behave as a count with a clear order; in the HSC they are treated as numerical discrete (separated values, not a continuous measurement). The deciding point is that you tick fixed size steps, not measure anywhere on a scale.
- Resting heart rate
- Beats per minute is measured on a scale and can take any value in a range, so it is numerical continuous.
- Level of agreement
- Disagree, neutral and agree are labels (categorical) with a natural order, so this is categorical ordinal.
- Number of siblings
- A whole-number count, so it is numerical discrete.
- Answer
- House colour is categorical nominal; level of agreement is categorical ordinal; resting heart rate is numerical continuous; shoe size and number of siblings are numerical discrete.
Choose and justify a display for three data sets
For each data set, name an appropriate graph and give a one-line reason tied to the data type.
(a) The share of Australia's electricity generated by coal, gas, hydro, wind, solar and other in a year. These are categories that together make one whole (total generation), so a sector graph is appropriate: each source is a slice of the total. A divided bar graph would also work.
(b) The number of pets owned by each of students, ranging from to . This is discrete numerical data over a small whole-number range, so a dot plot is appropriate: a stack of dots above each of shows the most common number of pets and any gaps.
(c) The resting heart rates of athletes, ranging from to beats per minute. This is continuous numerical data over a wide range, so a histogram with grouped class intervals (such as to , to , and so on) is appropriate, because it shows the shape of the distribution. A dot plot would have too many distinct values to read.
Answer. Sector graph for the electricity shares, dot plot for the pet counts, and a grouped histogram for the heart rates - each chosen to match its data type.
- Treating numbers-as-labels as numerical
- A postcode, a jersey number or a phone number is written with digits but is a categorical nominal label; the test is whether arithmetic on it is meaningful, and averaging postcodes is not.
- Calling a count continuous
- The number of cars, goals or siblings is discrete (counted in whole steps), not continuous. Continuous means measured on a scale (height, mass, time).
- Mixing up nominal and ordinal
- Ordinal categories have a natural order (sizes, ratings, year groups); nominal categories do not (colours, suburbs, sports). If you can sensibly rank them, they are ordinal.
- Choosing a display that does not fit the type
- A sector graph needs categories that form a whole, so it is wrong for continuous data; a histogram needs a numerical scale, so it is wrong for nominal categories. Match the graph to the type.
- Forgetting to justify the display
- Naming a graph earns little on its own; the mark comes from tying it to the data type ("a histogram, because the data is continuous").
State your reasoning as you classify: write "labels, so categorical" then "no natural order, so nominal", because that sentence is where the method mark sits even if you mislabel at the end. For numerical variables, always give the discrete or continuous sub-branch unless the question asks only for categorical versus numerical, since the detail marks live there. When choosing a display, name the type first and let it pick the graph ("the data is categorical, so a column graph"), and for ordinal data say explicitly that you will keep the categories in order. Keep one ready example of each of the four types in your head (eye colour, clothing size, number of siblings, height); a clean example is often the fastest way to justify a classification under time pressure.
Sorting data is like sorting the things in your room before you tidy. Some things are kinds rather than amounts, like the colour of your socks or your favourite band; these are labels, and a few labels even come in a natural order, like clothing sizes from small to large. Other things are real amounts you can count or measure, like how many books you own or how tall you are; the counted ones jump in whole steps while the measured ones can land anywhere in between. Once you know which kind of thing you have, the right chart almost picks itself: pies and bars are for the label kinds, and dot plots and histograms are for the amount kinds. Naming the kind first is the whole trick, because the wrong chart for a kind of data is like trying to weigh something with a ruler.
Exam-style questions
Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
2022 HSC-style3 marksA researcher records three variables about each car in a car park: its make (Toyota, Ford, Mazda, other), its number of seats, and its fuel efficiency in litres per km. Classify each variable as categorical or numerical, and where it is numerical state whether it is discrete or continuous.Show worked answer →
Make: categorical (the values are labels). No discrete/continuous sub-branch is required for a categorical variable, though noting "nominal" is a bonus.
Number of seats: numerical and discrete (a whole-number count).
Fuel efficiency: numerical and continuous (measured on a scale, can take any value in a range).
Markers award one mark per correct full classification. A common error is calling the number of seats continuous; it is a count, so it is discrete. Stating only "categorical/numerical" without the discrete/continuous sub-branch on the numerical variables loses the detail marks.
2021 HSC-style4 marksA school surveys students on their year group (Year 7 to Year 12), their preferred canteen meal (sushi, wrap, pie, salad), and their daily screen time in hours. (a) Classify each variable fully. (b) For preferred canteen meal, name an appropriate graph and justify your choice.Show worked answer →
Part (a): Year group is categorical ordinal (the years have a natural order). Preferred meal is categorical nominal (unordered labels). Daily screen time is numerical continuous (measured on a scale).
Part (b): A column (bar) graph or sector graph is appropriate because preferred meal is categorical; a column graph shows one bar per meal with height equal to the frequency, making the most popular meal easy to read. A sector graph is acceptable if the response is justified as showing each meal as a share of the whole.
Markers award a mark for each correct classification (with the ordinal/nominal distinction expected), and marks in part (b) for naming a valid categorical display AND giving a reason tied to the data type. Naming a histogram or dot plot for the meal data loses the mark, since those are for numerical data.
2023 HSC-style3 marksExplain the difference between a discrete and a continuous numerical variable, giving one example of each from a sport of your choice. Then state, with a reason, whether a histogram or a dot plot is the more natural display for a discrete variable over a small range of whole numbers.Show worked answer →
Difference: a discrete variable is counted in whole-number steps (it can only take separated values), while a continuous variable is measured on a scale and can take any value within a range.
Examples (sport-dependent, e.g. cricket): discrete - the number of wickets taken; continuous - a bowler's delivery speed in km/h. Any valid count and any valid measurement earn the marks.
Display: a dot plot is the more natural choice for a discrete variable over a small whole-number range, because each whole-number value gets its own stack of dots, showing every individual value and the most common count clearly; a histogram groups data into intervals, which is better suited to continuous data or a large range.
Markers reward a correct, clearly worded distinction, one valid example of each type, and a justified display choice. Defining the terms the wrong way round, or giving a measured quantity as the "discrete" example, loses marks.
Practice questions
Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.
foundation2 marksClassify each of the following variables as categorical or numerical. (a) The eye colour of a student. (b) The number of siblings a student has.Show worked solution →
Ask the deciding question: is the value a label or a number you can count or measure?
Part (a) eye colour. The values are labels such as brown, blue and green. They place each student into a named group, so eye colour is a categorical variable.
Part (b) number of siblings. The value is a genuine count, such as , or , that you can do arithmetic with, so the number of siblings is a numerical variable. (Check: you can find a mean number of siblings, but a mean eye colour makes no sense, which confirms one is numerical and the other categorical.)
foundation3 marksFor each numerical variable below, state whether it is discrete or continuous. (a) The number of cars in a household. (b) The mass of a watermelon in kilograms. (c) The number of goals scored in a netball match.Show worked solution →
Ask the deciding question: is the variable counted in whole steps (discrete) or measured on a scale that can take any value (continuous)?
- Part (a) number of cars
- You count cars in whole numbers; a household cannot own cars, so this is discrete.
- Part (b) mass of a watermelon
- Mass is measured and can take any value in a range, such as kg or kg depending on the scales, so this is continuous.
- Part (c) number of goals
- Goals are counted in whole numbers, so this is discrete. (Check: the two counts can only land on whole numbers, while the mass can sit anywhere between two whole numbers, which is exactly the discrete versus continuous split.)
foundation2 marksClassify each categorical variable as nominal or ordinal. (a) A student's favourite sport (cricket, netball, soccer). (b) A movie rating (poor, fair, good, excellent).Show worked solution →
Ask the deciding question: do the categories have a natural order, or are they just different names?
Part (a) favourite sport. Cricket, netball and soccer are simply different names with no natural ranking, so the variable is nominal.
Part (b) movie rating. Poor, fair, good and excellent have a clear order from worst to best, so the variable is ordinal. (Check: you could sensibly sort the ratings from lowest to highest, but sorting the sports into an order would be meaningless, which is the nominal versus ordinal test.)
core4 marksA survey records four variables about each Year 11 student: their postcode, their T-shirt size (S, M, L, XL), their height in centimetres, and the number of languages they speak. Classify each variable fully (categorical nominal, categorical ordinal, numerical discrete, or numerical continuous).Show worked solution →
Work each variable through the two questions in turn: first categorical or numerical, then the sub-branch.
- Postcode
- Although it is written with digits, a postcode is a label for an area; adding or averaging postcodes is meaningless. So it is categorical, and the postcodes have no natural order, so it is categorical nominal.
- T-shirt size
- The values S, M, L, XL are labels, so the variable is categorical, and they run in a clear order from smallest to largest, so it is categorical ordinal.
- Height in centimetres
- Height is measured and can take any value in a range (such as cm), so it is numerical and continuous.
- Number of languages
- This is a count in whole numbers, so it is numerical and discrete. (Check: the postcode is the classic trap - digits do not make it numerical, because the deciding test is whether arithmetic on the value is meaningful, and averaging postcodes is not.)
core4 marksA student has collected data and must choose a display for each. State an appropriate graph for each variable and justify your choice. (a) The proportion of a household budget spent on rent, food, transport and other. (b) The number of pets owned by each of students (a whole-number count). (c) The favourite takeaway cuisine of people (Thai, Italian, Indian, other).Show worked solution →
Match the display to the data type: categorical data suits column, sector and divided bar graphs; numerical data suits dot plots, stem-and-leaf plots, histograms and frequency tables.
- Part (a) household budget shares
- The categories are parts of one whole (the total budget), so a sector (pie) graph is appropriate because it shows each category as a slice of the total . A divided bar graph would work equally well.
- Part (b) number of pets
- This is discrete numerical data over a small range, so a dot plot (or a column/frequency graph) is appropriate: one dot per student stacked above each count shows the distribution and any clustering.
- Part (c) favourite cuisine
- This is nominal categorical data, so a column (bar) graph is appropriate, with one bar per cuisine and the height showing the frequency. (Check: each chosen graph matches its data type - a slice-of-the-whole for budget shares, stacked dots for a small count, and separated bars for unordered categories.)
exam5 marksA health researcher records, for each of patients: blood type (A, B, AB, O); pain level reported as none, mild, moderate or severe; resting heart rate in beats per minute; and the number of GP visits in the past year. (a) Classify all four variables fully. (b) For blood type and for resting heart rate, name one appropriate graphical display and justify each choice. (c) Explain why a sector graph would be a poor choice for resting heart rate.Show worked solution →
Part (a) classify all four. Apply the two questions to each variable.
- Blood type: the values are unordered labels, so it is categorical nominal.
- Pain level: none, mild, moderate and severe are labels with a natural order, so it is categorical ordinal.
- Resting heart rate: measured on a scale and able to take any value in a range, so it is numerical continuous.
- Number of GP visits: a whole-number count, so it is numerical discrete.
Part (b) appropriate displays. Blood type is categorical, so a column graph (one bar per blood type, height equal to the frequency) clearly compares the four groups. Resting heart rate is continuous numerical, so a histogram with the data grouped into class intervals (for example to , to , and so on) shows the shape of the distribution.
Part (c) why a sector graph fails for heart rate. A sector graph splits a whole into categories, but resting heart rate is continuous with hundreds of distinct values, so it has no small set of natural slices; a pie of near-unique values would be unreadable and would hide the shape (centre, spread, skew) that a histogram reveals. (Check: each display matches its type, and the explanation turns on the fact that continuous data has no natural categories to slice, which is the whole reason type drives the display.)
exam5 marksA council survey asks residents: their suburb; how satisfied they are with parks (very dissatisfied, dissatisfied, neutral, satisfied, very satisfied); their exact age in years and months; and how many times they visited a park last month. (a) Classify each variable fully. (b) The council wants a single graph that shows the satisfaction responses in order from least to most satisfied. State an appropriate display and explain why the order matters here but would not matter for suburb. (c) The number of park visits ranged from to . Recommend a display and justify it.Show worked solution →
Part (a) classify each. Run each variable through the two questions.
- Suburb: unordered labels, so categorical nominal.
- Satisfaction: ordered labels from very dissatisfied to very satisfied, so categorical ordinal.
- Age in years and months: measured on a continuous scale (age increases smoothly, and "years and months" records part-years), so numerical continuous.
- Number of park visits: a whole-number count, so numerical discrete.
Part (b) display for satisfaction, and why order matters. A column graph with the bars placed in the natural order from very dissatisfied to very satisfied is appropriate, because satisfaction is ordinal: keeping the categories in order lets a reader see the trend from unhappy to happy at a glance. Suburb is nominal, so its bars can sit in any order (for example tallest first) without losing meaning, since there is no underlying ranking to preserve.
Part (c) display for park visits. The visits are discrete numerical data over the small whole-number range to , so a dot plot (or a column graph of the frequencies) is appropriate: one dot per resident above each count shows the most common number of visits, any gaps, and any unusually high values. (Check: ordering matters only when the categories themselves are ordered, which is precisely what separates ordinal from nominal, and a small whole-number range is exactly where a dot plot is at its clearest.)