apaStatFactors.FactorWeights(AssetReturns, nFactors, AssetWeights, IsCorrelElseCovar, DoForceUnitComponentVariances)
Excel
=apaStatFactors.FactorWeights(AssetReturns, nFactors, AssetWeights, IsCorrelElseCovar, DoForceUnitComponentVariances)Result
Returns the factor exposures of a portfolio based on a statistical factor model derived from the constituent returns.
Syntax
AssetReturns: r x c matrix containing the asset returns. Each column contains an asset return time series.
nFactors: number of statistical factors
AssetWeights: 1 x c vector of constituent weights
IsCorrelElseCovar: TRUE to use the correlation matrix, FALSE to use the covariance matrix
DoForceUnitComponentVariances: TRUE to scale the factors (principal components) to unit variance
Remarks
Uses population covariances (denominator n).
