How to choose the right model for Non-linear regression?

조회 수: 2 (최근 30일)
Selim Sheta
Selim Sheta 2020년 8월 22일
답변: Ayush Gupta 2020년 8월 26일
Hi, I'm trying to use fitnlm to create a model from 7 predictor variables and 1 response variable. If I understand correctly, I need to use something like
mdl = fitnlm(predictors,responses,@modelfun,beta0).
I'm struggling to find which model (@modelfun) is appropriate for my data. how do I see which pre-built models are available? Is there a list of them somewhere?
  댓글 수: 4
Image Analyst
Image Analyst 2020년 8월 23일
Try running pca() on it, or use partial least squares, to decide upon an intelligent model. You're just using the kitchen sink approach or multiple least squares where you throw in everything plus the kitchen sink. It may fit your training data will but might not fit your test data well.
Adam Danz
Adam Danz 2020년 8월 23일
편집: Adam Danz 2020년 8월 23일
This answer by the talented John D'Errico walks you through his process of assessing the underlying function of noisy data, although the function in that answer is different from yours.
The curve fitting toolbox may also come in handy while exploring different functions.
Just be cautious of overfitting (as Image Analyst mentioned) and correlated predictors (multicollinearity).
These two pages in Matlab's Documentation may be helpful as well,

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

답변 (1개)

Ayush Gupta
Ayush Gupta 2020년 8월 26일
The Curve fitting toolbox can be used for this purpose. The documentation for the toolbox can be accessed by clicking here. Alternatively, there are some examples demonstrating the use of this which can be accessed here.

카테고리

Help CenterFile Exchange에서 Model Building and Assessment에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by