apaMeanVariance.Restricted.Unbounded.Weights.MSR(ExpectedReturns, Covariances, PortfolioExposure, DoShowVolRetOtherwiseWeightsOnly)
=apaMeanVariance.Restricted.Unbounded.Weights.MSR(ExpectedReturns, Covariances, PortfolioExposure, DoShowVolRetOtherwiseWeightsOnly)Result
Returns the weights of the restricted and unbounded maximum Sharpe ratio portfolio. Optionally, the portfolio volatility and expected return are shown in front of the weights.
Syntax
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
Remarks
The calculations assume that the expected returns represent excess returns.
A numerical procedure is used to determine the asset weights. With certain inputs, the procedure can take long to find a result or not find a result at all.
