+ Reply to Thread
Results 1 to 9 of 9

Quadratic Coefficients

  1. #1
    Registered User
    Join Date
    07-18-2011
    Location
    Aberdeen
    MS-Off Ver
    Excel 2003
    Posts
    2

    Quadratic Coefficients

    I have a series of x and y values for which I am trying to find quadratic coefficients for the equation.

    I can get these values off the trendline if I plot a graph, however I want to get them via an equation so I can use them in other equations. This way the input information can be changed and still give equation coefficients without having to take them off a graph.

    How do I do this? I can't find any function on excel what will do it. If it can't does anyone know a method I can use to calculate these?

    Regards

    Ian

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,747

    Re: Quadratic Coefficients

    Excel can provide coefficients for a linear regression, but not quadratic. I think you can use the same feature to do quadratic regression but you have to set your data up a little differently. I'm a little rusty on this but might be able to help if you attach your workbook and explain your data.

    You need to have the Data Analysis Toolpak installed, which comes with Excel 2003 but you may not have installed it.

    Go to Tools, Data Analysis..., and select Regression. Enter your parameters, and select "New Worksheet Ply:" The feature will dump the resulting parameters of the regression in that location, including x coefficient and b.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    07-18-2011
    Location
    Aberdeen
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Quadratic Coefficients

    Thats very helpful. Thank you.

    Ian

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

    Re: Quadratic Coefficients

    I prefer to use the LINEST function. Something like =LINEST(known_y's,known_x's^{1,2})

  5. #5
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: Quadratic Coefficients

    Hi,

    You can extract quadratic constants without the analysis toolpack.

    The following, entered as arrays (CTRL, SHIFT and ENTER) will give a, b, and c respectively.


    =INDEX(LINEST(known_ys,known_xs^{1,2}),1)
    =INDEX(LINEST(known_ys,known_xs^{1,2}),2)
    =INDEX(LINEST(known_ys,known_xs^{1,2}),3)

    eg

    =INDEX(LINEST(E1:E10,A1:A10^{1,2},1)
    =INDEX(LINEST(E1:E10,A1:A10^{1,2},2)
    =INDEX(LINEST(E1:E10,A1:A10^{1,2},3)
    Attached Files Attached Files
    Last edited by sweep; 07-18-2011 at 10:48 AM.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  6. #6
    Registered User
    Join Date
    03-31-2022
    Location
    North Providence, USA
    MS-Off Ver
    Office 365
    Posts
    6

    Re: Quadratic Coefficients

    Hi,

    This works when the data is arranged in columns, but I need it to work with data arranged in rows. See attached file: Column vs. Row.xlsx

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,747

    Re: Quadratic Coefficients

    Quote Originally Posted by Jeffrey.Eisele View Post
    This works when the data is arranged in columns, but I need it to work with data arranged in rows. See attached file: Column vs. Row.xlsx
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however while you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original. Also note that this thread is 10 years old.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

  8. #8
    Registered User
    Join Date
    05-07-2022
    Location
    Batangas, Philippines
    MS-Off Ver
    Office 365
    Posts
    1

    Re: Quadratic Coefficients

    Hi, sweep,

    Thank you very much for this. I've been looking everywhere at how to compute a, b, and c by just using simple formulas like these.

    Can you also show how to compute the r-squared from the quadratic equation? (by just using a simple excel formula)

  9. #9
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,747

    Re: Quadratic Coefficients

    Quote Originally Posted by Ino View Post
    Can you also show
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

+ 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