123k views
0 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

1 Answer

5 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 Shantanu Banerjee
by
8.3k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories