Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linear regression

Status
Not open for further replies.

johnv20

Programmer
Sep 26, 2001
292
0
0
US
Hi,

does anyone have a code example (or even just the equation used) to perform simple linear regression on a dataset where the output Y = M1X1 + M2X2 + C

Searching the web shows loads of calculators which will do this for you but not one example of the equation used to solve it

 
Why does this sound suspiciously like homework - actually, a bit tricky for homework - probably coursework.

I'm really supprised it's so hard to find a library to do LR for you, but then... it's not the simplest of things to get a PC to do.

Write your own then post a link to it here. I'm sure everyone will thank you :) Oh, and I'll look later on this evening and see if I can find one.

Good luck!


Yet another unchecked rambling brought to you by:
Oddball
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top