How to compute the intersection point of the indifference curve and the cml curve?

5 ビュー (過去 30 日間)
Lucy
Lucy 2024 年 11 月 29 日
編集済み: Matt J 2024 年 11 月 29 日
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;

採用された回答

Matt J
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 件)

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by