Tippmann Paintball Homepage
Forum Home Forum Home > News And Views > Thoughts and Opinions
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Linear Regression Halp

 Post Reply Post Reply
Author
Message
Hysteria View Drop Down
Platinum Member
Platinum Member
Avatar
Strike 2 - Language, 9/25

Joined: 02 February 2005
Location: United States
Status: Offline
Points: 4364
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hysteria Quote  Post ReplyReply Direct Link To This Post Topic: Linear Regression Halp
    Posted: 30 April 2010 at 6:51pm
Well, it seems I missed the class on transformations or they were never taught to us, so I need a bit of help.

1)  Is there any limit to how many different types of transformations can be used in one regression?  For instance, I was messing around and log-transformed some variables, left some alone, squared another variable and used the Fisher transformation on yet another.  My R squared was like .95, but it seemed like I was cheating a bit.

2)  Upon getting the results of the transformed regression, must you do anything to the coefficients or anything before interpreting them, or can you just leave them as is?


Edited by Hysteria - 30 April 2010 at 9:04pm
Back to Top
ParielIsBack View Drop Down
Platinum Member
Platinum Member
Avatar
future target of fratricide

Joined: 13 October 2008
Status: Offline
Points: 3778
Post Options Post Options   Thanks (0) Thanks(0)   Quote ParielIsBack Quote  Post ReplyReply Direct Link To This Post Posted: 30 April 2010 at 8:55pm
I don't know anything about this!

CAPITAL LETTERS
BU Engineering 2012
Back to Top
WGP guy2 View Drop Down
Platinum Member
Platinum Member
Avatar
I play the Bag Pipes

Joined: 23 September 2005
Location: 17h 45m 40.04s
Status: Offline
Points: 2585
Post Options Post Options   Thanks (0) Thanks(0)   Quote WGP guy2 Quote  Post ReplyReply Direct Link To This Post Posted: 30 April 2010 at 10:02pm
It sounds like you're in statistics.  In that case, my advise is to take a real math class.

I don't what the hell you're talking about, but this is how we do linear regressions in real math classes (Numerical Methods):

Using the model:



we find:



note ybar is the average value for y and xbar is the average value for x.

Edit:  Forgot the error calculation:




Edited by WGP guy2 - 30 April 2010 at 10:04pm
Back to Top
usafpilot07 View Drop Down
Moderator Group
Moderator Group
Avatar
FreeEnterprise's #1 Fan & Potty Mouth

Joined: 31 August 2004
Location: Tokelau
Status: Offline
Points: 4626
Post Options Post Options   Thanks (0) Thanks(0)   Quote usafpilot07 Quote  Post ReplyReply Direct Link To This Post Posted: 30 April 2010 at 10:25pm
We get it, you virgin.
Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo
Back to Top
mbro View Drop Down
Moderator Group
Moderator Group
Avatar
Original Forum Gangster

Joined: 11 June 2002
Location: Isle Of Man
Status: Offline
Points: 10750
Post Options Post Options   Thanks (0) Thanks(0)   Quote mbro Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2010 at 12:24am

Don't blame me, I voted for Kodos.
Back to Top
Rofl_Mao View Drop Down
Platinum Member
Platinum Member
Avatar
request denied

Joined: 27 October 2008
Location: Canada
Status: Offline
Points: 3210
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rofl_Mao Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2010 at 12:32am
Originally posted by usafpilot07 usafpilot07 wrote:

We get it, you virgin.


We have a WINNAR!
Back to Top
Linus View Drop Down
Platinum Member
Platinum Member
Avatar
Strike 1 - language 6.29.10

Joined: 10 November 2002
Location: United States
Status: Offline
Points: 7908
Post Options Post Options   Thanks (0) Thanks(0)   Quote Linus Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2010 at 1:03am
What the hell? My god I have trouble with college algebra.


I'll just stick with medicine, which ironically, is so much easier for me.

Back to Top
Hysteria View Drop Down
Platinum Member
Platinum Member
Avatar
Strike 2 - Language, 9/25

Joined: 02 February 2005
Location: United States
Status: Offline
Points: 4364
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hysteria Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2010 at 3:24am
Originally posted by WGP guy2 WGP guy2 wrote:

It sounds like you're in statistics.  In that case, my advise is to take a real math class.

I don't what the hell you're talking about, but this is how we do linear regressions in real math classes (Numerical Methods):

Using the model:


we find:

note ybar is the average value for y and xbar is the average value for x.

Edit:  Forgot the error calculation:




Not statistics, econometrics.  Yes, I know how to take a real linear regression like you describe.  However, if the data are not quite linear (or for many other reasons), you can use real regression technique called data transformation.


Edited by Hysteria - 01 May 2010 at 3:25am
Back to Top
ammolord View Drop Down
Moderator Group
Moderator Group
Avatar
Started from the botttom, not there yet

Joined: 06 July 2007
Location: Minot, ND
Status: Offline
Points: 1850
Post Options Post Options   Thanks (0) Thanks(0)   Quote ammolord Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2010 at 4:36am
Wow.... Math stopped beaing math when the letters start flying......
PSN Tag: AmmoLord
XBL: xXAmmoLordXx


~Minister of Tinkering With Things That Go "BOOM!"(AKA Minister of Munitions)~
Back to Top
ParielIsBack View Drop Down
Platinum Member
Platinum Member
Avatar
future target of fratricide

Joined: 13 October 2008
Status: Offline
Points: 3778
Post Options Post Options   Thanks (0) Thanks(0)   Quote ParielIsBack Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2010 at 8:27am
Pfft, economics.

The only reason economists use math is because other people stop listening when the words get too long.
BU Engineering 2012
Back to Top
WGP guy2 View Drop Down
Platinum Member
Platinum Member
Avatar
I play the Bag Pipes

Joined: 23 September 2005
Location: 17h 45m 40.04s
Status: Offline
Points: 2585
Post Options Post Options   Thanks (0) Thanks(0)   Quote WGP guy2 Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2010 at 9:14am
Originally posted by Hysteria Hysteria wrote:



Not statistics, econometrics.  Yes, I know how to take a real linear regression like you describe.  However, if the data are not quite linear (or for many other reasons), you can use real regression technique called data transformation.


Ah, I see.  We touched on that but never went in depth.

Of course, you could just use Newton, Lagrange, or natrual spline interp and have essentially 0 error.  Damn economists.   Wink



Back to Top
procarbinefreak View Drop Down
Moderator Group
Moderator Group
Avatar
Budget Medical Procedures Available

Joined: 12 June 2002
Location: United States
Status: Offline
Points: 12920
Post Options Post Options   Thanks (0) Thanks(0)   Quote procarbinefreak Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2010 at 11:30am
lol at wgp's holier than thou attitude with math. 


statistics have their place in the world.  they're used every day where I work... and are rather important.
Back to Top
WGP guy2 View Drop Down
Platinum Member
Platinum Member
Avatar
I play the Bag Pipes

Joined: 23 September 2005
Location: 17h 45m 40.04s
Status: Offline
Points: 2585
Post Options Post Options   Thanks (0) Thanks(0)   Quote WGP guy2 Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2010 at 12:30pm
Originally posted by procarbinefreak procarbinefreak wrote:


statistics have their place in the world.  they're used every day where I work... and are rather important.


Oh I didn't say it wasn't important.  It's just not real math.  Wink
Back to Top
ParielIsBack View Drop Down
Platinum Member
Platinum Member
Avatar
future target of fratricide

Joined: 13 October 2008
Status: Offline
Points: 3778
Post Options Post Options   Thanks (0) Thanks(0)   Quote ParielIsBack Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2010 at 12:36pm
Newton and Lagrange both suck.

I will most certainly be pursuing a career which requires my use of neither.
BU Engineering 2012
Back to Top
Mack View Drop Down
Moderator Group
Moderator Group
Avatar
Has no impulse! control

Joined: 13 January 2004
Location: 2nd Circle
Status: Offline
Points: 9906
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mack Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2010 at 3:41pm
^^^ In that case . . .



. . . I do want fries with that.  Big smile
Back to Top
brihard View Drop Down
Platinum Member
Platinum Member
Avatar
Strike 1 - Making stuff up

Joined: 05 September 2004
Location: Canada
Status: Offline
Points: 10155
Post Options Post Options   Thanks (0) Thanks(0)   Quote brihard Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2010 at 4:35pm
Originally posted by usafpilot07 usafpilot07 wrote:

We get it, you virgin.


Zzzzzzzing!
"Abortion is not "choice" in America. It is forced and the democrats are behind it, with the goal of eugenics at its foundation."

-FreeEnterprise, 21 April 2011.

Yup, he actually said that.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.313 seconds.