Lably
Skip to content

Iteratively reweighted least squares

Method for solving certain optimization problems

  • 1 min read
  • 1 chapter

Related on Lably

Through Loss function, Least squares and Linear programming

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

L1 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.

Lp norm linear regression

To find the parameters β = (β1, …,βk)T which minimize the Lp norm for the linear regression problem, argminβ‖y−Xβ‖p=argminβ∑i=1n|yi−Xiβ|p, the IRLS algorithm at step t + 1 involves solving the weighted linear least squares problem β(t+1)=argminβ∑i=1nwi(t)|yi−Xiβ|2=(XTW(t)X)−1XTW(t)y, where W(t) is the diagonal matrix of weights, usually with all elements set initially to wi(0)=1 and updated after each iteration to wi(t)=|yi−Xiβ(t)|p−2.

In the case p = 1, this corresponds to least absolute deviation regression (in this case, the problem would be better approached by use of linear programming methods, so the result would be exact) and the formula is wi(t)=1|yi−Xiβ(t)|.

To avoid dividing by zero, regularization must be done, so in practice the formula is wi(t)=1max{δ,|yi−Xiβ(t)|}. 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.

More in Statistics