Come si calcola il VaR ad un mese???
이전 댓글 표시
Ciao a tutti, sono nuova della community, volevo chiedervi un grandissimo aiuto. Mi sto perdendo nel calcolo del VaR. Devo calcolare il VaR a diversi periodi, un giorno, un mese, un anno.... sapete indicarmi la strada da percorrere? Io ho sviluppato un programma che, data la mia serie storica di prezzi, mi simula 1000 scenari atteraverso la funzione portsim, calcolo la distribuzione del P&L e da qui ricavo il VaR al 95%...ma il periodo a cui voglio calcolare il VaR dove lo inserisco? Graziee
댓글 수: 1
Walter Roberson
2013년 9월 5일
Automatic translation:
Hello everyone, I'm new in the community, I wanted to ask you a huge help. Am I missing in the calculation of VaR. I need to calculate the VaR at different times, a day, a month, a year .... you know show me the way to go? I have developed a program that, given my time series of prices, I run the experiment 1000 scenarios atteraverso function portsim, calculating the distribution of the P & L and from there proceeds the VaR at 95% ... but the period to which I want to calculate the VaR where I insert it? graziee
답변 (2개)
Shashank Prasanna
2013년 9월 5일
I don't speak Italian, but here is what I understand from google translate.
% VaR can be calculated using percentile on your prices:
VaR95 = prctile(StockPrices,0.95)
VaR90 = prctile(StockPrices,0.90)
댓글 수: 2
Sigma
2013년 9월 5일
Shashank Prasanna
2013년 9월 5일
I am not an expert on this topic, but if you have daily returns then the VaR would be based on that. If you'd like to calculate VaR for a different return series, then you can do that when computing the return series using tick2ret:
Giacomo
2013년 9월 5일
0 개 추천
Ciao Sofy,
Neanche io sono un esperto di questo campo, pero' il VaR che calcoli da portsim si riferisce alla fine del periodo che hai simulato con portsim, cui passi NumObs per indicare la finestra temporale della simulazione. Per calcolare il VaR a diversi periodi futuri io prenderei solo i dati entro quella finestra, cioe' per esempio per il VaR a 10 giorni io userei solo i dieci valori iniziali (se la tua simulazione ha RetIntervals=1 ).
RetSim(1:10,:,:)
Fammi sapere se ti aiuta.
Giacomo
댓글 수: 2
Sigma
2013년 9월 6일
Shashank Prasanna
2013년 9월 6일
Hi Sofy, if you are able to post in English, your post will get higher visibility and may attract more relevant answers.
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!