Calculating VAR and CVAR in Excel in Under 9 Minutes

Sdílet
Vložit
  • čas přidán 6. 09. 2024

Komentáře • 119

  • @gjoka1983
    @gjoka1983 Před 4 lety +5

    Magnificent tutorial: you didn't get bogged down in the details of why cVaR is calculated in a certain, instead, choosing to explain the mechanics of how to compute it in a certain way. Well done dude.

    • @ahmadzayn8776
      @ahmadzayn8776 Před 3 lety

      sorry to be off topic but does anybody know of a way to get back into an Instagram account..?
      I stupidly lost my login password. I would love any tricks you can give me

  • @As_Sulay
    @As_Sulay Před 24 dny +1

    Remember if that to (Renting) rates on option of opinion sensitively and consent, in consensus.
    Accounting 🧾 : 2:58 1:48 2:03

  • @shivakumargoudb8099
    @shivakumargoudb8099 Před 4 lety +7

    The method used for VaR is Basic historical simulation, a non-parametric approach!

    • @henrikmanukyan3152
      @henrikmanukyan3152 Před 3 lety +1

      he could've calculated Var(95%) = E(X) - St.Dev * (16.5 {corresponding value for 95% trust range})

  • @rohanpatil3206
    @rohanpatil3206 Před 6 lety +10

    I never comment on youtube videos. But this was so well done, i couldnt not comment. THANK YOU.

    • @getmysmile6643
      @getmysmile6643 Před 4 lety

      SAME!...EASY EXPLANATION AND LOVED THE ANIMATIONS!

  • @As_Sulay
    @As_Sulay Před měsícem +1

    Accounting 🧾 : 2:58 1:48 2:03

  • @grahamandsofiaholeyandsolo5081

    A very informative breakdown of VaR, and conparison to the value of CVaR. Thank you!

  • @vaninadominguez
    @vaninadominguez Před 4 lety +2

    Sometime I don't know how to explain this things, and you make it look so easier, great video. Congrats.

  • @getmysmile6643
    @getmysmile6643 Před 4 lety

    PLEASE KEEP DOING THESE VIDEOS...WHO WOULD HAVE THOUGHT THAT CVAR CAN POEPLE EXCITED!

  • @MrJayCZ
    @MrJayCZ Před 2 lety

    Not gonna lie, you just saved my master’s thesis, thanks man!

  • @aryankulshreshtha5236
    @aryankulshreshtha5236 Před 2 lety

    Thanks!
    I've made a model to minimize risk in options strategies. (data from backtesting)

  • @nipungupta3058
    @nipungupta3058 Před 7 lety +2

    Perfectly Explained. can you please also help me in calculating VAR through Delta normal method ?

  • @gabrichonka
    @gabrichonka Před 8 lety +28

    Isn't this the correct formula for the returns Rt = (Pt - Pt-1)/Pt-1 instead of Rt = (Pt - Pt+1)/Pt+1 ? And the first return should be the undefined value, not the last one?
    Still the video is helpful, thanks :)

    • @dakotawixom
      @dakotawixom Před 8 lety +13

      Depends if the data is in reverse chronological order, which Yahoo Finance is notorious for doing :-)

    • @gabrichonka
      @gabrichonka Před 8 lety +1

      Oh, okay. Makes sense :) Thanks!

    • @charithkrish
      @charithkrish Před 7 lety

      Could you further elaborate how did you arrive at return values? here you have taken the YOY increase of the return, was it mere a reference as that is quite different to that of the return we actually calculate on stocks? Please help.

    • @dakotawixom
      @dakotawixom Před 7 lety +1

      Entirely depends on the investment horizon.

    • @charithkrish
      @charithkrish Před 7 lety

      Please elaborate.. Thanks.

  • @divyasankhla2652
    @divyasankhla2652 Před 3 lety

    Hy u explained really well just have one suggestion can u zoom the image while u explain for clarification

  • @utubecaninvest
    @utubecaninvest Před 8 lety +2

    If CVar is the same as ES then shouldn't CVaR be the average of the losses after the 320th returns?

  • @imirosmanov2745
    @imirosmanov2745 Před rokem

    Could you please explain how to calculate VaR for operational risk.

  • @annawilson3824
    @annawilson3824 Před 2 lety

    Never seen this topic before, crystal clear, thank you!

  • @SD-gw5vm
    @SD-gw5vm Před rokem

    Thanks for this video @QuentCourse. I have a question though. Am I okay to use lognormal returns for my calculations?

  • @pearldrumgirl
    @pearldrumgirl Před 4 lety

    Nice video. Very fast compared to doing it by hand, so long as you understand the details in-between then all is good here. Nice refresher for single return without accounting for monetary weight.

  • @MillHouSe1337
    @MillHouSe1337 Před 4 lety +1

    thanks for the video, but you're calculating the VAR only based on history data. espacially in banking, there are much more ways how they're doing it. like a monte carlo simulation of the returns and based on that (expected value) they're calculating the VAR.
    I think the historical way has caused partially the banking crisis. some szenarios are not included in historical data, so running stress tests or other simulations are helpful!

    • @tahiabderrahmane2056
      @tahiabderrahmane2056 Před 4 lety

      my thesis is about calculating VaR and CVaR and stress testing .. and i need help !
      Give me ur Email and i will contact you .. if you can :)

  • @shirleyyu317
    @shirleyyu317 Před 5 lety

    Thank you for showing this. Could you extend the concept to the portfolio where there are multi-assets with correlation? The example you are given is based on the historical data (back forward-looking), can you share some method to be used for simulating the data in the future to do a forward-looking VAR calculation? Also, what are the kinds of VAR that big banks and asset management companies are using? Thanks!

  • @pvayeda
    @pvayeda Před 5 lety

    While you have pasted return values in D column and sorted it Ascending - at that time only column D is sorted. Not entire data is sorted.

  • @Fr00gen
    @Fr00gen Před 6 lety

    Thank you for the video!
    Can someone explain me the difference between CVAR (Expected Shortfall) and the Marginal Exspected Shortfall?

  • @mohammedmagdy9835
    @mohammedmagdy9835 Před 5 lety

    Could you explain how to derive VaR from GARCH model & the use of ugarchroll in R

  • @MrPatriot9
    @MrPatriot9 Před 3 lety

    Hello! Great Video! How did you paste all the return formula down the column(2:25 in the video)? You clicked something(2:50), to drag the formula down the enitre column. How did you do that?

  • @randhyamusapratikto2642
    @randhyamusapratikto2642 Před 5 lety +2

    well-explained, thank you so much!

  • @shungudutiro929
    @shungudutiro929 Před 2 lety

    An extremely helpful and informative video. Thank you

  • @eugenpepa2630
    @eugenpepa2630 Před 7 lety

    Hello, if the VaR(99.9) number is negative (e.g. -24922.8 in my case) what number do I have to choose from the Return column ?

  • @BrigataUPG
    @BrigataUPG Před 3 lety

    Hi. How it would be possible to calculate the VAR for a company which holds money in a bank account? It would make sense to assess the bank financial soundness, calculating the CAP ratio e than calculating the VAR for that company? what formula might be applied for this kind of calculation? thanks!

  • @niasoejoedi5739
    @niasoejoedi5739 Před 6 lety

    Hi, may I know what is the source of this and VaR and CVaR calculation? I meant like the books or journal. I want to use this as bibliography in my thesis. Thank you for your help and guidance. The formula is very helpful to me for calculate the VaR and CVaR of daily stock returns.

  • @orlyneahochi3091
    @orlyneahochi3091 Před 5 lety

    Hello could you please explain how to calculate the Delta Conditional Value-at-Risk? ∆CoVaR

  • @simfinso858
    @simfinso858 Před 6 lety

    very useful & Simple methods of calculating cvar.Thanks for uploading

  • @mohammedmagdy9835
    @mohammedmagdy9835 Před 5 lety

    If I have a GARCH model that has a good VaR coverage (frequency of VaR exceedances) what does this mean? and how I can use such model to make returns?

  • @Fr00gen
    @Fr00gen Před 6 lety

    Hello! Is it possible to calculate the CVar with a span of a year or two and how can i change that in excel? I am working on a comparison between the results of the stresstest and the CVar for the european room on how they effect the systemic risk! Do you have some suggestions for me to make an adequat compariosn between those two units of measuring risks?

  • @user-bz2rh4if7h
    @user-bz2rh4if7h Před rokem

    Nice video. Very informative. Thank you.

  • @rajuchoudhari2409
    @rajuchoudhari2409 Před 7 lety

    thanks for sharing. nice video. how about one on monte carlo simulation?

  • @othmanealaoui2805
    @othmanealaoui2805 Před 7 lety +2

    Hi , What if i'm asked to calculate the n-day market risk VaR of the the bank stock for the a certain period at a certain confidence interval ?

    • @QuantCourse
      @QuantCourse  Před 7 lety +1

      Great question! If you are using daily returns, you can "scale" you VaR numbers by multiplying by the square root of time (VaR(95)*sqrt(n)). However, if you scale this for too long of a period, this has been shown to be quite an inaccurate assumption. Otherwise, you could use n-day returns and run VaR numbers on those returns. Or Monte-Carlo simulations!

    • @syedadeelhussain2691
      @syedadeelhussain2691 Před 6 lety

      use have to use square root rule of time and assume returns are IID. HS method cannot adjust to that as it makes no assumption about the shape of the distribution of the return curve.

  • @richardgordon
    @richardgordon Před 4 lety

    Brilliant! Thanks for an excellent video! (Yes, I did learn something very important.)

  • @askariaziz4163
    @askariaziz4163 Před 6 lety

    nice explanation. please put a video on portfolio var

  • @newtonocharimenyenya2458

    A Very Great Piece.

  • @beansm152
    @beansm152 Před 3 lety

    can i use this to calculate VAR of market risk?

  • @BireyselYatrmcYT
    @BireyselYatrmcYT Před 3 lety

    Great video, thanks

  • @dumengyue2401
    @dumengyue2401 Před 4 měsíci

    great video!!

  • @fabis888
    @fabis888 Před 6 lety

    Hi, so i have weekly (7 days) of carry trade returns. I need to calculate the VaR for 5 days and one month with 99% and 95%. Any suggestions on how i can do that?

  • @sammy0722
    @sammy0722 Před 3 lety

    Nice explanation.

  • @porquetequejes
    @porquetequejes Před 7 lety

    What if you only have a sample of 20 data points. how would you calculate CVar then?

  • @TheMunishk
    @TheMunishk Před 5 lety

    He explains so clearly in all his videos. One can hear and see the confidence

  • @DEAProduction
    @DEAProduction Před 8 lety

    Thank you for the video!! :) It's very helpful
    I was wondering whether it is possible to apply VaR/CVaR to measure credit risk, because what you actually are measuring is market risk, right?

    • @mickeydi123
      @mickeydi123 Před 8 lety +4

      +Melié There are different models used in credit risk and market risk. In market risk, we mostly use VaR/CVaR and stress testing. In credit risk, we use models such as KMV, Altman's Z-score, O-score, Pr of default etc.. The key point is that in market risk, we try to model prices and returns. In credit risk, we model fluctuations in the value of assets, liabilities, cash flows etc.

    • @DEAProduction
      @DEAProduction Před 8 lety

      +Mike Di Edwardo I'm very thankful for your answer. It has clarified my doubts. :)

  • @MrSupernova111
    @MrSupernova111 Před 7 lety +2

    Nice video!
    Is it possible to use a percentile rank to arrive at the same conclusion? Thanks!

    • @QuantCourse
      @QuantCourse  Před 7 lety +1

      If I'm understanding you correctly, that's exactly what CVAR and VAR involve. So yes - absolutely! PM me if you have any questions.

    • @MrSupernova111
      @MrSupernova111 Před 7 lety +1

      Awesome! I'm taking a risk management course and I'm trying to get a hang of the concept before we start working on projects.

    • @QuantCourse
      @QuantCourse  Před 7 lety +2

      Then you're going to love the next video we have in the pipeline... :-) Stay in touch!

    • @QuantCourse
      @QuantCourse  Před 7 lety

      As promised: quantbros.com/portfolio-single-stock-var-and-cvar-in-r/

    • @porquetequejes
      @porquetequejes Před 7 lety

      What if you only have a sample of 20 data points. how would you calculate CVar then?

  • @trevoranderson4414
    @trevoranderson4414 Před 6 lety

    Thank you, excellent video!

  • @mar0069
    @mar0069 Před 8 lety

    When using the VaR for to obtain Market Risk for Basel II, do i take the absolute value of VaR?

    • @dakotawixom
      @dakotawixom Před 8 lety +1

      Just remember that VaR is an expected loss number. It depends on the context that you're using it in, but if you're adding this to your portfolio value, use a negative number.

  • @edgarjeparchin2382
    @edgarjeparchin2382 Před 5 lety

    You offset the latest date when looking for the price delta.

  • @LinhPham-ky5rg
    @LinhPham-ky5rg Před 7 lety

    This is great! Thanks.

  • @donjose5690
    @donjose5690 Před 8 lety +1

    Hello,
    Just one question. I understand the mechanic of the VaR and CVaR but why don't you use logarithms in the calcule of the returns?
    Thank you

    • @QuantCourse
      @QuantCourse  Před 8 lety +3

      Log returns are actually different than discrete returns, but would probably work fine in this case since you're just looking at day to day returns.

  • @maximilianovindel7427
    @maximilianovindel7427 Před 6 lety

    Amazing Video, Liked!

  • @leiyang3112
    @leiyang3112 Před 6 lety

    cheers mate! its very helpful

  • @pnggreen5258
    @pnggreen5258 Před 4 lety

    But then you only have the max possible loss for 1 day. What if I want to look at longer periods of time?

  • @rafaelrezende3179
    @rafaelrezende3179 Před 3 lety

    THANKS MATE

  • @lalarzapianoenthusiast

    hi, what is the definition of adj close ?

    • @paulthomas2692
      @paulthomas2692 Před 3 lety

      The adjusted closing price amends a stock's closing price to reflect that stock's value after accounting for any corporate actions. The closing price is the raw price, which is just the cash value of the last transacted price before the market closes.

  • @sandeepbhol7393
    @sandeepbhol7393 Před 6 lety

    How can you deduce the return of first day ? I think the formula will be [(B3-B2)/B2] rather than [(B2-B3)/B3]..

    • @dakotawixom
      @dakotawixom Před 6 lety

      Don't think in terms of cells. Calculate the gain, and divide by the closing price of the previous day. Depends on how your cells are ordered.

    • @sandeepbhol7393
      @sandeepbhol7393 Před 6 lety

      Thank you Sir. My mistake. I did not look at the date

  • @shrutibadoni5199
    @shrutibadoni5199 Před 5 lety

    why were the returns sorted in ascending order?

    • @pearldrumgirl
      @pearldrumgirl Před 4 lety

      I would say to account for the dispersion in a normal distribution, and to make it easier when using excel to calculate the probability of said negative outcome with the chosen confidence interval.

  • @lusineavagyan5629
    @lusineavagyan5629 Před 7 lety

    I need an example fo my course work: Calculating VaR and CVaR using monte carlo method. where can i find or buy ?

    • @QuantCourse
      @QuantCourse  Před 7 lety

      Use this method on a generated timeseries in R: quantbros.com/portfolio-single-stock-var-and-cvar-in-r/
      We have other tutorials that involve monte-carlo simulations which could help:
      quantbros.com/parallelized-simple-random-constrained-portfolio-generation/
      I'm also currently working on a tutorials aimed at exactly what you're looking for, but it will most likely become a part of my course: www.QuantCourse.com

    • @lusineavagyan5629
      @lusineavagyan5629 Před 7 lety

      i cant understand how to use VaR or ES, so its very hard for me to make an example. how to start. can you help me? saying step by step what to do. its very important for me.

    • @lusineavagyan5629
      @lusineavagyan5629 Před 7 lety

      need the example in excel.

  • @jacksabatinelli6695
    @jacksabatinelli6695 Před 6 lety

    can someone link me the banger song at the start?

  • @BaalAllroundKlusbedrijf
    @BaalAllroundKlusbedrijf Před 7 lety +23

    CVaR is the Expected Shortfall

    • @QuantCourse
      @QuantCourse  Před 7 lety +3

      Correct!

    • @syedadeelhussain2691
      @syedadeelhussain2691 Před 6 lety

      Yes CVAR, ESF Expected short fall, Extreme value loss(derived from EVT - Extreme value theory) and other variants of computing ruin risk (UL -EL) are the same.

  • @amitraghuwanshi9878
    @amitraghuwanshi9878 Před 8 lety

    how can find risk if costumer give only give income and bank statement in auto loan

    • @mickeydi123
      @mickeydi123 Před 8 lety +1

      +Amit Raghuwanshi Not sure exactly what you're asking, but you would have to use a credit model.

  • @bamsacko6494
    @bamsacko6494 Před 7 lety

    really good

  • @adad-ec6ht
    @adad-ec6ht Před 3 lety

    Is that a Var function you used in excel? Its unclear.

  • @Jalal1867
    @Jalal1867 Před 3 lety

    Love u sir

  • @felixgallardo8339
    @felixgallardo8339 Před 8 dny

    you teach me way better than my idiot old professor.

  • @drmasalabonds8750
    @drmasalabonds8750 Před 2 lety +1

    Is it just me or did he do the % returns calculations wrong?

  • @elifgns
    @elifgns Před 7 lety

    Is this historical simulation, right?

    • @QuantCourse
      @QuantCourse  Před 7 lety

      Historical - not really a simulation at all. Simulated VaR is normally performed using Monte-Carlos and is forward looking.

  • @utubecaninvest
    @utubecaninvest Před 8 lety

    Apologies, disregard my question. You sorted the numbers, my bad.

  • @zeljkocrljenica7135
    @zeljkocrljenica7135 Před 2 lety

    is this correct? seems way too simple

  • @nickfleming3719
    @nickfleming3719 Před 4 lety

    So this is the historical method. What about variance and monte carlo methods? I guess they're all flawed so it doesn't really matter which.
    It's funny how financiers try to make this seem so complicated.

  • @jakobcvar6561
    @jakobcvar6561 Před 5 lety +1

    Why you calculate me???

    • @QuantCourse
      @QuantCourse  Před 5 lety +3

      You're just a popular guy in the financial community, what can I say?

  • @darkmatter4768
    @darkmatter4768 Před 3 lety

    VAR [95] 8.7
    VAR [99] 1.74
    VAR [99.99] 0.174
    these are my number- I have taken 175 observations what will be the VAR @ 99.99% in this case - can anyone help?

  • @lucaserioli8092
    @lucaserioli8092 Před 4 lety

    You wrong calculate the return

  • @j.4880
    @j.4880 Před 3 lety

    This is wrong at so many levels man. You're not taking into account either the standard deviation, the general return for the portfolio, the weighted composition or anything.
    You're just saying an 'x' percentile will be your loss because... reasons.

  • @gabrielcalvo6073
    @gabrielcalvo6073 Před 5 lety

    This video is useless, you used a constant probability distribution assumption, which is not the REAL distribution for financial time series that is log-normal. In other words, that is not how you calculate the true VAR neither CVAR of a stock

    • @jenevavergara4125
      @jenevavergara4125 Před 5 lety +2

      obviously, he's using hostorical method in VaR and CVaR calculation, assuming a normal distribution