+ Reply to Thread
Results 1 to 3 of 3

I don't think Excel gave me the right trendline equation.

  1. #1
    Registered User
    Join Date
    08-12-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question I don't think Excel gave me the right trendline equation.

    I was plotting the data below for a report:

    Angle Current

    46, 3.1700E-02
    48, 2.5225E-02
    50, 1.7300E-02
    52, 1.1750E-02
    54, 4.7000E-03
    56, 3.4500E-03
    58, 4.1500E-03
    60, 7.9000E-03
    62, 9.1500E-03
    64, 3.6750E-02
    66, 6.3625E-02

    The data is non-linear and I needed to estimate the minimum of the function for the calculations I am doing. The plan was that I use a high-order polynomial approximation and take it's equation. I would take the first derivative of the equation and solve for all the minimum.

    But here's the problem. I plotted the data and took a 5th order polynomial approximation. The equation that Excel gave me was
    y = 9E-08x5 - 2E-05x4 + 0.0024x3 - 0.127x2 + 3.3615x - 35.455

    It seemed a little fishy so I decided to take it to WolframAlpha: WolframAlpha Plot

    The graph of the trendline and the graph on WolframAlpha look nothing alike (the y-values on each are orders of magnitude different). Did Excel give me the wrong equation?

    Please refer to the attached workbook. I am referring to the graph on the second sheet. (The sheet is called 'Part B') The columns of data are highlighted in yellow.

    Thanks for any help!
    Attached Files Attached Files

  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: I don't think Excel gave me the right trendline equation.

    You're not using sufficient precision in the coefficients.

    Please Login or Register  to view this content.
    The array formula* in J2:O2 is

    =LINEST(F2:F12, A2:A12^{1,2,3,4,5})

    The reconstruction formula in H2 and copied down is

    =SERIESSUM(A2, 5, -1, $J$2:$N$2) + $O$2

    That looks like a pretty good fit to col F.


    * Select all cells, paste the formula in the formula bar, press and hold the Ctrl and Shift keys, then press Enter.
    Last edited by shg; 08-12-2012 at 05:39 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-12-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: I don't think Excel gave me the right trendline equation.

    Thank you for your reply. This worked out very well.

    New WolframAlpha Plot

+ 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