When we fit a linear reg model, do we get a straight line equation? So, it means there is no way we can get a curved line from it. Then why in some examples over internet we see curved line for linear regression examples?
1st image is quantile regression fit on 3 quantiles and 2nd image is again quantile regression model fit on 3 quantile but 1st one is non linear and second one is linear.
Please provide some explanation on both the points.
Thanks for the first comment, now its pretty clear: In linear regression when we have linearity in parameters and variables both then we get a straight line. ex- $Y =a + bx$ but when we have linearity in parameter but not in variable then we get a curved line.
$$Y = a+bx+cx^2 $$
Both are linear regression but model lines looks different. Generalized additive algo is linear in terms of parameter but not in variable, thats is why it is capable of fitting non linear curve with similar level of interpretability like linear regression.