Skip to main content
MST HUB
Grade 12 · Mathematics

Statistics (regression and correlation)

Questions, answers, definitions and videos for Statistics (regression and correlation), Grade 12 Mathematics (CAPS).

Study notes

Bivariate data and scatter plots

Bivariate data has two values for each item, e.g. the hours a learner studied (xx) and their test mark (yy). We plot the pairs as points on a scatter plot, to see whether there is a relationship.

  • Independent variable (xx, horizontal axis): the one that is controlled or comes first (hours studied).
  • Dependent variable (yy, vertical axis): the one that responds (the mark).

Describe the pattern:

  • Linear, quadratic or exponential (the shape of the points)
  • Positive (as xx increases, yy increases) or negative (yy decreases)
  • Strong (the points lie close to a line) or weak

The least squares regression line

The line of best fit, calculated so that it fits the points as closely as possible, is the least squares regression line:

y^=a+bx\hat{y} = a + bx

where bb is the gradient and aa is the yy-intercept. Find aa and bb with your calculator in STAT mode (choose the A+BXA + BX option, enter the xx- and yy-values, then read AA and BB).

The line always passes through the point (xˉ;yˉ)(\bar{x}; \bar{y}).

Predicting: substitute an xx-value into the equation. A prediction inside the range of the data (interpolation) is reliable; one far outside it (extrapolation) is less reliable.

The correlation coefficient $r$

rr measures how strong the linear relationship is. −1≤r≤1-1 \leq r \leq 1.

  • rr close to 11: strong positive correlation
  • rr close to −1-1: strong negative correlation
  • rr close to 00: no (or very weak) linear correlation

As a guide: ∣r∣≥0,8|r| \geq 0{,}8 is strong, 0,5≤∣r∣<0,80{,}5 \leq |r| < 0{,}8 is moderate, and ∣r∣<0,5|r| < 0{,}5 is weak. Your calculator gives rr in the same STAT menu.

Correlation is not causation: a strong correlation does not prove that one thing causes the other.

Common mistakes

  • Swapping the variables: xx must be the independent variable.
  • Writing the equation as y^=ax+b\hat{y} = ax + b with the calculator's values in the wrong places. The calculator gives y^=A+BX\hat{y} = A + BX.
  • Saying r=−0,9r = -0{,}9 is "weak" because it is negative. The size shows the strength; the sign shows the direction.
  • Trusting predictions far outside the range of the data.

Practice questions

Try each question on paper first, then tap Show answer to check your working.

  1. Question 1 (easy)

    Describe the correlation for each value of rr:

    (a) r=0,93r = 0{,}93 (b) r=−0,15r = -0{,}15 (c) r=−0,86r = -0{,}86

    Show answer
    • (a) strong positive
    • (b) very weak (almost no) negative
    • (c) strong negative
  2. Question 2 (easy)

    A study records the number of hours learners watch TV per day and their test marks. Which is the independent variable? Explain.

    Show answer

    The hours of TV. It is the variable we think may influence the marks, so it goes on the xx-axis.

  3. Question 3 (medium)

    The regression line for the price of a used car (yy, in thousands of rand) against its age (xx, in years) is y^=210−18x\hat{y} = 210 - 18x.

    (a) Interpret the gradient.

    (b) Predict the price of a 6-year-old car.

    (c) Why would the model not work for a 15-year-old car?

    Show answer

    (a) For every extra year of age, the price drops by about R18 000.

    (b) y^=210−18(6)=102\hat{y} = 210 - 18(6) = 102, so about R102 000.

    (c) 210−18(15)=−60210 - 18(15) = -60: a negative price makes no sense. This is far outside the data (extrapolation), so the model is not reliable there.

  4. Question 4 (medium)

    The mean of the xx-values is xˉ=4,5\bar{x} = 4{,}5 and the regression line is y^=33,64+6,27x\hat{y} = 33{,}64 + 6{,}27x. Calculate yˉ\bar{y}.

    Show answer

    The regression line passes through (xˉ;yˉ)(\bar{x}; \bar{y}):

    yˉ=33,64+6,27(4,5)=61,86\bar{y} = 33{,}64 + 6{,}27(4{,}5) = 61{,}86
  5. Question 5 (exam level)

    The hours that eight learners studied (xx) and their marks (yy) are: (1;40)(1; 40), (2;45)(2; 45), (3;55)(3; 55), (4;60)(4; 60), (5;62)(5; 62), (6;70)(6; 70), (7;78)(7; 78), (8;85)(8; 85). The scatter plot and regression line are shown.

    A scatter plot of test mark against hours studied, with eight points rising from about 40 at 1 hour to 85 at 8 hours, and a straight regression line drawn through them.

    (a) Use a calculator to determine the equation of the least squares regression line.

    (b) Determine the correlation coefficient and describe the correlation.

    (c) Predict the mark of a learner who studies for 9 hours.

    Show answer

    (a) a=33,64a = 33{,}64 and b=6,27b = 6{,}27, so y^=33,64+6,27x\hat{y} = 33{,}64 + 6{,}27x.

    (b) r=0,99r = 0{,}99: a very strong positive correlation.

    (c) y^=33,64+6,27(9)=90,07\hat{y} = 33{,}64 + 6{,}27(9) = 90{,}07, so about 90%. (This is just outside the data, so treat it with some caution.)

Latest questions

Ask a question

Definitions

No definitions added yet.

Videos

No videos added yet.