Norms
Measures of vector and matrix size — L1, L2, and Frobenius norms — and their role in regularization and distance.
ℓ₁ unit ball: diamond — corners on axes. ℓ₂ unit ball: circle. ℓ∞ unit ball: square. The shape of the unit ball determines what "small" means under each norm.
A norm is a function that assigns a non-negative "length" or "size" to a vector. The most common is the Euclidean norm ( norm):
More generally, the norm for :
Common cases:
- : (Manhattan / taxicab norm)
- : (Euclidean norm)
- : (Chebyshev norm)
A norm must satisfy: (1) , with ; (2) ; (3) triangle inequality .
- Positive definiteness: , and only for
- Absolute homogeneity: for any scalar
- Triangle inequality: — never longer than the sum of the parts
- All norms agree on a single nonzero coordinate vector, but differ in how they combine multiple nonzero entries
- Treating all norms as interchangeable: while finite-dimensional norms are equivalent (within constant factors of each other), they behave very differently for optimization — Lasso () and Ridge () regularization give qualitatively different solutions for exactly this reason
- Forgetting is required: for , the formula violates the triangle inequality and isn't a true norm
The norm gives the straight-line distance; the norm gives the distance if you can only walk along grid lines.
The unit ball under a norm is the set of vectors . Describe the shape of the unit ball for the , , and norms in .
Solution
- unit ball: — a diamond (rotated square) with vertices at and .
- unit ball: — a disk (circle of radius 1).
- unit ball: — a square with vertices at .
As increases from 1 to , the unit ball interpolates from diamond → circle → square.
Related concepts
Needs first
Related