I have a big data set about 10,000 points of 3 independent variables. I am fitting with NonlinearModelFit command. After this, I specified 3 values for three variables to model fit and it gave me a value (say 0.18).
Now, I repeat the test by taking the coefficients separately and using them in the analytical function for which I found the same using the above command. But now I get different value like 21.0.
I wonder how can it be?
The coefficients I get using fit["BestFitParameters"] where fit is the function I defined while fittting. Any help is appreciated.
Writting the polynomial and its internal polynomial is difficult as they are lengthy having 450 terms or so.
NonlinearModelFitwill find a local optimum for the fit in your parameter space. There may be different local optima, and dependend on how you setup the problem, you may find different optima. – TimRias Jun 12 '18 at 12:11