Recursive Residuals
This function is an implementation of the recursive residuals method for detecting outliers in linear regression, based on F. Kianifard and W.H. Swallow's paper in Biometrics, 1989 45, 571.
While MATLAB has some functions which "detect outliers" the documentation is not necessarily clear on the methods are used.
This works on a set of paired x-y data which are assumed to follow the line y = mx+b
Cite As
James Harynuk (2026). Recursive Residuals (https://uk.mathworks.com/matlabcentral/fileexchange/71206-recursive-residuals), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.2.1 | Fixed error in reporting number of discordant points tested in the case when no outliers found. |
||
| 1.2 | Fixed bug where code did not work when only one potential outlier present and in small data sets. Also cleaned up the possible outlier testing code. |
||
| 1.0.0 |
