Plot Security Market Line

조회 수: 20 (최근 30일)
Benjamin Stegmann
Benjamin Stegmann 2017년 5월 27일
댓글: Walter Roberson 2017년 5월 29일

Hello,

I want to plot a Security Market Line. It should look like in the picture. My code so far:

load FundMarketCash 
Returns = tick2ret(TestData);
Fund = Returns(:,1);
Market = Returns(:,2);
Cash = Returns(:,3);
MeanFund = mean(Fund)
MeanMarket = mean(Market)
[MM, aMM] = portalpha(Fund, Market, Cash, 'MM')
[GH1, aGH1] = portalpha(Fund, Market, Cash, 'gh1')
[GH2, aGH2] = portalpha(Fund, Market, Cash, 'gh2')
[SML, aSML] = portalpha(Fund, Market, Cash, 'sml')
efficient = plot ([SML, aSML])
set(gca,'XTickLabel','')
set(gca,'YTickLabel','')
title('SML','Fontsize',25)
set(gca,'Fontsize',16)
ylabel('Return')
xlabel('Beta')

But I need the dotted lines and the description. I guess this is quite simple, but I cannot find a answer.

Thank you very much in advance

Best regards

Ben

  댓글 수: 1
Walter Roberson
Walter Roberson 2017년 5월 29일
Unfortunately the picture did not get attached

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by