필터 지우기
필터 지우기

Why curve fitting options give two diffrent results

조회 수: 4 (최근 30일)
Neeta
Neeta 2013년 7월 8일
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
Shashank Prasanna 2013년 7월 8일
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