I am looking for a way that could help me create more precise models.
Let's say these are real estate prices for different areas. Only in the data I do not have a clear division into these areas I suppose this is the relationship.
At present I have one model (red line) and I would like to have n models, eg 3. Additional two green lines. And use them for points that are closer to this line.
How convenient to go about it?
What measure should be used to divide this data and apply linear regression so that the variance is as low as possible?
May I have some inspiration :)?