Skip to content

← Grade 12 Mathematics

Exam practice

Every question from the end of every unit, with hints and answers to open. After you check an answer, mark how you did, and come back to the ones you didn’t get.

5 questions

Unit 10 · Correlation and Regression

Short questions

1.

Seven students’ hours of study in a week (x) and their marks out of 20 in a test (y):

x 1 2 3 4 5 6 7
y 9 8 10 12 11 13 14
  • a.Find Karl Pearson’s correlation coefficient. (3 marks)
  • b.Interpret it, and say whether it shows that study raises marks. (2 marks)
Answer

a. x = 4, y‾=777=11 \overline{y} = \frac{77}{7} = 11 . With X = x − 4, Y = y − 11: X = −3, −2, −1, 0, 1, 2, 3; Y = −2, −3, −1, 1, 0, 2, 3.
ΣXY=6+6+1+0+0+4+9=26 \Sigma XY = 6 + 6 + 1 + 0 + 0 + 4 + 9 = 26 , ΣX2=28 \Sigma X^2 = 28 , ΣY2=4+9+1+1+0+4+9=28 \Sigma Y^2 = 4 + 9 + 1 + 1 + 0 + 4 + 9 = 28 .
r=2628×28=2628=0.93 r = \frac{26}{\sqrt{28 \times 28}} = \frac{26}{28} = \mathbf{0.93} .
b. A high positive correlation: students who studied more scored more, nearly in a straight line. It doesn’t prove that study caused the marks; keen students may both study more and do better for other reasons. (Here we would expect much of it to be cause, but the number alone can’t say.)

2.
x 4 6 8 10 12
y 20 17 13 12 8
  • a.Find the regression line of y on x, and estimate y when x = 7. (3 marks)
  • b.Find the regression line of x on y. (2 marks)
Answer

x = 8, y = 14. X = −4, −2, 0, 2, 4; Y = 6, 3, −1, −2, −6.
ΣXY=−24−6+0−4−24=−58 \Sigma XY = -24 - 6 + 0 - 4 - 24 = -58 , ΣX2=40 \Sigma X^2 = 40 , ΣY2=36+9+1+4+36=86 \Sigma Y^2 = 36 + 9 + 1 + 4 + 36 = 86 .

  • a.byx=−5840=−1.45 b_{yx} = \frac{-58}{40} = -1.45 : y − 14 = −1.45(x − 8), y = 25.6 − 1.45x. At x = 7: y = 25.6 − 10.15 = 15.45.
  • b.bxy=−5886=−0.674 b_{xy} = \frac{-58}{86} = -0.674 : x − 8 = −0.674(y − 14), x = 17.44 − 0.674y.
3.

Eight students’ marks in Mathematics and English:

Student A B C D E F G H
Mathematics 78 65 92 55 70 84 48 60
English 70 72 81 50 58 76 45 63

Find the rank correlation coefficient and interpret it. (5 marks)

Hint

Rank each subject from the highest mark (1) down.

Answer

Ranks in Mathematics (A to H): 3, 5, 1, 7, 4, 2, 8, 6. In English: 4, 3, 1, 7, 6, 2, 8, 5.
d = −1, 2, 0, 0, −2, 0, 0, 1; Σd2=1+4+0+0+4+0+0+1=10 \Sigma d^2 = 1 + 4 + 0 + 0 + 4 + 0 + 0 + 1 = 10 .
ρ=1−6×108(64−1)=1−60504=0.88 \rho = 1 - \frac{6 \times 10}{8(64 - 1)} = 1 - \frac{60}{504} = \mathbf{0.88} .
A high positive correlation: students placed high in one subject are mostly placed high in the other.

4.
  • a.From byx=rσyσx b_{yx} = r\frac{\sigma_y}{\sigma_x} and bxy=rσxσy b_{xy} = r\frac{\sigma_x}{\sigma_y} , show that r2=byx bxy r^2 = b_{yx} \, b_{xy} , and that byx b_{yx} , bxy b_{xy} and r have the same sign. (2 marks)
  • b.The two regression lines of some data are 8x − 10y + 66 = 0 and 40x − 18y = 214. Find x, y and r. (3 marks)
Hint

b. Take each line in turn as y on x and check which way gives r2≤1 r^2 \le 1 .

Answer
  • a.byxbxy=rσyσx⋅rσxσy=r2 b_{yx} b_{xy} = r\frac{\sigma_y}{\sigma_x} \cdot r\frac{\sigma_x}{\sigma_y} = r^2 . Since σx,σy>0 \sigma_x, \sigma_y > 0 , each coefficient is r times a positive number, so it has the sign of r. ✓
  • b.The means are on both lines: 8x − 10y = −66 and 40x − 18y = 214. Five times the first, 40x − 50y = −330, from the second: 32y = 544, y = 17, and 8x = 170 − 66 = 104, x = 13.

Take 8x − 10y + 66 = 0 as y on x: y = 0.8x + 6.6, byx=0.8 b_{yx} = 0.8 ; and 40x − 18y = 214 as x on y: x = 0.45y + 5.35, bxy=0.45 b_{xy} = 0.45 . r2=0.36≤1 r^2 = 0.36 \le 1 , so this way round is right and r = 0.6. (The other way gives byx=4018 b_{yx} = \frac{40}{18} , bxy=108 b_{xy} = \frac{10}{8} , product 2.78 > 1: impossible.)

Long question

5.

Five more of DHM’s stations, height x in hundreds of meters (to the nearest 100 m) and the average year’s temperature y in °C:

Station Simara Nepalgunj Dhankuta Kathmandu Taplejung
x 1 2 12 13 17
y 24.4 24.6 19.9 19.3 16.8
  • a.Draw a scatter diagram and say what kind of correlation it shows. (1 mark)
  • b.Find Karl Pearson’s correlation coefficient. (3 marks)
  • c.Find the regression line of y on x, and estimate the average temperature at 1,000 m. (2 marks)
  • d.Find the regression line of x on y, and estimate the height where the average year is 20 °C. Why is this not found from the line in c? (2 marks)
Answer
  • a.The points fall from top left to bottom right, close to a line: a high negative correlation.
  • b.x = 9, y = 21. X = −8, −7, 3, 4, 8; Y = 3.4, 3.6, −1.1, −1.7, −4.2.

ΣXY=−27.2−25.2−3.3−6.8−33.6=−96.1 \Sigma XY = -27.2 - 25.2 - 3.3 - 6.8 - 33.6 = -96.1 , ΣX2=202 \Sigma X^2 = 202 , ΣY2=11.56+12.96+1.21+2.89+17.64=46.26 \Sigma Y^2 = 11.56 + 12.96 + 1.21 + 2.89 + 17.64 = 46.26 .
r=−96.1202×46.26=−96.196.67=−0.994 r = \frac{-96.1}{\sqrt{202 \times 46.26}} = \frac{-96.1}{96.67} = \mathbf{-0.994} .

  • c.byx=−96.1202=−0.4757 b_{yx} = \frac{-96.1}{202} = -0.4757 : y − 21 = −0.4757(x − 9), y = 25.28 − 0.4757x. At x = 10: y = 21 − 0.4757 = 20.52 °C.
  • d.bxy=−96.146.26=−2.0774 b_{xy} = \frac{-96.1}{46.26} = -2.0774 : x − 9 = −2.0774(y − 21), x = 52.63 − 2.0774y. At y = 20: x = 9 + 2.0774 = 11.08, about 1,108 m.

The line of y on x makes the misses in y least, so it is the best line for estimating y; to estimate x the misses in x must be least, which is the other line. (Here they nearly agree, since |r| is close to 1.)