I\'m using Python and Numpy to calculate a best fit polynomial of arbitrary degree. I pass a list of x values, y values, and the degree of the polynomial I want to fit (lin
The wikipedia article on r-squareds suggests that it may be used for general model fitting rather than just linear regression.