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

Bivariate data and two-way frequency tables

20 practice questions 0 video lessons Theory + worked examples

Learn to handle bivariate data and two-way frequency tables in Year 12 General Mathematics for Queensland (QCAA). When a council surveys residents on where they live and whether they back a new bikeway, every answer comes as a pair. Sorting those pairs into a neat table of counts is the first step to seeing what the survey really says.

You will practise telling categorical data from numerical data, filling in a table from a list or a short description, finding missing entries from totals, and working out row, column and grand-total percentages without mixing up the denominator. These tables lead straight into the next idea: using percentages to decide whether two categorical variables are associated.

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

Theory

Bivariate data records two variables for each individual. This Year 12 General Mathematics guide for Queensland students shows how to sort categorical data into a two-way frequency table, complete row and column totals, and calculate row, column and grand-total percentages.

Bivariate data comes from recording two variables for every individual in a group, such as each student's year level and how they get to school. Each variable can be categorical (the values are groups or labels, like “bus” or “car”) or numerical (the values are counts or measurements, like a height in centimetres).

When both variables are categorical, the data is summarised in a two-way frequency table. The categories of one variable label the rows, the categories of the other label the columns, and each cell holds the number of individuals who fall into both categories at once.

A row total adds across a row and a column total adds down a column. The row totals and the column totals both add to the grand total, the size of the whole group. Counts can then be turned into row percentages, column percentages or percentages of the grand total.

Key idea. A percentage in a two-way table always means “out of which group?” Choose the total that matches the group named in the question: its row total, its column total, or the grand total.
Two-way frequency table with totalsHoliday choice by home location for 200 Queenslanders. Coast: beach 42, bush 18, city 30, total 90. Inland: beach 38, bush 22, city 50, total 110. Column totals 80, 40, 80 and grand total 200.HomeBeachBushCityTotalCoast42183090Inland382250110Total804080200column totalsrow totalsgrand total = 200
A two-way frequency table: rows add to the row totals, columns add to the column totals, and both sets add to the grand total, \(200\).
Which total to divide byThree small two-way tables. In each the top-left cell is shaded orange. The row percentage divides it by the row total, the column percentage by the column total and the percentage of the total by the grand total, each shaded teal.Row %cell ÷ row totalColumn %cell ÷ column total% of totalcell ÷ grand totalthe cell you wantdivide by this totalLast row and last column = totals
The same cell gives three different percentages, depending on which total it is divided by.

Every percentage in a two-way table is a cell count divided by a total:

\[\text{row percentage} = \dfrac{\text{cell}}{\text{row total}}\times 100\%\]
row percentage=cellrow total×100%
\[\text{column percentage} = \dfrac{\text{cell}}{\text{column total}}\times 100\%\]
column percentage=cellcolumn total×100%
\[\text{percentage of total} = \dfrac{\text{cell}}{\text{grand total}}\times 100\%\]
percentage of total=cellgrand total×100%

The totals always balance, which gives a quick check on any completed table:

\[\text{sum of row totals} = \text{sum of column totals} = \text{grand total}\]
sum of row totals=sum of column totals=grand total
Check. In a row-percentaged table each row adds to \(100\%\); in a column-percentaged table each column adds to \(100\%\).

How to build and use a two-way frequency table

  1. Name the two categorical variables and list the categories of each.
  2. Draw the table: one variable's categories across the top, the other's down the side, plus a Total row and a Total column.
  3. Fill the cells by tallying, or from the information given. If you are given percentages, turn each into a count first: count \(=\) percentage \(\times\) the total of its group (for example, \(45\%\) of \(160\) is \(72\)). For a missing entry, use a row or column that has only one gap.
  4. Add each row and each column, then check that both sets of totals give the grand total.
  5. Convert to a percentage by dividing the cell by the total of the group named in the question, then multiplying by \(100\%\).
Example 1 — Is it bivariate?
A Gold Coast surf school records, for each student, their age group (child, teenager, adult) and whether they stood up on their first lesson (yes or no). (a) Is this bivariate data? (b) Is each variable categorical or numerical? (c) How many cells, not counting totals, does the two-way table need?
Solution

Count the variables recorded for each student, then look at the type of each value.

\(\text{2 variables per student}\)\(\Rightarrow\)\(\text{bivariate}\)
\(\text{age group: labels}\)\(\Rightarrow\)\(\text{categorical}\)
\(\text{stood up: yes/no}\)\(\Rightarrow\)\(\text{categorical}\)
\(\text{cells}\)\(=\)\(3 \times 2\)
\(\text{cells}\)\(=\)\(6\)

(a) Yes, it is bivariate. (b) Both variables are categorical. (c) The table needs 6 cells.

Example 2 — Fill in the gaps
A Mackay survey asked 180 residents whether they own a dog and whether they walk daily. Complete the table.
Walks dailyDoes notTotal
Owns a dog54?80
No dog?70?
Total??180
Solution

Start with a row or column that has only one gap.

\(\text{dog, does not}\)\(=\)\(80-54\)
\(\text{dog, does not}\)\(=\)\(26\)
\(\text{no dog total}\)\(=\)\(180-80\)
\(\text{no dog total}\)\(=\)\(100\)
\(\text{no dog, walks}\)\(=\)\(100-70\)
\(\text{no dog, walks}\)\(=\)\(30\)
\(\text{walks total}\)\(=\)\(54+30\)
\(\text{walks total}\)\(=\)\(84\)
\(\text{does not total}\)\(=\)\(26+70\)
\(\text{does not total}\)\(=\)\(96\)
\(\text{check: } 84+96\)\(=\)\(180\)
Walks dailyDoes notTotal
Owns a dog542680
No dog3070100
Total8496180
Example 3 — Build the table from words
At a Toowoomba flower festival, 320 visitors were surveyed. 180 were locals and the rest came from elsewhere. Altogether 200 visitors went to the garden displays, including 95 of the locals. Construct a two-way table and find how many visitors from elsewhere did not go to the garden displays.
Solution

Place the four given numbers, then fill each gap from a row or column total.

\(\text{from elsewhere}\)\(=\)\(320-180\)
\(\text{from elsewhere}\)\(=\)\(140\)
\(\text{elsewhere, garden}\)\(=\)\(200-95\)
\(\text{elsewhere, garden}\)\(=\)\(105\)
\(\text{local, no garden}\)\(=\)\(180-95\)
\(\text{local, no garden}\)\(=\)\(85\)
\(\text{elsewhere, no garden}\)\(=\)\(140-105\)
\(\text{elsewhere, no garden}\)\(=\)\(35\)
Garden displaysNo garden displaysTotal
Local9585180
From elsewhere10535140
Total200120320

35 visitors from elsewhere did not go to the garden displays.

Example 4 — Three different percentages
A Bundaberg survey recorded whether households own or rent their home and whether they have a rainwater tank.
TankNo tankTotal
Owner16872240
Renter3377110
Total201149350
Find, to \(1\) decimal place where needed, the percentage of (a) owners who have a tank, (b) tank households that rent, (c) all households that rent and have a tank.
Solution

The cell is chosen by the question; the total is the group the question is “out of”.

\(\text{(a) owners}\)\(=\)\(\dfrac{168}{240}\times 100\%\)
\(\)\(=\)\(0.7\times 100\%\)
\(\)\(=\)\(70\%\)
\(\text{(b) tank households}\)\(=\)\(\dfrac{33}{201}\times 100\%\)
\(\)\(\approx\)\(16.4\%\)
\(\text{(c) all households}\)\(=\)\(\dfrac{33}{350}\times 100\%\)
\(\)\(\approx\)\(9.4\%\)

(a) 70% is a row percentage. (b) 16.4% is a column percentage. (c) 9.4% is a percentage of the grand total.

Common pitfalls

Watch the denominator. “What percentage of renters have a tank?” and “What percentage of tank owners rent?” use the same cell but different totals. Read the group after “of” to find the total.
Check the totals balance. After completing a table, add the row totals and the column totals. If they do not both give the grand total, a cell is wrong.
Numerical is not the same as a number label. A postcode or a jersey number is a label, so it is categorical. A count or a measurement is numerical.

Frequently asked questions

What is bivariate data?

Bivariate data is data where two variables are recorded for each individual, for example each student's year level and their usual way of travelling to school. Having both values for the same individual lets you look for a relationship between the two variables.

What is a two-way frequency table?

It is a table that counts how many individuals fall into each combination of two categorical variables. One variable labels the rows, the other labels the columns, and the totals are shown in an extra row and column.

How do you calculate a row percentage?

Divide the cell count by the total of its own row and multiply by 100%. For example, if 42 of the 90 people in a row chose the beach, the row percentage is 42 divided by 90 times 100%, about 46.7%.

What is the difference between a row percentage and a column percentage?

A row percentage compares a cell with its row total, so each row adds to 100%. A column percentage compares the cell with its column total, so each column adds to 100%. The question tells you which group the percentage is out of.

How do you find a missing value in a two-way table?

Find a row or column with only one unknown entry. Subtract the known entries from that row or column total. Repeat until the table is full, then check that the row totals and column totals both add to the grand total.