Covariance matrix

From WikiMD's Wellness Encyclopedia

Error creating thumbnail:
Gaussian-2d

Matrix of covariances between elements of a random vector


Template:Linear algebra

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.
WikiMD
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's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. 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