Re: Linear regression in 3 dimensions

2006-09-14 Thread David J. Braden
[EMAIL PROTECTED] wrote: > Hi Dave! > >> <> >> >> Hi Bernhard, >> I am just starting to learn Python; could you plz tell me specifically >> the introduction(s) you have in mind? >> >> TIA, >> DaveB > > Take a look at the documenation section on www.scipy.org. > > Especially the old NumPy documen

Re: Linear regression in 3 dimensions

2006-09-14 Thread [EMAIL PROTECTED]
Hi Dave! > <> > > Hi Bernhard, > I am just starting to learn Python; could you plz tell me specifically > the introduction(s) you have in mind? > > TIA, > DaveB Take a look at the documenation section on www.scipy.org. Especially the old NumPy documentation (follow link to NumPy tutorial) and th

Re: Linear regression in 3 dimensions

2006-09-13 Thread David J. Braden
Andrew McLean wrote: > Bernhard, > > Levenberg-Marquardt is a good solution when you want to solve a general > non-linear least-squares problem. As Robert said, the OPs problem is > linear and Robert's solution exploits that. Using LM here is unnecessary > and I suspect a fair bit less efficien

Re: Linear regression in 3 dimensions

2006-09-08 Thread Andrew McLean
Bernhard, Levenberg-Marquardt is a good solution when you want to solve a general non-linear least-squares problem. As Robert said, the OPs problem is linear and Robert's solution exploits that. Using LM here is unnecessary and I suspect a fair bit less efficient (i.e. slower). - Andrew [EMA

Re: Linear regression in 3 dimensions

2006-09-04 Thread [EMAIL PROTECTED]
Hi Robert, I'm using the scipy package for such problems. In the submodule scipy.optimize there is an implmentation of a least-square fitting algorithm (Levenberg-Marquardt) called leastsq. You have to define a function that computes the residuals between your model and the data points: import s

Re: Linear regression in 3 dimensions

2006-09-02 Thread John Machin
[EMAIL PROTECTED] wrote: > Hi all, > > I am seeking a module that will do the equivalent of linear regression in > 3D to yield a best fit a plane through a set of points (X1, Y1, Z1), (X1, > Y1, Z1),... (Xn, Yn, Zn). > > The resulting equation to be of the form: > > Z = aX + bY + c > > The functi

Re: Linear regression in 3 dimensions

2006-09-02 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Hi all, > > I am seeking a module that will do the equivalent of linear regression in > 3D to yield a best fit a plane through a set of points (X1, Y1, Z1), (X1, > Y1, Z1),... (Xn, Yn, Zn). > > The resulting equation to be of the form: > > Z = aX + bY + c > > The fun

Linear regression in 3 dimensions

2006-09-02 Thread wirecom
Hi all, I am seeking a module that will do the equivalent of linear regression in 3D to yield a best fit a plane through a set of points (X1, Y1, Z1), (X1, Y1, Z1),... (Xn, Yn, Zn). The resulting equation to be of the form: Z = aX + bY + c The function I need would take the set of points and r