+ Reply to Thread
Results 1 to 8 of 8

Trendline and equation doesnot match

  1. #1
    Registered User
    Join Date
    11-11-2014
    Location
    King of Prussia, PA
    MS-Off Ver
    2007
    Posts
    4

    Trendline and equation doesnot match

    Hi,

    I am working on chart trendline with the following data.
    y x
    85 30
    105 38.8
    110 40.1
    135 56.1
    155 74.4
    180 103.6
    185 108.5
    190 130.7
    195 132.4
    The equation is a polynomial with an order of 4.
    I use 10 decimal for precision, and the equation comes out as:
    y = 0.0305944056x4 - 0.9780497281x3 + 8.5941142191x2 - 8.7305749811x + 88.3333333344
    Rē = 0.9897505143

    Plug in x=45 into the equation, I got a Y for more than 53000, which from the trendline it should be around 130. I started with 4 decimal places, the Y was more than 54000; increase to 10 decimal places, Y is now more than 53000. Still way off the 130.

    Anyone has any good solution?

    Thanks for any help.

  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: Trendline and equation doesnot match

    It's customary to put the independent variable on the left:

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    x
    y
    2
    30.0
    85
    -1.965E-06
    6.904E-04
    -9.402E-02
    6.736E+00
    -4.953E+01
    D2:H2: {=LINEST(B2:B10, A2:A10^{1,2,3,4})}
    3
    38.8
    105
    4
    40.1
    110
    x
    y
    5
    56.1
    135
    45
    118.0
    H5: =SERIESSUM(G5, 4, -1, $D$2:$G$2) + $H$2
    6
    74.4
    155
    7
    103.6
    180
    8
    108.5
    185
    9
    130.7
    190
    10
    132.4
    195


    The LINEST formula is an array formula; you need to select all of the cells (D2:H2 here), paste the formula in the formula bar, press and hold the Ctrl and Shift keys, then press Enter. That will make the curly braces appear. You can't enter them manually.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-11-2014
    Location
    King of Prussia, PA
    MS-Off Ver
    2007
    Posts
    4

    Re: Trendline and equation doesnot match

    Thanks, Shg.

    I paste the formula "=LINEST(B2:B10, A2:A10^{1,2,3,4})" into each of cells D2:H2, and press ctrl+shift+enter. However, I got all D2:H2 as -1.965E-06.
    Which part am I doing it wrong?

  4. #4
    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: Trendline and equation doesnot match

    Not into EACH, into ALL

    select all of the cells (D2:H2 here), paste the formula in the formula bar, press and hold the Ctrl and Shift keys, then press Enter.
    Last edited by shg; 11-11-2014 at 08:58 PM.

  5. #5
    Registered User
    Join Date
    11-11-2014
    Location
    King of Prussia, PA
    MS-Off Ver
    2007
    Posts
    4

    Re: Trendline and equation doesnot match

    Thanks, shg. I got it corrected.
    Thank you a lot for your help.

  6. #6
    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: Trendline and equation doesnot match

    You're welcome.

  7. #7
    Registered User
    Join Date
    11-11-2014
    Location
    King of Prussia, PA
    MS-Off Ver
    2007
    Posts
    4

    Re: Trendline and equation doesnot match

    shg, sorry to trouble you again.
    I am still working on the same set of data, but i added two more actual data points.
    x y
    0 0
    188.3 220
    Now I figured that a log function will be the best fit. How is the array function for log works?
    My current log array formula is D4:N4: {=LOGEST(B2:B12,A2:A12,TRUE,FALSE)}.

    Thank you again for your help.

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

    Re: Trendline and equation doesnot match

    I'm not certain exactly what your question is. Does this information help: https://support.office.com/en-us/art...b-a272c1d18b4b

    Note that LOGEST() fits to the equation y=b*m^x rather than the more common b*e^(mx) that many expect.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. Replies: 2
    Last Post: 11-03-2014, 08:04 PM
  2. 3d trendline/equation?
    By Hambone70 in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 05-22-2014, 08:35 AM
  3. Trendline equation in use.
    By Martin Ulice in forum Excel General
    Replies: 1
    Last Post: 06-12-2012, 03:48 PM
  4. Replies: 3
    Last Post: 03-06-2011, 01:38 PM
  5. Excel graphed trendline does not match derived equation
    By Keith in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-13-2006, 04:20 PM

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