apaFactorModel.AssetCovars(Betas, ResidualVariances, FactorCovarMat)
Excel
=apaFactorModel.AssetCovars(Betas, ResidualVariances, FactorCovarMat)Result
Calculates the asset covariance matrix implied by a factor model from betas, residual variances and factor covariances.
Syntax
Betas: n x k matrix of asset betas, each row containing an asset, each column a factor
ResidualVariances: n x 1 vector of residual variances
FactorCovarMat: k x k factor covariance matrix
Algorithm
The covariance matrix is calculated as B F B' + D, with B the matrix of betas, F the factor covariance matrix and D the diagonal matrix of residual variances.
Remarks
The function is volatile.
