Question #229067

x1234y56912 Find the gradient of the line of best fit of the data.


1
Expert's answer
2021-09-01T11:58:26-0400
xy152639412\def\arraystretch{1.5} \begin{array}{c:c:c} x & y \\ \hline 1 & 5 \\ \hline 2 & 6 \\ \hline 3 & 9 \\ \hdashline 4 & 12 \end{array}

xˉ=ixin=1+2+3+44=2.5\bar{x}=\dfrac{\sum_ix_i}{n}=\dfrac{1+2+3+4}{4}=2.5

yˉ=iyin=5+6+9+124=8\bar{y}=\dfrac{\sum_iy_i}{n}=\dfrac{5+6+9+12}{4}=8

Sxx=i(xixˉ)2=ixi2nxˉ2=5S_{xx}=\sum_i(x_i-\bar{x})^2=\sum_ix_i^2-n\cdot\bar{x}^2=5

Sxy=i(xixˉ)(yiyˉ)=ixiyinxˉyˉ=12S_{xy}=\sum_i(x_i-\bar{x})(y_i-\bar{y})=\sum_ix_iy_i-n\cdot\bar{x}\bar{y}=12

Syy=i(yiyˉ)2=iyi2nyˉ2=30S_{yy}=\sum_i(y_i-\bar{y})^2=\sum_iy_i^2-n\cdot\bar{y}^2=30

gradient=SxySxx=125=2.4gradient=\dfrac{S_{xy}}{S_{xx}}=\dfrac{12}{5}=2.4


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS