Parameter estimation nlinfit vs. fitnlm
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
1 개 추천
Hi
I want to fit a nonlinear model using nonlinear regression function nlinfit or fitnlm.Is there a difference? which one is more robust for a difficult kinetic model?
It seems both use Levenberg-Marquardt algorithm ?
Thank You,
채택된 답변
Star Strider
2014년 5월 26일
1 개 추천
There is no real difference. Both nlinfit and fitnlm are Statistics Toolbox functions for nonlinear regression, and so use the same fundamental functions. The fitnlm function is a shell around nlinfit and its friends. The advantage to fitnlm is that it’s slightly easier to use, and delivers a few more statistics. The important results — parameter confidence intervals and confidence intervals on the fitted equation — are easy to get with either, but actually slightly easier with nlinfit, nlparci and nlpredci.
Experiment with both, and see which is most appropriate to your application.
Don’t neglect lsqcurvefit if you have access to it (Optimization Toolbox). It can do two things that the Statistics Toolbox functions cannot: (1) accept bounds on the parameters, and (2) fit matrix dependent variables. It doesn’t have access to all the statistics the Statistics Toolbox functions do, but it definitely has its uses.
댓글 수: 7
Nath
2014년 5월 26일
Thank you! So based on what you said lsqnonlin or lsqcurvefit seem to be more suitable for me but one more question here: if my objective model is in the form :
(X(measured)-X(predicted)^2 and the parameters that I want to estimate is not explicitly shown in X(predicted), but shown in another function that evaluates the X(predicted); would this be an acceptable input for lsqnonlin or lsqcurvfit?
Star Strider
2014년 5월 26일
My pleasure!
All the nonlinear solvers ( nlinfit, lsqcurvefit ) incorporate the objective function, so you only need to provide them with your model function, independent and dependent variable data, and whatever other options you may find necessary. Read up on the various options functions and structures for the various solvers. The options structures allow you to vary tolerances, number of function evaluations, iterations, and other characteristics.
So, is there no way to put lower and upper bound with fitnlm? I need to use this function, instead lsqnonlin, because I have more statistics. How could I add my bounds? Thank you
Star Strider
2017년 9월 22일
The Statistics and Machine Learning Toolbox function fitnlm does not permit parameter constraints (at least in R2017b and prior versions). You must use the Optimization Toolbox lsqcurvefit function (or similar functions) for bounded parameters. Parameter confidence intervals, and other such statistics on models with bounded parameters, are likely not reliable. I am not certain it is even possible to calculate them.
Oh, ok. Thank you!
Star Strider
2017년 9월 25일
My pleasure!
Ho Nam Ernest Yim
2018년 4월 3일
편집: Ho Nam Ernest Yim
2018년 4월 3일
Hi, can I know other than lsqcurvefit (same as lsqnonlin ?) and nlinfit. Are there any other suggestions on fitting a nonlinear data ? Mainly, I would like to compare how well different methods could do. Many Thanks
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 PID Controller Tuning에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
