+ Reply to Thread
Results 1 to 6 of 6

Equation and R-Square Value Remained Unchanged?

  1. #1
    Registered User
    Join Date
    10-02-2014
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    23

    Equation and R-Square Value Remained Unchanged?

    Example.xlsx <----- Attachment

    I just realised that the equation and R-square value of trendline on my scattered plot remained unchanged when I modified its data.

    So what happened was:
    1. The plot (scattered plot, with power trendline, equation & R-square) was originally created in a spreadsheet (Sheet 1).
    2. A copy of Sheet 1 in the same book was then created (Sheet 2).
    3. The data in Sheet 2 were modified. The data points on the plot moved BUT the equation and R-square value remained unchanged.

    And what I did was:
    1. Deleted the trendline, equation and R-2 and reconstructed them. Results: They were still the same.
    2. Deleted the data points and replotted the graph. After that, trendline, equation and R-2 were created. Results: The equation and R-2 magically changed!
    Last edited by Wes-at-UoB; 05-23-2015 at 06:23 AM.

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

    Re: Equation and R-Square Value Remained Unchanged?

    you will probably need to upload a sample spreadsheet. I cannot replicate the behavior you describe in my installation. As long as calculation is set to automatic, when the spreadsheet updates, the chart updates automatically, and the trendline parameters update automatically as well.
    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
    10-02-2014
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    23

    Re: Equation and R-Square Value Remained Unchanged?

    MrShorty,

    I'm glad to receive your reply.
    I have just added the attachment in my previous post. Please have a look.

    Please change the data on Column B, you will see what I meant.

    Thank you

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

    Re: Equation and R-Square Value Remained Unchanged?

    I don't use the chart trendlines very much -- I usually use the LINEST() function to perform regressions directly in the spreadsheet.

    This is interesting behavior, which I have not seen before. After verifying the behavior, the first thing I did was to create a new trendline and display that equation and R2 value. This new trendline equation updated as expected. I noticed that the new trendline label had the equation on one line with a carriage return between the equation and R2. As soon as I edited the trendline label to match yours, the equatioin stopped updating. I then found that if I went in and removed the trendline label from your trendline, then reformatted the trendline to display equation and R2, the new trendline label updated as expected, and was formatted with a line feed/carriage return between the two elements. It seems that, if I do anything to edit the "text" inside of the trendline label textbox, it "breaks" the link between the trendline parameters and the label textbox. I don't really know why this would be the case, but that is what appears to be going on.

    IN summary, the solution I see is to delete/remove the current trendline label, then recreate the label from the "format trendline" dialog. Then, leave that label textbox alone.

    I might also suggest that, if you need more reliable regression analysis, that you learn how to use the LINEST() and other worksheet functions to perform the analysis in the spreadsheet. Chart trendlines can be easy and, but I find them limited. Thus, I prefer to perform these analyses directly in the spreadsheet (https://support.office.com/en-us/art...rs=en-US&ad=US )

  5. #5
    Registered User
    Join Date
    10-02-2014
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    23

    Re: Equation and R-Square Value Remained Unchanged?

    Can I say you are absolutely brilliant! Mystery solved, finally!

    I did edit the text, as in, make it into one line instead of two (as given by default), and might change them back or something.

    The morale of the story is: DON'T EDIT THE LABEL TEXTBOX, EVER

    Anyway, thanks for suggesting the LINEST () function. It looks more like what I should use in data analysis, I will pick it up (though it looks quite complicated).

    Thanks again.

  6. #6
    Registered User
    Join Date
    10-02-2014
    Location
    Birmingham
    MS-Off Ver
    2013
    Posts
    23

    Re: Equation and R-Square Value Remained Unchanged?

    Can I say you are absolutely brilliant! Mystery solved, finally!

    I did edit the text, as in, make it into one line instead of two (as given by default), and might change them back or something.

    The morale of the story is: DON'T EDIT THE LABEL TEXTBOX, EVER

    Anyway, thanks for suggesting the LINEST () function. It looks more like what I should use in data analysis, I will pick it up (though it looks quite complicated).

    Thanks again.

+ 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. Equation & R-Square Value of Trendline Remained Unchanged
    By Wes-at-UoB in forum Excel General
    Replies: 1
    Last Post: 05-22-2015, 05:44 PM
  2. Replies: 6
    Last Post: 04-03-2015, 12:52 PM
  3. Replies: 3
    Last Post: 08-19-2009, 08:53 AM
  4. [SOLVED] how to center a square plot area in a square chart
    By xppuser in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-11-2006, 04:20 AM
  5. [SOLVED] Regression Output -- R Square versus Adjusted R Square
    By Bonnie in forum Excel General
    Replies: 1
    Last Post: 10-24-2005, 08:05 PM

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