Skip to main content

Principal Component Analysis: Variance Explained (Two Assets)

IntermediateQuantitative FinanceAlso known as: PCA, eigenvalues, factor models, first principal component

Finds: how much of the risk one common factor explains.

When to use it: Use it to find how many independent sources of risk drive a set of assets. The first component is the direction of largest variance, often a market or level factor. The eigenvalues add up to total variance, so each one divided by the sum is the share explained. This closed form is for two assets; larger sets use software but the reading is the same.

The formula

λ1,2\displaystyle \lambda_{1,2}=σ12+σ222±(σ12−σ222)2+σ122\displaystyle =\frac{\sigma_{1}^{2}+\sigma_{2}^{2}}{2}\pm\sqrt{\left(\frac{\sigma_{1}^{2}-\sigma_{2}^{2}}{2}\right)^{2}+\sigma_{12}^{2}}Share1\displaystyle \text{Share}_{1}=λ1λ1+λ2\displaystyle =\frac{\lambda_{1}}{\lambda_{1}+\lambda_{2}}

In words: Eigenvalues of the covariance matrix = (var1 + var2) / 2 plus or minus sqrt(((var1 − var2) / 2)^2 + cov^2); Share of variance explained by the first component = first eigenvalue / (sum of eigenvalues)

What each symbol means

lambda_1, lambda_2Eigenvalues: the variance carried by each principal componentnumber
sigma_1^2, sigma_2^2Variances of the two assetsnumber
sigma_12Covariance of the two assetsnumber

Worked example

Two assets have volatilities of 20% and 12% and a correlation of 0.6.

Covariance0.6 × 0.2 × 0.120.014400
First eigenvalue(0.2^2 + 0.12^2) ÷ 2 + sqrt(((0.2^2 − 0.12^2) ÷ 2)^2 + cov^2)0.046467
Second eigenvalue(0.2^2 + 0.12^2) ÷ 2 − sqrt(((0.2^2 − 0.12^2) ÷ 2)^2 + cov^2)0.007933
Variance share of the first component0.0464666 ÷ (0.0464666 + 0.00793345)85.42%
Variance share of the second component0.00793345 ÷ (0.0464666 + 0.00793345)14.58%
Angle of the first component0.5 × atan2(2 × cov, 0.2^2 − 0.12^2) × 180 ÷ 3.14159265358979324.2
The answer

The covariance is 0.014400. The two eigenvalues are 0.046467 and 0.007933, so the first component explains 85.42% of total variance and the second 14.58%. The loading angle of the first component is 24.2 degrees from asset 1, tilted toward the riskier asset.

Want every formula on a few pages?Get the free Cheat Sheet (PDF) →

Calculator

First eigenvalue0.046467
Second eigenvalue0.007933
Variance share of the first component85.42%

Keep going