Covariance Matrix Estimation

bayesianempirical-bayescovariance-matrixhierarchical-modellongitudinal-datashrinkageregression

Definition

Covariance matrix estimation is the problem of inferring the p×pp \times p population covariance matrix Σ\Sigma from nn observations when nn is not large relative to pp, so that the sample covariance matrix S^\hat{S} is a poor estimator. The core challenge is eigenvalue bias: sample eigenvalues λ^1λ^p\hat\lambda_1 \geq \cdots \geq \hat\lambda_p overestimate the spread of population eigenvalues because random sample eigenvectors push extremes apart. Shrinkage estimators correct this by pulling eigenvalues toward each other and, optionally, shrinking the stabilized matrix toward a structured target.

Key Ideas

How It Works

Given spectral decomposition S^=U^diag(λ^)U^\hat{S} = \hat{U}\,\mathrm{diag}(\hat\lambda)\,\hat{U}':

  1. Stage 1 — Eigenvalue shrinkage: Replace each λ^i\hat\lambda_i by λ~i\tilde\lambda_i (Stein, Ledoit, or log-eigenvalue posterior mean). Form Σ~1=U^diag(λ~)U^\tilde\Sigma_1 = \hat{U}\,\mathrm{diag}(\tilde\lambda)\,\hat{U}'.
  2. Stage 2 — Structure shrinkage: Compute shrinkage weight α^=argminαMSE(αΣ~1+(1α)T)\hat\alpha = \mathrm{argmin}_\alpha\, \mathrm{MSE}(\alpha\tilde\Sigma_1 + (1-\alpha)T) toward structured target TT. Final estimator: Σ~=α^Σ~1+(1α^)T\tilde\Sigma = \hat\alpha\tilde\Sigma_1 + (1-\hat\alpha)T.

For the correlation-shrinkage variant: apply stage-1 eigenvalue shrinkage to the eigenvalues, then Fisher-z-shrink the off-diagonal correlations, then reconstruct Σ~\tilde\Sigma from the shrunk DD (diagonal variances) and shrunk correlation matrix R~\tilde{R}.

The moment estimator for τ2\tau^2 in the log-eigenvalue method is adapted from DerSimonian-Laird (1986): the marginal variance of log(λ^i)\log(\hat\lambda_i) is 2/n2/n and the signal variance is τ2\tau^2, so τ^2=i(log(λ^i)log(λˉ))2/(p+4)2/n\hat\tau^2 = \sum_i (\log(\hat\lambda_i) - \log(\bar\lambda))^2 / (p+4) - 2/n, floored at 0.

Why It Matters

When nn is moderate and pp is non-trivial (e.g., 24-electrode electroencephalography (EEG) sleep data, p=24p=24, n=53n=53), shrinkage can reduce mean squared error (MSE) by 30–70% relative to the sample covariance matrix and reduce MSE of downstream regression coefficients by 30–50%. The log-eigenvalue estimator achieves nearly the same Percentage Relative Improvement in Average Loss (PRIAL) as the Stein estimator while being computationally simpler (no Markov chain Monte Carlo (MCMC), no numerical optimization). All estimators are consistent and asymptotically efficient under standard conditions.

Open Questions

Related