+ Reply to Thread
Results 1 to 3 of 3

Accuracy of LINEST (vs Matrix Calculations)

  1. #1
    Registered User
    Join Date
    05-18-2011
    Location
    New York, New York
    MS-Off Ver
    Excel 2007
    Posts
    1

    Accuracy of LINEST (vs Matrix Calculations)

    Hi,

    I am trying to code a program in VBA that will calculate the SSE for a set of response variables(Y values) and corresponding explanatory variables(Xs) - among many other things!

    Because I realized that LINEST has a max number of explanatory variables of only 17, I decided to use matrix multiplication to compute the values I needed.

    What I discovered while doing this was that there are some matrices that LINEST seemed to be able to get values for, but when I tried performing the calculations using matrices - the X'X matrix was not invertible

    So my question is - how can LINEST accurately calculate its output?

    Does this make sense?

    Thank you SO much for any help in advance

  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: Accuracy of LINEST (vs Matrix Calculations)

    How many variables?

    Can you post a workbook example?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-20-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Accuracy of LINEST (vs Matrix Calculations)

    Teresajf -
    If you are using Excel 2010, it supports many more columns in regression functions.

    Matrix inversion is not accurate if you have many columns due to problems of limited precision and collinearity. Excel uses the QR method instead to form an orthogonal basis for the regression columns, so that matrix inversion is not needed (see wikipedia for details). A related analysis was recently discussed here.

    HTH, Let me know if you need more details, Lori.
    Last edited by lori_m; 06-02-2011 at 04:10 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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