PLEASE HELP!! I need to know how to solve these!!! This table shows 4 observations of a pair of variables (x,y). The variables x and y are positively correlated with a correlation coefficient of 0.99. Find the slope, b, of the least squares regression line, y=ax+b, for these data: x 1 2 3 4 y 1 3 7 10
\[y =\frac{31}{10}x-2.5\]
where did you get these numbers from Mathsboy? I need some steps to follow, I have several like this one!
it is supposed to be a decimal amount with the anser rounded to the nearest hundredth
Take a look at this: http://en.wikipedia.org/wiki/Simple_linear_regression#Fitting_the_regression_line It looks quite complicated, but it's simpler than it seems, as long as you know that barred-x is the mean of x, etc.
that is way over my head - can you dumb it down A LOT??? Please?
I can try, it's hard to write on here, the important parts are: \[y = \alpha + \beta x\] \[\beta = \frac{\sum_{i=1}^{n}\left(x_i-\bar{x}\right)\left(y_i-\bar{y}\right)}{\sum_{i=1}^{n}\left(x_i-\bar{x}\right)^2}\]
And also: \[\alpha = \bar{y} - \beta \bar{x}\]
OK - so where do I get the numbers to plug in? I am doing Algebra 2 for a high school class. The teacher is useless, in this case, and I need help!!!
Maybe my method is over complicating things.. in this case, you calculate: \[\bar{x}=(1+2+3+4)/4 = 2.5\]\[\bar{y} = (1+3+7+10)/4 = 5.25\] And then use the original values in the sums. If you haven't seen the formulae before, I suggest you don't use my method, but that's the only one I'm familiar with unfortunately.
OK, let me see if I can follow you. I add up the x coordinates and find the mean, same with the y values, and then what? How do I find the slope?
The slope is the beta part, you have to use that formula above replacing all xbar with 2.5 and all ybar with 5.25. It's complicated to explain if you don't understand summation yet.
OK - I will have a go at it. Let me run an idea of it on my paper and I will post my result, and maybe you can tell me if i"m remotely close?
Sure.
OK - I got -4.25 How close am I?
what does the correlation coefficient have to do with this? I think that's where the question confuses me!
Honestly... I don't know.
Correlation coeff is not needed. But least squares does not do well if there are outliers. So they are saying least squares is valid here.
That doesn't help me much!
Thanks phi! I thought that was extra information!
Out of curiosity, what approach to solving these problems is the teacher using?
I have no idea. That' why I don't get it. I have the y-hat formula, and the slop formula that states b=r(sy/sx), and I don't really get any of it!
Oooh in that case, the correlation coefficient is probably useful, that's what the r is.
How does that all fit in? Still confused to the rest of it! Can you help?
How do you find the "s" value of the lope? It's with a lowered y or x next to it.
is "s" the standard deviation for this equation?
I'm pretty sure they're the standard deviations of x and y, which of course was not given in the question, and I don't think they're sample standard deviations either, so honestly, unfortunately apart from what I've contributed, I don't think I can help, sorry.
Thanks! I appreciate everything. I would award you more medals for putting up with my questions, but it will only allow me the one! Thanks again!
No problem, sorry I couldn't be of more help.
I steered you wrong. You are studying this problem in the context of statistics, not calculus nor linear algebra. What they want you to do is find the standard deviation of y, and the std of x then the slope (called a in your problem) is a= r * std(y)/std(x) Here r is the correlation coefficient. I assume you know how to find the standard deviation? one way is use wolfram http://www.wolframalpha.com/input/?i=std+%7B+1%2C2%2C3%2C4%7D
Join our real-time social learning platform and learn together with your friends!