A least-squares solution minimizes over the source Hilbert space. It exists exactly when , and then the solutions form a closed affine subspace with direction .
Nearest least-squares solution 2026-10-05
The orthogonal projection of a prescribed point onto the affine subspace of least-squares solutions is unique. It retains 's null space component and chooses the determined component from the Moore–Penrose inverse of an operator.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 326 1 1 a Solution Created 2026-10-03 Updated 2026-10-05
Use the Hilbert space interpretation of a linear inverse problem, with a bounded linear operator . A least-squares solution minimizes over . A minimum-norm least-squares solution additionally has the smallest -norm among all least-squares solutions. When the equation is consistent this is the smallest-norm exact solution.
The least-squares solutions form a nonempty closed affine subspace precisely whenThe closest point theorem in a Hilbert space then gives a unique nearest point to zero, hence a unique minimum-norm least-squares solution. Equivalently, it is the unique least-squares solution in . If is closed, this exists for every datum; a nonclosed operator range can leave some data without any least-squares solution.
For example, on the l2 sequence space, take and . The equation would require for every , which is not square summable. However, setting the first coordinates of to one and the rest to zero givesThus the least-squares infimum is zero but is not attained, and no minimum-norm least-squares solution exists for these data.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 326 1 1 b Solution Created 2026-10-03 Updated 2026-10-05
The map is a bounded linear operator, so the inverse image of the closed singleton is closed. That inverse image is also a convex set: if , every convex combination has the same image.
The identity givesConsequently such a exists exactly when is the sum of an element of and one of its orthogonal complement. ThusThese are precisely the least-squares solutions. Indeed, if and , then for every the Pythagorean identity givesConversely, differentiating the squared residual along any real direction forces , hence the normal equation for a linear inverse problem. For any , the difference of two solutions of the normal equation for a linear inverse problem lies in , since . Thereforea closed affine subspace; the empty case is closed and convex as well.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 326 1 1 d Solution Created 2026-10-03 Updated 2026-10-05
Write . Every least-squares solution is for some , while . Decompose using orthogonal projections. Then the Pythagorean identity givesThe first term is independent of , and the second vanishes at exactly one point. Hence the unique nearest least-squares solution isGeometrically this is the orthogonal projection of onto the closed affine subspace of least-squares solutions.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 1 29J a Solution Created 2026-09-24 Updated 2026-09-29
The Gaussian likelihood is proportional toso maximum likelihood estimation is equivalent to ordinary least squares. If and has rank , then is invertible and the normal equations giveIf , then and . A least-squares minimizer always exists, but it is not unique: by rank-deficient ordinary least squares, the complete set isan affine subspace of dimension . Thus there are uncountably infinitely many likelihood maximizers. In the generic full-row-rank case their dimension is .
Rank-deficient ordinary least squares 2026-09-29
If a design matrix has deficient rank, every ordinary least squares minimizer has the form with , where is the Moore-Penrose inverse. Hence the fitted values are unique but the coefficients are not: the minimizers form an affine subspace of dimension .