Principal Component Analysis: Variance Explained (Two Assets)
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
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_2 | Eigenvalues: the variance carried by each principal component | number |
| sigma_1^2, sigma_2^2 | Variances of the two assets | number |
| sigma_12 | Covariance of the two assets | number |
Worked example
Two assets have volatilities of 20% and 12% and a correlation of 0.6.
| Covariance | 0.6 × 0.2 × 0.12 | 0.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 component | 0.0464666 ÷ (0.0464666 + 0.00793345) | 85.42% |
| Variance share of the second component | 0.00793345 ÷ (0.0464666 + 0.00793345) | 14.58% |
| Angle of the first component | 0.5 × atan2(2 × cov, 0.2^2 − 0.12^2) × 180 ÷ 3.141592653589793 | 24.2 |
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.