+ Reply to Thread
Results 1 to 3 of 3

How to find the gradient and intersection in a log-log plot?

  1. #1
    Registered User
    Join Date
    04-09-2016
    Location
    Norway
    MS-Off Ver
    2013
    Posts
    5

    How to find the gradient and intersection in a log-log plot?

    Hi. I want to find the gradient and intersection point of a log-log plot.
    I have the following data:
    a=[51.2;69.5;94.5;128.5]
    b=[12.12;11.12;10.21;9.34]

    I then plotted a vs. b in a log-log plot. I want to find the gradient in the log-log plot and the intersection point where x=0. I can do this without using the graph itself by using the following excel-formula:
    SLOPE(LOG(F15:F18);LOG(E15:E18)). Then I got -0.28 as the gradient. The expression for the trendline: y=-0.2.896*ln(x)+23.397. There I got the point where it crosses the y-axis. But I do not get the gradient and the point where the line crosses the y-axis? Does anyone know how I can do it graphically by using "least-squares" method?

    Regards,
    David
    Last edited by DVAA; 04-13-2016 at 08:24 AM.

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,436

    Re: How to find the gradient and intersection in a log-log plot?

    Does anyone know how I can do it graphically by using "least-squares" method?
    What is your question here? Performing a regression "graphically by using "least-squares" method" would be by charting the data on an XY scatter plot and adding a trendline, which it sounds like you have already done. I tend to prefer using the LINEST() equation to perform these linear regressions, but the SLOPE() and INTERCEPT() functions can work just fine as well.

    I also sense some confusion about equations (not necessarily Excel questions), that maybe are the real questions you are asking.
    For a power trendline (a straight line on a log-log plot), I get y=(10^1.5667)*x^-0.2863 or y=exp(3.608)*x^-0.2863 depending on whether I use common log or natural log.
    For the logarithmic trendline you describe, I get y=-6.9423*log(x)+23.950 or y=-3.015*ln(x)+23.950.
    So I think the first question might be -- what regression equation are you trying to use -- a power trendline (straight line on a log log plot) or a logarithmic trendline (which would be a straightline on a semi-log plot)?

    Gradient should be straightforward, if you remember your calculus. Use calculus to derive the desired expression for the gradient, then enter that formula into Excel.

    Intercepts might be tricky, in part because 0 is a problematic value for these equations.
    For these power trendlines, y and x can never be 0 (assuming real numbers). ln(y) and ln(x) can be 0 [y=1 or x=1], so you can find these "intercepts", and that should be simple algebra.
    For the logarithmic trendline, y can be 0, and should be easily solved for algebraically. x, however, cannot be 0.
    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
    04-09-2016
    Location
    Norway
    MS-Off Ver
    2013
    Posts
    5

    Re: How to find the gradient and intersection in a log-log plot?

    A power trendline was exactly what I was looking for, and the linest worked very well. Thank you very 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. Replies: 2
    Last Post: 07-11-2015, 09:16 PM
  2. How to find point of intersection of 2 graphs
    By hellmett in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-11-2012, 11:00 AM
  3. Plot Values at Points of Intersection (x, y1, y2)
    By AlvaroSiza in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-14-2012, 04:20 PM
  4. How do I find a value at the intersection of a column and a row?
    By brianalucas in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-01-2010, 08:02 PM
  5. Find two cells then return value at intersection.
    By Yappa in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-28-2008, 12:32 AM
  6. find a value at an intersection?
    By Ellen G. in forum Excel General
    Replies: 4
    Last Post: 06-29-2006, 03:40 AM
  7. [SOLVED] How To Find The Gradient Of A Graph
    By djsquirrel in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-25-2005, 01:59 PM

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