Linear Median Squared Error
Version 1.0.0.0 (1.61 KB) by
Will Dwinnell
Linear median squared error function for linear functions
This routine calculates the median squared error of a linear function, and can be used with fminsearch as a robust linear regression (see help LinearMedianSquaredError).
It should be very easy to extend the example code to handle nonlinear functions and to minimize other error functions (least absolute error, for instance).
Cite As
Will Dwinnell (2025). Linear Median Squared Error (https://www.mathworks.com/matlabcentral/fileexchange/27204-linear-median-squared-error), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Curve Fitting Toolbox > Linear and Nonlinear Regression >
- MATLAB > Mathematics > Elementary Math > Special Functions > Error Functions >
Find more on Linear and Nonlinear Regression in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |