Iteratively reweighted least squares


The method of iteratively reweighted least squares is used to solve certain optimization problems with objective functions of the form of a p-norm:
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 errors rather than the least square errors.
One of the advantages of IRLS over linear programming and convex programming is that it can be used with Gauss–Newton and Levenberg–Marquardt numerical algorithms.

Examples

''L''1 minimization for sparse recovery

IRLS can be used for 1 minimization and smoothed p minimization, p < 1, in compressed sensing problems. It has been proved that the algorithm has a linear rate of convergence for 1 norm and superlinear for t with t < 1, under the restricted isometry property, which is generally a sufficient condition for sparse solutions. However, in most practical situations, the restricted isometry property is not satisfied.

''Lp'' norm linear regression

To find the parameters β = T which minimize 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 is the diagonal matrix of weights, usually with all elements set initially to:
and updated after each iteration to:
In the case p = 1, this corresponds to least absolute deviation regression and the formula is:
To avoid dividing by zero, regularization must be done, so in practice the formula is:
where is some small value, like 0.0001. Note the use of in the weighting function is equivalent to the Huber loss function in robust estimation.