Board 8 > Does anyone here know how to do linear regression?

Topic List
Page List: 1
ChichiriMuyo
08/14/11 5:36:00 PM
#1:


I'm really at a bit of a loss here and I'm in over my head. If anyone has some time and can offer me some guidance, that'd be appreciated greatly.

--
"Principally I hate and detest the animal called man, although I heartily love John, Peter, Thomas and so forth" - Jonathan Swift
BT with the victory!
... Copied to Clipboard!
WhoopsyDaisy
08/14/11 5:44:00 PM
#2:


possibly

--
senorhousemouse
... Copied to Clipboard!
Phase
08/14/11 5:45:00 PM
#3:


****. This reminds me I have to look up how to do this crap again since I'm probably TAing a course on numerical methods.

--
assert(!hotterThan(foo, "Hot Nymphomaniacal Lesbian Mind-Controlling Dominatrix Fairy Doctors with glasses"))
... Copied to Clipboard!
Peace___Frog
08/14/11 5:45:00 PM
#4:


isn't linear regression basically just "line of best fit"? It's been 3 years since I took stats, but I'm pretty sure that's it. Stuff with r and r squared values.

--
~AHylian is Still Alive~
... Copied to Clipboard!
Peace___Frog
08/14/11 5:45:00 PM
#5:


do you have a graphing calculator or excel?

--
~AHylian is Still Alive~
... Copied to Clipboard!
ChichiriMuyo
08/14/11 5:49:00 PM
#6:


Oops. I meant multiple regression. I actually got the linear regression down

I have excel, and a file full of numbers that I'm having a hard time understanding. I'm piecing it together but I have a 9pm EST deadline and I don't know if I will put it together fast enough.

--
"Principally I hate and detest the animal called man, although I heartily love John, Peter, Thomas and so forth" - Jonathan Swift
BT with the victory!
... Copied to Clipboard!
ChichiriMuyo
08/14/11 5:52:00 PM
#7:


Here's the data I've found relevant so far

external image

Here are my q's to be answered

State the multiple regression equation.
Interpret the meaning of the slopes in the equation.
Predict the salary for a 40-year-old male employee with 5 years of experience.
At the .05 level of significance, determine whether each explanatory variable makes a significant contribution to the regression model.
Interpret the meaning of the r-squared.
Interpret your findings. What changes would you make to the model, given the results?

--
"Principally I hate and detest the animal called man, although I heartily love John, Peter, Thomas and so forth" - Jonathan Swift
BT with the victory!
... Copied to Clipboard!
ChichiriMuyo
08/14/11 5:53:00 PM
#8:


I've been working out how to get the slopes, but I'm still pretty bad at this. This is actually my first math class in a decade.

--
"Principally I hate and detest the animal called man, although I heartily love John, Peter, Thomas and so forth" - Jonathan Swift
BT with the victory!
... Copied to Clipboard!
Peace___Frog
08/14/11 5:55:00 PM
#9:


Oh man. I wish I could help more, but I haven't taken stats in so long.

R squared is, from what I remember, the percent of y explained by x.

I wish I could help more, but 5 minutes isn't enough time to jog my memory :/

--
~AHylian is Still Alive~
... Copied to Clipboard!
Peace___Frog
08/14/11 5:56:00 PM
#10:


s(b) is the slope, no?

--
~AHylian is Still Alive~
... Copied to Clipboard!
ChichiriMuyo
08/14/11 5:59:00 PM
#11:


I think that is standard deviation and b is slope, actually.

--
"Principally I hate and detest the animal called man, although I heartily love John, Peter, Thomas and so forth" - Jonathan Swift
BT with the victory!
... Copied to Clipboard!
Peace___Frog
08/14/11 6:00:00 PM
#12:


Hmm. I swear b is the y=mx+b, but I could be wrong.

--
~AHylian is Still Alive~
... Copied to Clipboard!
Peace___Frog
08/14/11 6:00:00 PM
#13:


I only kind of glanced at the picture, didn't fully understand all of it.

--
~AHylian is Still Alive~
... Copied to Clipboard!
ChichiriMuyo
08/14/11 6:00:00 PM
#14:


But I'm reeeeaaally confused at this point, so I dunno.

--
"Principally I hate and detest the animal called man, although I heartily love John, Peter, Thomas and so forth" - Jonathan Swift
BT with the victory!
... Copied to Clipboard!
ChichiriMuyo
08/14/11 6:02:00 PM
#15:


Found a sample in the textbook and it looks like b = coefficients and s(b) = standard error.

--
"Principally I hate and detest the animal called man, although I heartily love John, Peter, Thomas and so forth" - Jonathan Swift
BT with the victory!
... Copied to Clipboard!
foolmor0n
08/14/11 6:04:00 PM
#16:


Can't you use a pseduo-inverse technique with matrices to get the line of best fit?

--
_foolmo_
'Most people at least try to say something funny. See foolmo's post as an example.' - The Real Truth
... Copied to Clipboard!
ChichiriMuyo
08/14/11 6:05:00 PM
#17:


So what I'm seeing is b's intercept is what the result would be if everything else were zero. If we hold experience and gender constant then each increase of 1 in age adds 2098.xx to the b's intercept... things are clicking just a tad...

--
"Principally I hate and detest the animal called man, although I heartily love John, Peter, Thomas and so forth" - Jonathan Swift
BT with the victory!
... Copied to Clipboard!
ChichiriMuyo
08/14/11 6:06:00 PM
#18:


foolmor0n posted...
Can't you use a pseduo-inverse technique with matrices to get the line of best fit?

I have absolutely no idea how to do that, and probably shouldn't.

--
"Principally I hate and detest the animal called man, although I heartily love John, Peter, Thomas and so forth" - Jonathan Swift
BT with the victory!
... Copied to Clipboard!
Not Dave
08/14/11 6:06:00 PM
#19:


and then y = b0 + b1(x)

--
ND
... Copied to Clipboard!
Not Dave
08/14/11 6:08:00 PM
#20:


b1 = ((xi - xbar) * (yi - ybar)) / (xi-xbar)^2
b0 = ybar - (b1 * xbar)

where xi is each instance of x, and xbar is the average. same with y

--
ND
... Copied to Clipboard!
Not Dave
08/14/11 6:09:00 PM
#21:


oh whoops, three variables. should have checked the spreadsheet >_>

--
ND
... Copied to Clipboard!
ChichiriMuyo
08/14/11 6:10:00 PM
#22:


Yeah, that was my fault for the incorrect title.

--
"Principally I hate and detest the animal called man, although I heartily love John, Peter, Thomas and so forth" - Jonathan Swift
BT with the victory!
... Copied to Clipboard!
Not Dave
08/14/11 6:10:00 PM
#23:


do you have minitab? if not, download it.

very helpful for multiple regression.

--
ND
... Copied to Clipboard!
ChichiriMuyo
08/14/11 6:13:00 PM
#24:


Going to do that right now, then. Thanks.

--
"Principally I hate and detest the animal called man, although I heartily love John, Peter, Thomas and so forth" - Jonathan Swift
BT with the victory!
... Copied to Clipboard!
ChichiriMuyo
08/14/11 6:16:00 PM
#25:


And there are problems with making an account. Oh well.

--
"Principally I hate and detest the animal called man, although I heartily love John, Peter, Thomas and so forth" - Jonathan Swift
BT with the victory!
... Copied to Clipboard!
Topic List
Page List: 1