While my conclusion from BOS's example is opposite to what BOS concluded
(i.e. I still maintain that the chart polynomial trendline is superior to
LINEST in Excel versions prior to 2007), the example itself turns out to be
extremely interesting numerically in Excel 2003. I would be very interested
in knowing what Excel 2007 does with it.
MS has documented a patch
http://support.microsoft.com/kb/887964
that seems to fix previous LINEST 2003 errors where coefficients were
incorrectly zero but standard errors were not. It appears that this patch
also excessively tightens a singularity test, so that different coefficients
AND their standard errors are now incorrectly zero.
In Excel 2003, LINEST Without the patch calculates correct coefficients for
the ill-conditioned 6th degree polynomial with data given at
http://groups.google.com/group/microsoft.public.excel/msg/969a2bb33e6cdbb8
With the patch, LINEST zeros the linear coefficient and its standard error.
If I manually construct an orthogonal basis for the 6th degree polynomial,
LINEST without the patch zeros coefficients (but not their standard errors)
for powers 3 through 5.
With the patch, LINEST correctly handles all coefficients and standard
errors from the orthogonal basis, yielding t-tests that agree with those from
summary(lm(y~poly(x,6)) in S-PLUS and R.
Although the present problem is much less ill-conditioned, LINEST 2003 zeros
the cubic coefficient and its standard error with or without the patch.
If I manually construct an orthogonal basis for the 6th degree polynomial,
LINEST without the patch zeros all coefficients except the intercept and
zeros the standard error for the 6th power term.
With the patch, LINEST correctly handles all coefficients and standard
errors from the orthogonal basis, yielding t-tests that agree with those from
summary(lm(y~poly(x,6)) in S-PLUS and R.
In summary, LINEST in 2003 is still not to be trusted when it returns
coefficients of exactly zero. It remains to be seen whether LINEST in 2007
is any better.
Jerry
Jerry W. Lewis said:
I am not clear about your example; what model did you fit to this data, what
results did you get, and why did you think that LINEST gave you more accurate
results than the chart trendline?
When I fit this data with a polynomial of degree 3 or less in Excel 2003,
LINEST and the chart trendline agree sufficiently that it did not seem worth
determining which was more accurate. In your earlier note, you mentioned a
6th degree polynomial, which I would hesitate to fit to this data since it
has such a narrow range of x -values. Ignoring those misgivings, I found
that for a 6th degree polynomial LINEST gave 0 correct figures for every
coefficient, while the chart trendline gave approximately 10 correct figures
for each of the 7 coefficients.
Jerry
....