We are looking for the linear regression line parameters (slope and intercept) for variable B (dependent, Y) and variable A (independent, X).
1. Calculate the means:
- Mean of A (xˉ) = (1 + 2 + 3 + 4) / 4 = 2.5
- Mean of B (yˉ) = (5 + 8 + 12 + 15) / 4 = 10
2. Calculate the slope (b1):
Using the formula b1=∑(xi−xˉ)2∑(xi−xˉ)(yi−yˉ)
∑(xi−xˉ)2=(1−2.5)2+(2−2.5)2+(3−2.5)2+(4−2.5)2
=(−1.5)2+(−0.5)2+0.52+1.52=2.25+0.25+0.25+2.25=5
∑(xi−xˉ)(yi−yˉ)=(−1.5×(5−10))+(−0.5×(8−10))+(0.5×(12−10))+(1.5×(15−10))
=(−1.5×−5)+(−0.5×−2)+(0.5×2)+(1.5×5)
=7.5+1+1+7.5=17
b1=17/5=3.4
3. Calculate the intercept (b0):
b0=yˉ−b1×xˉ
b0=10−3.4×2.5=10−8.5=1.5
The slope is 3.4, and the intercept is 1.5. Thus, Option A is correct.