Interesting (?) Property of Least Square Line Fit to Evenly-Spaced Data.
- From: "Larry Curcio" <lcurcio@xxxxxxxxxxx>
- Date: Fri, 06 Oct 2006 15:56:14 GMT
This probably isn't new or particularly noteworthy. I mention it
only because it recently occurred to me while I was detrending
(not by least squares) television audience time series data.
Consider a straight line, fit by OLS, to a sequence of evenly-spaced
points, where the Y values have a deterministic linear or nonlinear
functional relationship with the X values. The data may have noise of
uniform variance or they may be noiseless.
The definite integral of the least squares line over its range of X values
should be approximately equal to the definite integral of the function
over the same range. This is true even if the underlying functional
relationship is nonlinear, and thus even if the residuals are not randomly
distributed about the line.
Consider a noiseless sequence for a moment. The areas between line and
function above and below the line should be approximately equal, because
the sum of the residuals is zero and the data are equally spaced. The
definite integral of the function should be
I(Function) = I(Line) +AreaAboveLine - AreaBelowLine ~= I(Line)
Adding noise of uniform variance with an expected value of zero should not
alter the approximate relationship.
Results from examples are variable. Unsurprisingly, the accuracy of the
relationship turns out to be better for functions that are themselves
symmetric
about the line, but it still works roughly for very asymmetric functions.
For single variables, there are much better methods. Thought it might work,
in
the multivariate case with first-order interactions.In that context, it
could be
convenient at times.
Regards,
Larry C.
.
- Follow-Ups:
- Prev by Date: 4 parameter beta equivalence
- Next by Date: Re: 4 parameter beta equivalence
- Previous by thread: 4 parameter beta equivalence
- Next by thread: Re: Interesting (?) Property of Least Square Line Fit to Evenly-Spaced Data.
- Index(es):
Relevant Pages
|