Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 12 General (Unit 3 & 4) Bivariate data analysis 1

Associations between two categorical variables

20 practice questions 0 video lessons Theory + worked examples

Discover how to spot an association between two categorical variables in Year 12 General Mathematics for Queensland (QCAA). Do older Queenslanders slip, slop and slap more often than teenagers? A table of raw counts cannot say, because the groups are different sizes. Percentages turn the counts into a fair comparison.

You will practise choosing between row and column percentages, comparing the same response across groups, measuring the gap in percentage points, and writing a short, precise sentence that quotes both percentages. You will also learn why counts mislead. Next, the focus moves to numerical data, where the explanatory and response variables set up a scatterplot.

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 Queensland students shows how to choose row or column percentages, compare groups, and describe an association clearly in context.

Two categorical variables are associated when knowing the category of one variable changes what you expect for the other. If older people are much more likely to wear sunscreen than younger people, then age group and sunscreen use are associated.

Raw counts can mislead, because the groups are usually different sizes. Instead, find percentages within each category of the explanatory variable: the variable that may explain or influence the other. If it labels the rows, use row percentages; if it labels the columns, use column percentages.

Then compare the percentages for the same response across the groups. Clearly different percentages suggest an association; percentages that are about the same suggest no association. The bigger the gap in percentage points, the stronger the association.

Key idea. Percentage within the groups of the explanatory variable, compare one response category across those groups, then report the comparison in context, quoting both percentages.
Segmented bar chart showing an associationSunscreen use by age group. Under 25: 38% always, 62% not always. 25 and over: 71% always, 29% not always.AlwaysNot alwaysUnder 2538%62%25 and over71%29%0%50%100%
The bars split very differently: 38% compared with 71% always wear sunscreen, which suggests an association between age group and sunscreen use.
Segmented bar chart showing no associationDrink preference by season of birth. Summer: 55% coffee, 45% tea. Winter: 55% coffee, 45% tea.CoffeeTeaBorn in summer55%45%Born in winter55%45%0%50%100%
The bars split the same way (55% coffee in each group), so there is no association between season of birth and drink choice.

When the explanatory variable labels the rows:

\[\text{row percentage} = \dfrac{\text{cell}}{\text{row total}}\times 100\%\]
row percentage=cellrow total×100%

When the explanatory variable labels the columns:

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

The size of the gap between two groups is measured in percentage points:

\[\text{difference} = \text{group A \%} - \text{group B \%}\]
difference=group A %-group B %
A model sentence. “Rural students were more likely to hold a licence than town students (70% compared with 36%), so there is an association between where a student lives and holding a licence.”

How to decide whether two categorical variables are associated

  1. Identify the explanatory variable (the one that may explain the other) and see whether it labels the rows or the columns.
  2. Percentage within each of its categories: row percentages for rows, column percentages for columns.
  3. Compare the percentages for one response category across the groups and find the gap in percentage points.
  4. Decide: a clear gap suggests an association; nearly equal percentages suggest none.
  5. Report in context with both percentages: “Group A were more likely to … than group B (a% compared with b%).”
Example 1 — Row or column percentages?
A survey of Queenslanders records their home region (North Queensland or South East Queensland, shown in the columns) and whether they watched the last State of Origin game (shown in the rows). The aim is to see whether region is associated with watching. Which percentages should be calculated?
Solution

Percentage within the groups of the explanatory variable.

\(\text{region may explain watching}\)\(\Rightarrow\)\(\text{explanatory: region}\)
\(\text{region labels the columns}\)\(\Rightarrow\)\(\text{divide by column totals}\)

Use column percentages, then compare the percentage who watched in each region.

Example 2 — Describe the association
Year 12 students in the Wide Bay region were asked whether they hold a driver's licence.
Has licenceNo licenceTotal
Rural8436120
Town5496150
Is there an association between where a student lives and holding a licence? Describe it.
Solution

Where a student lives may explain holding a licence, and it labels the rows, so use row percentages.

\(\text{rural, licence}\)\(=\)\(\dfrac{84}{120}\times 100\%\)
\(\)\(=\)\(70\%\)
\(\text{town, licence}\)\(=\)\(\dfrac{54}{150}\times 100\%\)
\(\)\(=\)\(36\%\)
\(\text{difference}\)\(=\)\(70\% - 36\%\)
\(\)\(=\)\(34\text{ points}\)

Yes. Rural students were more likely to hold a licence than town students (70% compared with 36%).

Example 3 — Three groups in the columns
Adults in Rockhampton were asked how they mainly watch television. Age group, the explanatory variable, labels the columns.
18–3435–5455 and overTotal
Mainly streaming726630168
Mainly free-to-air185490162
Total90120120330
Describe the association between age group and viewing.
Solution

Divide each streaming count by its own column total, then look for a pattern across the ages.

\(18\text{ to }34\)\(=\)\(\dfrac{72}{90}\times 100\%\)
\(\)\(=\)\(80\%\)
\(35\text{ to }54\)\(=\)\(\dfrac{66}{120}\times 100\%\)
\(\)\(=\)\(55\%\)
\(55\text{ and over}\)\(=\)\(\dfrac{30}{120}\times 100\%\)
\(\)\(=\)\(25\%\)

The streaming percentage falls as age rises (80%, 55%, 25%), so there is an association: younger adults were more likely to mainly stream.

Example 4 — Do not compare counts
A Sunshine Coast survey asked whether people volunteer for a beach clean-up.
VolunteersDoes notTotal
Surfers182240
Non-surfers99121220
Sam says non-surfers are far more likely to volunteer because \(99 > 18\). Is Sam right?
Solution

The groups are different sizes, so compare percentages, not counts.

\(\text{surfers}\)\(=\)\(\dfrac{18}{40}\times 100\%\)
\(\)\(=\)\(45\%\)
\(\text{non-surfers}\)\(=\)\(\dfrac{99}{220}\times 100\%\)
\(\)\(=\)\(45\%\)

No. The same 45% of each group volunteers, so there is no association between surfing and volunteering. Sam only saw that there are more non-surfers.

Common pitfalls

Percentage the right way. Use the totals of the explanatory variable's groups. Dividing by the wrong totals answers a different question and can hide the pattern.
Counts are not percentages. A bigger count often just means a bigger group. Only percentages within each group can be compared fairly.
Quote the evidence. “There is an association” is not enough: say which group was more likely to do what, and give both percentages.

Frequently asked questions

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

It means the percentages of one variable change from one category of the other variable to the next. For example, if 71% of older adults but only 38% of younger adults always wear sunscreen, age group and sunscreen use are associated.

Should I use row or column percentages?

Percentage within the categories of the explanatory variable. If the explanatory variable labels the rows, use row percentages. If it labels the columns, use column percentages.

How do you tell if there is no association in a two-way table?

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 from a two-way table?

Name the group that was more likely to give a response and quote both percentages, for example: rural students were more likely to hold a licence than town students (70% compared with 36%).

Does an association mean one variable causes the other?

No. An association shows the variables are related in this data, but other factors could be behind the pattern, so it does not prove cause and effect.