Unit 12, lesson 90

Factor models and covariance estimation

How a factor model splits covariance into loadings, factor covariance and residual covariance, why sample and shrunk covariance matrices are positive semidefinite, and how principal components maximize the Rayleigh quotient.

  • Video 90
  • Mean-variance optimization and covariance estimation

Two constructed assets have loadings 11 and 1.51.5 on one common factor, so part of their returns moves together. How much of a portfolio’s variance comes from the factor and how much from movements specific to each asset, and what goes wrong when the covariance matrix has to be estimated from few observations of many assets? This lesson builds covariance from a factor model, proves that sample and shrunk covariance matrices are positive semidefinite, and derives principal components as the maximizers of the Rayleigh quotient, keeping track of what each method assumes.

Key terms

Factor model

Definition Let R∈RdR \in \mathbb{R}^d be one-period asset returns with finite second moments, mean μ\mu and covariance Σ\Sigma, under one fixed measure such as the physical measure P\mathbb{P}. A linear factor model with kk factors writes

R−μ=Bf+ε,R - \mu = B f + \varepsilon ,

where f∈Rkf \in \mathbb{R}^k is a centered factor vector with covariance FF, ε∈Rd\varepsilon \in \mathbb{R}^d is a centered residual vector with covariance DD, and Cov⁡(f,ε)=0\operatorname{Cov}(f, \varepsilon) = 0, the k×dk \times d zero matrix. The d×kd \times k matrix BB holds the factor loadings, and BijB_{ij} is the sensitivity of asset ii to factor jj. Expanding the covariance of the sum, the two cross terms vanish by assumption, so

Σ=BFB⊤+D.\Sigma = B F B^{\top} + D .

If FF is invertible, then Cov⁡(R,f)=BF\operatorname{Cov}(R, f) = BF, so B=Cov⁡(R,f)F−1B = \operatorname{Cov}(R, f) F^{-1} is the matrix of population regression coefficients of the returns on the factors, and with one factor the loading of asset ii is βi=Cov⁡(Ri,f)/Var⁡(f)\beta_i = \operatorname{Cov}(R_i, f)/\operatorname{Var}(f). Conversely, defining BB by this formula makes Cov⁡(f,ε)=0\operatorname{Cov}(f, \varepsilon) = 0 automatically. Loadings and factors are identified only together. For any invertible k×kk \times k matrix HH, the loadings BH−1BH^{-1} and the factors HfHf, with covariance HFH⊤HFH^{\top}, give the same returns and the same Σ\Sigma, so a normalization, such as F=IF = I or a factor that is a traded return with its own scale, has to be fixed before a loading has a size. For a portfolio ww the factor exposure is B⊤wB^{\top} w, and

w⊤Σw=(B⊤w)⊤F(B⊤w)+w⊤Dw.\begin{aligned} w^{\top} \Sigma w &= (B^{\top} w)^{\top} F (B^{\top} w) \\[0.4em] &\quad + w^{\top} D w . \end{aligned}

In plain words Each return is a common part, driven by a few factors through its loadings, plus a part of its own. Covariance between two assets then comes from the factors they share and from whatever dependence their residuals still carry. Doubling a factor and halving every loading on it describes exactly the same returns, so a loading means something only relative to a stated factor scale.

Example One factor with variance F=0.01F = 0.01, loadings β=(1,1.5)\beta = (1, 1.5) and uncorrelated residuals with variances 0.0040.004 and 0.0090.009, all constructed, give

Σ=0.01[11.51.52.25]+[0.004000.009]=[0.0140.0150.0150.0315].\begin{aligned} \Sigma &= 0.01 \begin{bmatrix} 1 & 1.5 \\ 1.5 & 2.25 \end{bmatrix} \\[0.4em] &\quad + \begin{bmatrix} 0.004 & 0 \\ 0 & 0.009 \end{bmatrix} \\[0.4em] &= \begin{bmatrix} 0.014 & 0.015 \\ 0.015 & 0.0315 \end{bmatrix}. \end{aligned}

The portfolio w=(0.6,0.4)w = (0.6, 0.4) has factor exposure 0.6⋅1+0.4⋅1.5=1.20.6 \cdot 1 + 0.4 \cdot 1.5 = 1.2, factor variance 1.22⋅0.01=0.01441.2^2 \cdot 0.01 = 0.0144 and residual variance 0.36⋅0.004+0.16⋅0.009=0.002880.36 \cdot 0.004 + 0.16 \cdot 0.009 = 0.00288. The total 0.017280.01728 equals w⊤Σww^{\top} \Sigma w, and the factor accounts for 5/65/6 of it. The structure also saves parameters. For d=500d = 500 assets a full covariance matrix has 125250125250 distinct entries, while k=10k = 10 factors with a diagonal DD need 5000+55+500=55555000 + 55 + 500 = 5555 numbers.

Residual covariance

Definition In a factor model the residual covariance is D=Cov⁡(ε)D = \operatorname{Cov}(\varepsilon), the part of Σ\Sigma that the factors do not explain. It is a covariance matrix, hence symmetric and positive semidefinite, so Σ=BFB⊤+D\Sigma = BFB^{\top} + D is positive semidefinite, and it is positive definite whenever DD is. A strict factor model assumes that DD is diagonal, which means the residuals of different assets are uncorrelated. That is an additional assumption. Regression on the factors makes each residual uncorrelated with the factors, but it does not make the residuals uncorrelated with each other, and a common factor missing from ff appears as off-diagonal entries of DD. A proposed nondiagonal DD must itself be positive semidefinite, which for two assets means nonnegative diagonal entries and D122≤D11D22D_{12}^2 \le D_{11} D_{22}.

In plain words The residual covariance is where the model admits what its factors miss. Making it diagonal is a claim that nothing common is left, and if that claim is wrong, portfolios exposed to the forgotten common movement carry more risk than the model reports.

Example Keep the factor and the residual variances of the previous example, but let the residuals have covariance 0.0020.002, a residual correlation of 0.002/0.004⋅0.009=1/30.002/\sqrt{0.004 \cdot 0.009} = 1/3. The new DD has positive diagonal entries and determinant 0.000036−0.000004=0.000032>00.000036 - 0.000004 = 0.000032 > 0, so it is positive definite. The off-diagonal entry of Σ\Sigma rises from 0.0150.015 to 0.0170.017, and the variance of w=(0.6,0.4)w = (0.6, 0.4) rises by 2⋅0.6⋅0.4⋅0.002=0.000962 \cdot 0.6 \cdot 0.4 \cdot 0.002 = 0.00096 to 0.018240.01824, although its factor part is still 0.01440.0144.

Sample covariance matrix

Definition Given observations r1,…,rn∈Rdr_1, \dots, r_n \in \mathbb{R}^d of the return vector, with n≥2n \ge 2 and sample mean rˉ=1n∑krk\bar{r} = \frac1n \sum_k r_k, the sample covariance matrix is

Σ^=1n−1∑k=1n(rk−rˉ)×(rk−rˉ)⊤.\begin{aligned} \hat{\Sigma} &= \frac{1}{n - 1} \sum_{k=1}^{n} (r_k - \bar{r}) \\[0.4em] &\qquad \times (r_k - \bar{r})^{\top} . \end{aligned}

It is an estimate computed from data and a different object from the population covariance Σ\Sigma. For independent, identically distributed observations with finite second moments, E[Σ^]=ΣE[\hat{\Sigma}] = \Sigma. It is positive semidefinite, because for every w∈Rdw \in \mathbb{R}^d the projected deviations yk=w⊤(rk−rˉ)y_k = w^{\top} (r_k - \bar{r}) give

w⊤Σ^w=1n−1∑k=1nyk2≥0.w^{\top} \hat{\Sigma} w = \frac{1}{n - 1} \sum_{k=1}^{n} y_k^2 \ge 0 .

The centered vectors rk−rˉr_k - \bar{r} sum to zero, so they span a subspace of dimension at most n−1n - 1, and rank⁡Σ^≤n−1\operatorname{rank} \hat{\Sigma} \le n - 1. When d≥nd \ge n the matrix is singular, and any nonzero ww orthogonal to every centered observation is a position with zero sample variance. The bound is only an upper bound, and data that vary in fewer directions give a smaller rank. Even when Σ^\hat{\Sigma} is invertible, its extreme eigenvalues are biased outward. The largest eigenvalue of a symmetric matrix is a convex function of the matrix and the smallest is concave, so Jensen’s inequality and E[Σ^]=ΣE[\hat{\Sigma}] = \Sigma give

E[λmax⁡(Σ^)]≥λmax⁡(Σ),E[λmin⁡(Σ^)]≤λmin⁡(Σ).\begin{gathered} E[\lambda_{\max}(\hat{\Sigma})] \ge \lambda_{\max}(\Sigma), \\[0.4em] E[\lambda_{\min}(\hat{\Sigma})] \le \lambda_{\min}(\Sigma). \end{gathered}

In plain words A sample covariance can never produce a negative variance, because it is built from squared deviations. It can produce a zero variance, for a position that happened to cancel in every observation, and its smallest eigenvalue is too small on average, markedly so when there are few observations per asset. An optimizer that inverts it is drawn toward exactly the directions whose risk the sample understates.

Example Two observations of two assets, r1=(0.01,0.03)r_1 = (0.01, 0.03) and r2=(0.03,−0.01)r_2 = (0.03, -0.01), have mean (0.02,0.01)(0.02, 0.01) and centered values (−0.01,0.02)(-0.01, 0.02) and (0.01,−0.02)(0.01, -0.02). With n−1=1n - 1 = 1,

Σ^=10−4[2−4−48],\hat{\Sigma} = 10^{-4} \begin{bmatrix} 2 & -4 \\ -4 & 8 \end{bmatrix},

which has determinant 00 and rank 11. The vector (2,1)(2, 1) is orthogonal to both centered observations, so the budget portfolio (2/3,1/3)(2/3, 1/3) has zero sample variance. In a simulation with five independent assets of variance 0.040.04 and 2020 normal observations per sample, the smallest sample eigenvalue averaged about 0.0150.015 and the largest about 0.0730.073 over 2000020000 samples, while every population eigenvalue is 0.040.04.

Covariance shrinkage

Definition Let Σ^\hat{\Sigma} be a sample covariance and TT a symmetric positive semidefinite target, for example the diagonal of Σ^\hat{\Sigma}, a multiple of the identity or a factor-model covariance. The shrinkage estimator with intensity α∈[0,1]\alpha \in [0, 1] is

Σ^α=(1−α)Σ^+αT.\hat{\Sigma}_{\alpha} = (1 - \alpha) \hat{\Sigma} + \alpha T .

Its quadratic form w⊤Σ^αw=(1−α)w⊤Σ^w+α w⊤Tww^{\top} \hat{\Sigma}_{\alpha} w = (1 - \alpha) w^{\top} \hat{\Sigma} w + \alpha\, w^{\top} T w is a convex combination of two nonnegative numbers, so Σ^α\hat{\Sigma}_{\alpha} is positive semidefinite. If TT is positive definite and α>0\alpha > 0, then w⊤Σ^αw≥α w⊤Tw>0w^{\top} \hat{\Sigma}_{\alpha} w \ge \alpha\, w^{\top} T w > 0 for every w≠0w \ne 0, so Σ^α\hat{\Sigma}_{\alpha} is positive definite and invertible however singular Σ^\hat{\Sigma} is, with smallest eigenvalue at least αλmin⁡(T)\alpha \lambda_{\min}(T). With the diagonal target the variances stay as they are and every covariance is multiplied by 1−α1 - \alpha. Shrinkage trades estimation variance for bias. For a target TT that does not depend on the data and an unbiased Σ^\hat{\Sigma} with finite expected squared error, the cross term has mean zero and

E∥Σ^α−Σ∥F2=(1−α)2E∥Σ^−Σ∥F2+α2∥T−Σ∥F2,\begin{aligned} &E \lVert \hat{\Sigma}_{\alpha} - \Sigma \rVert_F^2 \\[0.4em] &= (1 - \alpha)^2 E \lVert \hat{\Sigma} - \Sigma \rVert_F^2 \\[0.4em] &\quad + \alpha^2 \lVert T - \Sigma \rVert_F^2 , \end{aligned}

where ∥⋅∥F\lVert \cdot \rVert_F is the Frobenius norm. Its derivative at α=0\alpha = 0 is −2E∥Σ^−Σ∥F2-2E \lVert \hat{\Sigma} - \Sigma \rVert_F^2, so a small positive intensity lowers the expected error whenever Σ^\hat{\Sigma} has any. The best intensity depends on the unknown Σ\Sigma. Estimating it from the data, for example by the Ledoit-Wolf method with its own target and assumptions, is a statistical result that is only referred to here, and an intensity supplied for an illustration is not an optimal estimate.

In plain words Shrinkage pulls a noisy estimate part of the way toward a simpler structure. It cannot create a negative variance, and with a positive definite target it removes the zero variances, so the inverse exists. Whether the result predicts future covariance better depends on the target and the intensity, which is a statistical question separate from this algebra.

Example Treat the factor-model matrix of the first card as if it were an estimate and shrink it by α=0.3\alpha = 0.3 toward its diagonal. The variances 0.0140.014 and 0.03150.0315 stay, and the covariance becomes 0.7⋅0.015=0.01050.7 \cdot 0.015 = 0.0105. The variance of w=(0.6,0.4)w = (0.6, 0.4) falls from 0.017280.01728 to

0.36⋅0.014+0.16⋅0.0315+2⋅0.24⋅0.0105=0.01512,\begin{aligned} &0.36 \cdot 0.014 + 0.16 \cdot 0.0315 \\[0.4em] &\quad + 2 \cdot 0.24 \cdot 0.0105 \\[0.4em] &= 0.01512 , \end{aligned}

while the variance of the long-short portfolio (0.6,−0.4)(0.6, -0.4) rises from 0.002880.00288 to 0.005040.00504. With two assets and a positive covariance, shrinking toward the diagonal lowers the variance of portfolios whose weights have the same sign and raises it for weights of opposite sign. The eigenvalues move from about 0.040120.04012 and 0.005380.00538 to about 0.036420.03642 and 0.009080.00908, so the smallest one grows.

Rayleigh quotient

Definition For a real symmetric d×dd \times d matrix Σ\Sigma and a vector v≠0v \ne 0, the Rayleigh quotient is

QΣ(v)=v⊤Σvv⊤v,Q_{\Sigma}(v) = \frac{v^{\top} \Sigma v}{v^{\top} v} ,

which does not change when vv is multiplied by a nonzero number. By the spectral theorem, Σ\Sigma has an orthonormal basis of eigenvectors e1,…,ede_1, \dots, e_d with eigenvalues λ1≥⋯≥λd\lambda_1 \ge \dots \ge \lambda_d. Writing v=∑jcjejv = \sum_j c_j e_j gives

QΣ(v)=∑jλjcj2∑jcj2,Q_{\Sigma}(v) = \frac{\sum_j \lambda_j c_j^2}{\sum_j c_j^2} ,

a weighted average of the eigenvalues with weights cj2/∑ici2c_j^2 / \sum_i c_i^2. Hence λd≤QΣ(v)≤λ1\lambda_d \le Q_{\Sigma}(v) \le \lambda_1, with the maximum attained at v=e1v = e_1 and the minimum at v=edv = e_d. In particular the maximum of v⊤Σvv^{\top} \Sigma v subject to v⊤v=1v^{\top} v = 1 is λmax⁡(Σ)=λ1\lambda_{\max}(\Sigma) = \lambda_1. The Lagrange condition of that problem, Σv=ℓv\Sigma v = \ell v, holds at every unit eigenvector, so it only lists the candidates, and the weighted average shows which candidate is the maximum. Restricting vv to be orthogonal to e1,…,ej−1e_1, \dots, e_{j-1} removes their coefficients, and the same argument gives the maximum λj\lambda_j, attained at eje_j.

In plain words For a covariance matrix, the Rayleigh quotient is the variance of the position vv per unit of its squared length. No direction carries more variance per unit of squared length than the top eigenvector, and none carries less than the bottom one. The normalization v⊤v=1v^{\top} v = 1 fixes the length of a holding vector, and it is not the budget constraint 1⊤v=1\mathbf{1}^{\top} v = 1. With a positive definite Σ\Sigma, d≥2d \ge 2 and shorts allowed, budget portfolios can have arbitrarily large variance.

Example For the factor-model matrix with rows (0.014,0.015)(0.014, 0.015) and (0.015,0.0315)(0.015, 0.0315), the trace is 0.04550.0455 and the determinant is 0.000441−0.000225=0.0002160.000441 - 0.000225 = 0.000216, so the eigenvalues are the roots of ℓ2−0.0455 ℓ+0.000216=0\ell^2 - 0.0455\,\ell + 0.000216 = 0, about 0.0401160.040116 and 0.0053840.005384. The Rayleigh quotients of (1,0)(1, 0), (0,1)(0, 1) and (1,1)(1, 1) are 0.0140.014, 0.03150.0315 and 0.0755/2=0.037750.0755/2 = 0.03775, all between the two eigenvalues. The top unit eigenvector is about (0.498,0.867)(0.498, 0.867).

Principal components

Definition Let X=R−μX = R - \mu be centered returns whose covariance Σ\Sigma has orthonormal eigenvectors e1,…,ede_1, \dots, e_d and eigenvalues λ1≥⋯≥λd≥0\lambda_1 \ge \dots \ge \lambda_d \ge 0. The jjth principal component is the scalar ej⊤Xe_j^{\top} X, with loading vector eje_j. By the Rayleigh quotient card, e1e_1 maximizes Var⁡(v⊤X)=v⊤Σv\operatorname{Var}(v^{\top} X) = v^{\top} \Sigma v over unit vectors, and each eje_j maximizes it over unit vectors orthogonal to e1,…,ej−1e_1, \dots, e_{j-1}. The components are uncorrelated, since Cov⁡(ei⊤X,ej⊤X)=ei⊤Σej\operatorname{Cov}(e_i^{\top} X, e_j^{\top} X) = e_i^{\top} \Sigma e_j is λj\lambda_j for i=ji = j and 00 otherwise, and their variances add up to the total variance, ∑jλj=tr⁡Σ=∑iVar⁡(Ri)\sum_j \lambda_j = \operatorname{tr} \Sigma = \sum_i \operatorname{Var}(R_i). Keeping the first kk components splits

Σ=∑j≤kλjejej⊤+∑j>kλjejej⊤,\begin{aligned} \Sigma &= \sum_{j \le k} \lambda_j e_j e_j^{\top} \\[0.4em] &\quad + \sum_{j > k} \lambda_j e_j e_j^{\top} , \end{aligned}

which is a factor model with uncorrelated factors ej⊤Xe_j^{\top} X of variances λj\lambda_j, residuals uncorrelated with them, and a residual covariance equal to the second sum, which is not diagonal in general. When tr⁡Σ>0\operatorname{tr} \Sigma > 0, the explained-variance ratio of the first kk components is (λ1+⋯+λk)/tr⁡Σ(\lambda_1 + \dots + \lambda_k)/\operatorname{tr} \Sigma. Stated without proof, the first sum is a best approximation of Σ\Sigma by a matrix of rank at most kk in the Frobenius norm, which is the Eckart-Young theorem. Applied to Σ^\hat{\Sigma}, the same construction gives sample principal components. The sign of each eigenvector is arbitrary, and when eigenvalues are equal or close the directions are not determined or are unstable under small changes in the data. Principal components of the correlation matrix solve a different problem from those of the covariance matrix, because standardizing each return to unit variance changes the quadratic form.

In plain words Principal components are an orthogonal change of coordinates for the returns, into uncorrelated directions ordered by variance. When the first few carry most of the total variance, they make convenient statistical factors. They are directions of variance, not economic causes, and a portfolio orthogonal to the kept directions still has the discarded variance, which a model that drops the residual reports as zero.

Example For the factor-model matrix, the first component has variance about 0.0401160.040116, so it explains about 0.040116/0.0455≈88.20.040116/0.0455 \approx 88.2 percent of the total, and its loading vector, about (0.498,0.867)(0.498, 0.867), tilts toward the more volatile second asset. The unit vector e2≈(−0.867,0.498)e_2 \approx (-0.867, 0.498) has variance about 0.0053840.005384, but a model that keeps only the first component assigns it variance zero. The correlation of the two assets is 0.015/0.014⋅0.0315=0.015/0.021=5/70.015/\sqrt{0.014 \cdot 0.0315} = 0.015/0.021 = 5/7. Principal components of the correlation matrix have the directions (1,1)/2(1, 1)/\sqrt{2} and (1,−1)/2(1, -1)/\sqrt{2} for any nonzero correlation of two assets, here with eigenvalues 1±5/71 \pm 5/7, so the first one explains 6/7≈85.76/7 \approx 85.7 percent of the standardized total.

Check yourself

  1. One factor has variance 0.040.04, two assets have loadings 0.80.8 and 1.21.2 on it, and their residuals are uncorrelated with variances 0.010.01 and 0.020.02. Find the covariance matrix and split the variance of the equal-weight portfolio into its factor and residual parts.
Show the answer

The factor part of the covariance matrix is 0.04 ββ⊤0.04\,\beta\beta^{\top}, with entries 0.04⋅0.64=0.02560.04 \cdot 0.64 = 0.0256, 0.04⋅0.96=0.03840.04 \cdot 0.96 = 0.0384 and 0.04⋅1.44=0.05760.04 \cdot 1.44 = 0.0576. Adding the residual variances on the diagonal gives

Σ=[0.03560.03840.03840.0776].\Sigma = \begin{bmatrix} 0.0356 & 0.0384 \\ 0.0384 & 0.0776 \end{bmatrix}.

The portfolio (0.5,0.5)(0.5, 0.5) has factor exposure 0.5⋅0.8+0.5⋅1.2=10.5 \cdot 0.8 + 0.5 \cdot 1.2 = 1, factor variance 12⋅0.04=0.041^2 \cdot 0.04 = 0.04 and residual variance 0.25⋅0.01+0.25⋅0.02=0.00750.25 \cdot 0.01 + 0.25 \cdot 0.02 = 0.0075, so its variance is 0.04750.0475, of which the factor accounts for about 84.284.2 percent. The full quadratic form agrees, since 0.25⋅0.0356+0.25⋅0.0776+2⋅0.25⋅0.0384=0.0089+0.0194+0.0192=0.04750.25 \cdot 0.0356 + 0.25 \cdot 0.0776 + 2 \cdot 0.25 \cdot 0.0384 = 0.0089 + 0.0194 + 0.0192 = 0.0475.

  1. Three observations of two assets are r1=(0.02,0.01)r_1 = (0.02, 0.01), r2=(0.00,0.03)r_2 = (0.00, 0.03) and r3=(0.04,−0.01)r_3 = (0.04, -0.01). There are more observations than assets. Is the sample covariance matrix invertible? Shrink it by α=0.25\alpha = 0.25 toward its diagonal and compare the variance of the portfolio (0.5,0.5)(0.5, 0.5) before and after.
Show the answer

The sample mean is (0.02,0.01)(0.02, 0.01), and the centered observations are (0,0)(0, 0), (−0.02,0.02)(-0.02, 0.02) and (0.02,−0.02)(0.02, -0.02). Dividing the sum of their outer products by n−1=2n - 1 = 2 gives

Σ^=10−4[4−4−44],\hat{\Sigma} = 10^{-4} \begin{bmatrix} 4 & -4 \\ -4 & 4 \end{bmatrix},

whose determinant is 00. The rank is 11, below the bound n−1=2n - 1 = 2, because all centered observations lie on one line. The vector (1,1)(1, 1) is orthogonal to them, so the portfolio (0.5,0.5)(0.5, 0.5) has sample variance 00. Having more observations than assets is necessary for invertibility but not sufficient.

Shrinking toward the diagonal keeps the variances 0.00040.0004 and multiplies the covariance by 0.750.75, giving −0.0003-0.0003. The determinant becomes 0.00000016−0.00000009=0.00000007>00.00000016 - 0.00000009 = 0.00000007 > 0 with positive diagonal entries, so the shrunk matrix is positive definite, as the target diag⁡(0.0004,0.0004)\operatorname{diag}(0.0004, 0.0004) is positive definite and α>0\alpha > 0. The portfolio variance becomes 0.25⋅0.0004⋅2+2⋅0.25⋅(−0.0003)=0.000050.25 \cdot 0.0004 \cdot 2 + 2 \cdot 0.25 \cdot (-0.0003) = 0.00005. If one asset had zero sample variance, the diagonal target would be singular too and this guarantee would be lost.

  1. A covariance matrix has rows (0.05,0.03)(0.05, 0.03) and (0.03,0.05)(0.03, 0.05). Find its principal components and the share of variance explained by the first, check that the Rayleigh quotient of (2,1)(2, 1) lies between the eigenvalues, and find the variance that a one-component model assigns to the spread (1,−1)(1, -1) together with its true variance.
Show the answer

Multiplying the matrix by (1,1)(1, 1) gives (0.08,0.08)(0.08, 0.08) and by (1,−1)(1, -1) gives (0.02,−0.02)(0.02, -0.02), so the eigenvalues are 0.080.08 and 0.020.02 with unit eigenvectors (1,1)/2(1, 1)/\sqrt{2} and (1,−1)/2(1, -1)/\sqrt{2}. The trace is 0.10.1, and the first component explains 0.08/0.1=800.08/0.1 = 80 percent of it. For v=(2,1)v = (2, 1),

v⊤Σv=4⋅0.05+0.05+4⋅0.03=0.37,\begin{aligned} v^{\top} \Sigma v &= 4 \cdot 0.05 + 0.05 \\[0.4em] &\quad + 4 \cdot 0.03 = 0.37 , \end{aligned}

and v⊤v=5v^{\top} v = 5, so the Rayleigh quotient is 0.0740.074, between 0.020.02 and 0.080.08. The one-component model is 0.08 e1e1⊤0.08\, e_1 e_1^{\top}, and the spread (1,−1)(1, -1) is orthogonal to e1e_1, so the model assigns it variance 00. Its true variance is 0.05+0.05−2⋅0.03=0.040.05 + 0.05 - 2 \cdot 0.03 = 0.04, which the discarded term 0.02 e2e2⊤0.02\, e_2 e_2^{\top} recovers exactly. Dropping the residual of a principal-component model makes this spread look riskless.

How this lesson connects