Norms
Analytic Geometry
A norm on a vector space V is a function \|cdot\| : V to mathbb{R}_{geq 0} that assigns each vector a non-negative length. Formally, it must satisfy three axioms: absolute homogeneity (\|lambda mathbf{v}\| = |lambda| cdot \|mathbf{v}\|), the triangle inequality (\|mathbf{u} + mathbf{v}\| leq \|mathb
A norm assigns a non-negative length satisfying homogeneity, the triangle inequality, and positive definiteness.
Without the norm framework, regularization becomes a mystery knob. Which norm you pick controls sparsity, invariance, and numerical conditioning — and you cannot reason about any of it without this lesson.
A norm on a vector space is a function that assigns each vector a non-negative length. Formally, it must satisfy three axioms: absolute homogeneity (), the triangle inequality (), and positive definiteness ().
The three most important norms in ML form a family. The Euclidean or norm is the straight-line distance you know from school. The Manhattan or norm measures block-by-block travel. The max or norm returns the largest component.
These are unified by the $L_p$ norm: for . As we recover . The unit ball has a distinct shape for each : a diamond for , a circle for , a square for . That shape is not cosmetic — it determines the geometry of regularization.
In ML, norms measure the *size* of parameters or errors. Ridge regression adds to the loss, shrinking weights smoothly toward zero. Lasso regression uses instead; because the unit ball has sharp corners on the axes, the optimum often lands exactly on an axis, producing a sparse weight vector. Switching norms literally changes the geometry of the solution.
Worked example — L2 norm: Let . Compute its length step by step:
$L_2$ norm of $(3, 4)$ — Pythagoras lives in every dimension
- 1Definition: square each coordinate, add, square-root.
- 2Plug in .
- 3Square the components.
- 4Sum inside the root.
- 5Take the root — the famous 3-4-5 right triangle.
L2 norm of (3, 4)
Geometrically, this is the length of the vector from the origin to — the famous 3-4-5 right triangle.
A powerful fact: in any *finite-dimensional* vector space, all norms are equivalent in the sense that they induce the same topology — convergence in one norm implies convergence in any other. Practically, this means your choice of norm affects numerical values and geometry, but not qualitative properties like continuity or limits. In infinite dimensions (function spaces), this equivalence breaks, which is why functional analysis becomes far richer.
Exercises
Put your understanding to the test. Score + streak + speed all count.
Confirm you've got it
3 quick questions. Get 2 right to mark this lesson complete.