Solution to Homework 8

Problem #1
n=9
∑X=36
∑Y=39.4
∑X2=204
∑Y2=232.98
∑XY=216.3

SXX=60
SYY=60.50
SXY=58.7

r = SXY/√(SXXSYY) = 58.7/√(60·60.5) = 0.974

Problem #2
n=9
∑Z=399.6
∑Y=39.4
∑Z2=26819.64
∑Y2=232.98
∑ZY=2471.37

SZZ=9077.4
SYY=60.50
SZY=722.01

r = SXY/√(SXXSYY) = 722.01/√(9077.4·60.5) = 0.974

Problem 3
n=9
∑X=36
∑Y=39.4
∑X2=204
∑XY=216.3

SXX=60
SXY=58.7

b1 = Sxy/Sxx = 58.1/60 = 0.9783.

b0 = -b1 = 39.4/9 - 0.9783·36/9 = 0.4644

so we have y=0.46+0.98x

Problem 4
n=9
∑X=36
∑Y=39.4
∑Y2=232.98
∑XY=216.3

SYY=60.50
SXY=58.7

b1 = Sxy/Syy = 58.7/60.5 = 0.9703
Note: now the dependent variable is x, so we devide by Syy

b0 = -b1 = 36/9 - 0.9703·39.4/9 = -0.2478

so we have x=-0.25+0.97y

Problem 5
To add a line to a graph we need two points on the line.

First line:
x=0, y=0.46+0.98·0=0.46, point (0,0.46)
x=8, y=0.46+0.98·8=8.3, point (0,8.3)

Second line:
y=1, x=-0.25+0.97·1=0.72, point (0.72,1)
y=8, x=-0.25+0.97·8=7.51, point(7.51,8)

Now

Of course we already know one point that is on both lines: (,) = (4,4.38) and we could have used that one as well.