goodness_of_fit function

Goodness-of-fit, non-linear regression