If you already know the summary statistics, you can calculate the equation of the regression line.
For our example the values are
mean of x | 5.00 |
mean of y | 5.00 |
standard deviation of x | 3.74 |
standard deviation of y | 3.46 |
correlation of x and y | 0.874 |
The slope is b1 = r (st dev y)/(st dev x), or b1 = .874 x 3.46 / 3.74 = 0.809.
The intercept is b0 = ymean - b1 xmean, or b0 = 5.00 - 8.09 x 5.00 = 0.955
Thus the equation of the least squares line is yhat = 0.95 + 0.809 x.