All singular values are positive, so and are invertible matrices and has matrix rank . The image of a linear map is thereforewith those columns furnishing an orthonormal basis. Also implies and hence . ThusFinally exactly when . The remaining columns of the full orthogonal matrix span this orthogonal complement:If , this last null space also equals and has the empty basis.
For , and are square orthogonal matrices. Multiply the linear system successively by , and to obtainWith the singular value decomposition already supplied, compute , divide by , then form . The two dense matrix-vector products each cost arithmetic operations in Big O notation, and the diagonal scaling costs . ThusIf the singular value decomposition first has to be computed, its usual dense cost is ; that is a separate setup cost and can be reused for further right-hand sides.
The Euclidean norm is invariant under an orthogonal matrix, so the full singular value decomposition givesThe second term is independent of ; the first attains its unique minimum zero because is an invertible matrix. The linear least squares solution is thereforeHere is the Moore-Penrose inverse, and the fitted vector is the orthogonal projection onto the image of a linear map defined by .
With the singular value decomposition supplied, forming costs arithmetic operations, diagonal scaling costs , and multiplication by costs . Since ,One need not form , or to calculate . Computing the needed thin singular value decomposition first has standard dense cost ; explicitly forming an entire orthogonal completion can require additional work when is much larger than .
Articles by others on the same topic
There are currently no matching articles.