determine the equation of the regression line x 12 21 28 8 2
determine the equation of the regression line. x 12 21 28 8 20 y 17 15 22 19 24
Solution
We will find an equation of the regression line in 4 steps.
Step 1: Find XY and X2 as it was done in the table below.
Step 2: Find the sum of every column:
X=89 , Y=97 , XY=1785 , X2=1833
Step 3: Use the following equations to find a andb:
a=YX2XXY/nX2(X)2=971833891785/5.183389215.222
b=nXYXY/nX2(X)2=517858997/51833(89)20.235
Step 4: Substitute a and b in regression equation formula
y y = a + bx= 15.222 + 0.235x
| X | Y | XY | XX |
| 12 | 15 | 180 | 144 |
| 21 | 17 | 357 | 441 |
| 28 | 22 | 616 | 784 |
| 8 | 19 | 152 | 64 |
| 20 | 24 | 480 | 400 |
