You are looking for a line of the form
such that a,B minimize the distance between the given points and the line.
For that
and
Now we just have to apply the formula
after we apply it we get that
ลท = 1.50473 x + 12.90922
1.6m questions
2.0m answers