MATLAB Answers

Bi-linear Regression- Model fitting

58 ビュー (過去 30 日間)
saed
saed 2014 年 8 月 12 日
回答済み: Image Analyst 2021 年 1 月 18 日
Hi every body I simply have a response variable (y) that I am trying to predict with one explanatory variable (x) but the shape of the scatter plot is distinctly bi-linear. It would be best described by two straight lines. Is there a way of fitting a linear model to give me a bi-linear fit? Is there any command in Matlab for this kind of regression?

  0 件のコメント

サインインしてコメントする。

回答 (3 件)

Ahmet Cecen
Ahmet Cecen 2014 年 8 月 12 日
That sounds like a problem that would be better solved with a clustering or classification tool rather than regression. If you really need the individual lines, I would first do a classification run followed by linear regression.

  0 件のコメント

サインインしてコメントする。


Ameer Hamza
Ameer Hamza 2021 年 1 月 18 日
bisection method

  0 件のコメント

サインインしてコメントする。


Image Analyst
Image Analyst 2021 年 1 月 18 日
See attached demo, that I've posted many, many times before. The algorithm is I divide the data into two sections (left and right) and fit lines to each section. Then I find the point where the slope difference is greatest. This is where the data should be split.

  0 件のコメント

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by