Skip to content
sciencelab
0
0
0 XP
Lvl 1
KJ
Lesson 13 ~35 min Unit 4 · Data Science 2 +85 XP

Univariate and Bivariate Analysis

"How tall is our class?" and "do taller students have bigger hand spans?" sound similar, but they need completely different kinds of analysis. The first looks at one variable, the second at two.

Today's hook: Imagine you survey your whole class. One question asks "how tall is everyone?" You could answer it with a single column of heights, then describe the centre and spread. A second question asks "do taller students tend to have bigger hand spans?" Now you need two measurements for each person and a way to see whether they move together. Same class, same survey, but two very different jobs for your data. The first is univariate analysis, the second is bivariate analysis, and knowing which one a question needs is the heart of today's lesson.
0/5QUESTS
Think First
warm-up

A class collects data: each student's height, and each student's hand span. Two questions come up: "What is the typical height in our class?" and "Do students with bigger hands tend to be taller?"

How many variables does each question use? Would you analyse the two questions in the same way, or differently? Why?

Write your prediction in your book before reading on.
1
Univariate Analysis, One Variable at a Time
+5 XP

Univariate analysis means analysing one variable on its own (the prefix "uni" means one). You are describing the distribution of a single set of values: what they look like when you line them all up. The tools that suit one variable include frequency tables, dot plots, histograms and bar charts. To summarise the variable you describe its centre using a mean, median or mode, and its spread using the range, exactly the descriptive statistics you practised in Lesson 12.

For example, "What is the typical shoe size in Year 9?" is a univariate question. You collect one number from each student, build a dot plot, and report that the most common size is 8 and the values range from 5 to 11. You are not comparing shoe size against anything else, you are simply describing one variable well.

Univariate: Dot Plot of Shoe Sizes (One Variable) 5 6 7 8 9 10 11 Shoe size Mode = 8
Example

"How many hours of sleep did each student get last night?" is univariate. You gather one number per student, draw a histogram, then report the centre (median 8 hours) and the spread (range from 5 to 10 hours). One variable, fully described.

Real-world anchor

When the Australian Bureau of Statistics reports the median age of the Australian population, that is univariate analysis. It takes one variable, age, across millions of people and describes its centre and spread, without yet linking it to anything else.

Watch out

Univariate does not mean "only one data point". You can have thousands of values, the "uni" refers to one variable (one thing being measured), not one measurement.

Which question calls for univariate analysis?
2
What You'll Master
objectives

Know

  • Univariate analysis describes one variable; bivariate analysis compares two variables.
  • Which display suits each type, dot plots and histograms for one variable, scatter plots for two.

Understand

  • How counting the variables in a question tells you which analysis it needs.
  • How a scatter plot shows the direction and rough strength of a relationship.

Can Do

  • Classify a question or analysis as univariate or bivariate.
  • Read a scatter plot and describe its trend in words.
Syllabus link (NESA Science 7–10, Data science 2): "Conduct univariate and bivariate analysis" of collected and secondary data (outcomes SC5-DA2-01, SC5-WS-06).
Cross-lesson links: The centre and spread tools from Lesson 12 are exactly what you use for univariate analysis here. A trend you spot in a scatter plot today is only the start, in Lesson 14 you will learn why a relationship between two variables does not prove that one causes the other.
3
Words You Need
vocabulary
Univariate analysisAnalysing one variable on its own to describe its distribution, centre and spread.
Bivariate analysisAnalysing two variables together to look for a relationship between them.
DistributionThe pattern of how the values of a variable are spread out across their range.
Scatter plotA graph where each point shows two values for one record, used to compare two numerical variables.
Two-way tableA table that counts how often combinations of two categories occur (also called a contingency table).
TrendThe overall direction a relationship takes: as one variable rises, the other rises, falls, or shows no pattern.
RelationshipA link between two variables where their values tend to change together.
4
Bivariate Analysis, Two Variables Together
+5 XP

Bivariate analysis means analysing two variables together to see whether there is a relationship between them (the prefix "bi" means two). Instead of describing one column of data, you now have two measurements for each record and you ask: as one changes, what happens to the other? The right tool depends on the kind of variables. For two numerical variables you use a scatter plot. For two category variables you use a two-way table (a contingency table). When one variable is time, a line graph shows how the other changes over that time.

For example, "Do taller students have bigger hand spans?" is bivariate. Each student gives two numbers, height and hand span, so each becomes one point on a scatter plot. If the points rise from lower left to upper right, taller students do tend to have bigger hand spans, and we say the two variables move together.

Bivariate: Two-Way Table (Two Category Variables) Prefers cricket Prefers soccer Year 8 Year 9 12 18 20 10 Each cell counts students with that combination of year group and sport preference
Example

"Does temperature affect ice cream sales?" is bivariate. For each day you record two numbers, the temperature and the number of ice creams sold. Plotted together, warmer days tend to sit higher up, showing the two variables rise together.

Watch out

A bivariate question needs two measurements from the same record. Measuring height in one class and hand span in a different class is not bivariate, because the pairs are not linked.

Spot the slip-up+5 XP

A student labels three analyses. One label is wrong, click it.

The student's labels:
  1. Drawing a histogram of every student's resting heart rate: univariate.
  2. Plotting study hours against test score on a scatter plot: univariate.
  3. Counting how often each eye colour appears in a frequency table: univariate.
5
How to Choose, Count the Variables
+5 XP

Deciding which analysis a question needs is simpler than it sounds: count the variables in the question. If the question is about one variable, "how tall is our class?", "what is the typical test score?", you do univariate analysis and describe its distribution. If the question links two variables, "do taller students have bigger hand spans?", "does temperature affect sales?", you do bivariate analysis and look for a relationship.

A useful clue: bivariate questions usually contain a joining word such as "affect", "relate to", "depend on", or "compared with". Univariate questions usually ask "what is", "how many" or "how typical" about a single thing. Once you know the count, the right tool follows: one variable points to a dot plot or histogram, two numerical variables point to a scatter plot, and two categories point to a two-way table.

Which Analysis? Count the Variables in the Question How many variables? ONE TWO UNIVARIATE Dot plot, histogram, bar chart Describe centre and spread BIVARIATE Scatter plot or two-way table Look for a trend or relationship
Example

"What is the average rainfall in Sydney each month?" names one variable, rainfall, so it is univariate. "Does rainfall affect how many people visit the beach?" names two variables, rainfall and beach visits, so it is bivariate.

Watch out

Do not be fooled by extra words. "What is the typical height of Year 9 boys?" still names just one variable, height. The phrase "Year 9 boys" only describes who you measured, it is not a second variable being compared.

True or false?
"Does the number of hours studied affect exam marks?" is a bivariate question.
6
Reading a Scatter Plot
+5 XP

A scatter plot is the main tool for bivariate analysis of two numerical variables. Each point is one record with two values, one read off the horizontal axis and one off the vertical axis. To read a scatter plot, describe two things. First the direction of the trend: a positive relationship means the points rise from left to right (as one variable goes up, so does the other); a negative relationship means they fall from left to right (as one goes up, the other goes down); and if the points are scattered with no slope, there is no relationship. Second, describe roughly how strong the trend is: points hugging a clear line show a strong relationship, while a loose cloud that only leans a little shows a weak one.

Look at the scatter plot below of height against arm span for ten students. Each dot is one student. The points rise from the lower left to the upper right, so the trend is positive: taller students tend to have a longer arm span. Because the points sit close to an upward line, the relationship looks fairly strong. Important: a clear trend like this still does not prove that being tall causes a long arm span, that careful distinction between a relationship and a cause is exactly what you will tackle in Lesson 14.

Bivariate: Height vs Arm Span (Positive Trend) 140 150 160 170 180 Height (cm) 140 155 170 185 Arm span (cm) Points rise: positive trend
Example

On a scatter plot of "hours of screen time before bed" against "hours of sleep", the points fall from left to right, more screen time pairs with less sleep. That is a negative trend, described straight from the slope of the points.

Real-world anchor

Researchers at the CSIRO use scatter plots to explore relationships in environmental data, for example plotting ocean temperature against coral bleaching, or rainfall against crop yield. The scatter plot is often the first step that reveals whether two measurements move together at all.

Watch out

A positive trend in a scatter plot only tells you the two variables move together. It does not tell you that one causes the other, you will untangle correlation from cause in Lesson 14.

On a scatter plot the points fall from upper left to lower right. What is the trend?
7
Putting It Together, Two Worked Examples
+5 XP

Univariate worked example. A class records shoe sizes: 5, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 11. That is one variable, so this is univariate. Build a frequency table, draw the dot plot (shown earlier), then summarise: the mode is 8 (it appears six times), the values range from 5 to 11, and the distribution is fairly symmetric around 8. The whole job is describing one variable clearly.

Bivariate worked example. The same class now records, for ten students, both height and arm span: (142, 141), (150, 149), (155, 153), (158, 158), (162, 164), (166, 169), (170, 173), (174, 178), (178, 182), (182, 187) in centimetres. That is two measurements per student, so this is bivariate. Plot each pair as one point (the scatter plot above), then describe the trend: the points rise from lower left to upper right, so taller students tend to have a longer arm span, a positive and fairly strong relationship. Notice how the same class data answered a one-variable question one way and a two-variable question a completely different way.

Example

If your question were "do students who study more get higher marks?", you would treat each student's (study hours, mark) as one point, plot all of them, and read the slope. Two variables, one scatter plot, one trend to describe, classic bivariate analysis.

Watch out

When you switch from univariate to bivariate, do not just stack two dot plots side by side. Bivariate analysis needs the two values paired per record on the same graph, that pairing is what reveals the relationship.

Predict then reveal+8 XP
1 · Predict
2 · Reveal
3 · Compare

A scientist plots daily maximum temperature against the number of cold drinks sold at a kiosk for 30 days. The points rise from lower left to upper right. Describe the trend in one sentence, and state whether this is univariate or bivariate.

50%
Speed round +6 XP

True or false? Tap as fast as you can. Build a streak.

Q · 1 / 6 Streak · 0 Score · 0

Univariate analysis looks at one variable on its own.

How are you completing this lesson?

Revisit Your Thinking
reflect

Think back to the two class questions from the start: "how tall is our class?" and "do taller students have bigger hand spans?"

Which one is univariate and which is bivariate, and what display would you use for each?

Write your updated thinking in your book.
1
Which question calls for univariate analysis?
+10 XP
2
Which display is best for bivariate analysis of two numerical variables?
+10 XP
3
A student plots each classmate's study hours against their test score. This is:
+10 XP
4
On a scatter plot of screen time against hours of sleep, the points fall from upper left to lower right. What does this show?
+10 XP
5
You want to compare year group (Year 8 or 9) with favourite sport (cricket or soccer). Which tool fits?
+10 XP
Check Your Understanding
short answer

1. In your own words, explain the difference between univariate and bivariate analysis, and give one example question for each.

Write your answer in your book.

2. Name the display you would choose for (a) one numerical variable and (b) two numerical variables, and say why each fits.

Write your answer in your book.

3. A scatter plot of height against arm span shows points rising from lower left to upper right. Describe the trend, and explain why this does not yet prove that height causes a longer arm span.

Write your answer in your book.
Show Your Working
13 marks total
4 MARKS

SA1. For each question below, state whether it needs univariate or bivariate analysis and justify your choice: (i) "What is the most common eye colour in Year 9?" (ii) "Does the amount of fertiliser affect plant height?"

Write your answer in your book.
4 MARKS

SA2. A class records the temperature and the number of cold drinks sold each day for two weeks. Describe how you would carry out a bivariate analysis of this data, naming the display you would use and what you would look for.

Hint: Think about pairing the two values per day, and what the slope of the points tells you.

Write your answer in your book.
5 MARKS

SA3. A scientist plots ten students' hours of sleep against their reaction time. The points fall from upper left to lower right. Describe the direction and rough strength of this trend, explain what it suggests about the two variables, and state one reason it does not prove sleep causes faster reactions.

Write your answer in your book.
Comprehensive Answers

Quick Check

1. A. "What is the typical height of students in our class?" names one variable (height), so it is univariate.

2. C. A scatter plot plots two numerical variables together, the standard tool for bivariate analysis.

3. B. Study hours and test score are two variables compared together, so plotting them is bivariate analysis.

4. D. Points falling from upper left to lower right show a negative trend: more screen time pairs with less sleep.

5. A. Two category variables are best compared with a two-way (contingency) table that counts each combination.

Show Your Working Model Answers

SA1 (4 marks): (i) Univariate [1], because the question names only one variable, eye colour, and you simply describe how often each colour occurs [1]. (ii) Bivariate [1], because it links two variables, amount of fertiliser and plant height, and you look for a relationship between them [1].

SA2 (4 marks): Pair the two values for each day (temperature, drinks sold) [1] and plot each day as one point on a scatter plot [1]. Look at the direction of the points [1]: if they rise from lower left to upper right the trend is positive, suggesting warmer days pair with more sales [1].

SA3 (5 marks): The trend is negative [1] because the points fall from upper left to lower right, and it looks fairly strong if the points sit close to a downward line [1]. It suggests that students with more sleep tend to have faster (lower) reaction times [1]. However, a relationship is not proof of cause [1]: another factor, such as overall health or time of day, could affect both, which is why correlation does not equal causation, the focus of Lesson 14 [1].

R
Quick Review

Univariate

One variable, describe its distribution

Bivariate

Two variables, look for a relationship

Scatter plot

Each point is two values for one record

Two-way table

Counts combinations of two categories

Trend

Positive, negative or no relationship

Choose

Count the variables in the question

Test Your Knowledge
+25 XP

Put what you have learned to the test! Jump through the questions in game form.

Play Game

Your Badges

0 of 6
First Steps
3-Day Streak
3 in a Row
Lesson Ace
Stretch Seeker
Daily Warrior

Mark lesson as complete

Tick when you've finished Learn, Practice and the game. Earns +85 XP and +25 coins.

Want help with Lesson 13, Univariate and Bivariate Analysis?

Work through this topic 1-on-1 with an experienced HSC tutor.

Book a free session →