<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikimd.org/index.php?action=history&amp;feed=atom&amp;title=Covariance_matrix</id>
	<title>Covariance matrix - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikimd.org/index.php?action=history&amp;feed=atom&amp;title=Covariance_matrix"/>
	<link rel="alternate" type="text/html" href="https://wikimd.org/index.php?title=Covariance_matrix&amp;action=history"/>
	<updated>2026-04-26T20:18:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wikimd.org/index.php?title=Covariance_matrix&amp;diff=5834617&amp;oldid=prev</id>
		<title>Prab: CSV import</title>
		<link rel="alternate" type="text/html" href="https://wikimd.org/index.php?title=Covariance_matrix&amp;diff=5834617&amp;oldid=prev"/>
		<updated>2024-05-28T00:39:54Z</updated>

		<summary type="html">&lt;p&gt;CSV import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:Gaussian-2d.png|Gaussian-2d|thumb]] {{Short description|Matrix of covariances between elements of a random vector}}&lt;br /&gt;
{{Linear algebra}}&lt;br /&gt;
{{Probability theory}}&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;covariance matrix&amp;#039;&amp;#039;&amp;#039; is a square matrix that contains the [[covariance]]s between elements of a [[random vector]]. It is a key concept in [[probability theory]] and [[statistics]], particularly in the fields of [[multivariate statistics]] and [[linear algebra]].&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
Given a random vector \(\mathbf{X} = \begin{bmatrix} X_1 &amp;amp; X_2 &amp;amp; \cdots &amp;amp; X_n \end{bmatrix}^T\) of \(n\) random variables, the covariance matrix \(\Sigma\) is defined as:&lt;br /&gt;
\[&lt;br /&gt;
\Sigma = \text{Cov}(\mathbf{X}) = \mathbb{E} \left[ (\mathbf{X} - \mathbb{E}[\mathbf{X}])(\mathbf{X} - \mathbb{E}[\mathbf{X}])^T \right]&lt;br /&gt;
\]&lt;br /&gt;
where \(\mathbb{E}[\mathbf{X}]\) is the [[expected value]] (mean) vector of \(\mathbf{X}\).&lt;br /&gt;
&lt;br /&gt;
== Properties ==&lt;br /&gt;
* **Symmetry**: The covariance matrix is symmetric, i.e., \(\Sigma = \Sigma^T\).&lt;br /&gt;
* **Positive Semi-Definiteness**: The covariance matrix is positive semi-definite, meaning that for any non-zero vector \(\mathbf{a}\), \(\mathbf{a}^T \Sigma \mathbf{a} \geq 0\).&lt;br /&gt;
* **Diagonal Elements**: The diagonal elements of the covariance matrix are the variances of the individual random variables, i.e., \(\Sigma_{ii} = \text{Var}(X_i)\).&lt;br /&gt;
&lt;br /&gt;
== Applications ==&lt;br /&gt;
Covariance matrices are used in various applications, including:&lt;br /&gt;
* **[[Principal component analysis]] (PCA)**: PCA uses the covariance matrix to identify the principal components of the data.&lt;br /&gt;
* **[[Portfolio theory]]**: In finance, the covariance matrix is used to model the returns of different assets and to optimize the portfolio.&lt;br /&gt;
* **[[Kalman filter]]**: The covariance matrix is used in the Kalman filter algorithm to estimate the state of a dynamic system.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Consider a random vector \(\mathbf{X} = \begin{bmatrix} X_1 &amp;amp; X_2 \end{bmatrix}^T\) with the following properties:&lt;br /&gt;
\[&lt;br /&gt;
\mathbb{E}[\mathbf{X}] = \begin{bmatrix} \mu_1 \\ \mu_2 \end{bmatrix}, \quad \text{Cov}(X_1, X_2) = \sigma_{12}&lt;br /&gt;
\]&lt;br /&gt;
The covariance matrix \(\Sigma\) is:&lt;br /&gt;
\[&lt;br /&gt;
\Sigma = \begin{bmatrix} \sigma_1^2 &amp;amp; \sigma_{12} \\ \sigma_{12} &amp;amp; \sigma_2^2 \end{bmatrix}&lt;br /&gt;
\]&lt;br /&gt;
where \(\sigma_1^2\) and \(\sigma_2^2\) are the variances of \(X_1\) and \(X_2\), respectively.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Variance]]&lt;br /&gt;
* [[Correlation matrix]]&lt;br /&gt;
* [[Multivariate normal distribution]]&lt;br /&gt;
* [[Linear regression]]&lt;br /&gt;
* [[Eigenvalues and eigenvectors]]&lt;br /&gt;
&lt;br /&gt;
== Related pages ==&lt;br /&gt;
* [[Probability theory]]&lt;br /&gt;
* [[Statistics]]&lt;br /&gt;
* [[Linear algebra]]&lt;br /&gt;
* [[Principal component analysis]]&lt;br /&gt;
* [[Portfolio theory]]&lt;br /&gt;
* [[Kalman filter]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linear algebra]]&lt;br /&gt;
[[Category:Probability theory]]&lt;br /&gt;
[[Category:Statistics]]&lt;br /&gt;
[[Category:Matrices]]&lt;br /&gt;
&lt;br /&gt;
{{Linear-algebra-stub}}&lt;/div&gt;</summary>
		<author><name>Prab</name></author>
	</entry>
</feed>