A least-squares problem is an optimisation problem with no constraints and an objective, which is as follows:
minimise
The objective function is a sum of squares of terms of the form
The solution can be reduced to solving a set of linear equations,
If x is a global minimum of the objective function, then its gradient is the zero vector.
The gradients are:
Calculate these gradients with respect to
Thus, the gradient of the objective function is
To find the least squares solution, we can solve
Or equivalently
So we have the analytical solution:
To recognise an optimisation problem as a least-squares problem, we only need to verify that the objective is a quadratic function.
'ConvexOptimisation' 카테고리의 다른 글
Regularised least squares (RLS) (0) | 2024.01.22 |
---|---|
Mathematical optimisation problem (basic concept) (0) | 2024.01.16 |