Answer:
a. the line that makes the sum of the squares of the vertical distances of the data points from the line (the sum of squared residuals) as small as possible.
Step-by-step explanation:
If we have N points [tex] (x_1, y_1),. ...(x_N, y_N)[/tex] and we want to adjust a model [tex] y = ax+b[/tex]
We can define the error associated to this like that:
[tex] E(a,b) = \sum_{n=1}^N [y_n -(ax_n +b)]^2[/tex]
So as we can see here we are adding the square distances between the real and the adjusted values in order to minimize the error for this reason the correct answer is:
a. the line that makes the sum of the squares of the vertical distances of the data points from the line (the sum of squared residuals) as small as possible.
For this case we need to calculate the slope with the following formula:
[tex]a=\frac{S_{xy}}{S_{xx}}[/tex]
Where:
[tex]S_{xy}=\sum_{i=1}^n x_i y_i -\frac{(\sum_{i=1}^n x_i)(\sum_{i=1}^n y_i)}{n}[/tex]
[tex]S_{xx}=\sum_{i=1}^n x^2_i -\frac{(\sum_{i=1}^n x_i)^2}{n}[/tex]
And we can find the intercept using this:
[tex]b=\bar y -m \bar x[/tex]