How to remove bad data (outliers) from a plot?

조회 수: 12 (최근 30일)
asskicker
asskicker 2014년 11월 18일
답변: Steven Lord 2018년 6월 15일
I plot my data and a line of best fit together. I realized there are a few obvious bad data (outliers) in my plot and I need to remove them.
How do I do that?
Thanks!
  댓글 수: 1
STEPHEN ROSS
STEPHEN ROSS 2018년 6월 15일
For small data sets less than 60, use Peirce's Criterion for an excellent statistical method: "https://www.researchgate.net/publication/267241891_Peirce%27s_criterion_for_the_elimination_of_suspect_experimental_data"

댓글을 달려면 로그인하십시오.

답변 (3개)

Image Analyst
Image Analyst 2014년 11월 18일
See Brett's File Exchange submission: http://www.mathworks.com/matlabcentral/fileexchange/3961

Star Strider
Star Strider 2014년 11월 18일
The most acceptable way is to set confidence limits based on a particular probability and eliminate those data that are outside them. (If you have a large data set, you would expect some valid data to be outside the expected confidence limits.) Various Statistics Toolbox functions such as regress for linear regression and nlpredci for nonlinear regression can calculate these confidence limits for you.

Steven Lord
Steven Lord 2018년 6월 15일
If you're using release R2017a or later, use the isoutlier and/or filloutliers functions in the "Missing Data and Outliers" section on this documentation page.

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by