Covariance matrix

From WikiMD's Food, Medicine & Wellness Encyclopedia

Gaussian-2d

Template:Linear algebra Template:Probability theory

A covariance matrix is a square matrix that contains the covariances 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.

Definition[edit | edit source]

Given a random vector \(\mathbf{X} = \begin{bmatrix} X_1 & X_2 & \cdots & X_n \end{bmatrix}^T\) of \(n\) random variables, the covariance matrix \(\Sigma\) is defined as: \[ \Sigma = \text{Cov}(\mathbf{X}) = \mathbb{E} \left[ (\mathbf{X} - \mathbb{E}[\mathbf{X}])(\mathbf{X} - \mathbb{E}[\mathbf{X}])^T \right] \] where \(\mathbb{E}[\mathbf{X}]\) is the expected value (mean) vector of \(\mathbf{X}\).

Properties[edit | edit source]

  • **Symmetry**: The covariance matrix is symmetric, i.e., \(\Sigma = \Sigma^T\).
  • **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\).
  • **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)\).

Applications[edit | edit source]

Covariance matrices are used in various applications, including:

  • **Principal component analysis (PCA)**: PCA uses the covariance matrix to identify the principal components of the data.
  • **Portfolio theory**: In finance, the covariance matrix is used to model the returns of different assets and to optimize the portfolio.
  • **Kalman filter**: The covariance matrix is used in the Kalman filter algorithm to estimate the state of a dynamic system.

Example[edit | edit source]

Consider a random vector \(\mathbf{X} = \begin{bmatrix} X_1 & X_2 \end{bmatrix}^T\) with the following properties: \[ \mathbb{E}[\mathbf{X}] = \begin{bmatrix} \mu_1 \\ \mu_2 \end{bmatrix}, \quad \text{Cov}(X_1, X_2) = \sigma_{12} \] The covariance matrix \(\Sigma\) is: \[ \Sigma = \begin{bmatrix} \sigma_1^2 & \sigma_{12} \\ \sigma_{12} & \sigma_2^2 \end{bmatrix} \] where \(\sigma_1^2\) and \(\sigma_2^2\) are the variances of \(X_1\) and \(X_2\), respectively.

See also[edit | edit source]

Related pages[edit | edit source]



This linear algebra related article is a stub. You can help WikiMD by expanding it.
Wiki.png

Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD


Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD is not a substitute for professional medical advice. See full disclaimer.

Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD