Scatter Graphs and Correlation

Mathematics (Core) revision notes · Cambridge (CIE) · 0580 · Core

1. Scatter diagrams

Plotting two quantities together

  • A scatter diagram plots pairs of measurements taken from the same thing, one quantity on each axis
  • Each item of data gives one point, so twelve people measured for two things gives twelve points
  • The syllabus asks for points to be clearly marked, for example as small crosses, and they are never joined up
  • Questions frequently give a diagram with most points already plotted and ask you to add the last few
  • Read the scale on both axes before plotting, since the two axes rarely use the same one

2. Correlation

The three types

  • Correlation describes whether the two quantities tend to change together, and in which direction
  • Positive correlation: both quantities rise together, and the points climb as you read left to right
    • Temperature and the number of cold drinks sold
A scatter diagram showing positive correlation: the crosses climb from the bottom left towards the top right, loosely following a rising trend
Source: Correlation by Save My Exams
  • Negative correlation: one rises while the other falls, and the points descend as you read left to right
    • The age of a car and its value
A scatter diagram showing negative correlation: the crosses fall from the top left towards the bottom right, so one quantity decreases as the other increases
Source: Correlation by Save My Exams
  • Zero correlation: no relationship, and the points form a shapeless cloud
A scatter diagram showing no correlation: the crosses are scattered across the whole grid with no upward or downward trend to them
Source: Correlation by Save My Exams
  • Correlation can also be described as strong or weak, according to how closely the points cluster around a straight line

Describing it in context

  • The standard question asks what type of correlation the diagram shows, for one mark, and the answer is one of those three phrases
  • A follow-up may ask you to describe the relationship, which needs the two quantities named rather than just the word
    • "As the temperature increases, the number of people on the beach increases"
  • Correlation does not prove that one quantity causes the other: both may be driven by something else entirely, and the syllabus asks you to appreciate such restrictions on drawing conclusions

Worked example

Naming and describing correlation

A scatter diagram plots the age of a car in years against its value in pounds. The points fall from the top left towards the bottom right. Name the correlation and describe what it means.

A scatter diagram with age in years from 0 to 10 along the bottom and value in pounds from 0 to 20 000 up the side. Ten crosses fall from the top left, near 17 500 pounds at 1 year, to the bottom right, near 4500 pounds at 9 years. No line is drawn.

Solution:

  • The points descend as you read from left to right, so as one quantity rises the other falls
  • The type is negative correlation
  • Naming it is one mark; describing it is a separate demand and needs both quantities named
  • In context: as the age of a car increases, its value decreases
  • "The points go down" is not a description, because it names neither quantity
  • Note that this shows a relationship only: correlation on its own never establishes that age causes the fall in value

3. Line of best fit

Drawing one

  • Once a diagram has been seen to slope one way or the other, its trend can be summarised by a line of best fit
  • The syllabus is precise about what it must look like
    • A single ruled straight line, drawn by inspection with a ruler
    • It must extend across the full data set, not just the middle
    • It need not pass through any of the points, but the points should be roughly evenly distributed on either side along its whole length
  • Where one point clearly sits away from the pattern, an outlier, ignore it when placing the line
  • Never draw a curve, and never join the points
A scatter diagram of time in seconds against price in pounds with a single straight line of best fit ruled through the middle of the crosses, and a dashed line drawn up from about £620 to the line and across to read off roughly 3.35 seconds

Using one

  • The line lets you estimate one quantity from the other: go from the known value straight to the line, then turn and read the other axis (up then across from the horizontal axis, across then down from the vertical axis)
  • Estimating within the range of the data is interpolation, and it is reasonably reliable
  • Estimating beyond the data is extrapolation, and it is unreliable because the trend may not continue
  • If a question asks whether an estimate is reliable, check whether the value lies inside the plotted range: outside it, the estimate is unreliable

Exam tip

Read the estimate from your own line

Drawing the line of best fit and using it earn separate marks. The line must be ruled, and the estimate is checked against your line if it is straight and slopes the same way as the crosses, so a line slightly out of place still keeps the estimate mark. Rule one line across all the data, then go from the given value to your line and turn to the other axis: never read the estimate from the nearest cross.

Worked example

Reading an estimate from a line of best fit

A scatter diagram plots revision time in hours against test score for students who revised for between 1 and 10 hours, and a line of best fit has been ruled on it. Use the line to estimate the score for a student who revises for 5 hours, and interpret the gradient of the line.

A scatter diagram with revision time in hours from 0 to 10 along the bottom and test score from 0 to 100 up the side. Ten crosses rise from (1, 30) to (10, 85), and a ruled line of best fit runs through the middle of them from (1, 32) to (10, 86), passing through (2, 38) and (8, 74).

Solution:

  • Go straight up from 5 on the hours axis to the line, then straight across to the score axis
  • Each small square on the score axis stands for 2, and the line at 5 hours is 3 small squares above 50
  • Estimated score = 50 + 3 × 2 = 56
  • Five hours lies inside the plotted range, so this is interpolation and reasonably reliable
  • For the gradient, find two places where the line crosses grid lines exactly: at 2 hours it is at 38, and at 8 hours it is at 74
  • Across those 6 hours the line rises 74 − 38 = 36, so the gradient is 36 ÷ 6 = 6
  • The gradient means that each extra hour of revision is associated with about 6 more marks