Outliers

Create vectors of outliers and non-outliers according to either Grubbs or Interquartile range method
539 Downloads
Updated 12 Feb 2012

View License

Given a column vector X of data points, this function creates two vectors, one with non-outliers, Y, and one with outliers, out.
The user can choose one of two different methods, either Grubbs' test statistic or the interquartile range method.
The user can also choose the degree of strictness when removing outliers. In both methods, the degree of strictness is negatively related to the parameter alpha (i.e. the higher alpha, the fewer the outliers that are identified and removed).

Cite As

Niccolo Battistini (2026). Outliers (https://www.mathworks.com/matlabcentral/fileexchange/35048-outliers), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Descriptive Statistics in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0