Norms and Distances

A norm measures the size of a vector or matrix; a distance measures separation between two objects. These choices decide what “near”, “small error”, and “best approximation” mean in optimization, clustering, and low-rank approximation.

Defining math

A norm is nonnegative, homogeneous, and obeys the triangle inequality:

Common vector norms are

A distance is often induced by a norm, . The Euclidean norm is tied to orthogonality; often encourages sparse errors or coefficients; matrix Frobenius norm is the squared-entry analogue used in singular value decomposition.

Worked example

The same vector has different sizes under different norms. For ,

The Euclidean distance to is . The triangle inequality holds with a little room to spare:

a gap of about .

Caveats

Distances can be dominated by scale, irrelevant dimensions, or sparse high-dimensional effects. A model optimized with one norm may behave poorly under the metric users care about, so connect the norm to the task before tuning gradient descent.

References