Best low-rank approximation: the Eckart–Young theorem
Library · Source module
Best low-rank approximation: the Eckart–Young theorem
NLAlib.truncatedSVD A k, written \llbracket \mathbf{A} \rrbracket_k, is a best approximation of \mathbf{A} of rank at most k, obtained by keeping the k largest singular triples of a singular value decomposition. Its error is \sigma_k(\mathbf{A}) in the spectral norm and \bigl(\sum_{i \ge k} \sigma_i(\mathbf{A})^2\bigr)^{1/2} in the Frobenius norm, and no matrix of rank at most k does better in either norm.
The best rank-k error is spelled singularValues A k in the spectral norm and frobNorm (A - truncatedSVD A k) in the Frobenius norm; NLAlib.frobNorm_sub_truncatedSVD_sq rewrites the latter as the tail sum of squared singular values.
When \sigma_{k-1}(\mathbf{A}) = \sigma_k(\mathbf{A}) the best approximation is not unique; \llbracket \mathbf{A} \rrbracket_k is one of them, built from the library's chosen decomposition, the lexicographically least thin SVD (NLAlib.svdU, NLAlib.svdV), which is the same for every k and makes the truncation measurable in \mathbf{A}.
Main definitions
* NLAlib.truncatedSVD: a best approximation of rank at most k.
Main results
* NLAlib.truncatedSVD_def: the truncation of the chosen SVD. * NLAlib.rank_truncatedSVD_le, NLAlib.specNorm_sub_truncatedSVD, NLAlib.frobNorm_sub_truncatedSVD_sq: rank and errors of the truncation; NLAlib.frobNorm_truncatedSVD_sq, NLAlib.frobNorm_truncatedSVD_le: its Frobenius norm. * NLAlib.natCast_mul_singularValues_add_sq_le_frobNorm_sub_truncatedSVD_sq: tail flattening, d copies of \sigma_{k+d}(\mathbf{A})^2 below the Frobenius tail at k. * NLAlib.mul_rangeProjector_conjTranspose_truncatedSVD, NLAlib.exists_hasOrthonormalCols_mul_mul_conjTranspose_eq_truncatedSVD: the row space of the truncation, and a frame \mathbf{Z} with \mathbf{A}\mathbf{Z}\mathbf{Z}^{\mathsf{H}} = \llbracket \mathbf{A} \rrbracket_k. * NLAlib.exists_hasOrthonormalCols_mul_mul_conjTranspose_eq_truncatedSVD_completion: that frame with an orthonormal completion carrying \mathbf{A} - \llbracket \mathbf{A} \rrbracket_k. * NLAlib.exists_hasOrthonormalCols_conjTranspose_mul_self_mul_eq_mul_diagonal: the same frames as invariant frames of \mathbf{A}^{\mathsf{H}}\mathbf{A}, nested in k. * NLAlib.range_truncatedSVD_mono: the column spaces of the truncations are nested. * NLAlib.HasOrthonormalCols.mul_conjTranspose_mul_truncatedSVD: the truncation of \mathbf{Q}\mathbf{X} stays in the range of \mathbf{Q}. * Matrix.PosSemidef.truncatedSVD, Matrix.PosSemidef.one_sub_mul_mul_one_sub_eq_sub_truncatedSVD, Matrix.PosSemidef.truncatedSVD_le: positive semidefinite inputs, and the truncation below the matrix in the Loewner order. * NLAlib.singularValues_le_specNorm_sub_of_rank_le: Eckart–Young in the spectral norm. * NLAlib.frobNorm_sub_truncatedSVD_le_of_rank_le: Eckart–Young in the Frobenius norm. * NLAlib.isLeast_specNorm_sub_of_rank_le, NLAlib.isLeast_frobNorm_sub_of_rank_le: the same as least elements.
Declarations
- Matrix.PosSemidef.one_sub_mul_mul_one_sub_eq_sub_truncatedSVD
- Matrix.PosSemidef.truncatedSVD
- Matrix.PosSemidef.truncatedSVD_le
- NLAlib.HasOrthonormalCols.mul_conjTranspose_mul_truncatedSVD
- NLAlib.exists_hasOrthonormalCols_conjTranspose_mul_self_mul_eq_mul_diagonal
- NLAlib.exists_hasOrthonormalCols_mul_mul_conjTranspose_eq_truncatedSVD
- NLAlib.exists_hasOrthonormalCols_mul_mul_conjTranspose_eq_truncatedSVD_completion
- NLAlib.exists_hasOrthonormalCols_range_eq_range_conjTranspose_truncatedSVD
- NLAlib.frobInner_truncatedSVD_sub
- NLAlib.frobNorm_sq_eq_truncatedSVD_add
- NLAlib.frobNorm_sub_truncatedSVD_le_of_rank_le
- NLAlib.frobNorm_sub_truncatedSVD_sq
- NLAlib.frobNorm_sub_truncatedSVD_sq_add_natCast_mul_singularValues_sq_le
- NLAlib.frobNorm_truncatedSVD_le
- NLAlib.frobNorm_truncatedSVD_sq
- NLAlib.isLeast_frobNorm_sub_of_rank_le
- NLAlib.isLeast_specNorm_sub_of_rank_le
- NLAlib.mul_rangeProjector_conjTranspose_truncatedSVD
- NLAlib.natCast_mul_singularValues_add_sq_le_frobNorm_sub_truncatedSVD_sq
- NLAlib.rangeProjector_truncatedSVD_mul
- NLAlib.range_truncatedSVD_le
- NLAlib.range_truncatedSVD_mono
- NLAlib.rank_truncatedSVD
- NLAlib.rank_truncatedSVD_le
- NLAlib.singularValues_le_specNorm_sub_of_rank_le
- NLAlib.singularValues_sub_truncatedSVD
- NLAlib.singularValues_truncatedSVD
- NLAlib.specNorm_sub_truncatedSVD
- NLAlib.sum_Ico_singularValues_sq_le_frobNorm_sub_sq_of_rank_le
- NLAlib.truncatedSVD
- NLAlib.truncatedSVD_def
- NLAlib.truncatedSVD_of_rank_le
- NLAlib.truncatedSVD_of_singularValues_eq_zero
- NLAlib.truncatedSVD_zero