Skip to content

I use Python3 to try the experiments on the classic book <Options, Futures and other Derivatives>, the BS model and the sensitivity analysis on Greek Letters.

License

Notifications You must be signed in to change notification settings

Neural-Finance/Option_Pricing_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Option_Pricing_Python

I use Python to try all the experiments on the classic text book <Options, Futures and other Derivatives, 8th edition.>, focusing on the Black-Scholes Model and the sensitivity analysis on Greek Letters. The Charpter: The Greek Letters, Page 377-396. All the results and procedures have been tested and compared with the textbook. You can feel safe to use it. If you are the new beginer for this course or the teacher who wants to find well writen Option Prcing code in Python Version, I think this project will help you. Please give me a star or folk if you like it.

Structure

There are two parts in this project: Image text

The first part is that I use the basic data, to calcualte the call option price and put option price. And I also calculate the greek letters, do basic sensitivity analysis on this greek letters. All the results have been checked and compared with the text book.

The second part is that I use the real example data from a stock company, this portfolio is only part of one day's data, there is no any confidential info, thus, it's okay to use. I use this real example data to calculate the greek letters value in the real suitation and do pressure test on the greek letters. (Change the S0 and Sigma, this is one of the most important things the traders care about.)

The common parameter set used in the text book is shown as below: Image text

The real example data is shown as below: Image text

Some Experiment Results

You can find some experiment results in the folder called './fig/', please have a look. If you want to plot other pictures, you can change the code in this project. I have written nearly 500 lines, and I think there will be some materials that are beneficial to you.

Image text

Image text

Image text

About

I use Python3 to try the experiments on the classic book <Options, Futures and other Derivatives>, the BS model and the sensitivity analysis on Greek Letters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages