+ Reply to Thread
Results 1 to 10 of 10

Compare the degree slope of trendlines

  1. #1
    Registered User
    Join Date
    12-02-2014
    Location
    Austin, Texas
    MS-Off Ver
    2016
    Posts
    10

    Question Compare the degree slope of trendlines

    The attached file contains a simple table of employee salaries, for the years 2013 through 2016.

    When I look at the bar chart of the data, I can envision a trendline for each employee. One employee's figures have been charted, and the trendline included.

    What I would like is a degree slope of each employee's trendline (in a common scale), so that I could compare the rise of one to another.

    For example, the degree of Peter's trendline is 10%, indicating a slower growth rate than Robert, whose trendline has a degree slope of 20%...or something like that.

    I've been charting this in all manner of ways and haven't had any results that made sense, or were comparable to one another. I've had no luck with breaking apart the trendline formula (y = mx +b) using LINEST or SLOPE functions.

    Any thoughts are much appreciated!
    Attached Files Attached Files

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

    Re: Compare the degree slope of trendlines

    I am not understanding the difficulty.

    My first thought would be to simply compare m from each regression. Larger m represents a faster growth rate. Why are you not using this simple comparison?
    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
    12-02-2014
    Location
    Austin, Texas
    MS-Off Ver
    2016
    Posts
    10

    Re: Compare the degree slope of trendlines

    Thanks for the quick reply MrShorty.
    When I display the trendline formulas for some of the employees, I get this:
    >Robert: y = 9294.3x + 103554
    >Mark: y = 8119x + 171517
    >Peter: y = 2937x + 76244

    Maybe I just need to know how to interpret the values 9294.3, 8119, and 2937. They don't mean anything to me. That's why I was looking for a degree: I can wrap my head around that.

    As a secondary concern, is there a way to apply the solution to a much larger dataset? Would it be just about adding a column containing a (?) formula to the table?

    I realize might be missing the obvious. So again, I appreciate the help.

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

    Re: Compare the degree slope of trendlines

    Maybe I just need to know how to interpret the values 9294.3, 8119, and 2937. They don't mean anything to me.
    Understanding "slope" is a basic part of algebra. This might be a useful tutorial geared towards a beginning algebra student: http://www.purplemath.com/modules/slopyint.htm

    Once you understand that, it should be easy to see that "slope" in these regressions represents "change in salary per year"
    As a secondary concern, is there a way to apply the solution to a much larger dataset?
    Assuming the data are arranged similar to your sample file, I would use a LINEST() or SLOPE() function (or whatever function you find useful for performing the analysis) in a helper column and copy that formula down. If you pay attention to relative and absolute references, this should be an easy copy/paste operation once you have the formula in place in the first row.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Compare the degree slope of trendlines

    A linear growth line equation is of the form

    y=mx + b

    where m is the slope Mr shorty mentioned and b is a constant. If you right click the trend line you'll be offered the choice of displaying it.
    Or you can just use the SLOPE or LINEST function

    m:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    which returns the value 9294.3

    So for the 1st year x = 9294.3 * 1 + 103554 = 112843
    Y2 : 9294.3 * 2 + 103554 = 122143
    Y3: 9294.3 * 3 + 103554 = 131437
    ....etc.

    b is given by
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  6. #6
    Registered User
    Join Date
    12-02-2014
    Location
    Austin, Texas
    MS-Off Ver
    2016
    Posts
    10

    Re: Compare the degree slope of trendlines

    Thanks MS and RB. I am straight now on the meaning of the slope value. It also took me a bit to work through that the different values for b did not affect the slope.

    Long removed from my algebra days.

    Is it even a valid question to consider if the slope can be expressed as a percentage degree, with no growth equating to 0%?

    Thanks again for helping me think this through!

  7. #7
    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: Compare the degree slope of trendlines

    Slope is rise (delta y) over run (delta x).

    Slope in degrees is =degrees(atan(slope)); so a slope of 1 is 45 degrees. I don't think that's a very useful measure in most applications.

    For something increasing at a linear rate, you can't speak of percentage increase; that's a characteristic of an exponential function, not a linear one.
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Registered User
    Join Date
    12-02-2014
    Location
    Austin, Texas
    MS-Off Ver
    2016
    Posts
    10

    Re: Compare the degree slope of trendlines

    Thanks shg. Yea, I certainly didn't get anything "useful" when calculating the slope in degrees using the formula you provided: getting ≈ 89.9_ for every record, which doesn't provide any significant differentiation.

    Thanks for ringing in on the topic!

  9. #9
    Registered User
    Join Date
    12-02-2014
    Location
    Austin, Texas
    MS-Off Ver
    2016
    Posts
    10

    Re: Compare the degree slope of trendlines

    I'll mark this thread as solved. Thanks again everyone!

    Have a good weekend.

  10. #10
    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: Compare the degree slope of trendlines

    Cheers .

+ 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. Calculate Degree Of Slope
    By NeedForExcel in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-09-2016, 12:42 AM
  2. Convert Coordinates. Degree Minute.decimal to degree.decimal
    By stewman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2013, 07:37 PM
  3. Replies: 25
    Last Post: 11-19-2012, 01:04 AM
  4. How to compare trendlines of two different charts
    By hooman_teh in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-01-2010, 01:25 PM
  5. 3rd degree polynomials
    By ChemistB in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-30-2009, 01:33 PM
  6. Degree ,Min, Sec
    By Degree ,Min, Sec in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2006, 10:10 AM
  7. [SOLVED] Convert decimal degree (lattitude/longitude) into Degree,
    By Tim Ashcom in forum Excel General
    Replies: 5
    Last Post: 08-17-2005, 12:05 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