Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 12 Maths - General (Unit 3 & Unit 4) Investigating data distributions

Types of data and categorical data distributions

20 practice questions 0 video lessons Theory + worked examples

Start your data work in Year 12 VCE General Mathematics by sorting out types of data. A footy club recording members' postcodes, jumper sizes, ages and games played is collecting four very different kinds of information, and the type decides which tables, graphs and summaries make sense.

You will classify variables as categorical (nominal or ordinal) or numerical (discrete or continuous), and see why a number used as a label is still categorical. You will build frequency tables with percentages, fill gaps in two-way tables, read percentage segmented bar charts and describe a distribution by its mode, before moving on to graphs of numerical data.

Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

Every data investigation starts by deciding what type of data you have. This Year 12 General Mathematics guide for students in Victoria shows how to classify variables as categorical or numerical, and how to describe categorical data with frequency tables, two-way tables, percentages and segmented bar charts.

A variable is something recorded about each person or object in a data set. A categorical variable places each one in a group or category, such as blood type or the suburb a person lives in. A numerical variable is a count or a measurement.

Categorical variables are nominal when the categories have no natural order (blood type, favourite sport) and ordinal when they do (shirt size S, M, L; a rating from poor to excellent). Numerical variables are discrete when they are counted in whole numbers (number of siblings) and continuous when they are measured and can take any value in a range (height, mass, time).

A frequency table lists each category with its count, and often its percentage. A two-way frequency table counts two categorical variables at once, with row and column totals. A percentage segmented bar chart shows a categorical distribution as one bar split into segments that add to \(100\%\). The category with the largest frequency is the mode.

Key idea. Ask whether arithmetic on the values makes sense. If it does not (postcodes, phone numbers, jumper numbers), the variable is categorical, even when it is written with digits.
Types of dataA tree: data splits into categorical (nominal, ordinal) and numerical (discrete, continuous), with an example under each. Data Categorical Numerical Nominal Ordinal Discrete Continuous no order: blood type ordered: shirt size counted: siblings measured: height
Every variable is either categorical (nominal or ordinal) or numerical (discrete or continuous).
How students travel to schoolOne bar split into walk 18%, bus 33%, car 36% and bicycle 13%. 0 10 20 30 40 50 60 70 80 90 100 Percentage (%) 18% 33% 36% 13% Students Bicycle Car Bus Walk
A percentage segmented bar chart of how \(200\) students travel to school. The car segment (\(36\%\)) is the largest, so car is the mode.

The percentage of the data in a category:

\[\text{percentage} = \dfrac{\text{frequency}}{\text{total}} \times 100\%\]
percentage=frequencytotal×100%

A count from a percentage:

\[\text{count} = \text{percentage} \times \text{total}\]
count=percentage×total

The size of a segment in a percentage segmented bar chart:

\[\text{segment} = \text{reading at the top} - \text{reading at the bottom}\]
segment=top reading−bottom reading
Check. The percentages of all the categories add to \(100\%\), and in a two-way table the row totals and the column totals both add to the grand total.

Classifying a variable

  1. Ask: are the values labels (categorical) or counts and measurements (numerical)?
  2. If categorical, ask whether the categories have a natural order: ordinal if yes, nominal if no.
  3. If numerical, ask whether it is counted (discrete) or measured (continuous).

Describing a categorical distribution

  1. Find the total, then each category's percentage = frequency / total × 100%.
  2. Name the mode (the category with the largest frequency or the largest segment).
  3. Write a sentence giving the categories from most to least common, with their percentages.

Reading a two-way frequency table

  1. Use row totals and column totals to find any missing entry: missing = total − the known entries.
  2. Check that the row totals and the column totals both add to the grand total.
Example 1 — Classify each variable
A survey at a Mornington Peninsula beach records four variables for each group of visitors: the number of people in the group, the water temperature (°C), a rating of the beach (poor, fair, good, excellent) and which beach was visited. Classify each variable.
Solution

Decide labels or numbers first, then order (categorical) or counted/measured (numerical).

VariableTypeSubtypeReason
Number of people in the groupNumericalDiscretecounted in whole numbers
Water temperature (°C)NumericalContinuousmeasured; any value in a range
Rating of the beach (poor, fair, good, excellent)CategoricalOrdinallabels with a natural order
Beach visitedCategoricalNominallabels with no order

The rating is ordinal because excellent is better than good, and good is better than fair. The beach names have no order, so that variable is nominal.

Example 2 — Percentages and the mode
A Geelong café recorded the coffee ordered by its first \(180\) customers one morning.
CoffeeFrequency
Flat white54
Latte63
Cappuccino27
Long black36
Find the percentage for each coffee and describe the distribution.
Solution

Each percentage is frequency / total × 100%.

\(\text{total}\)\(=\)\(54 + 63 + 27 + 36\)
\(\)\(=\)\(180\)
\(\text{latte}\)\(=\)\(\dfrac{63}{180} \times 100\%\)
\(\)\(=\)\(35\%\)
\(\text{flat white}\)\(=\)\(\dfrac{54}{180} \times 100\%\)
\(\)\(=\)\(30\%\)
CoffeeFrequencyPercentage
Flat white54\(30\%\)
Latte63\(35\%\)
Cappuccino27\(15\%\)
Long black36\(20\%\)
Total180\(100\%\)
63/180×100=35%

The mode is latte (\(35\%\)), followed by flat white (\(30\%\)) and long black (\(20\%\)); cappuccino is the least ordered (\(15\%\)).

Example 3 — Read a segmented bar chart
The percentage segmented bar chart shows the main sport of the \(260\) members of a Warrnambool sports club. Football is the bottom segment. What percentage of members swim, and how many members is that?
Solution

Read the top and bottom of the swimming segment from the scale, then use percentage × total.

Main sport of Warrnambool club membersOne bar: football from 0 to 25%, netball from 25 to 55%, swimming from 55 to 90%, tennis from 90 to 100%. 0 10 20 30 40 50 60 70 80 90 100 Percentage (%) Members Tennis Swimming Netball Football
\(\text{swimming}\)\(=\)\(90\% - 55\%\)
\(\)\(=\)\(35\%\)
\(\text{members}\)\(=\)\(35\% \times 260\)
\(\)\(=\)\(0.35 \times 260\)
\(\)\(=\)\(91\)
0.35×260=91

\(35\%\) of the members swim, which is \(91\) members. Swimming is also the mode, as it is the largest segment.

Example 4 — Complete a two-way table
Year 11 and Year 12 students at a Bendigo school were asked whether they usually buy lunch at the canteen or bring it from home.
CanteenHomeTotal
Year 1148\(a\)110
Year 12\(b\)75130
Total
Find \(a\) and \(b\), complete the totals, and find the percentage of Year 12 students who buy lunch at the canteen, correct to one decimal place.
Solution

Each row adds to its row total.

\(a\)\(=\)\(110 - 48\)
\(\)\(=\)\(62\)
\(b\)\(=\)\(130 - 75\)
\(\)\(=\)\(55\)
\(\text{grand total}\)\(=\)\(110 + 130\)
\(\)\(=\)\(240\)
\(\text{Year 12 canteen}\)\(=\)\(\dfrac{55}{130} \times 100\%\)
\(\)\(\approx\)\(42.3\%\)
CanteenHomeTotal
Year 114862110
Year 125575130
Total103137240
a=62,b=55

Check: the column totals \(103 + 137 = 240\) agree with the grand total. About \(42.3\%\) of the Year 12 students buy lunch at the canteen.

Common pitfalls

Numbers can be labels. Postcodes, phone numbers and jumper numbers are written with digits but are categorical: an average postcode means nothing.
Read the segment, not the top of it. In a segmented bar chart a segment's size is the top reading minus the bottom reading. Only the bottom segment starts at \(0\%\).
Use the right total. A percentage of Year 12 students divides by the Year 12 total, not by the grand total of everyone surveyed.

Frequently asked questions

What is the difference between categorical and numerical data?

Categorical data are labels that put each person or object into a group, such as eye colour. Numerical data are counts or measurements, such as the number of pets or a height in centimetres.

What is the difference between nominal and ordinal data?

Both are categorical. Ordinal categories have a natural order, such as small, medium and large. Nominal categories have no order, such as types of fruit.

What is the difference between discrete and continuous data?

Both are numerical. Discrete data are counted and take separate values, usually whole numbers. Continuous data are measured and can take any value in a range, such as time or mass.

Is a postcode numerical or categorical?

Categorical (nominal). A postcode is a label for an area. Adding or averaging postcodes makes no sense, so it is not numerical data.

How do you read a percentage segmented bar chart?

Each segment shows one category. Its percentage is the reading at the top of the segment minus the reading at the bottom. All the segments in a bar add to 100%.

How do you describe a categorical distribution?

Give the mode (the most common category) and the percentages of the categories, from most to least common, in a sentence.