+ Reply to Thread
Results 1 to 4 of 4

REGRESSION: R Squared with "Constant is Zero"

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    REGRESSION: R Squared with "Constant is Zero"

    The "R Square" in Tools > Data Analysis > Regression with "Constant is Zero" ticked gives a very different answer to the creation of an XY (Scatter) chart with an added linear trendline displaying the R squared and with the "intercept at zero" selected -- which is correct? If the "constant is zero" and "intercept at zero" are both unchecked, then both approaches give the same answer as would be expected.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: REGRESSION: R Squared with "Constant is Zero"

    It doesn't surprise me that they are different. There's an interesting paper on methods for regression through the origin ("RTO") at http://web.ist.utl.pt/~ist11038/comp...oughorigin.pdf
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,827

    Re: REGRESSION: R Squared with "Constant is Zero"

    I don't know all of the details, but I know that one of the criticisms of Excel (especially prior to 2003) involved the algorithms for the LINEST()/regression functions. One of the big problems is that it calculated r^2 incorrectly, especially for regressions where the constant is forced to be 0. It's long and detailed, but this is one of MS's discussions of the issue http://support.microsoft.com/kb/828533

    I know that a lot of hardcore statisticians say, "Friends don't let friends use Excel for statistics" and I believe this is part of the reason. Microsoft has not always been careful or thorough in how they program some of these statistical functions (maybe they are too busy designing "ribbons" and other fluff for Excel).

    As noted in the link, MS made changes for 2003 (your profile indicates 2003), so the algorithms may be better than what I have. If the two regression tools are giving different results, then there is obviously still some kind of problem in Excel. I would invite further research into this. Perhaps further search of the kowledgebase will yield additional discussion that either validates the algorithms MS uses, and/or shows where they are still weak. If you need your calculation of r2 to be "rigorously defensible" (for a publication maybe), then I might suggest cross checking Excel's calculation with a dedicated statistics package.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    05-31-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: REGRESSION: R Squared with "Constant is Zero"

    Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1