Premium Only Content
Debugging the Python Implied Volatility Code
I wanted to go back and address some comments about the implied volatility root-finding code occasionally crashing for in-the-money options. Figuring out the cause of this is easy so while we’ll find the reason for the error, I wanted to do more of a conceptual video on how one might go about debugging code for numeric calculations. This is one of those “easier said than done” since this is often as much an art as a science as I say in the video. However, just by thinking about the numbers we are entering and doing a couple of simple plots, we can zero in on the source of the problem rapidly in this case.
Github: https://github.com/kpmooney/numerical_methods_youtube/tree/master/root_finding/implied_volatility
Tip Jar: http://paypal.me/kpmooney
-
11:24
kpmooney
3 years agoCalculating the Implied Volatility of a Put Option Using Python
9 -
21:36
kpmooney
3 years agoCalculating Implied Volatility from an Option Price Using Python
103 -
13:26
kpmooney
3 years agoCalculating the Implied Volatility of an Option with Excel (or Google Sheets)
82 -
14:02
pcomitz
3 years agopython functions
96 -
4:27
pcomitz
3 years ago $0.02 earnedInstalling python
228 -
15:11
Bits-N-Bytes
4 years agoPython Strings
422 -
34:31
Bits-N-Bytes
4 years agoPython Data Types
258 -
4:56
monsterMatt
3 years agoPython Object Orientated Programming
207 -
14:06
pcomitz
3 years agoGetting Started with Python
180 -
9:44
monsterMatt
3 years ago $0.01 earnedPython and MySQL PyMySQL
84