Question about Least Squares Fitting
- From: pixel_a_ted@xxxxxxxxx
- Date: Mon, 09 Jul 2007 16:58:53 -0700
A colleague showed me a plot of y vs. x data that he fit to a straight
line using linear least squares in Excel. It had a fairly low
correlation coefficient, about R^2 = 0.5. He wasn't quite happy with
the visual, qualitative fit of the straight line through his data
points. In particular there were some points at large x and y that the
straight line didn't go through. Not that it necessarily should have,
since there was a greater density of points at lower x and y.
Anyhow, he then did a fit of the same data points but plotting x vs.
y. The R^2 was similar. The straight line went a little differently
through the data, this time going through the extreme points that it
missed before. I noticed that if you inverted the y vs. x least
squares equation from the first fit to solve for x as a function of y,
the slope and intercept were somewhat different from what you got
directly from the fit of the x vs. y plot.
So we were wondering...If you consider just the data as points in
space and look at how the straight line goes through them, should you
expect a similar pattern if you just change the plot from y vs. x to x
vs. y. Is there something fundamental here about least squares
fitting, or is it an Excel thing?
Thanks.
.
- Follow-Ups:
- Re: Question about Least Squares Fitting
- From: pixel_a_ted
- Re: Question about Least Squares Fitting
- From: S.W.Christensen
- Re: Question about Least Squares Fitting
- From: user923005
- Re: Question about Least Squares Fitting
- From: mecej4
- Re: Question about Least Squares Fitting
- Prev by Date: Re: Fortran version of nleq1
- Next by Date: Re: Fortran version of nleq1
- Previous by thread: Re: ARPACK and Arnoldi process and no shifts could be applied
- Next by thread: Re: Question about Least Squares Fitting
- Index(es):
Relevant Pages
|