Robust regression¶
In the app: Help → Help contents, Robust regression.
A few outlying values of the dependent variable can pull least squares a long way. Robust regression (M-estimation) replaces the sum of squared residuals by a sum of rho(u / s) that grows more slowly for large residuals: Huber's norm counts them linearly; Tukey's bisquare counts residuals beyond its tuning constant not at all. The estimates are found by iteratively reweighted least squares from the least-squares start, each observation weighted by how far its residual lies out, and the scale s is re-estimated each round by the median absolute residual over 0.6745 (the MAD).
Choose Robust regression (M) as the method in Estimate → Equation; the norm is in Method settings, and the tuning constant (1.345 for Huber, 4.685 for the bisquare: 95% efficient with normal errors; smaller is more robust), a fixed scale and the convergence settings under Advanced. Standard errors are Huber's H1, as statsmodels' RLM. Robust regression does not protect against outlying regressors (leverage), and the bisquare's answer can depend on its least-squares start. fit.extra["robust_weights"] lists each observation's final weight: those near zero are the outliers.
See also¶
References¶
- Huber, P. J. (1964). Robust estimation of a location parameter. Annals of Mathematical Statistics 35(1), 73-101. doi:10.1214/aoms/1177703732
- Huber, P. J. (1973). Robust regression: asymptotics, conjectures and Monte Carlo. Annals of Statistics 1(5), 799-821. doi:10.1214/aos/1176342503
- Holland, P. W. and Welsch, R. E. (1977). Robust regression using iteratively reweighted least-squares. Communications in Statistics - Theory and Methods 6(9), 813-827. doi:10.1080/03610927708827533