Giter Site home page Giter Site logo

ruiy-34 / option_pricing_python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neural-finance/option_pricing_python

0.0 0.0 0.0 528 KB

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: MIT License

Python 100.00%

option_pricing_python's Introduction

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

option_pricing_python's People

Contributors

neural-finance avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.