apaMeanVariance.Restricted.Unbounded.Weights.FromRiskTolerance(RiskTolerance, ExpectedReturns, Covariances, PortfolioExposure, DoShowVolRetOtherwiseWeightsOnly)
=apaMeanVariance.Restricted.Unbounded.Weights.FromRiskTolerance(RiskTolerance, ExpectedReturns, Covariances, PortfolioExposure, DoShowVolRetOtherwiseWeightsOnly)Result
Returns the weights of the restricted and unbounded mean-variance efficient portfolio for a given risk tolerance. Optionally, the portfolio volatility and expected return are shown in front of the weights.
Syntax
RiskTolerance: risk tolerance. Equals zero for the minimum variance portfolio (i.e. the portfolio of the most risk-averse investor) and increases towards plus infinity for less risk-averse investors
ExpectedReturns: 1 x n vector with expected constituent returns
Covariances: n x n covariance matrix
PortfolioExposure: value of the equality constraint on total portfolio exposure, i.e. the sum of constituent exposures (a value of 1 is the “no leverage” constraint)
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 e'w, and the n constituent weights, i.e. a 1 x (n + 2) row; FALSE returns the weights only; default: FALSE
