Theil-Sen Regression with intercept
Updated 13 Apr 2019
Super fast and simple Theil-Sen regression. Based on Arnout Tilgenkamp's Theil_Sen_Regress function from 2011. Major difference is that this one returns both a slope and intercept. The original function forced through 0,0 and did not return an intercept.
James Harynuk (2023). Theil-Sen Regression with intercept (https://www.mathworks.com/matlabcentral/fileexchange/71205-theil-sen-regression-with-intercept), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox > Regression > Linear Regression >
Inspired by: Theil–Sen estimator
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.