[Numpy-discussion] Line of best fit!

Scott Sinclair scott.sinclair.za@gmail....
Mon Dec 8 06:47:05 CST 2008


> 2008/12/8 James <james@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