4

I am using the least_squares function from scipy http://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.least_squares.html to fit a model to some data that I took, and obtain a value for the parameters in the model. I would like to also get a chi squared value for the model. Is there a simple way to do this?

PiccolMan
  • 4,854
  • 12
  • 35
  • 53
  • 1
    I think this might help: http://stackoverflow.com/questions/14854339/in-scipy-how-and-why-does-curve-fit-calculate-the-covariance-of-the-parameter-es/17508924#17508924 – DilithiumMatrix Aug 15 '16 at 17:50

0 Answers0