+ Reply to Thread
Results 1 to 5 of 5

LINEST - Non-Zero Y-Interception

  1. #1
    Registered User
    Join Date
    10-02-2014
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    23

    LINEST - Non-Zero Y-Interception

    I'm wondering if it is possible to have a fixed constant (y-interception) in LINEST ()?

    If it does, where should I cast that magic spell in the function?

    Solved: See Post #2 by MrShorty
    Last edited by Wes-at-UoB; 06-01-2015 at 05:42 AM.

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

    Re: LINEST - Non-Zero Y-Interception

    It is not a built in option in the LINEST() function. You need to reformulate your regression equation, then feed that reformulated equation into LINEST(). It looks something like:

    1) normal regression equation for a straight line: y=m*x+b
    2) subtract b from both sides: y-b=m*x
    3) If needed to see how this works, substitute u=y-b: u=m*x

    It should be obvious that u is a straight line function through the origin. By inputting your desired intercept as b into the above equation, you can then create a regression that can go through whatever y intercept you specify.

    In Excel, since I am not like everyone else on these forums, I like to set this up with a helper column:
    Please Login or Register  to view this content.
    Then feed column C as the known_y's parameter and column A as the known_x's parameter of the LINEST() function, being sure to make the constant function FALSE.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    10-02-2014
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    23

    Re: LINEST - Non-Zero Y-Interception

    Oh MrShorty, first of all, thanks for introducing me the LINEST () function. It is very handy!

    I am doing polynomial regression, ie Y = aX^2 + bX + c, which I think it should work the same as your suggestion. Right?

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

    Re: LINEST - Non-Zero Y-Interception

    That is correct. And there may be other variations, too, for other conditions.

  5. #5
    Registered User
    Join Date
    10-02-2014
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    23

    Re: LINEST - Non-Zero Y-Interception



    Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Linest Function - Unable to get LinEst property of the WorksheetFunction class
    By fbs13 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-25-2013, 09:55 AM
  2. Linest
    By andyking1984 in forum Excel General
    Replies: 1
    Last Post: 10-19-2009, 03:03 PM
  3. Linest
    By soulwind in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2007, 03:48 PM
  4. line delete interception
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2006, 11:55 AM
  5. [SOLVED] Linest - Why did they do that?
    By cseeton in forum Excel General
    Replies: 2
    Last Post: 03-11-2005, 09:06 AM

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