Finishing up Caratheodory, and then the SVD
Math 123: Mathematical Aspects of Data Analysis – Fall 2026
Finishing up Caratheodory
I need to finish up proving this darn thing! See the last set of lecture notes to refresh yourself on the problem.
Proof. Because \(\bfx\in\operatorname{conv}(\mathcal{V})\), choose non-negative weights \(\alpha_1,\ldots,\alpha_n\) whose sum is \(1\) and for which \[ \bfx=\sum_{i=1}^n\alpha_i\bfv_i. \] Define a random vector \(\bfX\) by sampling from this convex combination: \[ \Pbb(\bfX=\bfv_i)=\alpha_i. \] Then \(\Ebb[\bfX]=\bfx\). Take \(k\) independent copies \(\bfX_1,\ldots,\bfX_k\) of \(\bfX\) and form their average \[ \hat{\bfx}=\frac1k\sum_{j=1}^k\bfX_j. \] Every possible value of \(\hat{\bfx}\) is an average of \(k\) points from \(\mathcal{V}\). Moreover, independence and \(\Ebb[\bfX_j-\bfx]=\mathbf{0}\) make all of the cross terms vanish. Indeed, if \(j\neq \ell\), then \[ \Ebb\left[ \left\langle \bfX_j-\bfx,\bfX_\ell-\bfx\right\rangle \right] = \left\langle \Ebb[\bfX_j-\bfx],\Ebb[\bfX_\ell-\bfx] \right\rangle =0. \] It follows that \[ \begin{aligned} \Ebb\left[\|\hat{\bfx}-\bfx\|_2^2\right] &=\frac{1}{k^2} \Ebb\left[ \left\|\sum_{j=1}^k(\bfX_j-\bfx)\right\|_2^2 \right] \\ &=\frac{1}{k}\Ebb\left[\|\bfX-\bfx\|_2^2\right] \\ &=\frac{1}{k}\left( \Ebb\left[\|\bfX\|_2^2\right]-\|\bfx\|_2^2 \right) \\ &\leq\frac{R^2}{k}. \end{aligned} \] The squared error is non-negative, so at least one outcome is no larger than its expectation. For that outcome, \(\|\hat{\bfx}-\bfx\|_2\leq R/\sqrt{k}\). Fixing it proves the first claim. Taking \(k=\max\{1,\lceil R^2/\epsilon^2\rceil\}\) proves the second.
For example, if the data are normalized so that \(R=1\), then \(100\) points suffice for error \(0.1\) whether the ambient dimension is \(100\), \(10{,}000\), or one million.
Thus a high-dimensional convex representation can contain substantial redundancy. Once a controlled amount of error is acceptable, a simple random sampling argument produces a sparse approximation whose size is controlled by the desired accuracy, not by the ambient dimension.
Looking for Lower-Dimensional Structure
I presented Carathéodory because it’s very illustrative, albeit in a limited setting. Accepting tolerable error, there often may exist a notion of redundancy in high dimensional data. Let’s return to our beloved data matrix and ask the linear algebraic question: How do I understand this idea here?
Of course, a real photograph is not a single outer product. But natural images are highly structured: neighboring rows look alike, and large regions are smooth. So we might hope that \[ \bfA\approx\sum_{i=1}^k\bfu_i\bfv_i^\top, \qquad k\ll\min\{m,n\}. \] The same hope drives much of data science: users-by-movies rating matrices, genes-by-samples expression matrices, and collections of face images are all approximately described by a few rank-one pieces.
However, real data are never exactly low rank, and rank is fragile. Change the top-left pixel of the image above from \(1\) to \(1.01\) and the rank jumps to \(2\); add a little noise everywhere and it jumps to \(3\). So we are left with two questions:
- Given only \(\bfA\), how do we discover the rank-one pieces?
- When \(\bfA\) is only approximately low rank, what is the best low-rank approximation, and how good is it?
The singular value decomposition answers both.
Linear Algebra Review
However, a data matrix is rectangular, so it has no eigenvalues at all. Is there some other matrix we can look at to understand a notion similar to the spectrum of \(\bfA\)? Enter the square matrices \(\bfA^\top\bfA\in\Rbb^{n\times n}\) and \(\bfA\bfA^\top\in\Rbb^{m\times m}\). Both are symmetric, so Theorem 2 applies to them. They’re also postiive semidefinite which, recall, is the following property.
For example, \(\bfI_n\) is positive definite, since \(\bfx^\top\bfI_n\bfx=\|\bfx\|_2^2\), while \(\operatorname{diag}(1,-1)\) is not PSD, since \(\bfe_2^\top\operatorname{diag}(1,-1)\bfe_2=-1\). For symmetric matrices, being PSD is exactly a statement about the eigenvalues.
Proof. Suppose \(\bfM\) is PSD, and let \(\bfM\bfv=\lambda\bfv\) with \(\|\bfv\|_2=1\). Then \[ \lambda=\lambda\bfv^\top\bfv=\bfv^\top\bfM\bfv\geq0. \] Conversely, suppose every eigenvalue is non-negative, and write \(\bfM=\bfQ\Lambda\bfQ^\top\) as in Theorem 2. For any \(\bfx\in\Rbb^n\), set \(\bfy=\bfQ^\top\bfx\). Then \[ \bfx^\top\bfM\bfx =\bfy^\top\Lambda\bfy =\sum_{i=1}^n\lambda_i y_i^2 \geq0. \]
You will prove Proposition 2 in Homework 2.
The Singular Value Decomposition
We now derive the SVD. The outline of the idea is:
- Eigendecompose the PSD matrix \(\bfA^\top\bfA\). This produces \(\bfV\) and the singular values.
- Push the eigenvectors \(\bfv_i\) through \(\bfA\) and normalize. This produces \(\bfU\).
- Check that the pieces fit together as \(\bfA=\bfU\Sigma\bfV^\top\).
Throughout, fix \(\bfA\in\Rbb^{m\times n}\) with rank \(r\), and let \(p=\min\{m,n\}\). Note that \(r\leq p\).
By Proposition 2, \(\bfA^\top\bfA\) is symmetric, so Theorem 2 gives an orthogonal \(\bfV=[\bfv_1\ \cdots\ \bfv_n]\in\Rbb^{n\times n}\) with \[ \bfA^\top\bfA=\bfV\Lambda\bfV^\top, \qquad \Lambda=\operatorname{diag}(\lambda_1,\ldots,\lambda_n), \qquad \bfA^\top\bfA\bfv_i=\lambda_i\bfv_i. \] By Proposition 1, every \(\lambda_i\geq0\). Since \(\bfV\) is invertible, \(\operatorname{rank}(\bfA^\top\bfA)=\operatorname{rank}(\Lambda)\), the number of nonzero \(\lambda_i\), and by Proposition 2 this number is \(r\). Therefore \[ \lambda_1\geq\cdots\geq\lambda_r>0=\lambda_{r+1}=\cdots=\lambda_n. \]
The eigenvalues of \(\bfA^\top\bfA\) do not depend on which eigenvectors we picked, so the singular values are determined by \(\bfA\) alone.
Now, notice, the vector \(\bfA\bfv_i\) has length exactly \(\sigma_i\): \[ \|\bfA\bfv_i\|_2^2 =\bfv_i^\top\bfA^\top\bfA\bfv_i =\lambda_i\bfv_i^\top\bfv_i =\sigma_i^2. \] So \(\bfA\) sends \(\bfv_i\) to a vector of length \(\sigma_i\), which is nonzero exactly when \(i\leq r\). Normalizing these images gives the other half of the decomposition.
We will prove this lemma, and build the rest of the SVD from it, next time.