397,531 views
12 votes
12 votes
Write the equation of the line of best fit. Line of best fit: y =

Write the equation of the line of best fit. Line of best fit: y =-example-1
User Serge Nikitin
by
3.1k points

1 Answer

12 votes
12 votes

In order to calculate the line of best fit, let's start calculating the mean value of x and y.

The mean is given by the sum of all values divided by the number of values.

So we have:


\begin{gathered} \bar{x}=\frac{\sum_{i\mathop{=}1}^nx_i}{n}=(81)/(9)=9\\ \\ \bar{y}=\frac{\sum_{i\mathop{=}1}^ny_i}{n}=(2277)/(9)=253 \end{gathered}

Now, let's calculate the slope of the line using the formula below:


m=\frac{\sum_{i\mathop{=}1}^n(x_i-\bar{x})(y_i-\bar{y})}{\sum_{i\mathop{=}1}^n(x_i-\bar{x})^2}=13.95

And finally, calculating the y-intercept, we have:


\begin{gathered} b=\bar{y}-m\bar{x}\\ \\ b=253-13.95\cdot9\\ \\ b=253-125.55\\ \\ b=127.45 \end{gathered}

Therefore the equation is:


y=13.95x+127.45

User Deorst
by
3.0k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.