Markets: A Rigorous Course

14.3 Shrinkage covariance (Ledoit–Wolf)

Advanced about 10 min

Motivation

With nn assets and TT observations the sample covariance SS has n(n+1)/2n(n+1)/2 parameters. When nn is not small relative to TT, SS is noisy: its large eigenvalues are too large and its small eigenvalues too small, and if n>Tn > T it is singular. Inverting it, as (14.1)–(14.3) do, magnifies the noise.

14.3.1The optimal shrinkage intensity#

Setup

Let FF be a structured target with few parameters (for example mImI with m=tr⁡S/nm = \operatorname{tr}S/n, a constant-correlation matrix, or a one-factor model). Consider Σ^(δ)=δF+(1−δ)S\hat\Sigma(\delta) = \delta F + (1-\delta)S, δ∈[0,1]\delta \in [0,1], with loss E∥Σ^(δ)−Σ∥F2\mathbb E\|\hat\Sigma(\delta) - \Sigma\|_F^2 (Frobenius norm).

Proposition 14.6Optimal shrinkage intensity

If FF is non-random and ES=Σ\mathbb ES = \Sigma, the loss is minimised at

δ∗=E∥S−Σ∥F2E∥S−Σ∥F2+∥Σ−F∥F2,(14.4)\delta^* = \frac{\mathbb E\|S - \Sigma\|_F^2}{\mathbb E\|S - \Sigma\|_F^2 + \|\Sigma - F\|_F^2}, \tag{14.4}

the ratio of the estimation variance of SS to that variance plus the squared bias of FF.

Proof

Σ^(δ)−Σ=(S−Σ)−δ(S−F)\hat\Sigma(\delta) - \Sigma = (S - \Sigma) - \delta(S - F). So L(δ)=E∥S−Σ∥2−2δ E⟨S−Σ,S−F⟩+δ2 E∥S−F∥2,L(\delta) = \mathbb E\|S - \Sigma\|^2 - 2\delta\,\mathbb E\langle S - \Sigma, S - F\rangle + \delta^2\,\mathbb E\|S - F\|^2, a convex quadratic in δ\delta minimised at δ∗=E⟨S−Σ,S−F⟩/E∥S−F∥2\delta^* = \mathbb E\langle S - \Sigma, S - F\rangle/\mathbb E\|S - F\|^2. Write S−F=(S−Σ)+(Σ−F)S - F = (S - \Sigma) + (\Sigma - F). Since Σ−F\Sigma - F is non-random and E(S−Σ)=0\mathbb E(S - \Sigma) = 0, the cross terms vanish in expectation: E⟨S−Σ,S−F⟩=E∥S−Σ∥2\mathbb E\langle S - \Sigma, S - F\rangle = \mathbb E\|S - \Sigma\|^2 and E∥S−F∥2=E∥S−Σ∥2+∥Σ−F∥2\mathbb E\|S - F\|^2 = \mathbb E\|S - \Sigma\|^2 + \|\Sigma - F\|^2.∎

The intuition is the bias–variance trade-off: shrink a lot when SS is noisy (few observations, many assets) or the target is close to the truth.

14.3.2The Ledoit–Wolf estimator#

Ledoit–Wolf δ∗\delta^* involves the unknown Σ\Sigma. Ledoit & Wolf ("A Well-Conditioned Estimator for Large-Dimensional Covariance Matrices", Journal of Multivariate Analysis 88, 2004, 365–411) give consistent estimators of the numerator and denominator for the target mImI. With demeaned data xtx_t and the normalised norm ∥M∥2=tr⁡(MM⊤)/n\|M\|^2 = \operatorname{tr}(MM^\top)/n:

d2=∥S−mI∥2,bˉ2=1T2∑t=1T∥xtxt⊤−S∥2,b2=min⁡(bˉ2,d2),δ^=b2/d2.(14.5)d^2 = \|S - mI\|^2, \quad \bar b^2 = \frac1{T^2}\sum_{t=1}^{T}\|x_tx_t^\top - S\|^2, \quad b^2 = \min(\bar b^2, d^2), \quad \hat\delta = b^2/d^2. \tag{14.5}

bˉ2\bar b^2 estimates the variance of SS (the average squared deviation of single-observation outer products from their mean, divided by TT), and d2d^2 estimates the total dispersion of SS around the target. Their companion paper for portfolios, "Honey, I Shrunk the Sample Covariance Matrix" (Journal of Portfolio Management 30(4), 2004), uses a constant-correlation target.

Worked examplecode test

True Σ\Sigma diagonal with variances from 0.5 to 2.0, n=30n = 30, T=60T = 60. Over 15 samples, the Ledoit–Wolf estimate has less than 70% of the Frobenius loss of SS, always has δ^∈[0,1]\hat\delta \in [0, 1], and always has a smaller condition number. A smaller condition number means the inverse in (14.1)–(14.3) amplifies errors less.

Practitioner notes

For an Indian equity portfolio of 20–40 stocks estimated on 2–3 years of daily data, shrinkage changes GMV weights materially. Shrinking μ\mu is even more valuable: the James–Stein idea of pulling each sample mean toward a common mean is the same bias–variance argument applied to the first moment.

Create a free account

Reading is open to everyone. An account keeps your progress, answers, notes and code drafts, and gives you the study plan, the journals and the simulator. Running code needs an account approved for it.