Re: LINEST Issue - forced crossing zero R2 is wrong?
- From: Jerry W. Lewis <post_a_reply@xxxxxxxxxxxxx>
- Date: Fri, 13 Mar 2009 07:44:01 -0700
To clarify, in Excel 2003 with intercept forced to zero
LINEST is correct
ATP regression tool is correct except for adjusted R2, which should be
1-(1-R2)*n/(n-p)
where p is the number of parameters in the model (1 for simple linear
regression with no intercept). ATP incorrectly uses 1-(1-R2)*(n-1)/(n-1-p)
The chart trendline R2 is wrong.
Jerry
"Mike Middleton" wrote:
Tom -.
This problem persists in Excel 2003 and 2007. See Case 3 in the Microsoft
Knowledge Base article 214230 "Incorrect output is returned when you use the
Linear Regression (LINEST) function in Excel"
http://support.microsoft.com/kb/214230
- Mike
http://www.MikeMiddleton.com
<tommoulds@xxxxxxxxx> wrote in message
news:02de0b45-5396-41c6-bc04-36c9f2580ada@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi
I am having real trouble with some simple linear regressions in
Excel. I would be excellent if someone could help.
I have various sets of data (one independent variable) that I am
trying to calculate R-squared for, with the Y intercept forced to 0
and without. When i dont have the intercept forced through zero all
my results seem to be acceptable. When I force crossing zero all my R-
squared values are very near 1. I would expect them to all get
slightly worse (most of the data is positively linearly correlated.)
For example for one set of data I get 0.522 for my R-Squared from
Linest with const as true (not forcing zero.) When I change the const
to zero (force through zero) I get 0.984. This is clearly wrong. I
think it should be about 0.49.
Has anyone else seen this? I am aware that the regression stats on
graphs in excel are incorrect but I though LINEST was ok. I am using
Excel 2003.
Thanks
Tom
- References:
- LINEST Issue - forced crossing zero R2 is wrong?
- From: tommoulds
- Re: LINEST Issue - forced crossing zero R2 is wrong?
- From: Mike Middleton
- LINEST Issue - forced crossing zero R2 is wrong?
- Prev by Date: Re: XLM - some functions do nothing when used via defined name?
- Next by Date: Re: Center of Mass
- Previous by thread: Re: LINEST Issue - forced crossing zero R2 is wrong?
- Next by thread: RE: LINEST Issue - forced crossing zero R2 is wrong?
- Index(es):
Relevant Pages
|