Git Product home page Git Product logo

aax_pde's Introduction

PDE Pricing

The project contains one main file and 6 cpp + header files:

  • Payoff: allows to take a vector of underlying values and compute a payoff vector. By default, payoffs of call and put are implemented.
  • Boundary Condition: creates the boundary conditions associated with the PDE.
  • Coef Equation: compute the parameters α, β, γ, δ associated with the PDE.
  • Matrix System: Build the matrix system Xt = A Xt+1 + b associated with the PDE.
  • Mesh: Solve the above matrix system at each iteration until price is found.
  • Closed form: Compute the price of a call option according to the Black-Scholes closed form formula.
  • Main: compute the price of a call option and its greeks via finite difference (PDE) and via closed form with the test_mesh function. The user is more than welcome to change the inputs of the function (in the main()). It takes approximately 20 seconds with 3 months maturity to get the price and the greeks. The user can uncomment rows 48-49 to see the mesh.

    Remark: The gamma computation seems to have an issue as we end up with a factor 2 between our value of the gamma and the one of the closed form gamma. We were not able to find the source of the issue.

aax_pde's People

Contributors

aymericberthoumieu avatar xav-la-program avatar adamberkovcich avatar johanmabille 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.