Linear regression in 3 dimensions

W

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 return a,c & c Any
pointers to existing code / modules would be very helpful.

Many thanks,
JAZZ
 
J

John Machin

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 return a,c & c Any
pointers to existing code / modules would be very helpful.

You don't mention what you found lacking in the several possibilities
thrown up by googling "linear regression python" ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top