variance of portfolio as objective function
古いコメントを表示
how would be able to set up the variance of a portfolio as an seperate objective function?
I have the data read in from excel already
回答 (3 件)
Star Strider
2014 年 5 月 19 日
1 投票
Image Analyst
2014 年 5 月 19 日
0 投票
What do you mean? There already is a built in function for variance called var(). Why do you need to make your own function for that?
3 件のコメント
Sameer
2014 年 5 月 19 日
Star Strider
2014 年 5 月 19 日
Use an anonymous function.
Sameer
2014 年 5 月 19 日
Alejandra Pena-Ordieres
2024 年 9 月 10 日
0 投票
To set up the variance as the objective, you can use estimateFrontierLimits with the optional input 'min' or estimateFrontierByReturn.
estimateFrontierLimits(p,'min') computes the minimum variance portfolio without any return constraints. estimateFrontierByReturn(p,targetReturn) computes the minimum variance portfolio that achieves a return greater than or equal to targetReturn.
See Obtain Range of Risks and Returns and Find a Portfolio with a Targeted Return and Targeted Risk for an example.
カテゴリ
ヘルプ センター および 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!