How do I calculate r-squared using Python and Numpy?

后端 未结 11 1901
春和景丽
春和景丽 2020-11-28 19:29

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

11条回答
  •  囚心锁ツ
    2020-11-28 20:25

    The wikipedia article on r-squareds suggests that it may be used for general model fitting rather than just linear regression.

提交回复
热议问题