Code covered by the BSD License  

Highlights from
Risk and Asset Allocation

image thumbnail
from Risk and Asset Allocation by Attilio Meucci
Software for quantitative portfolio and risk management

ChoiceOptimal(Market,InvestorProfile)
function Allocation = ChoiceOptimal(Market,InvestorProfile)


Exp_Prices=diag(Market.CurrentPrices)*(1+Market.LinRets_EV);
Cov_Prices=diag(Market.CurrentPrices)*Market.LinRets_Cov*diag(Market.CurrentPrices);

S=inv(Cov_Prices);
A=Market.CurrentPrices'*S*Market.CurrentPrices; 
B=Market.CurrentPrices'*S*Exp_Prices; 

Gamma = (InvestorProfile.Budget - InvestorProfile.RiskPropensity*B)/A;
Allocation = InvestorProfile.RiskPropensity*S*Exp_Prices + Gamma*S*Market.CurrentPrices;







Contact us at files@mathworks.com