Monte Carlo Pricing of a European Barrier Option

Поділитися
Вставка
  • Опубліковано 2 чер 2024
  • In this video we look at pricing Barrier Options using Monte Carlo risk-neutral pricing approach. We show how you can implement the barrier tree model to price an up-and-out put option in Python.
    For those who just want to code, please skip ahead to the Python Implementation section. I will take you through two implementations of a slow Python implementation stepping through the monte carlo simulation step by step. The other is a fast implementation using numpy arrays to vectorize these steps , improving overall computation time as N time steps increase.
    In this tutorial series we will be breaking down the theory described and published in Steven Shreve’s book’s Stochastic Calculus for Finance I & II. As a guide for implementing these concepts in Python, we will refer to the numerical methods and practices outlined in Les Clewlow & Chris Strickland’s book Implementing Derivatives Models.
    ★ ★ Code Available on GitHub ★ ★
    GitHub: github.com/TheQuantPy
    Specific Tutorial Link: github.com/TheQuantPy/youtube...
    00:00 Intro
    00:24 Theory
    04:00 Step by Step
    07:00 Vectorized
    ★ ★ QuantPy GitHub ★ ★
    Collection of resources used on QuantPy UA-cam 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.

КОМЕНТАРІ • 16

  • @wajihchtiba34
    @wajihchtiba34 2 роки тому +4

    I really love the content ! you're filling the gaps that my professors left.
    Keep up the great work ! greetings from Germany !

  • @jure4835
    @jure4835 2 роки тому +3

    You're on a roll lately, I'm having trouble keeping up!

    • @QuantPy
      @QuantPy  2 роки тому +1

      I hope that means you’re enjoying the content

  • @drissmahgoun
    @drissmahgoun 2 роки тому +1

    Just discovered your channel, the value you offer is unreal, I'll start my financial engineering major next year and your ability to digest a fairly technical concept and presenting the theory while doing the practical implementation in such a smooth way is wonderful for anyone who wants to get its hands on a technique quickly. Thanks again, I'll be following your work from now

  • @bendirval3612
    @bendirval3612 Рік тому

    This was very well-explained and helpful. This method should work for lots of crazy types of options. Thanks.

  • @user-cw1cg4ig5e
    @user-cw1cg4ig5e Рік тому +1

    Hi! As you are using the put formula, why is call value instead of put value?

  • @bachpham5357
    @bachpham5357 2 роки тому

    Thanks for the videos. I've always been more interested in the implementation than the theories. Your channel should be a reference to any financial market student.

    • @bachpham5357
      @bachpham5357 2 роки тому

      Any chance you’ll do a local vol model calibration video? From my understanding that’s still used by a lot of banks.

  • @nod32ia
    @nod32ia 2 роки тому

    Thanks for another great video. I have now began the necessary math and programming courses to do financial engineering masters. Your channel is a great inspiration!
    I found that watching it straight first time and then watching it a second time while recreating the code in Jupyter worked out really well to get a hang of the concept. However, going through the first part (the "slow one"), I keep getting call values around $ 0.00-0.03. I can't find any obvious mistakes in my code, I am wondering if I have nestled the if BARRIER wrongly.
    I will have a look at the book recommendations too, especially the latter book where they put the work out in pseudocode looks interesting for these projects. For now though, I have a backlog from your channel to play around with. I enjoy these more calculus-based videos as well, particularly since much quant stuff I google for based on APIs and web scraping tend to get outdated quickly.

  • @chymoney1
    @chymoney1 2 роки тому

    Lol I swear I have been learning these topics on my own then after very coincidentally your videos come out. Great stuff.

  • @nicolasmanelli7393
    @nicolasmanelli7393 2 роки тому

    Your videos are amazing ! Hope one day I'll be able to explain the same way as you !
    Would it be possible for you to make some videos on pricing under stochastic volatility models ?

  • @piepieicecream
    @piepieicecream 2 роки тому

    Loving the videos! Would be cool to see a video on variance reduction techniques when pricing deep OTM options

    • @piepieicecream
      @piepieicecream 2 роки тому

      Have you read any decent papers on this? Please share if so

  • @Automan9
    @Automan9 6 місяців тому

    Does it make sense to only use a single volatility for the entire time period though ?

  • @user-cn7jy4pk6f
    @user-cn7jy4pk6f Рік тому +1

    why call value?

  • @Golapeofficiel
    @Golapeofficiel Місяць тому

    The video is cool and useful but the code don't work, the move of price of the option is not coherent with the strike one