Scatter graphs and correlation

Scatter graphs and correlation

IB MYP Maths Extended: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A scatter graph plots two variables, one point per pair; the controlling variable goes on the horizontal axis.
  • Correlation can be positive, negative or none, and strong or weak.
  • A line of best fit is one straight line through the middle of the points and through the mean point.
  • Interpolation is reliable; extrapolation is not.
  • Correlation does not prove causation.

Scatter graphs

Plot one point 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.

Temperature xx and drinks sold yy give points such as (18,40)(18,40) and (33,115)(33,115).

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

1618202224262830323420406080100120140temperature (°C)drinks sold(18, 40)(33, 115)line of best fit
Scatter graph of temperature against drinks sold (illustrative values), with a line of best fit
  • Horizontal axisthe variable that causes or controls the other
  • Vertical axisthe variable that responds

Temperature affects the number of drinks sold. Which variable goes on the horizontal axis?

Types of correlation

Positive, negative or none, and strong or weak depending on how close the points lie to a line.

Correlation describes the relationship between the two variables.

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".

12345678910246810xypositivenegativenone
Lines of best fit (illustrative): slopes up for positive, down for negative, flat when there is no correlation

Positive

As x increases:
y increases
Points slope:
Up to the right

Negative

As x increases:
y decreases
Points slope:
Down to the right

None

As x increases:
No pattern
Points slope:
Scattered

As the age of a car increases, its value falls. What type of correlation is this?

Line of best fit

Draw one straight line through the middle of the points and through the mean point.

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

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.

  1. 1

    Find the mean point

    mean of x, mean of y

  2. 2

    Draw one straight line

    with a ruler, not dot to dot

  3. 3

    Balance the points

    about the same number above and below

  4. 4

    Ignore outliers

    points far from the pattern

Drawing a line of best fit

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.

Which is a correct feature of a line of best fit?

Using the line to predict

Read up from xx to the line and across to yy, or use the line's equation; only trust predictions inside the data range.

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

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.

1015202530354020406080100120140160temperature (°C)drinks(20, 45)(26, 78)(30, 100)line of best fit
Line of best fit: reading y at x = 26

Worked example

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

A line of best fit is based on data from 10 °C to 35 °C. Which prediction is least reliable?

Correlation and cause

No: two variables can be related because something else affects both.

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.

  1. 1

    Hot weather

    the hidden third variable

  2. 2

    Ice cream sales rise

    effect 1

  3. 3

    Sunburn cases rise

    effect 2

  4. 4

    They correlate

    but neither causes the other

A hidden third variable can drive both variables, so they correlate without one causing the other

Correlation shows

  • The variables are related
  • The direction and strength of the link

It does not show

  • That one causes the other
  • What else may affect both

Ice cream sales and sunburn cases are positively correlated. Does ice cream cause sunburn?

Try an exam question

As the temperature rises, the number of drinks sold rises. (a) Name this type of correlation. (b) The line of best fit uses data from 1010 °C to 3030 °C. Explain why a prediction at 4545 °C may be 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