CPBS 7620 - Lecture 13 - Norms and Inner Products
Overview
Nicholas Dwork develops norms and inner products as generalizations of vector length and angle, then connects them to matrix approximation and distance. He explains Lp and matrix norms, the best rank-k approximation via truncated SVD, inner-product geometry for functions, and why some metrics cannot come from norms.
Key takeaways
- The Lp formula is a norm for p ≥ 1, while L0 counts nonzero coordinates and ignores their magnitudes, making it useful as a sparsity penalty rather than a norm.
- Truncating a matrix's SVD to its k largest singular values solves the best rank-at-most-k approximation problem under Frobenius distance.
- The Frobenius norm is the Schatten-2 norm, the nuclear norm is the Schatten-1 norm, and the induced 2-norm equals the largest singular value.
- An inner product supplies both a norm and an angle; for square-integrable functions, integration of their product plays the role of the vector dot product.
- Every norm creates a metric through d(x,y)=||x−y||, but not every metric comes from a norm: the discrete metric violates norm homogeneity.
Chapters
- A norm must be nonnegative with equality only at zero, scale by the absolute value of a scalar, and satisfy the triangle inequality.
- For p ≥ 1, the Lp norm is valid; L∞ is the largest absolute vector entry, while L0 counts nonzero entries and is a penalty rather than a norm.
- The L0 penalty assigns the same value of 1 to vectors with one nonzero entry even when those entries have very different magnitudes.
- The Frobenius norm extends L2 length to matrices, and truncating an SVD to its top k singular values gives the closest rank-at-most-k matrix in Frobenius norm.
- The Frobenius norm equals the square root of the sum of squared singular values, as shown using orthogonality of U and V and the identity tr(AB) = tr(BA).
- The nuclear norm sums singular values; both it and the Frobenius norm are Schatten norms, specifically Schatten-1 and Schatten-2.
- An induced matrix norm maximizes the output norm of Ax over inputs x with unit norm; the induced 2-norm is the largest singular value.
- The induced 1-norm is the maximum absolute column sum, the induced infinity norm is the maximum absolute row sum, and induced p-norms are submultiplicative.
- A real inner product is positive definite, symmetric, and linear in its first argument; it induces a norm through the square root of ⟨x,x⟩.
- Inner products define angles by cos θ = ⟨a,b⟩/(||a|| ||b||), and the Cauchy–Schwarz inequality bounds |⟨x,y⟩| by ||x|| ||y||.
- For square-summable functions, ⟨f,g⟩ = ∫f(x)g(x)dx; for f=e⁻ˣ and g=e⁻³ˣ on x≥0, the angle is π/6.
- A metric obeys nonnegativity, identity of indiscernibles, symmetry, and the triangle inequality; every norm induces d(x,y)=||x−y||, but the discrete metric is not norm-induced.
- Arc length on the unit sphere S² defines a distance between points, but S² is not a vector space and therefore cannot carry a norm.
Transcript excerpt
0:00 Hi, I'm Nicholas Dor and in this lecture we'll discuss norms and inner products. Previously we've discussed the lengths of vectors which we calculated using the L2 norm shown here. We've also discussed the angles between vectors which we calculated using the dotproduct shown here. We'll now see that these concepts of lengths and angles can be generalized to other implementations of norms and inner products. A norm on a vector space V is a function that maps V to R that satisfies three properties. The first is that the norm of a vector is always greater than or equal to zero and the norm equals zero if and only if the vector is the zero vector. The second property is that the norm of a scalar times the vector alpha * X is equal to the absolute value of alpha*
0:51 the norm of X. And the third is that the norm of x + y is less than or equal to the norm of x plus the norm of y. This is known as the triangle inequality. So for example, consider this expression here. The magnitude of x1 to the p plus a magnitude of x2 to the p plus dot dot dot plus the magnitude of x n the p all raised to the 1 over p power. This is a norm whenever p is between 1 and infinity inclusive and we call it the lp norm. I do mean inclusive. The L infinity norm of a vector X is the maximum magnitude of the elements of X. When P is greater than or equal to zero and less than one, this function is not
1:39 a norm, but it is still useful. We sometimes call it a penalty. So, for example, here's the L1 half penalty. The L0 penalty is the number of nonzero
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Nicholas Dwork.