Gram matrix

In linear algebra, the Gram matrix (or Gramian matrix, Gramian) of a set of vectors in an inner product space is the Hermitian matrix of inner products, whose entries are given by the inner product .[1] If the vectors are the columns of matrix then the Gram matrix is in the general case that the vector coordinates are complex numbers, which simplifies to for the case that the vector coordinates are real numbers.

An important application is to compute linear independence: a set of vectors are 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 in with the usual Euclidean dot product, the Gram matrix is , where is a matrix whose columns are the vectors and is its transpose whose rows are the vectors . For complex vectors in , , where is the conjugate transpose of .

Given square-integrable functions on the interval , the Gram matrix is:

where is the complex conjugate of .

For any bilinear form on a finite-dimensional vector space over any field we can define a Gram matrix attached to a set of vectors by . The matrix will be symmetric if the bilinear form is symmetric.

Applications

  • In Riemannian geometry, given an embedded -dimensional Riemannian manifold and a parametrization for , the volume form on induced by the embedding may be computed using the Gramian of the coordinate tangent vectors: This generalizes the classical surface integral of a parametrized surface for :
  • 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.[2] (Also see kernel PCA)
  • Since the Gram matrix over the reals is a symmetric matrix, it is diagonalizable and its eigenvalues are non-negative. The diagonalization of the Gram matrix is the singular value decomposition.

Properties

Positive-semidefiniteness

The Gram matrix is symmetric in the case the inner product is real-valued; it is Hermitian in the general, complex case by definition of an inner product.

The Gram matrix is positive semidefinite, and every positive semidefinite matrix is the Gramian matrix for some set of vectors. The fact that the Gramian matrix is positive-semidefinite can be seen from the following simple derivation:

The first equality follows from the definition of matrix multiplication, the second and third from the bi-linearity of the inner-product, and the last from the positive definiteness of the inner product. Note that this also shows that the Gramian matrix is positive definite if and only if the vectors are linearly independent (that is, for all ).[1]

Finding a vector realization

Given any positive semidefinite matrix , one can decompose it as:

,

where is the conjugate transpose of (or in the real case).

Here is a matrix, where is the rank of . Various ways to obtain such a decomposition include computing the Cholesky decomposition or taking the non-negative square root of .

The columns of can be seen as n vectors in (or k-dimensional Euclidean space , in the real case). Then

where the dot product is the usual inner product on .

Thus a Hermitian matrix is positive semidefinite if and only if it is the Gram matrix of some vectors . Such vectors are called a vector realization of . The infinite-dimensional analog of this statement is Mercer's theorem.

Uniqueness of vector realizations

If is the Gram matrix of vectors in then applying any rotation or reflection of (any orthogonal transformation, that is, any Euclidean isometry preserving 0) to the sequence of vectors results in the same Gram matrix. That is, for any orthogonal matrix , the Gram matrix of is also .

This is the only way in which two real vector realizations of can differ: the vectors are unique up to orthogonal transformations. In other words, the dot products and are equal if and only if some rigid transformation of transforms the vectors to and 0 to 0.

The same holds in the complex case, with unitary transformations in place of orthogonal ones. That is, if the Gram matrix of vectors is equal to the Gram matrix of vectors in then there is a unitary matrix (meaning ) such that for .[3]

Other properties

  • Because , it is necessarily the case that and commute. That is, a real or complex Gram matrix is also a normal matrix.
  • The Gram matrix of any orthonormal basis is the identity matrix. Equivalently, the Gram matrix of the rows or the columns of a real rotation matrix is the identity matrix. Likewise, the Gram matrix of the rows or columns of a unitary matrix is the identity matrix.
  • The rank of the Gram matrix of vectors in or equals the dimension of the space spanned by these vectors.[1]

Gram determinant

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

If are vectors in then it is the square of the n-dimensional volume of the parallelotope formed by the vectors. In particular, the vectors are linearly independent if and only if the parallelotope has nonzero n-dimensional volume, if and only if Gram determinant is nonzero, if and only if the Gram matrix is nonsingular. When n > m the determinant and volume are zero. When n = m, this reduces to the standard theorem that the absolute value of the determinant of n n-dimensional vectors is the n-dimensional volume. The Gram determinant is also useful for computing the volume of the simplex formed by the vectors; its volume is Volume(parallelotope) / n!.

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

When the vectors are defined from the positions of points relative to some reference point ,

then the Gram determinant can be written as the difference of two Gram determinants,

where each is the corresponding point supplemented with the coordinate value of 1 for an -st dimension.[citation needed] Note that in the common case that n = m, the second term on the right-hand side will be zero.

Constructing an orthonormal basis

Given a set of linearly independent vectors with Gram matrix defined by , one can construct an orthonormal basis

In matrix notation, , where has orthonormal basis vectors and the matrix is composed of the given column vectors .

The matrix is guaranteed to exist. Indeed, is Hermitian, and so can be decomposed as with a unitary matrix and a real diagonal matrix. Additionally, the are linearly independent if and only if is positive definite, which implies that the diagonal entries of are positive. is therefore uniquely defined by . One can check that these new vectors are orthonormal:

where we used .

See also

References

  1. ^ a b c Horn & Johnson 2013, p. 441, p.441, Theorem 7.2.10
  2. ^ Lanckriet, G. R. G.; Cristianini, N.; Bartlett, P.; Ghaoui, L. E.; Jordan, M. I. (2004). "Learning the kernel matrix with semidefinite programming". Journal of Machine Learning Research. 5: 27–72 [p. 29].
  3. ^ Horn & Johnson (2013), p. 452, Theorem 7.3.11

Read other articles:

رودوتوبيون الإحداثيات 39°42′30″N 20°43′36″E / 39.708333333333°N 20.726666666667°E / 39.708333333333; 20.726666666667  تقسيم إداري  البلد اليونان[1]  عدد السكان  عدد السكان 1140 (2011)  معلومات أخرى منطقة زمنية ت ع م+02:00 (توقيت قياسي)،  وت ع م+03:00 (توقيت صيفي)  رمز جيونيمز 254253  تعدي�...

 

Filipino actress and singer (born 1988) In this Philippine name for married women, the birth middle name or maternal family name is Castro, the birth surname or paternal family name is Galura, and the marital name is Rainey. Glaiza de CastroDe Castro in 2021BornGlaiza Castro Galura-Rainey (1988-01-21) January 21, 1988 (age 36)Valenzuela, PhilippinesOccupationsActresssingerYears active2001–presentAgent(s)Sparkle GMA Artist Center (2001–02; 2006–present) Star Magic (2002 - ...

 

Stelianos Malezas Informasi pribadiNama lengkap Stilianos MalezasTanggal lahir 11 Maret 1985 (umur 39)Tempat lahir Katerini, YunaniTinggi 1,93 m (6 ft 4 in)Posisi bermain Bek tengahInformasi klubKlub saat ini Fortuna DüsseldorfNomor 4Karier junior2000–2003 Pontioi KateriniKarier senior*Tahun Tim Tampil (Gol)2003–2012 PAOK 129 (3)2004–2005 → Irodotos (pinjam) 30 (1)2012– Fortuna Düsseldorf 7 (0)Tim nasional2010– Yunani 3 (0) * Penampilan dan gol di klub senio...

Circondario dell'Anhalt-Bitterfeldcircondario(DE) Landkreis Anhalt-Bitterfeld LocalizzazioneStato Germania Land Sassonia-Anhalt DistrettoNon presente AmministrazioneCapoluogoKöthen (Anhalt) Data di istituzione2007 TerritorioCoordinatedel capoluogo51°43′N 12°04′E / 51.716667°N 12.066667°E51.716667; 12.066667 (Circondario dell'Anhalt-Bitterfeld)Coordinate: 51°43′N 12°04′E / 51.716667°N 12.066667°E51.716667; 12.066667 (Circondario d...

 

Koordinat: 40°46′05″N 73°58′55″W / 40.76806°N 73.98194°W / 40.76806; -73.98194 Patung Columbus di tengah Columbus Circle, dengan Time Warner Center di belakang. Untuk kegunaan lain, lihat Columbus Circle (disambiguasi). Columbus Circle, dinamai sesuai Christopher Columbus, adalah sebuah markah tanah besar dan tempat wisata di borough Manhattan, New York City, terletak di persimpangan Eighth Avenue, Broadway, Central Park South (West 59th Street), dan Centra...

 

Middle Eastern barbecue This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Mangal barbecue – news · newspapers · books · scholar · JSTOR (September 2020) (Learn how and when to remove this template message) Meat prepared on a mangal Mangal is a Middle Eastern barbecue— it is the grilling apparatus on whi...

Zhe (Ж ж; italik: Ж ж)adalah sebuah alfabet Kiril. Huruf Kiril Zhe Penggunaan Fonetis:[ʐ], [ʒ]Nama:живѣтєSampel suaranoicon sumber · bantuan Alfabet KirilHuruf SlaviaАА́А̀А̂А̄ӒБВГҐДЂЃЕЕ́ÈЕ̂ЁЄЖЗЗ́ЅИИ́ЍИ̂ЙІЇЈКЛЉМНЊОŌПРСС́ТЋЌУУ́ У̀У̂ӮЎФХЦЧЏШЩЪЫЬЭЮЯHuruf non-SlaviaӐА̊А̃Ӓ̄ӔӘӘ́Ә̃ӚВ̌ҒГ̑Г̣Г̌ҔӺҒ̌ӶД̌Д̣Д̆ӖЕ̄Е̃Ё̄Є̈ӁҖӜҘӞЗ̌З̱З̣ԐԐ̈ӠӢИ�...

 

La campana bordone di Caspar e Johannes Moer a Grote di Sint-Laurenskerk (Alkmaar). Il bordone è la più pesante delle campane che appartengono ad uno strumento musicale, in particolare una campana o un carillon, e produce il suo tono più basso. Ad esempio, la campana più grande di un carillon di 64 campane, la sesta campana più grande appesa al mondo, nella città di Centralia, nel sud dell'Illinois, è identificata come bordone. Pesa 4.989 chilogrammi ed è accordata sul Sol. Nei Paesi ...

 

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Oktober 2022. Museum Mobil Sentul merupakan sebuah museum yang berada di kompleks Sirkuit Internasional Sentul. Museum ini dibangun sejak tahun 1992 dan diresmikan pada tanggal 20 Agustus 2000. Peresmiannya dilakukan oleh Kementerian Pemuda dan Olahraga waktu itu, y...

Unilever PLCLogo Sede della Unilever a Londra Stato Regno Unito Forma societariaPublic company Borse valori Euronext: UNA LSE: ULVR NYSE: UN NYSE: UL ISINGB00B10RZP78 Fondazione1929 (fusione tra Margarine Unie e fratelli Lever)1966 (Unilever S.p.A., Italia) Fondata daWilliam Hesketh Lever, Anton Jan Jurgens, Samuel Van den Berg Sede principaleLondra e Rotterdam Persone chiave Nils Andersen (Chairman) Alan Jope (A.D.) SettoreProduzione beni di largo consumo ProdottiCibi, prodotti per la c...

 

2010 single by Nipsey Hussle featuring LloydFeelin' MyselfSingle by Nipsey Hussle featuring LloydReleasedJuly 9, 2010 (2010-07-09)Recorded2010GenreHip hopLength3:43Label Cinematic Epic Songwriter(s)Ermias Asghedom Christopher Steven Brown Larrance Dopson Jeret Black Lloyd Polite Shaleah Nicole Stubblefield [1] Producer(s)1500 or Nothin'Nipsey Hussle singles chronology They Roll (2010) Feelin' Myself (2010) Proud of That (2012) Lloyd singles chronology Any Girl(2...

 

Saudi Civil and Political Rights Association (ACPRA)ACPRA logoFounded12 October 2009 (2009-10-12)[1]Founder11 co-founders[1]Dissolved9 March 2013 (2013-03-09)LocationSaudi ArabiaKey peopleMohammad Fahad al-Qahtani (leader),[2] Mohammed Saleh al-Bejadi (co-founder,[3] arrested 21 March 2011)[4]Websiteacpra.org The Saudi Civil and Political Rights Association (ACPRA) (Arabic: جمعية الحقوق المدنية والسي�...

Blanco County, TexasThe 1916 courthouse was the first permanent courthouse built after the county seat moved to Johnson City in 1890.Lokasi di negara bagian TexasLokasi negara bagian Texas di Amerika SerikatDidirikanFebruary 12 1858Asal namaThe Blanco RiverSeatJohnson CityWilayah • Keseluruhan713 sq mi (1.848 km2) • Daratan711 sq mi (1.842 km2) • Perairan2 sq mi (6 km2), 0.30%Populasi • (2010)10....

 

1979 studio album by WhitesnakeLovehunterCover art by Chris AchilleosStudio album by WhitesnakeReleased21 September 1979[1]RecordedMay 1979StudioRolling Stones Mobile, Clearwell Castle, GloucestershireGenreHard rockblues rockLength41:15LabelUnited ArtistsPolydor (Japan)ProducerMartin BirchWhitesnake chronology Trouble(1978) Lovehunter(1979) Ready an' Willing(1980) Singles from Lovehunter Long Way from HomeReleased: 26 October 1979[2] Lovehunter is the second studio al...

 

Wu Chinese language spoken in Shanghai This article is about the language of Shanghai. For related languages and dialects, see Wu Chinese. For other uses, see Shanghainese (disambiguation). Shanghainese上海閒話 / 上海闲话, zaon-he ghe-gho 滬語 / 沪语, wu-gniuPronunciation[zɑ̃̀hɛ́ ɦɛ̀ɦó], [ɦùɲý]Native toChinaRegionShanghainese proper traditionally in the urban center of Shanghai; Bendihua varieties spoken throughout Shanghai and parts of nearby Na...

Duchy in Central Europe between 1680–1807 Duchy of MagdeburgHerzogtum Magdeburg1680–1807 Coat of arms The Duchy of Magdeburg within Brandenburg-Prussia at the death of the Great Elector (1688)StatusFief of Brandenburg (1680–1701)Fief of Prussia (1701–1807)CapitalMagdeburg, HalleReligion Roman CatholicGovernmentDuchyHistory • Archbishopric of Magdeburgsecularised 1680• Joined Kingdom of Prussia 1701• Disestablished 1807 Preceded by Succeeded by Archbishopric o...

 

Canadian politician Arthur Aimé BruneauMember of the Canadian Parliamentfor RichelieuIn office1892–1907Preceded byHector-Louis LangevinSucceeded byAdélard Lanctot Personal detailsBorn(1864-03-04)March 4, 1864St-Athanase d'Iberville, Canada EastDiedDecember 1, 1940(1940-12-01) (aged 76)Political partyLiberal Arthur Aimé Bruneau (March 4, 1864 – December 1, 1940) was a Canadian politician. Born in St-Athanase d'Iberville, Canada East, the son of J. J. Bruneau and Marie Louise Br...

 

Shane DawsonShane Dawson pada bulan Juni 2012Informasi pribadiLahirShane Lee Yaw19 Juli 1988 (umur 35)Long Beach, California, Amerika SerikatPekerjaanKomedian, Musisi, dan pembuat filmPasanganRyland Adams (m. 2023)Situs webwww.shanedawsontv.comInformasi YouTubeKanal shane (channel utama) Shane Dawson TV Shane2 Tahun aktif2008–2020, 2021–sekarangGenre vlog comedy kecantikan musik Pelanggan19,4 juta (channel utama)[2]Total tayang4.29 milyar (channel utama)[1]&...

American businessman (born 1957) Tom SteyerSteyer in 2020BornThomas Fahr Steyer (1957-06-27) June 27, 1957 (age 67)Manhattan, New York, U.S.EducationYale University (BA)Stanford University (MBA)OccupationsClimate investorBusinessmanbankerphilanthropistfinancieractivistTitleCo-executive chair of Galvanize Climate SolutionsFounder of Farallon CapitalCo-founder of Beneficial State BankPolitical partyDemocraticBoard member ofHellman & FriedmanStanford UniversitySpouse Kat Taylor ...

 

French manufacturer and retailer of ice cream BerthillonLogoIndustrymanufacture of ice creams and sorbets Founded7 May 1985 FounderBerthillonHeadquartersÎle Saint-Louis, Paris, France Berthillon is a French manufacturer and retailer of luxury ice cream and sorbet, with its primary store on the Île Saint-Louis, in Paris, France. The company is owned and operated by the Chauvin family, descendants of the eponymous Monsieur Berthillon, who from 1954 operated a café and hotel called ...