Come si calcola il VaR ad un mese???

8 views (last 30 days)
Sigma
Sigma on 5 Sep 2013
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 Comment
Walter Roberson
Walter Roberson on 5 Sep 2013
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

Sign in to comment.

Answers (2)

Shashank Prasanna
Shashank Prasanna on 5 Sep 2013
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 Comments
Sigma
Sigma on 5 Sep 2013
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
Shashank Prasanna on 5 Sep 2013
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:

Sign in to comment.


Giacomo
Giacomo on 5 Sep 2013
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 Comments
Sigma
Sigma on 6 Sep 2013
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
Shashank Prasanna on 6 Sep 2013
Hi Sofy, if you are able to post in English, your post will get higher visibility and may attract more relevant answers.

Sign in to comment.

Categories

Find more on Descriptive Statistics in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!