Year 7StatisticsVisualisation of dataYear 7 Maths

Choosing the right graph, and outliers

What this lesson covers

  • Categorical data can be visualised through dot plots and bar graphs.
  • Paired categorical variables can be visualised through a stacked bar graph or a clustered bar graph.
  • Bivariate time-series data can be visualised through a time-series graph.
  • A good data visualisation should allow viewers to discern the variable or variables and who the data was collected from.
  • Outliers are individual data points that are very much bigger or smaller than most of the data points.
  • Outliers skew the mean value for a data set towards themselves, but not the median value.
  • Outliers are not necessarily an error, as there are some events that occur rarely in many situations.
Key idea

Which graph should you draw?

  • It feels like a matter of taste. It is not.
  • The kind of data you have decides it.
  • Choose wrongly and the graph cannot answer the question.
Which graph should you draw?
Key idea

Categories get a bar graph

  • Walk, bus, car, bike: these are groups, not numbers.
  • One bar per group, height is how many.
  • The bars have gaps, because the groups are separate.
Categories get a bar graph
Key idea

Measurements get a dot plot

  • When each value is a number on a scale.
  • One dot each, stacked over its value.
  • Now you can see the shape of the data.
Measurements get a dot plot
Key idea

Two categories at once

  • Now split each group by year level.
  • Two variables about the same students.
  • There are two ways to draw that.
GraphLooks likeGood for
Clusteredbars side by sidecompare the parts
Stackedbars on top of each otherread the total
Key idea

Clustered: side by side

  • Two bars in each group, one per year level.
  • Easy to compare the two directly.
  • Year 8 takes the bus more than Year 7.
Clustered: side by side
Key idea

Stacked: one on top of the other

  • Exactly the same numbers.
  • Now each bar is the total for that group.
  • 21 people walk, and you can read that instantly.
Stacked: one on top of the other
Key idea

So which of those two?

  • This is the one genuine choice in the topic.
  • Comparing the two year levels? Clustered.
  • Comparing the totals? Stacked.
GraphLooks likeGood for
Clusteredbars side by sidecompare the parts
Stackedbars on top of each otherread the total
Key idea

Measured over time

  • One thing measured again and again.
  • Time along the bottom, the measurement up the side.
  • Join the points, because they follow on.
Measured over time
Key idea

This one does not start at zero

  • The temperatures run from 17 to 23.
  • Drawn from zero it would be a flat line at the top.
  • And the day-to-day change would vanish.
This one does not start at zero
Key idea

The whole decision, in one table

  • Look at what kind of data you have.
  • The graph follows from that.
  • There is only one real choice in the list.
DataGraphExample
Categories, one variablebar graphfavourite sport
Measurements, one variabledot plotshoe sizes
Two categories pairedclustered or stacked bartransport by year
Measured over timetime-series graphdaily temperature
Key idea

What every graph must carry

  • A reader who did not collect the data needs telling.
  • What it is about, what each axis is, what the units are.
  • And who it was collected from.
NeedsSo a reader knows
A titlewhat the graph is about
Axis labelswhat each axis measures
Unitsmm, °C, students
A scalestarting where it says it starts
Who from61 students at one school, one week
Key idea

Missing parts hide things

  • A graph with no units could be millimetres or metres.
  • A scale not starting at zero can exaggerate a difference.
  • Sometimes careless. Sometimes deliberate.
NeedsSo a reader knows
A titlewhat the graph is about
Axis labelswhat each axis measures
Unitsmm, °C, students
A scalestarting where it says it starts
Who from61 students at one school, one week
Key idea

One dot a long way from the rest

  • Six days between 0 and 3 mm of rain.
  • Then one day with 46.
  • That is an outlier.
One dot a long way from the rest
Key idea

It pulls the mean towards itself

  • The mean for the week is 7.6 mm.
  • Six of the seven days had less than 3.
  • The median is 1 mm, which describes the week better.
It pulls the mean towards itself
Key idea

But it is not a mistake

  • 46 mm is a real storm. It really rained.
  • Deleting it would hide the most important day.
  • An outlier is a thing to explain, not to remove.
What you doResult
Delete itthe week looks drydishonest
Keep it, report bothmean 7.6, median 1honest
Say what happenedone storm on Fridaybest
Worked example

How to report it honestly

  • Give both summaries: mean 7.6, median 1.
  • Then say what happened: a storm on the Friday.
  • That is a finding, not an inconvenience.
FactValueNote
Six ordinary days0 to 3 mm
Friday46 mma real storm
Mean for the week53 ÷ 77.6 mm
Medianthe middle day1 mm
Key idea

When it IS worth checking

  • A height of 1700 cm is not a tall person.
  • That one is a decimal point in the wrong place.
  • Ask whether the value is possible, not whether it is tidy.
ValuePossible?So
46 mm of rainyes, a stormkeep it
1700 cm tallnocheck the record
A test score of 105 out of 100nocheck the record
Your turn

Your turn: four questions

  • Pause here and try all four.
  • For 1 and 2, name the data type first.
  • The graph follows from that.
Question
1You record favourite sport for 30 students. Which graph?
2You record the noon temperature every day for a fortnight. Which graph?
3Name the outlier in 4, 5, 5, 6, 7, 38. Does it raise or lower the mean?
4A graph has no axis labels. What can a reader not tell?
Show answer

1. A bar graph. Favourite sport is categorical. 2. A time-series graph, because it is one measurement repeated over time. 3. 38. It is far above the rest, so it drags the mean up: the other five run 4 to 7, but the mean of all six is 10.8. 4. What is being measured, and in what units. The shape of the graph tells you nothing without them.

Worked example

The answers

  • Favourite sport is categorical, so a bar graph.
  • Temperature over a fortnight is a time series.
  • 38 is the outlier and it raises the mean to 10.8.
Answer
1bar graph
2time-series graph
338; it raises the mean
4what is measured, and in what units
Summary

What to take away

  • The data type chooses the graph, not you.
  • Stacked for totals, clustered to compare the parts.
  • An outlier is usually real. Explain it, do not delete it.
Remember
The data typechooses the graph; you do not
Categoriesbar graph. Measurements: dot plot
Over timetime-series graph
Stacked or clusteredtotal at a glance, or compare the parts
An outlieris usually real: explain it, do not delete it

Is your child on track?

Take the free placement test