Come si calcola il VaR ad un mese???

4 次查看(过去 30 天)
Sigma
Sigma 2013-9-5
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
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
I don't speak Italian, but here is what I understand from google translate.
Once you have your returns series convert them to price series using ret2tick
% VaR can be calculated using percentile on your prices:
VaR95 = prctile(StockPrices,0.95)
VaR90 = prctile(StockPrices,0.90)
  2 个评论
Sigma
Sigma 2013-9-5
Thank you...but I would like understand if I want to calculate VaR at 3 days...how can I do? Calculating with prctile(StockPrices,0.95), it's VaR at 1 day?
Shashank Prasanna
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
Giacomo 2013-9-5
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
Sigma 2013-9-6
Grazie Giacomo.....quindi se ho capito bene tu dici che se voglio il VaR a 10 giorni...prendo come serie storica i dieci valori finali che ho a disposizione giusto?? Ora vedo che esce fuori..ti rubo un'altra informazione...conosci la differenza tra VaR e PaR??? Grazieeeeee
Shashank Prasanna
Hi Sofy, if you are able to post in English, your post will get higher visibility and may attract more relevant answers.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Descriptive Statistics 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by