Historical Value at Risk (VaR) with Python

  Рет қаралды 20,031

QuantPy

QuantPy

Күн бұрын

Пікірлер: 30
@oldtimehockey7123
@oldtimehockey7123 2 жыл бұрын
Thanks for sharing all of this information and code. The hill is steep, but worth it, I feel.
@Saboman
@Saboman Жыл бұрын
If i have the historical daily var and i want to comvert it to a 30 day period window, i just multiply by the sqrt(30)??? Thank you very much.
@mediumdatascience8610
@mediumdatascience8610 2 жыл бұрын
Hey man! awesome video, cleared a lot of concepts. I have a doubt. If I wnated to calculate each day VaR or CVaR in a sliding/rolling window method with window size=7, and want to get each day's VaR or CVaR of each stocks or Portfolio, how to do that?
@denisplaj6498
@denisplaj6498 Жыл бұрын
I am not sure if we are allowed to simply multiply daily returns by T. They are not log returns, so wouldn't it be more correct to do something like this: (1+returns)**T - 1?
@ali-claudebarry4076
@ali-claudebarry4076 3 жыл бұрын
Hi mate, Great work and thanks for sharing, I’m struggling to apply your code based on an Excel file where I simply have portfolio monthly returns. I get “can’t multiply sequence by non int of type float” . I’m not sure how to approach this, I’m sure it’s because of the first steps but I’m quite new to Python so any help would be more than welcome. Cheers
@finvengers6828
@finvengers6828 Жыл бұрын
Great Video .. if possible please make more videos on credit risk and FI derivatives valuation
@gian_piano
@gian_piano 2 жыл бұрын
thank you so much for the video, I am going through your videos! I would like to become a quant that is my dream job
@krishnakundu
@krishnakundu 2 жыл бұрын
Hi…when i am giving the last code u did with the initial investment part..i got an error: cannot pack non-iterable Nonetype object and i am basically getting it in the code: pRet, pStd = PortfolioPerfomance(weights, meanReturns, covMatrix, Time)..can you pls help me with this?
@mr.gk5
@mr.gk5 2 жыл бұрын
Could you elaborate on the weights, why is it random? what if I want to put in my own weights?
@QuantPy
@QuantPy 2 жыл бұрын
That would be fine 👍
@AkashChauhan-rw1qh
@AkashChauhan-rw1qh 3 жыл бұрын
Thanks, You so much mate.......... It is very useful
@patite3103
@patite3103 3 жыл бұрын
Amazing video!
@Im-Assmaa
@Im-Assmaa 2 жыл бұрын
Thank you for the video. I have a question. How can I compute the quantiles for a specific p, using Rankit-cleveland method? It is used to estimate the value at risk using quantile regression and I am kind of stuck. please help
@joker2117-f5v
@joker2117-f5v Жыл бұрын
Actually I have a question, why do we need to add stock+'.AX'?
@WorldWideSk8boarding
@WorldWideSk8boarding Жыл бұрын
this is really good
@tblaze5406
@tblaze5406 3 жыл бұрын
Hey mate, is the historical Var just the n th percentile of the profit loss distribution?
@QuantPy
@QuantPy 3 жыл бұрын
Yes, otherwise thought of as the required capital to guarantee your portfolio or position is above 0 to that confidence interval.
@Vince-rm7rr
@Vince-rm7rr 2 жыл бұрын
Hello, here the code is used with random weight. But what would be the code with lets say a 16.66% weight for each of your stock as you have 6 stocks ?
@QuantPy
@QuantPy 2 жыл бұрын
just create a weights vector of your assigned weights and use that instead? w = np.array([1/len(stocks) for n in stocks])
@nccamsc
@nccamsc Жыл бұрын
Being picky here: The Pythonic function name would be get_data, not getData, per PEP-8
@TheChievovr
@TheChievovr 3 жыл бұрын
very good!
@alfilart
@alfilart 2 жыл бұрын
Hi mate, First of all thanks for this helpful VaR series. I tried to run the code, but in the function historicalCVaR , I get an error in the line: belowVaR = returns
@TheG0ldx
@TheG0ldx 2 жыл бұрын
That’s because you named a variable (the one where you store your series) the same as your function, historicalVaR in this case
@aarondelarosa3146
@aarondelarosa3146 Жыл бұрын
Excellent. You forgot to plot the chart.
@user-wr4yl7tx3w
@user-wr4yl7tx3w Жыл бұрын
may be breaking changes, I get the following error, RemoteDataError: No data fetched using 'YahooDailyReader'
@mathysferriere3987
@mathysferriere3987 3 ай бұрын
from pandas_datareader import data as pdr import yfinance as yf yf.pdr_override()
@mariaaguilera56
@mariaaguilera56 Жыл бұрын
I get: "RemoteDataError: No data fetched using 'YahooDailyReader'". I checked the symbols and they are correct.
@mathysferriere3987
@mathysferriere3987 3 ай бұрын
from pandas_datareader import data as pdr import yfinance as yf yf.pdr_override()
Parametric VaR and CVaR with Python
15:04
QuantPy
Рет қаралды 10 М.
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 79 МЛН
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 46 МЛН
Monte Carlo Simulation of a Stock Portfolio with Python
18:23
7. Value At Risk (VAR) Models
1:21:15
MIT OpenCourseWare
Рет қаралды 517 М.
Investing Risk Management & Understanding
24:45
PensionCraft
Рет қаралды 15 М.
Option Implied Volatility using Newton's Method in Python
14:05
Backtesting VaR Models
26:50
Professor Carol Alexander
Рет қаралды 6 М.
Expected Shortfall & Conditional Value at Risk (CVaR) Explained
11:52
Ryan O'Connell, CFA, FRM
Рет қаралды 6 М.
Value at Risk (VaR) Explained!
14:53
QuantPy
Рет қаралды 39 М.
181 - Multivariate time series forecasting using LSTM
22:40
DigitalSreeni
Рет қаралды 282 М.
Life hack 😂 Watermelon magic box! #shorts by Leisi Crazy
00:17
Leisi Crazy
Рет қаралды 79 МЛН