Question about Least Squares Fitting

Click For Summary
SUMMARY

The discussion centers on fitting two linear least squares lines to a graph while minimizing combined residuals, specifically where the lines intersect. The recommended approach for this type of data analysis is "piecewise linear regression." This method allows for the modeling of data that exhibits different linear trends in different segments, effectively addressing the user's query about minimizing residuals in intersecting lines.

PREREQUISITES
  • Understanding of linear regression concepts
  • Familiarity with least squares fitting techniques
  • Knowledge of piecewise functions
  • Experience with statistical software or programming languages (e.g., Python, R) for regression analysis
NEXT STEPS
  • Research "piecewise linear regression" techniques and methodologies
  • Explore statistical software packages that support piecewise regression (e.g., R's 'segmented' package)
  • Learn about residual analysis and how to minimize them in regression models
  • Study examples of fitting multiple linear models to intersecting data sets
USEFUL FOR

Data analysts, statisticians, and researchers involved in regression analysis, particularly those working with datasets requiring piecewise modeling techniques.

bhr11
Messages
4
Reaction score
0
Hey,

Not sure if this is the right section to post this but ...

I have a graph for which I am supposed to fit two linear least squares line and minimize the combined residuals (the lines intersect)... I would really appreciate some info about how to do this or what this type of data analysis is called so i can google the step-by-step method.

Thanks!
 
Last edited:
Physics news on Phys.org
You haven't clearly described what you are trying to do. My guess is that you should search on the phrase "piecewise linear regression".
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
24
Views
3K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 5 ·
Replies
5
Views
9K
  • · Replies 4 ·
Replies
4
Views
2K