Ask your own question, for FREE!
Mathematics 7 Online
OpenStudy (jessicawade):

linear model help

OpenStudy (jessicawade):

x y 20 399 18 323 5 26 13 170 2 3 15 220 2 5

OpenStudy (jessicawade):

Use the dataset and its analyses to determine whether a linear model is the best fit. Explain your reasoning.

OpenStudy (jessicawade):

2. Find the correlation coefficient using L1 as the x values. (1 point) • 0.9617 • 0.9807* • 20.64 • –57.44 3. Find the coefficient of determination. What percent of the variation is explained by the LSRL? (1 point) • 4% • 98% • 2% • 96%*

OpenStudy (solomonzelman):

You don't have the equation of the line, but if you want to find the equation of the line of best fit, then: \(\large\color{black}{ \displaystyle \hat{y}=\left(r\times \frac{S_y}{S_x}\right)x+\left(\bar{y} -r\times \frac{S_y}{S_x}\times \bar{x}\right)}\)

OpenStudy (solomonzelman):

\(\hat{y}\) is the notation for the predicated value of y (or notation for line of best fit in statistics) \(S_y\) and \(S_x\) are the deviations in y and x respectively (Doesn't matter if both are sample or population deviations) \(\bar{y}\) and \(\bar{x}\) are the mans of y list and x list respectively.

OpenStudy (jessicawade):

O-O

OpenStudy (michele_laino):

I think that it is better if you draw a scatter plot using data you provided, in order to guess the law between such data. Furthermore might be necessary drawing some graphs using logarithmic scales

OpenStudy (solomonzelman):

Those are the notations I explained. Now want to go through finding each of the components of the line of best fit?

OpenStudy (jessicawade):

yes please, do you want me to make a scatterplot

OpenStudy (solomonzelman):

For your question, I will add that if you had some line: y=mx+b which you claimed to be the line of best fit, it must satisfy two conditions to be truly best fit. [1] Sum of residuals is 0. [2] Goes through the point \(\left(\bar{x},\bar{y}\right)\)

OpenStudy (solomonzelman):

if I am saying some too complicated stuff then I apologize.

OpenStudy (jessicawade):

I graphed it and it looked weird, like a wet noodle..

OpenStudy (michele_laino):

we can draw a scatter plot placing the \(x\) values on a horizontal line, and placing the \(y\) value on a vertical scale

OpenStudy (jessicawade):

ok

OpenStudy (michele_laino):

\(y\) values*

OpenStudy (michele_laino):

please what graph do you get?

OpenStudy (jessicawade):

let me graph again

OpenStudy (michele_laino):

ok!

OpenStudy (michele_laino):

please tag me when you have finished

OpenStudy (jessicawade):

OpenStudy (jessicawade):

@Michele_Laino

OpenStudy (michele_laino):

ok! It looks like that we have a quadratic function, between \(x\) and \(y\), such that \(y=0\) when \(x=0\). So, we can conjecture this function: \[\Large y = A{x^2}\] which is not helpful. nevertheless, if we take the logarithm of both sides, we get: \[\Large \log y = \log A + 2\log x\] which represent a linear dependence between \(\log y\) and \(x\)

OpenStudy (michele_laino):

so, you have to apply the formulas of linear fit, in order to compute the value of the constant \(\log A\). Of course, in order to do such analytical fit, you have to consider the subsequent ordered pairs: \((x,\log y)\)

OpenStudy (michele_laino):

the logarithm can be taken with respect to the base \(10\)

OpenStudy (jessicawade):

ok

OpenStudy (jessicawade):

@Michele_Laino what do i do now, im stuck lol

OpenStudy (michele_laino):

you have to draw a scatter plot, placing the \(x\) values along a horizontal scale, and placing the \( \log y\) values along a vertical scale

OpenStudy (michele_laino):

please try, then tag me when you have finished

OpenStudy (jessicawade):

@mathmate

OpenStudy (jessicawade):

wait what are the log y values? im sorry

OpenStudy (jessicawade):

@Michele_Laino

OpenStudy (michele_laino):

for example, If I consider the first ordered pair: \((20,399)\) you have to graph this pair: \((20, \log 399)=(20, 2.6)\) so your scatter plot has to contains this pair \((20, 2.6)\) Please do the same with the remaining ordered pairs

OpenStudy (jessicawade):

ok so i got the points (20,2.6) (18,2.5) (5,1.4) (13,2.3) (2,0.5) (15,2.3) (2,0.7) do i put those in a scatterplot

OpenStudy (jessicawade):

@Michele_Laino

OpenStudy (jessicawade):

OpenStudy (michele_laino):

please can you redo your scatter plot using these oredered pairs: \[\begin{gathered} \left( {20,2.600} \right) \hfill \\ \left( {18,2.509} \right) \hfill \\ \left( {5,1.415} \right) \hfill \\ \left( {13,2.230} \right) \hfill \\ \left( {2,0.477} \right) \hfill \\ \left( {15,2.342} \right) \hfill \\ \left( {2,0.699} \right) \hfill \\ \end{gathered} \]

OpenStudy (michele_laino):

ordered*

OpenStudy (jessicawade):

OpenStudy (jessicawade):

i got sort of the same graph

OpenStudy (michele_laino):

ok! Now you have to draw a straight line, which passes in vicinity of the most number of points

OpenStudy (jessicawade):

ok

OpenStudy (jessicawade):

thats going to be slightly difficult lol

OpenStudy (michele_laino):

I try to draw such straight line, please wait...

OpenStudy (michele_laino):

here is the straight line:

OpenStudy (jessicawade):

ohh ok.

OpenStudy (michele_laino):

now we have to search for its intercept, with the vertical axis

OpenStudy (jessicawade):

ok

OpenStudy (michele_laino):

please write the requested value:

OpenStudy (jessicawade):

0.76?

OpenStudy (michele_laino):

I think that it is greater than 0.76

OpenStudy (jessicawade):

thats what the green dot is on T-T

OpenStudy (jessicawade):

oh, im bad at this hold on a tick

OpenStudy (jessicawade):

0.86?

OpenStudy (michele_laino):

I think it is \(0.805\), I have used a proportion

OpenStudy (michele_laino):

so we can write this: \[\Large \log A = 0.805\] so, what is \(A=...?\)

OpenStudy (jessicawade):

is that the 0.805

OpenStudy (michele_laino):

yes!

OpenStudy (michele_laino):

it is the vertical intercept of the straight line

OpenStudy (jessicawade):

so does that mean that the linear model is the best fit?

OpenStudy (michele_laino):

linear model is the best fit for the logarithmic expression, since we have conjectured this realtion: \(\huge y=Ax^2\)

OpenStudy (michele_laino):

and \(\large A=...?\) please what is the value of \(\Large A\) if \(\Large \log A=0.805\)?

OpenStudy (jessicawade):

0.805? lol

OpenStudy (jessicawade):

is a and log a the same?

OpenStudy (michele_laino):

we have to do this computation: \[\Large \log A = 0.805 \Rightarrow A = {10^{0.805}} \cong 6.38\]

OpenStudy (jessicawade):

ohh so a=6.38?

OpenStudy (michele_laino):

correct!! :)

OpenStudy (jessicawade):

so that means the linear model is the best fit?

OpenStudy (michele_laino):

we can use the linear model for these variables: \(x\) and \( \log y\) so we can write: \[\Large y = 6.38{x^2}\] nevertheless it is not very precise, since, as you can see the red line doesn't fit all points, for example the first two points

OpenStudy (michele_laino):

then linear model is the best fit for these variables: \(\huge (x, \,\log y)\)

OpenStudy (jessicawade):

in confused again lol im sorry haha

OpenStudy (jessicawade):

because we used the data in the set, did we find weather a linear model was the best fit?

OpenStudy (jessicawade):

wait or because x,log y means that we did and its the linear best fit model.. im confused

OpenStudy (michele_laino):

no problem :) as we can see, we have applied the best fit, (red line) to these ordered pairs \((x,\,\log y)\) since we have understood that there is a quadratic relation between \(x\) and \(y\), from the first scatter plot

OpenStudy (jessicawade):

so that means yes that a linear model is the best fit?

OpenStudy (michele_laino):

yes! It is the best fit for this function: \(\log y= \log A +2x\)

OpenStudy (michele_laino):

Or, in other words, data you provided can not be fitted using a linear model, nevertheless, the subsequent data \((x,\,\log y)\) can be fitted by a linear model

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!