Risk Parity / Equal-risk contribution optimization
12 次查看(过去 30 天)
显示 更早的评论
I am trying to implement the risk parity or ERC portfolio.
How can I implement the cyclical coordinate descent algorithm to solve the optimization as outlined by Roncalli in:
thanks!
回答(1 个)
Yosef Bisk
2017-9-28
编辑:Yosef Bisk
2017-9-28
W := Nx1 vector of starting weights
Sigma := NxN matrix of co-variances
These two lines should do it.
f = @(W) var(W.*(Sigma*W))*10^14; %Note: The 10^14 is there to increase accuracy
ERC_weights = fmincon(f,W,[],[],ones(1,length(W)),1)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Portfolio Optimization and Asset Allocation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!