Exercise: Computing for a Two-Factor Model and Checking PSD
Prerequisites: Covariance Matrices
Problem
Three assets follow a two-factor model:
with loadings
(Think market factor, value factor, = stock-specific.)
-
Compute explicitly as a matrix.
-
Verify is symmetric.
-
Check that is PSD by computing its eigenvalues numerically. (Use
numpy.linalg.eigvalsh.) -
Compute the correlation matrix where . Identify the most- and least-correlated pair of assets.
Hint
Numerical precision: compute first, then add . Don't forget to add to the diagonal only.
Jump to the solution when you're ready.