Orthonormal Basis
Analytic Geometry
A set of vectors \{mathbf{b}_1, dots, mathbf{b}_n\} is orthonormal if each has unit length (\|mathbf{b}_i\| = 1) and any two are orthogonal (langle mathbf{b}_i, mathbf{b}_jrangle = 0 for i neq j). Compactly, langle mathbf{b}_i, mathbf{b}_jrangle = delta_{ij} (the Kronecker delta). An orthonormal bas
Orthonormal means unit length and pairwise orthogonal — the friendliest coordinate system.
Without orthonormal bases, projections distort lengths, rotations stop being invertible cheaply, and PCA becomes numerically unstable.
A set of vectors is orthonormal if each has unit length () and any two are orthogonal ( for ). Compactly, (the Kronecker delta). An orthonormal basis is a basis that happens to be orthonormal — the best possible coordinate system.
Why 'best possible'? Coordinates in an orthonormal basis are trivially computed: . No matrix inversion needed, just dot products. Moreover, lengths and inner products look exactly as in the standard basis: when both are expressed in an ONB. Orthonormality preserves Euclidean geometry.
The Gram–Schmidt process constructs an orthonormal basis from any basis. Given : set , then iteratively subtract projections onto earlier s: . Finally normalize each to unit length. The procedure constructs the QR decomposition used by many solvers.
Numerically, classical Gram–Schmidt accumulates rounding error badly. Modified Gram–Schmidt reduces this by re-projecting each vector against the running orthonormalized set rather than the originals. For higher stability, Householder reflections or Givens rotations compute QR without ever explicitly forming the intermediate Gram-Schmidt vectors — this is what numpy.linalg.qr does.
Orthonormal bases show up constantly in ML. The Discrete Fourier Transform uses an ONB of complex sinusoids. Wavelet bases provide multi-resolution ONBs of functions. PCA finds an ONB of data-adapted directions, and random orthogonal matrices are used for initialization and low-distortion dimensionality reduction via the Johnson–Lindenstrauss lemma. Whenever you see an orthonormal basis, expect clean math and stable computation.
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.