title: Python curve_fit multiple functions goodness of fit
body: <p>I'm working on a Python program to fit a curve to some resonance data. I am using SciPy curve_fit to calculate curve from a function but I am using a combination of Gaussian and Lorentzian curves. I am calculating the error in the parameters and the least squares for each combination but I am looking for a way to test the goodness of fit to find which combination is the best.  </p>
  
  <p>Does anyone know the best way to do this?</p>