How to compute the intersection point of the indifference curve and the cml curve?
5 ビュー (過去 30 日間)
古いコメントを表示
How to compute the intersection point of the indifference curve and the cml curve?
The utility indifference curve's function is: U=Annu_rf +y.*(Annu_ret_pf-Annu_rf )-0.5*A*y.^2*Annuvola_pf ^2
The cml curve's function is: cml = Annu_rf + ((orpReturn - Annu_rf) / orpVola) * cmlVola;
0 件のコメント
採用された回答
Matt J
2024 年 11 月 29 日 14:34
編集済み: Matt J
2024 年 11 月 29 日 14:35
You've negelected to tell us what the independent variable is. If I assume it is Annu_rf, then one way would be,
U=@(Annu_rf) Annu_rf +y.*(Annu_ret_pf-Annu_rf )-0.5*A*y.^2*Annuvola_pf ^2;
cml = @(Annu_rf) Annu_rf + ((orpReturn - Annu_rf) / orpVola) * cmlVola;
intersection = fzero(@(x) U(x)-xml(x) , something)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!