2 Minutes of Bad Maths Jokes
2:43
3 жыл бұрын
Impostor Syndrome for Quants
7:58
3 жыл бұрын
A Simple Introduction to Copulas
16:54
Top 5 Reasons to do a PhD
6:47
3 жыл бұрын
Пікірлер
@lakshminarasimmanv
@lakshminarasimmanv 10 күн бұрын
Very nice video, but the background music is distracting.
@VICTORKUDAKWASHETAMBARA
@VICTORKUDAKWASHETAMBARA Ай бұрын
😂😂😂the intro though
@DanielTrivino-e9n
@DanielTrivino-e9n 2 ай бұрын
Did you quit KZbin? :/
@dirtyquant
@dirtyquant Ай бұрын
Hey Daniel. Yes, the fame and money got a bit too much. Could barely leave the house without some groupies wanting me to sign some part of their body, and these guys are HAIRY. I hope to be making more content soon. Thanks for reaching out. Tino
@mehtubbhai9709
@mehtubbhai9709 2 ай бұрын
Very interesting. Nicely done! Was wondering if we can do this in 2 dimensions to simulate copulas? Please excuse my ignorance if its a dumb question.
@apurvaditya1435
@apurvaditya1435 3 ай бұрын
useless
@Tyokok
@Tyokok 4 ай бұрын
Hi one question, around 5:10, why you divide all the random data generated by 100? You didn't mention in the video. But can you please advise what's the purpose? thanks!
@summerishere5146
@summerishere5146 6 ай бұрын
Correct me if I'm wrong, but at 11:30, it appears you aren't using the Hastings ratio like you described in the preamble, just the Metropolis one.
@summerishere5146
@summerishere5146 6 ай бұрын
Nevermind, just realized what transition density you were using!
@FinianAllen4
@FinianAllen4 8 ай бұрын
great thanks man
@silvera1109
@silvera1109 9 ай бұрын
Great video. I loved "loading word" and "let's play a game" - hilarious! Thanks 🤣👌
@poisonza
@poisonza 9 ай бұрын
so does this mean if our algorithm passes the backtest using this simulated paths it will be profitable in the future? or what other assumption do we need more?
@chinhhoang454
@chinhhoang454 9 ай бұрын
The channel name is quite misleading, it should be CLEAN Quant!!! Thank you so much for your works!
@pietroaminpuddu7388
@pietroaminpuddu7388 10 ай бұрын
Thanks for the video! Just wanted to ask if in your opinion does make sense to use this to model implied volatilities, or might be better to use a multivariate OU process (with log(x)). Thanks!
@officalencoro
@officalencoro 10 ай бұрын
thanks for the amazing video. do you have an idea how to calculate the composite likehood with pairwise method over all constituents, meaning over all neighboring paris of assets to estimate the two dcc parameters alpha and beta? i like to understand how to calculate on a big data set like you have done with the complete s&P 500. Pakel et al. (2020) - Fitting Vast Dimensional Time-Varying Covariance Models suggets to do that with pairwise likelihood. do have have an idea how to implement it in your code?
@johnsorensen4696
@johnsorensen4696 10 ай бұрын
Hey, I was wondering about a source for the CDF and PPF? The PDF is defined in Hansen's paper but I don't see a derivation of the CDF and PPF. Is there a follow up paper in the literature that derives these?
@aarondelarosa3146
@aarondelarosa3146 11 ай бұрын
Hello. Last plot can't be executed. Something went wrong.
@SiddheshSalunkhe44
@SiddheshSalunkhe44 11 ай бұрын
this video is really amazing , explanation was simple and on point cool editing too.
@pratikpatra95
@pratikpatra95 Жыл бұрын
Is there any website similar to this , for basic mathematics for Data Science? Thanks PP
@wilkobets3300
@wilkobets3300 Жыл бұрын
Straight Outta Pandas 🤣
@kubetail12
@kubetail12 Жыл бұрын
From what I am reading, I am getting an idea of what copulas do, but I am trying to figure how to apply copulas to my problems is the tough part. Plus, I am thinking of publshing my work in a journal that is more measurement science oriented, so I really want to get it right. I am good at math until it comes to proofs and I notice statistics tend use more a mathematician type presentation that say engineering and physics math.
@Megal0lbanana
@Megal0lbanana Жыл бұрын
Excuse me, but what is the presenter referring to by marginals?
@dirtyquant
@dirtyquant Жыл бұрын
Hi mate, marginals is just a fancy word for the distribution of the 2 separate datasets. So time can have a certain distribution and money spent a totally different one. These 2 datasets are the marginals.
@tiga7659
@tiga7659 Жыл бұрын
Amazing video! Thank you so much
@dirtyquant
@dirtyquant Жыл бұрын
You are super welcome
@MrKhaledpage
@MrKhaledpage Жыл бұрын
very usefull thanx aloot
@dirtyquant
@dirtyquant Жыл бұрын
Welcome mate!
@erpangwang8398
@erpangwang8398 Жыл бұрын
nice explanation, but distracting music and b-roll of keyboard.
@abeerhamid
@abeerhamid 9 ай бұрын
True annoying background noise. I closed the video because of this
@drachenschlachter6946
@drachenschlachter6946 Жыл бұрын
9:26 brain afk...
@LunakSocioAnthroLinguist
@LunakSocioAnthroLinguist Жыл бұрын
okay this not semantics in linguistics, cool video though
@drachenschlachter6946
@drachenschlachter6946 Жыл бұрын
Sorry but is explainied so so bad....really. It was easier to understand the Literatur then this video...
@dirtyquant
@dirtyquant Жыл бұрын
Lol. Sorry to disappoint.
@drachenschlachter6946
@drachenschlachter6946 Жыл бұрын
@@dirtyquant disappointment just like my son
@marts2411
@marts2411 Жыл бұрын
Hi! First of all many thanks for your video. You clarified a lot of stuff that is a necessity for my thesis. I do run into an issue. I want to use the student's skew t distribution for my DCC-GARCH model. I have adjusted dist to 'skewt'. In the function garch_t_to_u. Also, i have added eta and lambda as parameters. Then, udata = t.cdf(std_rest, lambda). However, now opt.out.success provides a False and I do not have any estimations. Could you please let me know how I can adjust the code to use the skewed T distribution? If I make mistakes in my adjustments as explained above please let me know. Many thanks in advance!
@dirtyquant
@dirtyquant Жыл бұрын
Hi mate. Can you post this on dirtyquant.com and I will look at it later
@rahulkh96
@rahulkh96 Жыл бұрын
Hey.. very helpful video.. can you help me the code of DCC-MIDAS-X Model which is somewhat similar to this only.. i am unable to incorporate this model.. please help
@simranjuneja5736
@simranjuneja5736 Жыл бұрын
Thanks very helpful video. Could you please suggest how can exogenous variable X be incorporated into DCC garch model to see the impact of X on correlation of different assets
@dirtyquant
@dirtyquant Жыл бұрын
Glad you liked the video. Does the exogenous variable have a correlation with GARCH characteristics? You can’t just throw anything in there as it won’t converge. Just add it as another asset and see what it looks like. No problem in doing that. Remember we are looking at correlation of VOLATILITY, not returns.
@simranjuneja5736
@simranjuneja5736 Жыл бұрын
@@dirtyquant Thanks for replying X has garch characteristics i want to check whether variable X impact the dynamic conditional correlation of two assets..like if it has positive or negative effect
@dirtyquant
@dirtyquant Жыл бұрын
It won’t have any effect on the other 2 variables. But you can look at the time series of the DCC and I find that useful. Let me know how you get on. You can post your findings on dirtyquant.com
@yi-hsuanchen5458
@yi-hsuanchen5458 Жыл бұрын
Hi, it's me again lol. Do you have any related videos that's calculating DCC forecast model? Thank you!
@dirtyquant
@dirtyquant Жыл бұрын
Hi mate. DCC automatically does 1 step ahead forecast
@yi-hsuanchen5458
@yi-hsuanchen5458 Жыл бұрын
@@dirtyquant Hi, I'm quite curious how to modify the code if I want 30 days ahead forecast. Do I just change the looping through Rt?
@aarondelarosa3146
@aarondelarosa3146 Жыл бұрын
It was really a little complicated to me to calculate DCC and CCC (Constant Conditional Correlation) in Excel. I had to use a LGARCHMLE (leveraged model) with American Indexes: Nasdaq, S&P500 and Dow Jones. However, it's gonna be very difficult to calculate it in Python. I heard that R programming is very easy to estimate it. I didn't know that DCC can be calculated in Python too. What about CCC? Your code looks complicated. Can you share it? Regards.
@dirtyquant
@dirtyquant Жыл бұрын
Link in the description to my GitHub with all the code
@yi-hsuanchen5458
@yi-hsuanchen5458 Жыл бұрын
Hi , it's a really helpful video. Really appreciated :)) I have tried to walked through your code. Just have a question. If I wanna get the DCC correlation of the stocks do I just extract the Rt value? Thanks in advance.😁
@dirtyquant
@dirtyquant Жыл бұрын
Hi, yes, but that will give you the correlation of volatility, not of the returns, as it’s way more stable.
@yi-hsuanchen5458
@yi-hsuanchen5458 Жыл бұрын
@@dirtyquant Hi Dirtyquant, Thanks so much for getting beck so quickly! Is there any way that I can modify the code to get the return correlation. I tried input return instead of udata_list but the model shows not success.
@dirtyquant
@dirtyquant Жыл бұрын
The model is (likely) not going to converge if you use returns as they as far too unstable. You need to convert the returns to a uniform distribution using the appropriate CDF for that distribution. Again, I don’t think it will work as the autocorrelation of returns decays far too quickly so it will be incredibly noisy. Please try it and report back. :-)
@yi-hsuanchen5458
@yi-hsuanchen5458 Жыл бұрын
Thank you! I’ll try it out 🥹
@luzianlechner1884
@luzianlechner1884 Жыл бұрын
amazing thanks!
@dirtyquant
@dirtyquant Жыл бұрын
Welcome!
@souvikchakraborty3095
@souvikchakraborty3095 Жыл бұрын
I discovered your channel today and I sincerely hope that you never stop making videos :)
@dirtyquant
@dirtyquant Жыл бұрын
Thank you. That is very flattering. I hope to make many more
@OtterMorrisDance
@OtterMorrisDance Жыл бұрын
When running the worksheet the beta co-efficient produced when fitting GARCH to the simulated time series with the shock value is no longer close to 0 as in the video, instead it's 0.89 as you suggested it should be (and the spike is no longe present in the plot of conditional volatility of simulated returns). Not sure why....
@OtterMorrisDance
@OtterMorrisDance Жыл бұрын
Great video, thanks for sharing!
@dirtyquant
@dirtyquant Жыл бұрын
Glad you like it mate!
@prod.kashkari3075
@prod.kashkari3075 Жыл бұрын
Hey dirtyquant. Did you work first before pursuing your PhD? In general, do you recommend it compared to going into a phd program straight out of undergrad?
@dirtyquant
@dirtyquant Жыл бұрын
Ha! That’s a million dollar question. I had been working for 7 years before I did my PhD. Certainly provided a different perspective. There is no right or wrong way. The advantage of going straight after undergrad is that you have a PhD earlier, disadvantage is that you STILL have no experience and no business network once you are done. There is also a certain maturity that would benefit something as long and frustrating as a PhD. I would say, depends on your personal situation, but I would prefer going after some work experience (if you can detach yourself from the salary teat)
@prod.kashkari3075
@prod.kashkari3075 Жыл бұрын
@@dirtyquant thanks for your perspective. I asked this as an undergrad, who is sitting here, one week from graduation from my bachelors degree, with two offers, one for a funded MS in statistics and a fully funded PhD in statistics. My last two years of school I really enjoyed classes and learning stats, and thought I would want to do a phd immediately. However, after I started reading more and more about the applications of statistics to finance, and especially the roles in quantitative research and analysis that are out there in hedge funds, investment banks and other financial institutions, it’s like that passion and interest for doing it has been erased for now. I have opted for going to my MS program and to try and land such a role to work first, and then possibly go back, because I have not found the drive to really go straight out of undergrad. It sucks cause I thought it was really passionate about this whole academic journey and now going back on what I originally planned on feels like a big deal. I guess what your saying is it must vary from person to person. For me I feel like after just getting a break from school after my MS and working will just clear my mind a bit before a phd. I also just felt very uncertain about going into a phd immediately, due to my lack of actual industry experience. However, over the last week, this has been a constant back and forth, and still I just don’t even know if me denying the phd offer is me making a huge mistake. I just figured I should listen to my gut and if I feel like I need a break I need a break. What do you think about this?
@juliangoogle6022
@juliangoogle6022 Жыл бұрын
Basically the same is happening in your example here. The returns you are pulling have a mean value of 0.0178. The model has a mu of 0.0669, and some random price paths I just generated were also far above the return of 0.01.. ?
@dirtyquant
@dirtyquant Жыл бұрын
Hey Julian, I am out travelling (at PyCon actually) so can’t look into this too much, but you could just re-mean it to whatever you like. You subtract the average mean, and punch in the value that you like. Easy dirty quant solution!
@juliangoogle6022
@juliangoogle6022 Жыл бұрын
@@dirtyquant Appreciate the answer! I could do this, but I want to use the simulated price paths in an academic paper so I need to justify decisions like this.. you see what I mean? Enjoy PyCon!!!
@dirtyquant
@dirtyquant Жыл бұрын
@@juliangoogle6022 now you got me thinking. Let me try and run some stuff now and see what is up. When you get an ear worm like this you can’t let it slide. Will get back to you
@dirtyquant
@dirtyquant Жыл бұрын
Ok, so I ran the simulator and it actually looks fine. There is a distribution for the mean as well. Sometimes it will be more, sometimes it will be less. It won't be a constant for each of those runs. Run the notebook and then look at sim_df.mean(axis=0).mean() It gave me something that's within the confidence interval of the output of garch_output.summary at the beginning of the notebook It will hold for academic papers 🙂
@juliangoogle6022
@juliangoogle6022 Жыл бұрын
@@dirtyquant Yes so the mean of the sim_df.mean is consistent with the mu value of the GARCH model, but I suspect the mu value (and with that also the confidence intervals in the garch_output.summary) to be too optimistic, no? If I take the mean of the returns you pull from yahoo I get 0.021428 (with the command returns.mean()). And the mu in the GARCH model is 0.0524 --> more than double? So as a result all the price paths simulated with the GARCH model will be much more bullish than the real data we pulled right? For me, this doesn't make sense logically: I throw data with mean 0.02 into a model and the model returns the mean 0.05. This also makes the forecasts unsuitable for backtesting because they are way too bullish
@davidl8031
@davidl8031 Жыл бұрын
Hi your videos are very helpful. thanks for making this knowledge available to everyone this is top notch.
@dirtyquant
@dirtyquant Жыл бұрын
Thank you David. Glad they help
@juliangoogle6022
@juliangoogle6022 Жыл бұрын
Hey mate, one more question: How come that the sim returns all seem to take off pretty quickly after a certain number of days? Context: I use 36 years of Eurostoxx600 (index with 600 largest European companies) data to get the GARCH parameters. In real life, I obtain a CAGR of 4.35%, the mean CAGR of many many simulated returns based on these parameters is 8.3%. So it seems like the GARCH model is too bullish over a longer period of time...
@juliangoogle6022
@juliangoogle6022 Жыл бұрын
If I compare it to the price paths I simulated with the Geometric Brownian motion, they pretty much stick to the drift and the random walk component, also in the long run ... How come the GARCH model loses its stated "constant mean" after a while?? And is there something I can do to avoid it? My idea is to use the log returns instead of the normal daily returns to "normalize" and hopefully stabilize the model a bit. EDIT: Using log returns didn't change a lot, I obtain very similiar results
@juliangoogle6022
@juliangoogle6022 Жыл бұрын
Great video!
@dirtyquant
@dirtyquant Жыл бұрын
Thanks!
@juliangoogle6022
@juliangoogle6022 Жыл бұрын
​@@dirtyquant Hey you are even answering to comments, amazing! :D Quick question: The simulated price paths all have certain characteristics from the "real" returns in common, right? I am backtesting a strategy and would like to see how much those characteristics (I assume it's the mean and the standard deviation) can change until my strategy doesn't work anymore. Does this make sense to you? Where do I actually see what "characteristics" the GARCH simulator pulls from "returns"? How could I insert values here manually to see when my strategy doesn't work anymore? Thanks already!
@dirtyquant
@dirtyquant Жыл бұрын
@@juliangoogle6022 Hey, so you can play around with the Beta (the memory) and the alpha (the shock) which will define how much "Garchness" there is. At the same time, mu (the mean) nu (the degrees of freedom) and lambda (the skewness) will also define what the return series look like. I would start by fixing all the parameters except one, and changing it whilst feeding into your backtester and see when things start breaking down. most of these won't have massive realistic ranges (Beta is always around 0.9) so your search universe won't be huge. Hope that helped.
@juliangoogle6022
@juliangoogle6022 Жыл бұрын
@@dirtyquant Okay got it, thank you! I think for the analysis, it would be more intuitive to a reader to see how much the volatility or the mean return can change until the strategy breaks instead of the greek parameters, is there a way to translate that in this case?
@juliangoogle6022
@juliangoogle6022 Жыл бұрын
I also simulated price paths with the Geometric Brownian motion, here it is easy because the whole model consists of the mean and the volatility but I would love to do it with GARCH because this takes the volatiltiy clustering into account
@barsraday9531
@barsraday9531 Жыл бұрын
👏👏👏
@dirtyquant
@dirtyquant Жыл бұрын
Thank you!
@lade_edal
@lade_edal Жыл бұрын
Such brilliant production quality!
@dirtyquant
@dirtyquant Жыл бұрын
Thank you. I am flattered
@KohsheenTiku
@KohsheenTiku Жыл бұрын
brilliant explaination, i spend longgg longg time to understand from other stuff, but this explanation was wow!
@dirtyquant
@dirtyquant Жыл бұрын
Ha! Glad it helped you out. I always struggled too but one day it clicked. Now I want to tell people about it :-)
@MarcoMenon
@MarcoMenon Жыл бұрын
why computing the garch volatility you multiply that cond vola by 1600? in this part of code: 'garch_vol_df = pd.concat([pd.DataFrame(model_parameters[x].conditional_volatility/100)*1600 for x in model_parameters], axis=1)'
@dirtyquant
@dirtyquant Жыл бұрын
256 days in a year. Square root is 16. Multiplied by 100 to make 0.01 or 1% equal to 1.00 in the code. 16 x 100 = 1600 Thanks for checking!
@peterk6215
@peterk6215 Жыл бұрын
Thank you. Great video. Learnt heaps!
@dirtyquant
@dirtyquant Жыл бұрын
Glad it helped
@jeevaneducation1767
@jeevaneducation1767 Жыл бұрын
Thanks alot. Very impressive. Can you help me in VARMA-CCC-GARCH?
@vonGameTheory
@vonGameTheory 2 жыл бұрын
Would love to understand copulas but couldn't watch this video with the music (and even talking DJ) overwhelming it -- how am I supposed to concentrate on what you're saying? I thought it must be an accident but it was apparently intentional. I guess all your videos are like that? Very strange choice -- unwatchable.
@dirtyquant
@dirtyquant 2 жыл бұрын
Haha. Sorry I can’t please everyone. Merry Xmas :-)
@adamazinski1178
@adamazinski1178 2 жыл бұрын
Really enjoy your videos, keep them up! Some ideas for next vids: various models for pricing and their applications (BS, Monte Carlo, Vasicek), numerical models, neural networks? Also, maybe to dig in deeper into these topics, ur doing a great job of introducing those concepts but if you could elaborate on them a little further it would be great
@dirtyquant
@dirtyquant 2 жыл бұрын
Appreciate the feedback mate! Thank you!
@lukeweidner9110
@lukeweidner9110 2 жыл бұрын
Wow that plot showing the CDF uniform distribution totally clicked for me. I had read about that before but it didn't make any sense until now
@dirtyquant
@dirtyquant 2 жыл бұрын
Very happy to hear you found some value Luke