Stochastic Calculus for Quants | Understanding Geometric Brownian Motion using Itô Calculus

Sdílet
Vložit
  • čas přidán 25. 06. 2024
  • In this tutorial we will learn the basics of Itô processes and attempt to understand how the dynamics of Geometric Brownian Motion (GBM) can be derived. First we learn what an Itô integral is and how it differs from a regular integral. This leads us to discussing the dynamics of Itô processes and then a special type of calculus for financial mathematics based on Brownian Motion called Itô Calculus.
    We will understand why this is different to ordinary calculus in terms of the accumulation of quadratic variation. Also, we discuss how to use Taylor series expansion and using Itô’s Lemma to understand the dynamics of a particular function (valuation) given a defined Itô process, or stochastic differential equation (SDE) that has been defined for the underlying.
    We briefly discuss a generic drift diffusion model and the Itô-Doeblin formula for Itô processes. This then leads to a derivation of the dynamics of Geometric Brownian Motion, and it’s explicit formulation which can be used for simulating GBM paths.
    00:00 Intro
    01:34 Itô Integrals
    06:30 Itô processes
    09:10 Contract/Valuation Dynamics based on Underlying SDE
    12:24 Itô's Lemma
    13:35 Itô-Doeblin Formula for Generic Itô Processes
    18:04 Geometric Brownian Motion Dynamics
    ★ ★ QuantPy GitHub ★ ★
    Collection of resources used on QuantPy CZcams channel. github.com/thequantpy
    ★ ★ Discord Community ★ ★
    Join a small niche community of like-minded quants on discord. / discord
    ★ ★ Support our Patreon Community ★ ★
    Get access to Jupyter Notebooks that can run in the browser without downloading python.
    / quantpy
    ★ ★ ThetaData API ★ ★
    ThetaData's API provides both realtime and historical options data for end-of-day, and intraday trades and quotes. Use coupon 'QPY1' to receive 20% off on your first month.
    www.thetadata.net/
    ★ ★ Online Quant Tutorials ★ ★
    WEBSITE: quantpy.com.au
    ★ ★ Contact Us ★ ★
    EMAIL: pythonforquants@gmail.com
    Disclaimer: All ideas, opinions, recommendations and/or forecasts, expressed or implied in this content, are for informational and educational purposes only and should not be construed as financial product advice or an inducement or instruction to invest, trade, and/or speculate in the markets. Any action or refraining from action; investments, trades, and/or speculations made in light of the ideas, opinions, and/or forecasts, expressed or implied in this content, are committed at your own risk an consequence, financial or otherwise. As an affiliate of ThetaData, QuantPy Pty Ltd is compensated for any purchases made through the link provided in this description.

Komentáře • 65

  • @mostafaamer3057
    @mostafaamer3057 Před 2 lety +12

    Genuinely in love with this channel, keep up the good work!

  • @panceroti
    @panceroti Před 2 lety +28

    Very clear explanation. This helped me in my Advanced Statistical Mechanics course I'm doing in my Masters in Physics!

  • @thanarttangtanakoon2993
    @thanarttangtanakoon2993 Před 2 lety +2

    Really love this sorted of content

  • @kostas6915
    @kostas6915 Před 7 měsíci

    15:20 -> This second order term actually adds to the drift term, OVER TIME. Exactly, this is the essence of the case. Well depicted!

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w Před rokem +4

    This is really a great channel. Wish I knew about it earlier.

  • @luyombojonathan6688
    @luyombojonathan6688 Před rokem +1

    Great channel !!! Thanks for the work

  • @recsoncanton9965
    @recsoncanton9965 Před rokem +1

    Best video ive seen so far...

  • @user-hi3yc3lq6r
    @user-hi3yc3lq6r Před rokem +2

    Nice lecture. The explanation is quite clear and informative.

  • @soumyajitroy6829
    @soumyajitroy6829 Před 2 lety

    Great video with so simple language.

  • @user-oo1bk5dv6c
    @user-oo1bk5dv6c Před rokem +5

    watching this is a year 2 bachelor is a painful yet much rewarding experience. thank you, Jonathon

  • @riccardoformenti4332
    @riccardoformenti4332 Před 2 lety

    keep up this type of content

  • @omelhordomeualgoritmo
    @omelhordomeualgoritmo Před 2 lety +12

    have been in love with quant for many years, but man GBM is the cure for insomnia. God help me :) ... Awesome video btw, thank you!

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

    Thank you for the fantastic video. Can you please upload a video on Partial averaging in conditional expectation using fairly basic language.
    Thank you once again for your videos.

  • @user-wr4yl7tx3w
    @user-wr4yl7tx3w Před rokem +3

    idea. can you consider doing a video on cases where the underlying is interest rate product, such as an interest rate swap?

  • @user-oc8le2ln7o
    @user-oc8le2ln7o Před 9 měsíci

    Pretty good strategy for every beginner trader

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

    I can really recommend that second volume book of Shreve.
    That is where I learnt from when I was new to the subject. It explains things cleary, but don't go into allt the more technical and subtle details to prove everything rigourosly..
    This is a good start to understand what is happening. After that I recommend a more detailed book.
    Shreves other book together with Karatzas "Brownian motion and stochastic calculus" is one such option. This is not a light read, but also a good book.

    • @codyfintech
      @codyfintech Před rokem +1

      Fully agreed, Martin Baxter's Financial Calculus book is also good for developing an intuitive grasp on these concepts.

  • @ghostwhowalks5623
    @ghostwhowalks5623 Před 10 měsíci

    Great video! What is the context behind the mean square limit....why do we need that particular concept for the stochastic integral? Thanks!

  • @tobiasbergkvist4520
    @tobiasbergkvist4520 Před 2 lety +10

    Negative stock prices can be avoided by using exp(brownian motion) instead. Still, I don't think a normal distribution is a good fit, since it severely underestimates the probability of bigger price movements; so called "black swan events", which happen all the time. A distribution with fatter tails is more appropriate. I think the pareto distribution probably has a too fat tail for most stocks though - so a semi-fat tail distribution is likely the best fit for modeling most assets.

    • @War4Skills
      @War4Skills Před 2 lety

      Also the interpretation changes when we use an exp(Brownian motion) doesn't it? Which would complicate things.

    • @drdca8263
      @drdca8263 Před rokem

      [note:I don’t know what I’m talking about when it comes to finance.]
      What about the Martingale assumption? Would that being violated contradict the Efficient Market Hypothesis or something? Or...
      Well, I guess momentum trading working (iirc?) sorta maybe implies violating the martingale assumption?
      Hmm... now I’m wondering how one would measure how well a model is doing. I think maybe you could look at like, the surprisal of the observations under the model, minus the entropy of the model? Or, uh,
      Hm, well, if things at separate intervals are independent (or across different stocks? Or something that would let you take an empirical average), you could maybe take a KL divergence?
      Of course, the real test in practice would be “does it make you money”, but pretending that wasn’t the goal and you just wanted an “accurate” model for its own sake, how would you measure its “accuracy” (when it is all stochastic like this)

    • @ingolfura.4327
      @ingolfura.4327 Před rokem +1

      This is actually true, and priced in the market aswell I highly recommend the video "the volatility smile" by professor patrick boyle here on youtube, he talks about how this is dealt with as the volatility is actually changing all the time

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

    I fucking love this channel

  • @FoobsTon
    @FoobsTon Před 7 měsíci

    What a brilliant explanation. Well done.

  • @emmanuelameyaw9735
    @emmanuelameyaw9735 Před 2 lety

    Is there a software to do this? Or this is just theory stuff for intuition?

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

    Thank you for the fantastic video. Can anyone please help me understand one basic concept. Why do we have break the [0,t] into smaller intervals.
    What do we miss by not doing so?
    Does it eliminate any unnecessary /overlapping factors?
    Thank you

    • @csaracho2009
      @csaracho2009 Před rokem +1

      That is why it is called infinitesimal...

  • @joemcdanel3708
    @joemcdanel3708 Před 2 lety +6

    Great video! I do have a question. In the first 30ish seconds you mention that stocks can’t go negative. Why is this so? WTI crude went negative in the year 2020.

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

      Crude oil are futures and not stocks. The residual claim right of stocks on earnings just stops at $0 because the company is limited and does not need to come up for additional capital if it files for bankruptcy because it is legally limited. For the future crude oil however the future contracts expired, which means the oil barrels are delivered and because of the storage problem at the time, you did not pay for the oil, but you where paid to store the oil. As you can see very different issues, and barely comparable.

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

      Unlike the equity market, commodity markets have quite inelastic demand. The extreme example of this is in the power market where instantaneous power cannot (on a large scale) be stored. In commodity markets it is essential to have negative price signals. As in the comment above, companies are entities that have limited liabilities.

  • @fernandojackson7207
    @fernandojackson7207 Před 5 měsíci

    Excellent Lecture. In 21:30, we know Ln(St) is Normal. How about St itself, is it Normal too? Not sure what the distribution of e^X is when X is Normal.

  • @johnhudson9248
    @johnhudson9248 Před rokem

    Nice lecture, but in the intro for Wiener stochastic processes, though I'm not a professional quant, I always thought that the stochastic variable was the log of the asset value rather than the asset value itself. This is what it says in Wikipedia too, and using the log has two effects (1) the variable can't go negative and (2) the statistics look similar whatever the lever of the asset, whether its $1 or $1000.

    • @QuantPy
      @QuantPy  Před rokem +1

      Thanks John, this lecture starts with the Wiener process and progresses to the Geometric Brownian Process where assets prices have the log of asset price as you’ve mentioned

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

    u can be perfectly a teacher xd

  • @davidlenir7517
    @davidlenir7517 Před rokem

    Can I read volume 2 without volume 1? I have a high energy theoretical physics background.

  • @xRedNationx
    @xRedNationx Před 2 lety

    So why is it an adaptive process into the filtration? Why can’t it be static?

  • @haddenindustries2922
    @haddenindustries2922 Před rokem

    Guday to you😉

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

    For quantitative finance which could be better? CFA or MBa?

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

      Just my opinion neither, financial math would be a good choice 👍
      CFA & MBA are programs not specific to quantitative finance in terms of derivative pricing theory ect. Great if you want a job as an analyst in the financial industry though.

    • @Gerard91999
      @Gerard91999 Před 2 lety

      @@QuantPy The next year I’ll finished my bach in Financial Engineering and now I'm looking for the CFA or Quantitative Finance MSc in Glasgow.
      Which MSc could be better for the Quant path? Or in your opinion, what could be the next step?

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

      @@Gerard91999 Don't worry about CFA or finance at all. If you are serious about Quantitative Finance then do MSc either in Quantitative Finance or Mathematics (better if focused in PDE or probability theory) and do lot of good quality computer science projects either in Python, C++ or JAVA. With good skills in Computer Science and Math you could easily crack it.

    • @Gerard91999
      @Gerard91999 Před 2 lety

      @@siddharthchaudhary1266 thank you m8!!!

    • @sueton1797
      @sueton1797 Před 2 lety

      Neither. But the CFA is cheap compared to the MBA, so if you can, take that. For a quant career, the best is a PHD, where it doesn't matter what you choose to study. Whether phyisics, mathematics or computer science. It depends on your focus and your research interests.

  • @2late4coffee
    @2late4coffee Před 2 lety

    I am an undergrad and taking intro to stochastic modelling class, how can I go deeper to understand these topics, what should I begin with?

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

      I suggest buying Stochastic Calculus for Finance II by Steven Shreve

    • @patbateman69420
      @patbateman69420 Před 2 lety +2

      Try out Stochastic Calculus by Calin. It should be simple for you based on what you say your knowledge is, but it should prepare you for further study.

  • @Arnoldismouldy
    @Arnoldismouldy Před 8 měsíci

    watching this for High School.... everyone else here is in college and some are doing masters...... IBDP is HELL

  • @AminaAmina-by4oh
    @AminaAmina-by4oh Před 3 měsíci

    سلام عليكم
    شرحك رائع
    هل يمكنني السؤال؟

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

    What was your undergraduate degree in?

    • @QuantPy
      @QuantPy  Před 2 lety

      Chemical Engineering

    • @leonmozambique533
      @leonmozambique533 Před 2 lety

      @@QuantPy did you get a masters? How was the transition from chemE to something more math heavy?

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

      @@QuantPy Hi, I´m a chemical engineer too. Bur I´ve got interested in finance. Good to know that I can follow your path

    • @confidential303
      @confidential303 Před 2 lety

      What are you studying?

    • @ricosolanki1407
      @ricosolanki1407 Před 11 měsíci

      @@QuantPyim currently doing my undergrad in chemical engineering. How did you get into the quant space from this, I want to follow suit 🥺

  • @eprzepiora
    @eprzepiora Před 9 měsíci

    13:13 should be k>2 not k>3

  • @jakubb4784
    @jakubb4784 Před rokem +2

    Wienner and Riemann are pronouced with short "i" like prison!

  • @miccapcapo8376
    @miccapcapo8376 Před rokem

    Pessima traduzione dei sottotitoli

  • @AndrewRyan33
    @AndrewRyan33 Před 9 měsíci

    that's a cute girl on the video cover

  • @siddharthjain2127
    @siddharthjain2127 Před 2 lety

    Dude,,, calculus is boaring part of mathematics 😏 😏

    • @QuantPy
      @QuantPy  Před 2 lety +2

      Too bad it's the largest part of Mathematics in Quantitative Finance :p