Lably
Skip to content

Non-negative least squares

Constrained least squares problem

  • 2 min read
  • 2 chapters

Related on Lably

Through Mathematical optimization, Dependent and independent variables and Pseudocode

argminx⁡‖Ax−y‖22 subject to x ≥ 0.

Here x ≥ 0 means that each component of the vector x should be non-negative, and ‖·‖2 denotes the Euclidean norm.

Non-negative least squares problems turn up as subproblems in matrix decomposition, e.g. in algorithms for PARAFAC and non-negative matrix/tensor factorization. The latter can be considered a generalization of NNLS.

Another generalization of NNLS is bounded-variable least squares (BVLS), with simultaneous upper and lower bounds αi ≤ xi ≤ βi.

Quadratic programming version

The NNLS problem is equivalent to a quadratic programming problem

argminx≥0⁡(12xTQx+cTx),

where Q = ATA and c = −AT y. This problem is convex, as Q is positive semidefinite and the non-negativity constraints form a convex feasible set.

Sign in to keep reading

One more chapter is free with a Lably account.

More in Statistics