Robust linear regression

So far, we have used the Ordinary Least Squares (OLS) estimates for our linear regression models. But these models only become valid when all regression hypotheses are verified. If this is not the case, least squares regression can be problematic. In such cases we can try to locate the problems through residual diagnostics, but this procedure may be slow and requires a great deal of experience. Often, model-fitting problems are due to the presence of extreme values ​​called outliers. The following figure shows a distribution with outliers:

Outliers have a large influence on the fit, because squaring the residuals magnifies ...

Get Regression Analysis with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.