[Numpy-discussion] Line of best fit!

Scott Sinclair scott.sinclair.za at gmail.com
Mon Dec 8 07:47:05 EST 2008


> 2008/12/8 James <james at fmnmedia.co.uk>:
> I am trying to plot a line of best fit for some data i have, is there a
> simple way of doing it?

Hi James,

Take a look at:

http://www.scipy.org/Cookbook/FittingData
http://www.scipy.org/Cookbook/LinearRegression

and the section on least square fitting towards the end of this page
in the Scipy docs:

http://docs.scipy.org/doc/scipy/reference/tutorial/optimize.html

Post again if if these references don't get you going.

Cheers,
Scott



More information about the NumPy-Discussion mailing list