Recursive Residuals

This function is an implementation of the recursive residuals method for detecting outliers in linear regression.

You are now following this Submission

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://au.mathworks.com/matlabcentral/fileexchange/71206-recursive-residuals), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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