필터 지우기
필터 지우기

Initial values in nlinfit or fitnlm

조회 수: 16 (최근 30일)
wesleynotwise
wesleynotwise 2017년 6월 26일
댓글: Priya Goel 2020년 8월 22일
I am trying to run a non-linear multiple variable model in Matlab. The model has about 20 coefficients. I have been using 1s as my initial values in developing the model, and my model has an acceptable R2 value and good residual plots. However, I am not sure if the generated coefficients are sensitive to the initial values that were assigned by me.
This begs the question of whether one can check if the generated coefficient values are highly sensitive to the assigned initial values? Or one should do it manually, ie test the model with different set of initial values and compare the RMSE of the model?

채택된 답변

Star Strider
Star Strider 2017년 6월 26일
A model with 20 parameters is likely going to be a challenge. If you have any doubts — and if you have the Global Optimization Toolbox — use the patternsearch (link) function to find the best parameter set. Another option is the genetic algorithm, the Global Optimization Toolbox ga (link) function.
I would also use the coefCI (link) function to determine if any of the confidence intervals for the coefficients (parameters) include zero, i.e. have opposite signs. If they do, they are not required for the model, since they are not statistically different from zero. This can help you ‘trim’ your model.
  댓글 수: 22
Star Strider
Star Strider 2020년 8월 21일
This should be a new Question.
It does not directly relate to the current thread. I am not going to respond to it further here.
Priya Goel
Priya Goel 2020년 8월 22일
Yes. I am also of the opinion that it is deviation from the original topic.
Anyways, Thank you for your valuable time and inputs. These are very helpful for beginners (like me). You clarify doubts which otherwise remain unanswered for months.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Direct Search에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by