π
θ
E = mc²
y = mx+b
Δ
φ
λ
HomeLessonsGrade 12
Grade 12 · Statistics · 11 min read

Regression & Correlation (Grade 12)

Drawing a scatter plot, finding the least squares regression line y = A + Bx on the calculator, using it to predict, and interpreting the correlation coefficient r.

1Scatter plots

A scatter plot shows whether two quantities move together. The pattern can be linear, quadratic, exponential or show no relationship at all.

01234567020406080hours studiedmark (%)
Hours studied against test mark, with the least squares regression line drawn through the points.

2The least squares regression line

y = A + Bx

A = the y-intercept  ·  B = the gradient

In the exam you get A and B from the calculator's STAT mode, not by hand. Enter the x-values in one column and the y-values in the other, then read off A and B.

Worked ExampleFor the data shown, the calculator gives A = 13,00 and B = 8,86. Write down the regression line and predict the mark for 7 hours.
01234567020406080hours studiedmark (%)
  1. 1
    y = 13,00 + 8,86x.
    Substitute A and B.
  2. 2
    For x = 7: y = 13,00 + 8,86(7).
  3. 3
    75,00%.
    Round sensibly — a mark is not given to four decimals.

The gradient B = 8,86 means that each extra hour of study is associated with roughly 8,86 more percentage points. Interpreting the gradient in context is a standard question.

⚠️

Predicting far outside the data range is unreliable. This data covers 1 to 6 hours; predicting the mark for 20 hours would give over 190%, which is nonsense. Say so if a question pushes you there.

3The correlation coefficient

−1 ≤ r ≤ 1

r close to 1 ⇒ strong positive
r close to −1 ⇒ strong negative
r close to 0 ⇒ very weak or none

A rough scale: |r| > 0,9 very strong · 0,7 to 0,9 strong · 0,5 to 0,7 moderate · below 0,5 weak.

Worked ExampleThe calculator gives r = 0,998 for this data. Interpret it.
  1. 1
    r = 0,998 is very close to 1.
  2. 2
    There is a very strong positive linear correlation between hours studied and the mark.
    Say strength AND direction AND that it is linear — all three earn marks.
💡

Correlation is not causation. A strong r shows the two move together; it does not prove one causes the other. Examiners like asking this.

Practice exercises

Work each one out, then click to reveal the answer.

  1. 1
    Using the scatter plot below, describe the type of relationship shown.
    01234567020406080hours studiedmark (%)
    Show answer ▾
    A strong positive linear relationship
  2. 2
    The calculator gives A = 13,00 and B = 8,86. Write down the equation of the least squares regression line.
    Show answer ▾
    y = 13,00 + 8,86x
  3. 3
    Use the regression line to predict the mark of a learner who studies for 7 hours.
    01234567020406080hours studiedmark (%)
    Show answer ▾
    13,00 + 8,86(7) ≈ 75,00%
  4. 4
    Interpret the gradient of the regression line in this context.
    Show answer ▾
    Each extra hour of study is associated with about 8,86 more percentage points.
  5. 5
    The correlation coefficient is r = 0,998. Interpret it.
    Show answer ▾
    A very strong positive linear correlation
  6. 6
    What is the possible range of values for r?
    Show answer ▾
    −1 ≤ r ≤ 1
  7. 7
    Would it be reasonable to use this line to predict the mark for 20 hours of study? Explain.
    Show answer ▾
    No — 20 hours is far outside the data range (1 to 6 hours) and the prediction would exceed 100%.
  8. 8
    Does a strong correlation prove that studying causes higher marks?
    Show answer ▾
    No — correlation does not prove causation.
🧠

Quick Quiz

5 quick questions on what you just read. Take it when you feel ready.

Now practise it

Download Grade 12 past papers and worksheets on this topic.

Go to Grade 12 papers →