+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : best fit line without outliers

  1. #1
    Registered User
    Join Date
    01-27-2010
    Location
    prague
    MS-Off Ver
    Excel 2010
    Posts
    52

    best fit line without outliers

    hi,

    i have a scatter plot for which i want to insert a best fit line. however, there are some outliers within the data. i have manually identified these outliers and coloured them differently from the non-outliers, but what i would like to do now is to insert a best-fit straight line for the remaining good data, while still keeping the outliers on the scatter plot. is there a way to do that?

    i found this post:
    http://thedailyreviewer.com/office/v...iers-110140914
    but do not understand how to "fit the trend line based on the new set of points, but graph the old set".

    thanks for any help.

  2. #2
    Registered User
    Join Date
    03-18-2004
    Location
    Sheffield
    MS-Off Ver
    Excel, Access, 2007
    Posts
    42

    Re: best fit line without outliers

    He means duplicate all the data you want on the graph in your spreadsheet, in an added column to the table, with the exception of the points you wish to exclude.
    Then when you format your chart area, make a scatter plot of both sets of data, but only add a trendline for the duplicated set.

    Pottentially statistically dodgy. If there is a valid reason for considering the excluded points to be invalid, then don't include them in your data report at all. If the results don't fit the hypothesis, the hypothesis needs changing, not the other way around
    I count on Excel for everything

  3. #3
    Registered User
    Join Date
    01-27-2010
    Location
    prague
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: best fit line without outliers

    i see, now i get what he means. but is there a way to simply plot 1 set of data and then somehow tell excel that so and so points are not to be considered when fitting a line, while at the same time keeping them on the scatter plot?

    i do realise that identifying 'outliers' may not be the best way to test a hypothesis, but i think it does make sense in cases where a very small minority of data points lies far away from a large majority and distorts an otherwise decent fit, especially when the experimental setup is vulnerable to random errors.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: best fit line without outliers

    No. Trend lines use all data points. That's why the suggestion of using 2 series.
    Cheers
    Andy
    www.andypope.info

+ 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