
Ian S. answered 04/06/16
Tutor
5.0
(107)
Experienced tutor and graduate of GWU Law School and Williams College
The first thing we must find is the slope, β1
The equation for β1 = SSxy/SSxx = Σ(Xi - X-bar)(Yi - Y-bar)/∑(Xi - X-bar)2
X-bar, the mean of the X-coordinates, is (1+2+4)/3 = 2.3333
Y-bar, the mean of the Y-coordinates, is (1+3+5)/3 = 3
Our numerator summation therefore is:
(1 - 2.3333)(1-3) + (2 - 2.3333)(3-3) + (4 - 2.3333)(5 - 3) = 2.6666 + 0 + 3.3334 = 6
Our denominator summation is:
(1 - 2.3333)2 + (2 - 2.3333)2 + (4 - 2.3333)2 = 1.7777 + .1111 + 2.7777 = 4.6666
So β1 = 6/4.6666 = 1.2857
To find the intercept, β0 = Y-bar - β1 * X-bar = 3 - 1.2857(2.3333) = 3 - 3 = 0
So the regression equation should be Y = 1.2857X
When we only have a few points it's not hard to do by hand. I would suggest using matrices or statistical software should the number of observations rise.
Boni R.
04/06/16