CommencerCommencer gratuitement

Computing VaR for weekly losses

In this final exercise, you will test your understanding by computing an empirical estimate of VaR for weekly losses in the returns data. You will have to repeat the analysis of the previous exercise, but this time, you need to:

  1. Find the weekly log-returns of returns using apply.weekly().
  2. Use these weekly log-returns to simulate the losses of the two risk factors through lossop().

Note that the lossop() function has been adjusted in your workspace so that it correctly calculates the losses and gains of the option portfolio for a one-week time horizon. It still takes in arguments as follows:

lossop(xseries, S, sigma)

Your challenge is to compute the 99% VaR for weekly changes in value of the European call option in returns when the current stock price is S = 120 and the current volatility is sigma = 0.25. What is the correct answer?

Cet exercice fait partie du cours

Quantitative Risk Management in R

Afficher le cours

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice