How to choose the right model for Non-linear regression?
5 次查看(过去 30 天)
显示 更早的评论
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
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
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.
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model Building and Assessment 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!