Linear regression in 3 dimensions

John Machin sjmachin at lexicon.net
Sat Sep 2 03:26:44 EDT 2006


wirecom at wirelessmeasurement.com 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 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" ...




More information about the Python-list mailing list