How to remove bad data (outliers) from a plot?
显示 更早的评论
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
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
2014-11-18
0 个投票
Star Strider
2014-11-18
0 个投票
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
2018-6-15
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!