Тёмный
No video :(

Black-Scholes Implementation in Python 

QuantPy
Подписаться 75 тыс.
Просмотров 30 тыс.
50% 1

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 44   
@MlleNnCo
@MlleNnCo 3 года назад
For those using PyCharm, you may encounter a "type NoneType doesn't define __round__ method" error message. You just need to add a "return price" clause before the elif. And it works. Thanks ASX!
@kevinq6628
@kevinq6628 3 года назад
hi i get the error in pycharm "local variable 'price' might be referenced before assignment:20 , 20 would be the code "return price"
@thetagang6854
@thetagang6854 3 года назад
This is gold. More Python-Options related vid please
@QuantPy
@QuantPy 3 года назад
Definitely will, next one implied volatility
@Septumsempra8818
@Septumsempra8818 3 года назад
This channel is a gem! s/o from South Africa
@marioaguilar8735
@marioaguilar8735 3 года назад
Such an amazing channel I have just discorvered. You got one more sub buddy
@lukasopheim6837
@lukasopheim6837 Год назад
where would i find the interest rate to input into this?
@danchatka8613
@danchatka8613 3 года назад
Great video and explanations. Possibly reduce the background music volume.
@QuantPy
@QuantPy 3 года назад
Cheers, have removed background music from new videos 👍
@mhaddadi
@mhaddadi Год назад
What T to use for 4 hours till expiration?? is it 4/(252*60) or 4/(365*60)?
@cedricjonckers752
@cedricjonckers752 3 года назад
huge thankyou for the clear video!
@rajmadanlakshmanan5565
@rajmadanlakshmanan5565 3 года назад
Wow! Thank you very much!! Could you please upload a video for the pricing of swing options?
@QuantPy
@QuantPy 3 года назад
Will get to this in due course, will start from basics sorry
@juan-3350
@juan-3350 2 года назад
I'm using Jupiter notebook and im getting "type NoneType doesn't define __round__ method" ...
@QuantPy
@QuantPy 2 года назад
Try numpy round function. np.round()
@talisb7883
@talisb7883 8 месяцев назад
Thank you so much for this video!
@ENRICHEDK
@ENRICHEDK Год назад
I’m getting error indented error block For the line: def blackScholes(r, s, t, sigma, type=“c”) What do I do ?
@ivancarrillo1889
@ivancarrillo1889 3 года назад
Thanks! Your video was really helpful!
@gloryths
@gloryths 2 года назад
Nice video as always to be honest. However i didn't quite catch your last words. We can try ..???.... to add dashboard. What was that?
@armandcharlesngabirano3795
@armandcharlesngabirano3795 2 года назад
thank you for this instructive video..I however have a question: why do several practitioners add a shift parameter when pricing with negative rates for example in a case of a caplet or a floorlet and they call it the shifted black model?
@srinip825
@srinip825 Год назад
Hello, great video. How did you derive volatility input of 30?? Is there another module that calculates historical volatility?
@emmanuelameyaw9735
@emmanuelameyaw9735 2 года назад
And people say textbook blackscholes is not used in practice. Is that true?
@aj8917
@aj8917 3 года назад
Nice!!! Thanks!!
@santhoshkurumpolil586
@santhoshkurumpolil586 Год назад
Great explanation.... thanks
@mff812
@mff812 2 года назад
Very nicely explained Thank you
@joseluizdurigon8893
@joseluizdurigon8893 2 года назад
Shouldn't i consider time as 252 days per year?
@unr3altm917
@unr3altm917 2 года назад
Hi, I have encountered this error in PyCharm: print("Option price is: ", round(blackscholes(r ,S ,K, T, sigma, type="C"), 2) ) TypeError: type NoneType doesn't define __round__ method. How can I resolve?
@QuantPy
@QuantPy 2 года назад
Remove the round function and you’ll find you are returning a string not a float value for the option
@unr3altm917
@unr3altm917 2 года назад
@@QuantPy what am I doing wrong? because removing the round function rightly sends me back "The option price is (None, 2)"
@giuliaguglielmi2078
@giuliaguglielmi2078 2 года назад
I had the same problem, be sure that in your function the ruturn is alligned with the if and elif. Removing the indentation fixed my problem.
@acedusse5119
@acedusse5119 Год назад
Does the time change depending on days to expiration?
@holdthefort7658
@holdthefort7658 2 года назад
Sorry I have to ask. This time to expiration 240/365 means that that the stock still has 240 days to the expiry date. ?
@QuantPy
@QuantPy 2 года назад
Yes that’s right, Time is in years
@Med.El-amine
@Med.El-amine Год назад
We want Heston model implementation in python please 🙏❤️🙏... We wait you sir ❤
@schlast8311
@schlast8311 6 дней назад
what is d1. what is d2. what?
@hvzee1796
@hvzee1796 2 года назад
I get this Error: Black_Scholes.py:17: RuntimeWarning: divide by zero encountered in log d1 = (np.log(S/K)+(r+sigma**2/2)*T)/(sigma*np.sqrt(T)) ('Option price is: ', 0.0) Can someone help me? (Using VSCode on m1 mac)
@QuantPy
@QuantPy 2 года назад
Please show the parameters you’ve used. As the runtime error tells you, it looks like you’re dividing by 0.
@hvzee1796
@hvzee1796 2 года назад
@@QuantPy ive used the same parameters as shown in the video? :(
@teroliikala
@teroliikala 2 года назад
Got the same error as well! Confusing
@AaronLloyd-Jones
@AaronLloyd-Jones 4 месяца назад
The Black and Scholes equation is wrong: The Black and Scholes (risk-neutral) premium is the first moment of the option expiry for an asset that has all risk and no market return (the risk-neutral measure), that which has been debased of market return (by holding portfolio returns fixed flat at r). This idiotic asset (the risk-neutral measure) is stochastically dominated by bonds in that bonds have the same return (r) but without the risk whilst it is stochastically dominated by stocks since stocks earn market return for the equivalent amount of risk: bonds have LOWER RISK for the SAME RETURN as the debased market asset (the risk-neutral measure) whilst stocks have HIGHER RETURN for the SAME RISK as the debased market asset (the risk-neutral measure) Either way, the 'risk-neutral measure' is totally idiotic and stochastically dominated by all non-redundant asset classes. It is not deep and it is not abstract. All it is is the market asset without return (which is then used to price the derivative and so is wrong and inaccurate). If a trader wants an option, then he must not take an offsetting position that nullifies the option position. There is nothing risk-neutral about that. An option premium must have a mean mu in the drift term, otherwise it is wrong... wrong for derivatives and wrong for efficient and non-communist finance. nb: I had to say 'no risk' when I sat several of the courses in undergraduate (almost two decades ago). It was clear as day to me then that it was inaccurate (and proved by me definitively now more than one decade ago).
@kaiwang2924
@kaiwang2924 Год назад
Excel is excellent, but Python is more friendly to developers.
@NyesPiece
@NyesPiece 3 года назад
is this the NPV of the black Scholes
@QuantPy
@QuantPy 3 года назад
Option price today is the discounted expectation of the payoff. In some sense it’s the value today.
@karavanidet
@karavanidet 2 года назад
lol, I got C=0.85 and P=10.49
Далее
Black-Scholes Option Pricing Calculator
3:20
Просмотров 6 тыс.
when you have plan B 😂
00:11
Просмотров 10 млн
IT'S MY LIFE + WATER  #drumcover
00:14
Просмотров 9 млн
Fake watermelon by Secret Vlog
00:16
Просмотров 3,1 млн
Math in Python is easy + exercises 📐
13:51
Просмотров 100 тыс.
Predicting Stock Prices in Python
29:14
Просмотров 533 тыс.
Black-Scholes Option Pricing in Excel
8:37
Просмотров 29 тыс.
Is the Black Scholes Actually Used in the Real World
8:29
Why is this number everywhere?
23:51
Просмотров 8 млн
The Easiest Way to Derive the Black-Scholes Model
9:53