Definition:

  • Minimize the square distance

Ordinary Least Square:

  • Goal: where and are parameters
  • Therefore, the solution,
    • must be full rank to have a unique solution
  • Solution with QR Decomposition:
    • given an m × n matrix A with linearly independent columns and an m-vector b.
    1. QR factorization. Compute the QR factorization
    2. Compute
    3. Back substitution. Solve the triangular equation
  • Solution with SVD
  • When is not full rank, it is advisable to choose the minimum-norm solution to the set of solutions. This particular solution is

Variants of least-square problem:

Minimum-norm solutions to linear equations:
  • When equations are under-determined, we may want to single out a solution with minimum Euclidean norm:
  • Here, with , and
  • Optimality conditions and full row rank case:
    • From the fundamental theorem of linear algebra, any candidate can be written as where . Since are orthogonal we see that which proves optimal and
    • If is full row rank, is invertible and the unique is then
Equality-constrained LS:
  • A generalization of the basic LS problem allows for the addition of linear equality constraints on the variable, resulting in the Constrained Least Square subject to
  • This problem can be converted to standard LS by eliminating the equality constraints via a standard procedure
  • First, suppose the problem is feasible, let be such that
  • All feasible points (regardless of least square) can be expressed as a form where contains by the column basis for and is a new variable
  • Then we need to find such that where and
  • then replace
Weighted LS:
  • Sometimes the square errors have different weights. The objective function can be written as where
  • Then the problem turns to a ordinary ls problem
regularized LS:
  • where and
  • is a tradeoff parameter. Interpretation in terms of tradeoff between output tracking accuracy and input effort.
  • The optimal regulation parameter,
  • Train/test

Least Square Data Fitting

Constrained Least Square