Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 12 Maths - General (Unit 3 & Unit 4) Investigating associations between two variables

Associations between two categorical variables

20 practice questions 0 video lessons Theory + worked examples

Learn to spot an association between two categorical variables in Year 12 VCE General Mathematics. Are younger Melburnians more likely to catch the train into the city than older ones? A table of raw counts cannot tell you, because the age groups are different sizes. Percentages within each group turn the counts into a fair comparison.

You will practise finding column percentages in two-way frequency tables, drawing and reading percentage segmented bar charts, and comparing the same response across groups. You will decide whether an association exists and describe it in a sentence that quotes both percentages, before moving on to comparing a numerical variable across groups.

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

Theory

Two categorical variables are associated when the percentages of one change across the categories of the other. This Year 12 General Mathematics guide for students in Victoria shows how to find column percentages in a two-way table, draw and read percentage segmented bar charts, and describe an association clearly in context.

A two-way frequency table (also called a contingency table) counts how many individuals fall into each combination of two categorical variables. Because the groups being compared are usually different sizes, the counts are turned into percentages within each category of the explanatory variable. With the explanatory variable across the top, these are column percentages: divide each count by its column total. (If a table puts the explanatory variable in the rows, use row percentages instead.)

A percentage segmented bar chart shows these percentages. There is one bar for each category of the explanatory variable, every bar is \(100\%\) tall, and each bar is split into segments for the categories of the response variable. The size of a segment is the reading at its top minus the reading at its bottom.

Two categorical variables are associated when the percentage for the same response category changes noticeably from one bar (or column) to the next. If the percentages are about the same in every group, there is no association.

Key idea. Compare the same response category across the categories of the explanatory variable, using percentages, not counts. A clear difference means an association; describe it by naming the group that was more likely and quoting both percentages.
Travel to the city by age groupUnder 30: train 65%, car 35%. 30 to 59: train 45%, car 55%. 60 and over: train 20%, car 80%. 0 10 20 30 40 50 60 70 80 90 100 Percentage (%) 65% 35% Under 30 45% 55% 30 to 59 20% 80% 60 and over Age group Car Train
The train segment shrinks from \(65\%\) to \(45\%\) to \(20\%\) as age increases, so age group and way of travelling are associated: younger people were more likely to take the train.
Pet ownership by cityGeelong: has a pet 62%, no pet 38%. Ballarat: has a pet 61%, no pet 39%. 0 10 20 30 40 50 60 70 80 90 100 Percentage (%) 62% 38% Geelong 61% 39% Ballarat City No pet Has a pet
The bars are almost identical (\(62\%\) and \(61\%\) have a pet), so there is no association between the city and owning a pet.

With the explanatory variable in the columns:

\[\text{column percentage} = \dfrac{\text{cell count}}{\text{column total}} \times 100\%\]
column percentage=cell countcolumn total×100%

Reading a segment of a percentage segmented bar chart:

\[\text{segment size} = \text{reading at top} - \text{reading at bottom}\]
segment size=reading at top−reading at bottom

Turning a percentage back into a count:

\[\text{count} = \text{percentage} \times \text{group total}\]
count=percentage×group total
A model sentence. “Students who had private lessons were more likely to stand up on the board (85%) than students who had group lessons (65%), so there is an association between type of lesson and standing up.”

How to identify and describe an association

  1. Identify the explanatory variable and check whether it labels the columns (usual) or the rows.
  2. Find the percentages within each of its categories: divide by the column totals (or row totals if it labels the rows).
  3. Draw or read the chart: one bar per explanatory category, each bar \(100\%\), segments for the response categories. Segment size = top reading minus bottom reading.
  4. Compare the percentages for one response category across the groups.
  5. Decide and describe: a clear difference means an association; nearly equal percentages mean no association. Name the group that was more likely and quote both percentages.
Example 1 — Column percentages
A Torquay surf school recorded whether beginners stood up on the board in their first lesson. Type of lesson is the explanatory variable.
Type of lesson
Group lessonsPrivate lessons
Stood up\(52\)\(34\)
Did not stand up\(28\)\(6\)
Total\(80\)\(40\)
(a) What percentage of each group stood up? (b) Is there an association between type of lesson and standing up? Explain.
Solution

Type of lesson labels the columns, so divide by the column totals.

\(\text{Group}\)\(=\)\(\dfrac{52}{80}\times 100\%\)
\(\)\(=\)\(65\%\)
\(\text{Private}\)\(=\)\(\dfrac{34}{40}\times 100\%\)
\(\)\(=\)\(85\%\)
\(\text{difference}\)\(=\)\(85\% - 65\%\)
\(\)\(=\)\(20 \text{ percentage points}\)

(a) 65% of group-lesson beginners and 85% of private-lesson beginners stood up. (b) Yes. Private-lesson beginners were more likely to stand up (85% compared with 65%). The raw counts (52 and 34) would suggest the opposite, because the groups are different sizes.

Example 2 — Read a segment from the scale
The percentage segmented bar chart shows how often students at a Warrnambool school use the library. What percentage of the Year \(11\) students use it monthly?
How often students use the school libraryYear 9: weekly 25%, monthly 45%, rarely 30%. Year 11: weekly 40%, monthly 35%, rarely 25%. Segments are not labelled. 0 10 20 30 40 50 60 70 80 90 100 Percentage (%) Year 9 Year 11 Year level Rarely Monthly Weekly
Solution

Monthly is the middle segment. Read the scale at its bottom and at its top, then subtract.

\(\text{bottom of Monthly (Year 11)}\)\(=\)\(40\%\)
\(\text{top of Monthly (Year 11)}\)\(=\)\(75\%\)
\(\text{Monthly}\)\(=\)\(75\% - 40\%\)
\(\)\(=\)\(35\%\)

35% of the Year \(11\) students use the library monthly. \(75\%\) is the reading at the top of the segment, not its size.

Example 3 — From table to chart
Workers in three regional cities were asked whether they rode a bike to work at least once last week.
City
SheppartonMilduraBendigo
Yes\(54\)\(42\)\(24\)
No\(36\)\(98\)\(56\)
Total\(90\)\(140\)\(80\)
(a) Find the column percentages. (b) Draw a percentage segmented bar chart. (c) Describe the association.
Solution

Divide every count by its column total; each column then adds to \(100\%\).

\(\text{Shepparton, yes}\)\(=\)\(\dfrac{54}{90}\times 100\%\)
\(\)\(=\)\(60\%\)
\(\text{Mildura, yes}\)\(=\)\(\dfrac{42}{140}\times 100\%\)
\(\)\(=\)\(30\%\)
\(\text{Bendigo, yes}\)\(=\)\(\dfrac{24}{80}\times 100\%\)
\(\)\(=\)\(30\%\)

The “No” percentages are \(40\%\), \(70\%\) and \(70\%\).

Rode a bike to work at least once last weekShepparton: yes 60%, no 40%. Mildura: yes 30%, no 70%. Bendigo: yes 30%, no 70%. 0 10 20 30 40 50 60 70 80 90 100 Percentage (%) 60% 40% Shepparton 30% 70% Mildura 30% 70% Bendigo City No Yes

(c) There is an association between city and riding to work: Shepparton workers were more likely to ride (60%) than workers in Mildura or Bendigo (30% in each).

Example 4 — No association
The chart shows driving test results at a Melbourne testing centre for morning and afternoon sessions. (a) Does the chart suggest an association between session and result? (b) \(250\) people sat an afternoon test. How many passed?
Driving test result by sessionMorning: passed 72%, failed 28%. Afternoon: passed 70%, failed 30%. 0 10 20 30 40 50 60 70 80 90 100 Percentage (%) 72% 28% Morning 70% 30% Afternoon Session Failed Passed
Solution

Compare the Passed segments, then use count = percentage × group total.

\(\text{Morning passed}\)\(=\)\(72\%\)
\(\text{Afternoon passed}\)\(=\)\(70\%\)
\(\text{afternoon passes}\)\(=\)\(70\% \times 250\)
\(\)\(=\)\(0.7 \times 250\)
\(\)\(=\)\(175\)

(a) No. The pass rates (72% and 70%) are almost the same, so the result does not depend on the session. (b) 175 people passed.

Common pitfalls

Percentage the right way. Divide by the totals of the explanatory variable’s categories (the column totals when it is across the top). Dividing by the other totals answers a different question.
Top reading is not segment size. On a segmented bar chart, a middle segment’s percentage is the top reading minus the bottom reading.
Every bar reaching 100% is not evidence. All bars are \(100\%\) by design. Compare the same segment across the bars, and quote both percentages when you describe an association.

Frequently asked questions

What does it mean for two categorical variables to be associated?

It means the percentage for a response category changes from one category of the explanatory variable to the next. If 65% of young people but only 20% of older people take the train, age group and way of travelling are associated.

Should I use row or column percentages?

Use percentages within the categories of the explanatory variable. When it labels the columns, divide by the column totals; when it labels the rows, divide by the row totals.

How do you read a percentage segmented bar chart?

Each bar is 100%. Find the reading at the top and bottom of a segment and subtract to get its percentage. Compare the same segment across the bars.

How do you tell if there is no association?

Find the percentages within each group of the explanatory variable. If the percentages for the same response are about the same in every group, there is no association.

How do you describe an association between two categorical variables?

Name the group that was more likely to give a response and quote both percentages, for example: private-lesson beginners were more likely to stand up than group-lesson beginners (85% compared with 65%).

Does an association mean one variable causes the other?

No. An association shows the variables are related in this data, but other factors could explain the pattern.