Cholesky Decomposition: Take your Backtesting to the Next Level

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

Комментарии • 39

  • @lade_edal
    @lade_edal 3 года назад +1

    Great video Christian. You bang out one of these every few weeks and humanity gains.

  • @Smartskaft2
    @Smartskaft2 3 года назад +3

    I was looking for details about the Cholesky Decomposition for a completely different field. But this was really interesting, and something I will bring with me to _any_ application where Id like to create synthetic data with real life attributes. Cool stuff, thank you!

    • @dirtyquant
      @dirtyquant  3 года назад

      Welcome!
      It’s a super handy technique once you discover it.
      I really love it
      Welcome

  • @AbhishekSingh-is6vo
    @AbhishekSingh-is6vo 3 года назад +2

    I'm a statistics student and it was a very interesting video. Thanks.

    • @dirtyquant
      @dirtyquant  3 года назад +1

      Thanks for watching mate. Tell all your classmates! :-)
      Let me know what else you would like to see

  • @saulobrendo8960
    @saulobrendo8960 3 года назад +2

    This is so wonderful!

    • @dirtyquant
      @dirtyquant  3 года назад +2

      Glad you are enjoying it Saulo

  • @kevinalejandro3121
    @kevinalejandro3121 3 года назад +3

    I have a Big doubt about cholesky decomposition, because i have seen articles where they apply the cholesky decomposition in the covariance matrix and other articles where they apply it in the correlation matrix and i don't know really which one is correct, or both are correct. I don't know really.

    • @dirtyquant
      @dirtyquant  3 года назад +4

      Hi Kevin,
      You can still apply it to both, as correlation and covariance are very similar, with correlation a re-scaled version of covariance. Some workflows like mean-variance optimization need a covariance matrix, so sometimes you want to use that. Thanks for watching!

  • @Tyokok
    @Tyokok 5 месяцев назад

    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!

  • @gvancakirvalidze2477
    @gvancakirvalidze2477 2 года назад +1

    Thank you, it was really informative. I do have problem with last plot, it doesn't give me an output, even tried display(widgets.VBox()). what might be the issue?

  • @ezequiell.castano-espanol1088
    @ezequiell.castano-espanol1088 3 года назад +5

    This is great! I've watched this and the copulas video, is it possible to introduce correlation by Cholesky when the different assets come from different distributions? Say for example gamma and beta like in the copula example (or more generally two continuos distributions). I know the copula approach is a way to fix it but I wanted to see if it is also possible with Cholesky

    • @dirtyquant
      @dirtyquant  3 года назад +4

      Good question. Give me some time to answer it. I think some transformations between different spaces are required. Top of my head I would convert your known marginals to uniforms, and the to normals, from there calculate the correlation matrix and use cholesky, and the work it backwards from the simulation, so normal to uniform to your beta/gamma. Hope that makes sense. Excellent idea for a video!
      Thanks for watching!

    • @lade_edal
      @lade_edal 3 года назад

      Yeh good one I like it!

  • @kevinshao9148
    @kevinshao9148 3 года назад

    Thanks for the great video! do you also have a video on how to use Cholesky to study the correlation of real data example? Thanks a lot!

  • @nnamdiodozi7713
    @nnamdiodozi7713 3 года назад +2

    Why use Cholesky? Doesn’t numpy have a mvnrnd function?

    • @dirtyquant
      @dirtyquant  3 года назад +2

      This is what numpy uses under the hood.

    • @nnamdiodozi7713
      @nnamdiodozi7713 3 года назад +1

      @@dirtyquant ok
      I enjoyed your copulas video. When using copulas to generate random realisations, when is it better to use ranked correlations rather than linear correlations. I understand that ranked correlations are preserved under various transformations while linear ones are not.

  • @poisonza
    @poisonza 10 месяцев назад

    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?

  • @guillermoalvarez2457
    @guillermoalvarez2457 2 года назад +1

    Really useful video. If you can make one regarding Ornstein-Uhlenbeck Process would be amazing!!

  • @gavandevirajabhinav5484
    @gavandevirajabhinav5484 3 года назад +2

    I had a doubt, when you have two correlated stocks say X and Y, while generating the Brownian motion for X do we multiply the standard deviation of X to the cholesky-random_normal product? And btw, great video, you've earned yourself a subscriber.

    • @dirtyquant
      @dirtyquant  3 года назад +1

      Indeed you would need to scale each of the RVs by the correct SD and means.
      Thanks for subscribing!

    • @gavandevirajabhinav5484
      @gavandevirajabhinav5484 3 года назад

      @@dirtyquant Got it, Thanks

  • @MrKhaledpage
    @MrKhaledpage Год назад +1

    very usefull
    thanx aloot

  • @DanielTrivino-e9n
    @DanielTrivino-e9n 3 месяца назад +1

    Did you quit RUclips? :/

    • @dirtyquant
      @dirtyquant  2 месяца назад +2

      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

  • @erpangwang8398
    @erpangwang8398 Год назад +1

    nice explanation, but distracting music and b-roll of keyboard.

    • @abeerhamid
      @abeerhamid 10 месяцев назад

      True annoying background noise. I closed the video because of this

  • @jonathanl2757
    @jonathanl2757 3 года назад

    Is that just geometrically skewing the data set when you use one side of cholesky?

    • @dirtyquant
      @dirtyquant  3 года назад

      Hi Jonathan, not sure what you mean by that. The 2 sides of the Cholesky are the same, just transposed. By multiplying it by the data you add that correlation structure to them, that is all :-)

  • @moganlarry1417
    @moganlarry1417 3 года назад +1

    you seems like showing your faces, keyboard, right?

    • @dirtyquant
      @dirtyquant  3 года назад +1

      Yes, I have the best face and the best keyboard.