[SciPy-user] 'linear regression'
david.grant at telus.net
Mon Jun 6 00:30:27 CDT 2005
This uses the Scientific.Functions.LeastSquares.leastSquaresFit function from
the Scientific python package:
Just call bestFitLine(x, y) with your data in x and y. It will return newy,
slope, intercept, chisquared as a tuple of size 4.
On June 3, 2005 02:21 am, Christian Meesters wrote:
> I'm wondering whether there is a tool in scipy which can do a line fit
> ('linear regression') fit for me. (Preferably something which can work
> with and without given error arrays in x and/or y.) Else I'd have to
> code it myself ...
> Well, I couldn't find such a function described in the manual: Could
> anyone pleas point it out to me where I can find this in scipy - in
> case it really exists?
> SciPy-user mailing list
> SciPy-user at scipy.net
David J. Grant
More information about the SciPy-user