Main 1
Main 1
1. We have
x y x2 y2 xy
1 9 1 81 9
2 8 4 64 16
3 10 9 100 30
4 12 16 144 48
5 11 25 121 55
6 13 36 169 78
7 14 49 196 98
8 16 64 256 128
9 15 81 225 135
Total 45 108 285 1, 356 597
1 1 1 1
2 1 1
P 2
yi = 12, σx2 = x2i − = 6.667, σy2 = yi2 −
P P P P P
∴ x̄ = 9
xi = 5, ȳ = 9 9 9
xi 9 9
yi = 6.667.
X X
1X 1 1
Cov(x, y) = xi y i − xi yi = 6.333
9 9 9
Cov(x, y)
rxy = = 0.9499
σx σy
1
2. Let if possible,
3x + 12y = 19 be regression line “of y on x” and (1)
9x + 3y = 46 be “of x on y” (2)
1 1
Gradient of (1) is − ∴ the regression coefficient byx = −
4 4
1 1
Gradient of (2) is − ∴ the regression coefficient bxy =−
3 3
2 1 1 1
Now rxy = byx × bxy = − × − = which is less than 1. So our hypothesis is correct.
4 3 12
∴ Equation (1) is a regression line of “y on x”.
Equation (2) is a regression line of “x on y”.
We know the two regression lines intersect at the point (x̄, ȳ), where x̄ and ȳ are means of x and y respectively.
Multiply 3 to Eq(1)
9x + 36y = 57 (3)
9x + 3y = 46 (2)
1
We got y =
3
σx 1 √
=⇒ = − × −2 3 = 1.1547
σy 3