Coder Social home page Coder Social logo

gesla-smile / optionfft Goto Github PK

View Code? Open in Web Editor NEW

This project forked from browniannotion/optionfft

0.0 0.0 0.0 1.05 MB

Python implementation of Fourier Transform pricing methods for the European call option, including the Fast-Fourier transform method described in Carr and Madan 1999.

Python 68.14% TeX 31.86%

optionfft's Introduction

OptionFFT

Implementing Fourier Transform Pricing methods for the European Call in Python,
with a focus on the Fast Fourier transform method proposed in Carr and Madan 1999.
Comparison of two underlying stock processes: the traditional Geometric Brownian Motion
and the Variance-Gamma process.
See Maths/OptionPricing.pdf for detailed mathematical explanations.

Classes and functions for option pricing are contained in the module optionfft.py.
The script error_analysis.py calculates the absolute and relative errors for the FFT pricing method
and writes the data to the tex file Analysis/err_table.tex. The prices computed by each method are also written to Analysis/all_prices.csv. The script timing.py computes the average time
over a default of 10 independent runs for each method to yield the call prices in the given range of strike prices.

References

Carr, P, Madan, D.B, 1999, "Option Valuation using the Fast Fourier Transform", Journal of Computational Finance, 2, 61-63.

Madan, D.B., Carr, P., and Chang, E.C., 1998, "The variance gamma process and option pricing.", European Finance Review, 2, 79-105.

Matsuda, K, 2004, "Introduction to Option Pricing with Fourier Transform: Option Pricing with Exponential Levy Models", PhD Thesis, The City University of New York.

optionfft's People

Contributors

browniannotion 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.