Info

この質問は閉じられています。 編集または回答するには再度開いてください。

What am I missing in my HS VaR code?

2 ビュー (過去 30 日間)
Michiel
Michiel 2014 年 3 月 28 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have to calculate the value at risk with the help of the historical simulation approach, over some past returns. I used the following code up to now:
VaR_HS.hist_86_95=quantile(sorted_return_86,0.95);
but my mentor told me that I am missing a 3th number in my code. I think he means the dim, because I found on internet that you can calculate the Historical Value at Risk with VaR_HS.hist_86_95=quantile(x,p,dim); but how do I determine this dim value? My returns consist of 1 column and 61 rows. Or is this not the 3th value that my mentor referred to? Please can someone help me?
Thanks in advance
sincerely,
Michiel

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by