apaMeanVariance.Strategies.RiskParity.Weights.FromCovars(Covariances, DoShowVolRetOtherwiseWeightsOnly)
=apaMeanVariance.Strategies.RiskParity.Weights.FromCovars(Covariances, DoShowVolRetOtherwiseWeightsOnly)Result
Returns the constituent weights of the fully invested and long-only risk parity portfolio, i.e. the portfolio with equal contributions to portfolio volatility. Optionally, the portfolio volatility and expected return are shown in front of the weights.
Syntax
Covariances: n x n covariance matrix; must be positive semidefinite
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 risk parity portfolio is the risk budgeting portfolio with equal budgets b(i) = 1/n, i.e. the portfolio in which every asset contributes the same share of portfolio volatility:
The weights are determined exactly as in apaMeanVariance.Strategies.RiskBudgeting.Weights.FromCovars: the convex problem of Spinu (2013) is minimized with a damped Newton method, and the solution is normalized to sum to 1. See that function for the formulas and the convergence properties. The risk contributions match 1/n to machine precision.
Remarks
The equal volatility contribution portfolio is also called the “risk parity portfolio” or “equal risk contribution portfolio”. If all correlations are equal, it coincides with the inverse volatility portfolio of apaMeanVariance.Strategies.RiskParity.Robust.Weights.FromCovars; with two assets this holds for any correlation.
Pressing Esc aborts the calculation; the function then returns "Calculation aborted by user."
