Year 9StatisticsVisualisation of dataYear 9 Maths

Choosing a graph, and the line of best fit

What this lesson covers

  • A distribution is formed from all the possible values of a variable and their frequencies. It can be shown using data visualisations that show patterns, trends, and variations and that include dot plots, bar graphs, frequency tables, box plots, histograms, time-series graphs, scatter plots, and two-way tables.
  • A good data visualisation should allow viewers to discern the variable(s) and who the data was collected from, and then, depending on the type of visualisation, additional information such as frequency, proportions, patterns or trends, and units for numerical variables.
  • In relationship investigations: sometimes one variable is thought of as predictive of the other variable; then the response or dependent variable is on the y-axis, and the ‘predictive’, explanatory, or independent variable is on the x-axis an eyeballed line or curve of best fit can be added for paired numerical data.
Key idea

A graph is not decoration

  • It is the picture of a distribution.
  • So which graph you draw is decided by the data.
  • Not by which one you find easiest to draw.
Key idea

What a distribution actually is

  • All the values your variable took.
  • Together with how often each one happened.
  • That pairing is the distribution. A graph shows it.
PartDetailNote
All the valuesthat the variable took
With their frequencieshow often each one happened
Togetherthat is the distribution
A graphis a picture of itnot a decoration
Key idea

The kind of variable picks the graph

  • One categorical variable: a bar graph.
  • One numerical: a dot plot, a histogram, or a box plot.
  • Two numerical and paired: a scatter plot.
What you haveWhat to drawExample
One categoricalbar graphsport, year level
One numericaldot plot, histogram, box plotheight, score
Two numerical, pairedscatter plothours against score
Numerical over timetime-series graphrainfall by month
Two categoricaltwo-way tablesport by year level
Key idea

Why the wrong graph loses information

  • Draw heights as a bar graph and each height becomes a category.
  • You have thrown away the order, and the spacing.
  • 150 is nearer 152 than 180, and a bar graph cannot say so.
ChoiceWhat happensNote
Bar graph of heightstreats each height as a category
What is lostthe order and the gaps
Numbers have spacing150 is closer to 152 than to 180
A dot plot keeps itso use that
Key idea

What a reader must be able to work out

  • What was measured, and who it was measured on.
  • The units, for anything numerical.
  • A graph that needs you there to explain it has failed.
Must showMeaningWhere
The variablewhat was measuredaxis label
The groupwho it was measured ontitle
The unitsfor anything numericalcm, minutes, dollars
The frequenciesor the patterndepends on the graph
Key idea

And usually you draw more than one

  • A dot plot shows every individual value.
  • A box plot shows the quartiles from last lesson.
  • Different graphs of the same data answer different questions.
Worked example

Choosing a scale

  • Data from 60 to 82 on an axis running to 1000 is a stripe.
  • Run the axis from 60 to 85 and you can read it.
  • Cover your data, with a little room. That is the whole rule.
DataAxisResult
Data runs 60 to 82an axis of 0 to 1000everything in a stripe
Same dataan axis of 60 to 85, steps of 5readable
Rule of thumbcover the data, with a little room
Key idea

Now the scale trick worth knowing about

  • Two values: 100 and 105. A rise of five percent.
  • Start the axis at zero and the bars look nearly identical.
  • Start it at 95 and the second bar is twice the height.
VersionWhat it looks likeVerdict
Two values: 100 and 105a rise of 5%
Axis from 0the bars look almost the samehonest
Axis from 95the second bar is twice the firstmisleading
Nothing was fakedthe numbers are identical
Key idea

And nothing was faked

  • Both graphs plot exactly the same two numbers.
  • The data is honest and the picture is not.
  • Which is why you check the axis before believing a graph.
Worked example

Two paired variables: a scatter plot

  • Hours studied and test score, for eight students.
  • Each student is one dot: their hours across, their score up.
  • And the cloud clearly slopes upward.
Two paired variables: a scatter plot
Key idea

Which variable goes on which axis

  • The explanatory variable goes across the bottom.
  • The response variable goes up the side.
  • Ask: which of the two could plausibly affect the other?
AxisVariableHere
x-axisthe explanatory variablehours studied
y-axisthe response variabletest score
The testwhich could affect the other?
Study affects scorenot the other way round
Key idea

That test works because the arrow only points one way

  • Studying longer could change your score.
  • Your score cannot reach back and change how long you studied.
  • So hours is explanatory, and it goes on x.
HoursScoreHoursScore
1 hour605 hours72
2 hours646 hours76
3 hours667 hours78
4 hours708 hours82
Key idea

The line of best fit is drawn by eye

  • That is not a shortcut. It is the method at this level.
  • Through the middle, with about as many points above as below.
  • It will miss most of the points, and that is correct.
Rule
Through the middle of the cloud
Roughly as many above as below
It will miss most of the pointsthat is correct
Do not join the dotsthat is a different, wrong thing
Worked example

And then you use it to predict

  • What score might five and a half hours give?
  • Up from 5.5 to the line, then across. About 74.
  • Check it is sensible: between the 72 and the 76. It is.
StepWorkingNote
Questionwhat score for 5.5 hours?
Go up from 5.5to the line, then across
Read offabout 74
Sensible?between 72 and 76yes
Summary

What to take away

  • Six things, and the fourth one you will see in the news.
A distributionis the values and how often each occurred
The graphis chosen by the kind of variable, not by taste
Every graph needsthe variable, the group, and the units
A y-axis not starting at zeroexaggerates the difference
The explanatory variablegoes on x, the response on y
A line of best fitis drawn by eye and misses most points
Your turn

Your turn

  • Pause here and try all four.
  • Answers are in the description.
Question
1Favourite sport per student. Which graph?
2Sleep and reaction time. Graph? Which axis?
3Bars of 100 and 105, axis from 95. Wrong?
4Should a line of best fit pass through every point?
Show answer

1. A bar graph. Favourite sport is one categorical variable. 2. A scatter plot, because they are two paired numerical variables. Hours slept goes on x, since sleep could affect reaction time, and reaction time goes on y. 3. The difference is only 5 percent, but starting at 95 makes the second bar look twice as tall. The numbers are honest and the picture is not. 4. No. It should pass through the middle of them, with roughly as many above as below, and it will miss nearly all of them. Joining the dots is a different thing and it is not a line of best fit.

Worked example

The answers

  • Favourite sport is one categorical variable.
  • Sleep could affect reaction time, not the reverse.
  • A line of best fit misses most points.
Answer
1A bar graph
2Scatter, sleep on x
3The axis exaggerates
4No

Is your child on track?

Take the free placement test