Why curve fitting options give two diffrent results

4 次查看(过去 30 天)
I am getting two different solutions and goodness of fitting on using same equation and fitting options in Curve fitting tool.
I am using two terms exponential fitting as a*exp(b*x)+c*exp(d*x) with nonlinear LeastSquare , LAR and Trust region algorithm. I am getting goodness of fit : SSE=902.8; RMSE= 1.456
Same equation if I use in custom equation with similar fit options, neither I get similar coefficient values nor similar goodness of fit:
SSE= 8.55 e+14 RMSE= 1.417e+06
Please let me know why it so??
  2 个评论
Matt J
Matt J 2013-7-8
I don't understand the difference between the two tests. If the equation is the same in both cases and the data is the same in both cases, and the fitting options are the same, then what did you do differently in each case?
Neeta
Neeta 2013-7-8
There is no difference in two tests except (1) I used exponential fitting option and (2) I have used custom equation option. I am surprised to see two different results.

请先登录,再进行评论。

采纳的回答

Shashank Prasanna
Your results will be sensitive to starting point. As long as you use the same equation and a close enough starting point you must get similar results.
Click on Fit Options and see what the bounds and starting point is for the exponential fitting, and use the same for your custom equation.
  1 个评论
Neeta
Neeta 2013-7-8
I understand initial guess (starting point) affects the convergence of the algorithm. However, when I use same starting point/s as I have used in exponential, custom equation option gives error as "inf computed model function, fitting cannot continue". I have also used similar maxfuncevals and maxIter. Lower and upper bounds are (-inf) and (inf).

请先登录,再进行评论。

更多回答(1 个)

Matt J
Matt J 2013-7-8
编辑:Matt J 2013-7-8
You might try using instead the custom equation
a*exp(b*x)+c*exp((b+d^2)*x)
This way, the two exponential terms can be distinguished by the solver.

类别

Help CenterFile Exchange 中查找有关 Interpolation 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by