[Numpy-discussion] Line of best fit!

Alan G Isaac aisaac at american.edu
Tue Dec 9 09:30:05 EST 2008


On 12/8/2008 3:32 PM James apparently wrote:
> I have a very simple plot, and the lines join point to point, however i 
> would like to add a line of best fit now onto the chart, i am really new 
> to python etc, and didnt really understand those links!

See the `slope_intercept` method of the OLS class
at http://code.google.com/p/econpy/source/browse/trunk/pytrix/ls.py

Cheers,
Alan Isaac




More information about the NumPy-Discussion mailing list