Study Vault Search notes, aliases and full text
Graph
ConceptProbability and Statistics used inMSIAI-written · not yet proofread

Covariance Matrix

Also Covariance Operator · cov · Variance-Covariance Matrix · Kovarianzmatrix

The covariance matrix Σ_X = cov(X) = E{(X − μ_X)(X − μ_X)ᵀ} of a random vector X ∈ ℝⁿ collects all variances (diagonal) and covariances (off-diagonal) of its components in one symmetric positive semidefinite n × n matrix.

Formula#

cov⁡(X)=E{XX⊤}−μXμX⊤,cov⁡(QX)=Q cov⁡(X) Q⊤.\operatorname{cov}(X) = \mathbb{E}\{XX^\top\} - \mu_X\mu_X^\top, \qquad \operatorname{cov}(QX) = Q\,\operatorname{cov}(X)\,Q^\top.
ProofLinear transformation Y=QXY = QX, Q∈Rm×nQ \in \mathbb{R}^{m \times n} (MSI script)

μY=E{QX}=QμX\mu_Y = \mathbb{E}\{QX\} = Q\mu_X, so

ΣY=E{(QX−QμX)(QX−QμX)⊤}=E{Q(X−μX)(X−μX)⊤Q⊤}=Q E{(X−μX)(X−μX)⊤} Q⊤=QΣXQ⊤.\begin{aligned} \Sigma_Y &= \mathbb{E}\{(QX - Q\mu_X)(QX - Q\mu_X)^\top\} = \mathbb{E}\{Q(X - \mu_X)(X - \mu_X)^\top Q^\top\} \\ &= Q\,\mathbb{E}\{(X - \mu_X)(X - \mu_X)^\top\}\,Q^\top = Q\Sigma_X Q^\top. \end{aligned}

If m=nm = n and QQ is orthogonal (Q−1=Q⊤Q^{-1} = Q^\top): ΣY−1=(Q⊤)−1ΣX−1Q−1=QΣX−1Q⊤\Sigma_Y^{-1} = (Q^\top)^{-1}\Sigma_X^{-1}Q^{-1} = Q\Sigma_X^{-1}Q^\top.

Properties#

  • Symmetric and positive semidefinite: ΣX=ΣX⊤\Sigma_X = \Sigma_X^\top and z⊤ΣXz=E{(z⊤(X−μX))2}=Var⁡(z⊤X)≥0z^\top\Sigma_X z = \mathbb{E}\{(z^\top(X - \mu_X))^2\} = \operatorname{Var}(z^\top X) \ge 0 for all zz (Positive Semidefinite Matrix). The Multivariate Normal Distribution requires ΣX≻0\Sigma_X \succ 0.
  • Independent components give a diagonal covariance matrix (all off-diagonal covariances vanish).
  • Covariance of an estimator: for an unbiased estimator θ^(y)\hat\theta(y), cov⁡(θ^(y))\operatorname{cov}(\hat\theta(y)) measures its performance; smaller is better. Two unbiased estimators are compared in the matrix sense: cov⁡(θ^A)≽cov⁡(θ^B)\operatorname{cov}(\hat\theta^A) \succcurlyeq \operatorname{cov}(\hat\theta^B) means θ^B\hat\theta^B is better.
  • In MSI: the least squares estimate with i.i.d. noise of variance σϵ2\sigma_\epsilon^2 has cov⁡(θ^LS)=σϵ2(Φ⊤Φ)−1\operatorname{cov}(\hat\theta_\text{LS}) = \sigma_\epsilon^2(\Phi^\top\Phi)^{-1} (Least Squares Estimator).

Example#

Sources#

  • MSI script pp. 16–17 (§2.3.1–2.3.2), MSI Slides 02 > 2.3.1 Mean and Covariance Matrix (not published), MSI Slides 02 > 2.3.2 Multidimensional Normal Distribution (not published)
  • MSI script p. 18 (comparing estimators by their covariance), MSI Slides 02 > 2.4 Statistical Estimators (not published)
  • MSI script p. 38 (covariance of the LS estimate)

Search

Type In
↑ ↓ move ↵ open ⇥ next section Ctrl↵ results page Prefix # to search text only