Least-squares solutions #
IsLeastSquares A b x says x minimises the residual norm ‖b − A y‖ over the domain of a
linear map A between real inner product spaces. Mathlib characterises the minimisers of a
continuous linear map by its adjoint
(ContinuousLinearMap.forall_norm_sub_apply_le_iff_adjoint_apply_sub_eq_zero); in finite
dimension every linear map is continuous, and this file packages the resulting API: the normal
equations in adjoint and inner-product form, existence by orthogonal projection, uniqueness of
fitted values, and the solution coset.
[UPSTREAM] candidate; generalises from ℝ to RCLike 𝕜.
Main declarations #
IsLeastSquares A b x:xminimises‖b − A y‖.isLeastSquares_iff_adjoint_eq_zero,isLeastSquares_iff_inner_eq_zero: the normal equations — the adjoint kills the residual, equivalently the residual is orthogonal to the range ofA.exists_isLeastSquares,isLeastSquares_of_map_eq: solutions exist, and an interpolating point is one.IsLeastSquares.map_eq,IsLeastSquares.iff_map_eq: fitted values are unique, and the solutions are exactly the preimages of the fitted value.
x is a least-squares solution of A y ≈ b if it minimises the residual norm
‖b − A y‖.
Equations
- Core.IsLeastSquares A b x = IsMinOn (fun (y : E) => ‖b - A y‖) Set.univ x
Instances For
An interpolating point is a least-squares solution.
The normal equations in adjoint form: x solves iff the adjoint kills the residual.
The normal equations in inner-product form: the residual is orthogonal to the range.
Least-squares solutions exist.
Fitted values are unique: any two least-squares solutions map to the same point.
The least-squares solutions are exactly the preimages of the fitted value.
Under an injective design map the least-squares solution is unique.