Monte Carlo Simulation with value at risk (VaR) and conditional value at risk (CVaR) in Python

  Рет қаралды 30,146

QuantPy

QuantPy

Күн бұрын

Пікірлер: 18
@gian_piano
@gian_piano 2 жыл бұрын
awesome video. I am even struggling reading your code and understanding it, it is just admirable how you came up with this code
@TheChievovr
@TheChievovr 3 жыл бұрын
you are back! Great!
@sebastianbrudersohn5021
@sebastianbrudersohn5021 3 жыл бұрын
Very well done, many thanks!
@louisdesmarestz1919
@louisdesmarestz1919 3 жыл бұрын
Thanks for this great video ! Would be awesome if you could also explain the differences in interpreting Historical vs Parametric vs MC VaR and CVaR. From what I understood they measure the same thing but don't have exactly the same meaning.
@QuantPy
@QuantPy 3 жыл бұрын
Thanks, will definitely make a video summarising this one. Essentially these are three different models to asses the possible distribution of future returns. The difference between the models are the assumptions on the asset distributions. Historical VaR, makes no assumptions about the distribution (uses historical distribution). Parametric VaR uses a distribution defined by you, and is parametrised in terms of mean and covariance matrices. MC VaR, is a flexible methodology, whereby you could combined various assumptions for each asset.
@anthonypeters7030
@anthonypeters7030 3 жыл бұрын
What would we do if we wanted to calculate min, median, max, and avg return from the 100 simulations?
@2255.
@2255. 11 ай бұрын
very helpful thank you
@Suvra2961984
@Suvra2961984 3 жыл бұрын
Helpful video. Please make a video of calculating VaR using Genetic Algorithm in Python. Thanks!
@QuantPy
@QuantPy 3 жыл бұрын
Great suggestion! Haven't heard of common use cases for Genetic Algorithm (GA) approach for producing a static portfolio. Just having a quick search in the literature, seems like GA can be used to reduce computation time compared to Linear Programming (LP) methods, over large time horizons for allocation problems.
@Suvra2961984
@Suvra2961984 3 жыл бұрын
@@QuantPy The code isn't working. It says no data could be fetched using YahooDailyReader. Any idea how to make it work? Thanks.
@QuantPy
@QuantPy 3 жыл бұрын
pip install -upgrade pandas-datareader
@superuser8636
@superuser8636 Жыл бұрын
Gillespie's Algorithm is a great example
@mathysferriere3987
@mathysferriere3987 5 ай бұрын
@@Suvra2961984 from pandas_datareader import data as pdr import yfinance as yf yf.pdr_override()
@stevealmond7460
@stevealmond7460 11 ай бұрын
hello. aren't we assuming returns are normally distributed tho?
@giulioc.6066
@giulioc.6066 3 жыл бұрын
Thanks for your videos, they are very useful! Could you tell me how to calculate the contribution to the VaR of each individual asset? For example, if the portfolio is made up of 2 assets and the portfolio VaR is 10%, the first asset contributes 3% of VaR to the second asset 7%.
@QuantPy
@QuantPy 3 жыл бұрын
Thanks for your question. The way I would visualise the contribution to VaR as you are describing is the same as major trading/market making companies visualise risk contribution. 1. This is by separating VaR by particular classes, so in your example Asset A and then Asset B. 2. Run VaR separately. 3. Run VaR together. 4. The reduction/increase is called 'Diversification Effect' Please see page 98 on Goldman Sachs 2020 Form 10-K for an example where they have separated VaR into asset classes. www.goldmansachs.com/investor-relations/financials/current/annual-reports/2020-annual-report/multimedia/2020/annual-report-2020.pdf
@frodewilkensen
@frodewilkensen Жыл бұрын
Hi - is there a quick adjustment for me to replicate this code but only for a single security with a specified estimate on volatility?
@frodewilkensen
@frodewilkensen Жыл бұрын
And thank you for the great video!
Historical Value at Risk (VaR) with Python
23:03
QuantPy
Рет қаралды 20 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 17 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 32 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
Expected Shortfall & Conditional Value at Risk (CVaR) Explained
11:52
Ryan O'Connell, CFA, FRM
Рет қаралды 9 М.
Monte Carlo Simulation
10:06
MarbleScience
Рет қаралды 1,5 МЛН
Monte Carlo Simulation of a Stock Portfolio with Python
18:23
Calculating VAR and CVAR in Excel in Under 9 Minutes
9:02
QuantCourse
Рет қаралды 258 М.
Value at Risk (VaR) Explained!
14:53
QuantPy
Рет қаралды 41 М.
Three approaches to value at risk (VaR) and volatility (FRM T4-1)
18:02
Monte Carlo Integration In Python For Noobs
15:32
Andrew Dotson
Рет қаралды 154 М.
Value at Risk (VaR) Explained: A Comprehensive Overview
9:12
Ryan O'Connell, CFA, FRM
Рет қаралды 1,5 М.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 344 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 17 МЛН