198,712 views
7 votes
7 votes
ok i have a chart that i have to right the line of best fit for and I don't know how to do that please help

User Burhan Khalid
by
3.1k points

1 Answer

20 votes
20 votes

You are looking for a line of the form


y=a+Bx

such that a,B minimize the distance between the given points and the line.

For that


B=\frac{\sum ^n_(k=1)(x_ky_k-\bar{y}x_k)}{\sum ^n_(k=1)(x^2_{^{}k}-\bar{x}x_k)}

and


a=\bar{y}-\bar{Bx}

Now we just have to apply the formula

after we apply it we get that

ลท = 1.50473 x + 12.90922

User Hamamelis
by
3.2k points