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

e=FitError(gamma,X,Y,Correlation);
function e=FitError(gamma,X,Y,Correlation);

e = sum(trace(  (exp(-gamma*abs(X-Y))-Correlation)*(exp(-gamma*abs(X-Y))-Correlation)'  ));

Contact us at files@mathworks.com