Scatter graphs and correlation

Scatter graphs and correlation

IB MYP Maths Standard: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A scatter graph plots one point for each pair of values.
  • Positive correlation slopes up; negative slopes down; none is scattered.
  • A line of best fit follows the trend and passes through the mean point.
  • Interpolation is reliable; extrapolation is not.
  • Correlation does not prove causation.

Scatter graphs

Plot one cross for each pair of values, with the variable that controls the other on the horizontal axis.

A scatter graph shows two variables for the same people or objects, with one point for each pair of values. Put the variable you think causes or controls the other (the independent variable) on the horizontal axis, and the other on the vertical axis.

Choose scales that fit all the data, label both axes with units, and plot each point as a small cross.

1234567820406080100Hours revisedTest score (%)Trend
A scatter graph (illustrative values): one cross per pair, with the controlling variable on the horizontal axis.
  • Horizontal axisthe variable that controls or causes the other
  • Vertical axisthe variable that responds

Temperature xx and drinks sold yy give points such as (18,40)(18,40) and (33,115)(33,115). Which variable goes on the horizontal axis?

Types of correlation

Correlation describes the relationship: positive if both increase together, negative if one falls as the other rises.

Correlation describes the relationship between the two variables.

  • Positive correlation: as xx increases, yy increases (points slope up to the right).
  • Negative correlation: as xx increases, yy decreases (points slope down to the right).
  • No correlation: no pattern, the points are scattered.

The correlation is strong when the points lie close to a straight line, and weak when they are more spread out. Always describe it in context, for example 'the hotter the day, the more drinks are sold'.

12345678910246810xyPositive correlationNegative correlation
Positive trend (solid) and negative trend (dashed)

As the temperature rises, fewer hot drinks are sold. What type of correlation is this?

Line of best fit

Draw one straight line through the middle of the points, passing through the mean point, with about equal numbers either side.

A line of best fit is a straight line that follows the trend of the points. Draw it with a ruler so that:

  • it passes through the middle of the points, with about the same number above and below the line
  • it is a single straight line, not joined dot to dot
  • it goes through the mean point (mean of xx, mean of yy) if you have worked it out.

The line does not have to go through the origin, and an outlier (a point far from the pattern) can be ignored when drawing the line.

102030405060708010203040xy(20, 8)(30, 14)(40, 19)(50, 25)(60, 30)(70, 36)Mean point (45, 22)Line of best fit
Speed (km/h) against braking distance (m)

Worked example

Speeds are 20,30,…,7020,30,\dots,70 and braking distances are 8,14,19,25,30,368,14,19,25,30,36. Find the mean point.

A point lies far from the pattern of the others. What is it called?

Predicting from the line

Predictions inside the range of the data are usually reliable, but predictions outside it are not.

To predict yy for a given xx, go up from xx to the line, then across to the yy-axis and read the value. You can also use the equation of the line, y=mx+cy=mx+c.

A prediction inside the range of the data (interpolation) is usually reliable. A prediction outside the range (extrapolation) is unreliable because the trend may not continue.

1015202530354020406080100120140xy(20, 45)(26, 78)(30, 100)Line of best fit
Reading a prediction from the line

Worked example

The line passes through (20,45)(20,45) and (30,100)(30,100). Predict the number of drinks sold at 26 °C.

You use the line to predict well outside the range of the data. How reliable is it?

Correlation and cause

Correlation shows that two variables are related, but it does not prove that one causes the other.

Correlation shows that two variables are related, but it does not prove that one causes the other. Ice cream sales and sunburn cases are positively correlated because both rise in hot weather, not because ice cream causes sunburn. A small sample and an outlier can also make a relationship look stronger or weaker than it is. When you evaluate a claim, mention causation, the range of the data and the sample size.

102030405060708090100102030405060Ice creams soldSunburn casesTrend
Illustrative values: ice cream sales and sunburn cases rise together because hot weather affects both, so the correlation does not show cause.

Correlation shows

  • The variables are related
  • Ice cream sales and sunburn rise together

It does not show

  • That one causes the other
  • Hot weather may cause both

Ice cream sales and sunburn cases are positively correlated. What is the best explanation?

Try an exam question

A scatter graph of daily temperature against drinks sold has positive correlation. The data cover 18∘18^\circC to 33∘33^\circC. Describe the correlation and explain why using the line of best fit at 45∘45^\circC is unreliable.

[3 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which statement describes the correlation between temperature and drinks sold?

1 mark, marked against the mark scheme

Revision notes