How do you find the slope of the regression line for the following set of data?

X values –3 0 3 5 3
Y values 7 4 –2 2 –3

1 Answer
Oct 5, 2017

The slope is 97980.989796.

Explanation:

You can use the formula that the slope is b1=SSxySSxx, where SSxx=ni=1(xi¯x)2=ni=1x2i(ni=1xi)2n and SSxy=ni=1(xi¯x)(yi¯y)

=ni=1xiyi(ni=1xi)(ni=1yi)n

In the given situation n=5 and we have

ni=1xi=3+0+3+5+3=8, ni=1yi=7+42+23=8, ni=1x2i=9+0+9+25+9=52, ni=1y2i=49+16+4+4+9=82, and ni=1xiyi=21+06+109=26.

Therefore, SSxx=52825=260645=1965=39.2 and SSxy=26885=130645=1945=38.8.

This leads to a slope of b1=38.839.2=97980.989796.