Correlation and regression

Maths: Applications and Interpretation · 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: Applications and Interpretation topics

The idea

A scatter diagram shows pairs of values (x, y) as points. If the points lie close to a straight line the two variables have a linear correlation: positive when y rises as x rises, negative when y falls as x rises.

Pearson's r measures how strong the linear relationship is. The regression line of y on x is the line of best fit found by technology, and you use it to predict y from a given x.

Spearman's rs is Pearson's coefficient worked out on the ranks of the data instead of the values. It measures whether y always increases (or always decreases) as x increases, even along a curve, and it is affected less by outliers. Correlation does not prove that one variable causes the other.

Rules to remember

Common mistake

Students say that a value of r near 0 means there is no relationship. It only means no linear relationship; the points may follow a clear curve, so look at the scatter diagram.

Worked example

Five students revise for x = 2, 4, 5, 7, 9 hours and score y = 40, 48, 55, 71, 66 marks. Find Spearman's rank correlation coefficient.

  1. Rank x from smallest to largest: 1, 2, 3, 4, 5.
  2. Rank y in the same way: 40 → 1, 48 → 2, 55 → 3, 71 → 5, 66 → 4, giving 1, 2, 3, 5, 4.
  3. Enter the two lists of ranks in the calculator and find r: rs = 0.9.
  4. Check: the rank differences are 0, 0, 0, −1, 1, so Σd2 = 2 and rs = 1 − (6 × 2)/(5 × (52 − 1)) = 1 − 12/120 = 0.9.

Answer: rs = 0.9, a strong positive rank correlation.

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

← Measures of central tendency and dispersionProbability: Venn diagrams, tree diagrams and conditional probability →Take a Maths: Applications and Interpretation test