Kalpana Kalpana (Editor)

Gramian matrix

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In linear algebra, the Gram matrix (Gramian matrix or Gramian) of a set of vectors v 1 , , v n in an inner product space is the Hermitian matrix of inner products, whose entries are given by G i j = v i , v j .

Contents

An important application is to compute linear independence: a set of vectors is linearly independent if and only if the Gram determinant (the determinant of the Gram matrix) is non-zero.

It is named after Jørgen Pedersen Gram.

Examples

For finite-dimensional real vectors with the usual Euclidean dot product, the Gram matrix is simply G = V T V (or G = V H V for complex vectors using the conjugate transpose), where V is a matrix whose columns are the vectors v k .

Most commonly, the vectors are elements of a Euclidean space, or are functions in an L2 space, such as continuous functions on a compact interval [ab] (which are a subspace of L 2([ab])).

Given real-valued functions { i ( ) , i = 1 , , n } on the interval [ t 0 , t f ] , the Gram matrix G = [ G i j ] , is given by the standard inner product on functions:

G i j = t 0 t f i ( τ ) j ¯ ( τ ) d τ .

For a general bilinear form B on a finite-dimensional vector space over any field we can define a Gram matrix G attached to a set of vectors v 1 , , v n by G i j = B ( v i , v j ) . The matrix will be symmetric if the bilinear form B is symmetric.

Applications

  • If the vectors are centered random variables, the Gramian is approximately proportional to the covariance matrix, with the scaling determined by the number of elements in the vector.
  • In quantum chemistry, the Gram matrix of a set of basis vectors is the overlap matrix.
  • In control theory (or more generally systems theory), the controllability Gramian and observability Gramian determine properties of a linear system.
  • Gramian matrices arise in covariance structure model fitting (see e.g., Jamshidian and Bentler, 1993, Applied Psychological Measurement, Volume 18, pp. 79–94).
  • In the finite element method, the Gram matrix arises from approximating a function from a finite dimensional space; the Gram matrix entries are then the inner products of the basis functions of the finite dimensional subspace.
  • In machine learning, kernel functions are often represented as Gram matrices.
  • Positive semidefinite

    The Gramian matrix is positive semidefinite, and every positive symmetric semidefinite matrix is the Gramian matrix for some set of vectors. Further, in finite-dimensions it determines the vectors up to isomorphism, i.e. any two sets of vectors with the same Gramian matrix must be related by a single unitary matrix. These facts follow from taking the spectral decomposition of any positive semidefinite matrix P, so that P = U D U H = ( U D ) ( U D ) H and so P is the Gramian matrix of the columns of U D . The Gramian matrix of any orthonormal basis is the identity matrix. The infinite-dimensional analog of this statement is Mercer's theorem.

    Change of basis

    Under change of basis represented by an invertible matrix P, the Gram matrix will change by a matrix congruence to P T G P .

    Gram determinant

    The Gram determinant or Gramian is the determinant of the Gram matrix:

    G ( x 1 , , x n ) = | x 1 , x 1 x 1 , x 2 x 1 , x n x 2 , x 1 x 2 , x 2 x 2 , x n x n , x 1 x n , x 2 x n , x n | .

    Geometrically, the Gram determinant is the square of the volume of the parallelotope formed by the vectors. In particular, the vectors are linearly independent if and only if the Gram determinant is nonzero (if and only if the Gram matrix is nonsingular).

    The Gram determinant can also be expressed in terms of the exterior product of vectors by

    G ( x 1 , , x n ) = x 1 x n 2 .

    References

    Gramian matrix Wikipedia