Hello, I have encountered a problem in mathematica... I am trying to evaluate the "goodness" of a fit. I have a set of data points, and I have a function with NO free parameters and I need to obtain a chi^2 statistic for the function- does anyone have suggestions on how to do this? (I can do this no problem if there is a free parameter in the equation using NonlinearModelFit and then taking the estimated variance, however I am having troubles when there are no free parameters.)
Right now, I am using NonlinearModelFit and just giving it a free parameter that doesn't actually appear in the equation. I am not very pleased with this solution, but I am having trouble finding a better function.