Iteratively reweighted least squares
The method of iteratively reweighted least squares (IRLS) is used to solve certain optimization problems. It solves objective functions of the form:
by an iterative method in which each step involves solving a weighted least squares problem of the form:
IRLS is used to find the maximum likelihood estimates of a generalized linear model, and in robust regression to find an M-estimator, as a way of mitigating the influence of outliers in an otherwise normally-distributed data set. For example, by minimizing the least absolute error rather than the least square error.
Although not a linear regression problem, Weiszfeld's algorithm for approximating the geometric median can also be viewed as a special case of iteratively reweighted least squares, in which the objective function is the sum of distances of the estimator from the samples.
Examples
Lp norm linear regression
To find the parameters β = (β1, …,βk)T which minimise the Lp norm for the linear regression problem:
The IRLS algorithm at step t+1 involves solving the weighted linear least squares problem:
where W(t) is the diagonal matrix of weights with elements:
In the case p = 1, this corresponds to least absolute deviation regression.
Convergence
Convergence of the method is not guaranteed.
References
- Stanford Lecture Notes on the IRLS algorithm by Antoine Guitton
- Numerical Methods for Least Squares Problems by Åke Björck (Chapter 4: Generalized Least Squares Problems.)
- Robust Estimation in Numerical Recipes in C by Press et al (requires the FileOpen plugin to view)