+ Reply to Thread
Results 1 to 5 of 5

equation of a line

  1. #1
    Registered User
    Join Date
    12-10-2007
    Posts
    2

    equation of a line

    i have a plot of data on a logarithmic scale for the x-axis. I want to find the equation of the line which goes through all of the points.

    I tried to put a trendline through the points to get a similar line and then use the equation of the lone from that but it has proved too difficult to manage.

    I am wondering if there is any way of obtaining the equation of the line without adding a trendline and asking for the equation to be displayed?

  2. #2
    Registered User
    Join Date
    11-26-2007
    Posts
    23
    this might help:

    try going to tools->data analysis

    then pick regression, highlight your data and click ok

    a new sheet should open that shows results and u can pick out coefficients for your equation here...

    but:

    1)u have to have this data analysis toolpak installed or "data analysis" wont even show up in the tools menu (if u have the cd you can install it quickly)

    2)im not sure if this runs only a linear regression or if log,exp etc is possible....
    take care

  3. #3
    Registered User
    Join Date
    12-10-2007
    Posts
    2
    i've managed to get the data analysis analysis toolpak to work and produce data and coefficients on the regression, however i am unsure of what coefficients to use to get my equation for the line?

    i think it may only be a linear regression that is available but i am unsure...

    thanks

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    What I've done in the past is set up (on a spreadsheet)
    Column A, x values
    Column B, ln x values
    Column C, y values
    Then in any cell
    =SLOPE(known y's, known x's (use ln x))
    another cell
    =INTERCEPT(known y's, known x's)
    and lastly (to check your linearity)
    =CORREL(y's, x's)

    Then just use y =Slope * x + Intercept to calculate any y value

    ChemistB

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    If you want an exponential fit, use LOGEST to get the parameters of the curve, and GROWTH to interpolate or extrapolate.

+ 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