Overview
Unlike Ordinary Least Squares (OLS), where a single extreme outlier can arbitrarily tilt the fitted regression line, the Theil-Sen Estimator computes the slope m_{ij} = (y_j - y_i) / (x_j - x_i) for every pair of points with distinct x-coordinates, sets the fitted slope m to the median of all pairwise slopes, and sets the intercept b to the median of (y_i - m * x_i). It is deterministic, requires no tuning thresholds, and has an asymptotic breakdown point of 1 - 1/sqrt(2) approx 29.3%.