Correlation and regression

Maths: Analysis and Approaches · Statistics and probability. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Maths: Analysis and Approaches topics

The idea

Bivariate data have two values for each item, plotted as points on a scatter diagram. Pearson's r measures how close the points are to a straight line. It runs from −1 to 1: the sign gives the direction and the size gives the strength. A strong correlation does not prove that one variable causes the other.

A regression line is the line of best fit found by calculation. It always passes through the mean point (x̄, ȳ). The line of y on x is used to estimate y from a given x. The line of x on y is used to estimate x from a given y.

An estimate inside the range of the data is called interpolation. Outside the range it is extrapolation and is unreliable.

In simpler words

Some data come in pairs, like height and weight. We plot them on a scatter graph. Pearson's r shows how close the points are to a straight line. It goes from −1 to 1. A strong link does not mean one thing causes the other. A regression line is the best straight line. Estimates inside the data range are reliable. Outside it, they are not.

An everyday comparison

Correlation without cause is like noticing that ice cream sales and sunburn rise together. Ice cream does not cause sunburn; hot weather drives both. Pearson's r would show a strong link anyway. The comparison is limited, because r only measures how close points are to a straight line, not any curved pattern.

Rules to remember

Common mistake

Students rearrange the line of y on x to estimate x from a given y. When a separate line of x on y is given, use that line and substitute the y-value straight into it.

In the exam

Give r from your calculator and describe it in words: strong or weak, positive or negative, linear. Write the regression equation with values to three significant figures. To estimate y from x, use y on x; to estimate x from y, use x on y. State whether the estimate is reliable: interpolation is, extrapolation is not. Interpret the gradient in context, with units. Never claim causation.

Worked example

The regression line of y on x for some data is y = −1.5x + 80, and the mean of the x-values is 20. Find the mean of the y-values.

  1. The regression line passes through the mean point (x̄, ȳ).
  2. Substitute x = 20: ȳ = −1.5 × 20 + 80.
  3. ȳ = −30 + 80 = 50.

Answer: The mean of the y-values is 50.

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Read the full notes

Keep going

← Presenting and summarising dataProbability and combined events →Take a Maths: Analysis and Approaches test