linear vs nonlinear regression model
显示 更早的评论
This is a question in Mathworktutorial of Machine learning. I do think it is wrong!
Quiz (Select two) :Which of these is not a linear regression model? please say your reasons for all of them .
A) y = a + bx + cx^2
B) y = ax1 + bx2 + cx3
C) y = ax1x2 + bx2x3 + cx1x3
D) y = a + bsin(x1) + csin(x2)
E) y = a + bsin(cx)
F) y = a + bx + x ^c
the answer is y = a + bsin(cx) and y = a + bx + x ^c ( why y = a + bx + cx^2 and y = a + bsin(x1) + csin(x2) are not not non-linear?
1 个评论
John D'Errico
2023-6-23
编辑:John D'Errico
2023-6-23
y = a*x^2
is LINEAR in a. It is nonlinear in x. But that is not relevant to the question.
采纳的回答
更多回答(1 个)
the cyclist
2023-6-23
2 个投票
Whether a model is linear or not refers to the coefficients being solved for (a, b, c), not the data (x, x1, x2).
3 个评论
Mohammadreza
2023-6-24
the cyclist
2023-6-24
You can of course think that's how it is, or how it should be. But that is not how experts refer to it. (This is a common misunderstanding that people new to mathematical modeling have.)
See, for example, the Linear regression models section of the Linear Model wikipedia page. It explicitly states that the function of the independent variables can be nonlinear.
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Predictive Coding 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!