Home   >   User Resources   >   Online Help   >   apaMeanVariance.Strategies.RiskParity.Hierarchical.Weights.FromCovars
 

 

Function index Version 3.0.0

apaMeanVariance.Strategies.RiskParity.Hierarchical.Weights.FromCovars(Covariances, DoShowVolRetOtherwiseWeightsOnly)

Excel=apaMeanVariance.Strategies.RiskParity.Hierarchical.Weights.FromCovars(Covariances, DoShowVolRetOtherwiseWeightsOnly)

Result

Returns the constituent weights of the fully invested and long-only hierarchical risk parity (HRP) portfolio. HRP allocates capital by clustering assets, reordering the covariance structure and assigning weights through recursive bisection, rather than by inverting the covariance matrix. Optionally, the portfolio volatility and expected return are shown in front of the weights.

Syntax

Covariances: n x n covariance matrix

DoShowVolRetOtherwiseWeightsOnly: optional; TRUE returns the portfolio volatility sqrt(w'Σw), calculated from Covariances and therefore a sample or population volatility as Covariances is, the portfolio expected return, which is #N/A because the function has no expected returns argument, and the n constituent weights, i.e. a 1 x (n + 2) row; FALSE returns the weights only; default: FALSE

Algorithm

The correlation structure implied by the covariance matrix is used to construct a hierarchical clustering of the assets.

Pressing Esc aborts the calculation; the function then returns "Calculation aborted by user."