Code Monkey home page Code Monkey logo

project_fpe's Introduction

Project_FPE

The ipynb contains the project report and most of the original codes are in the notebook. The finite element method is implemented using FEM.py code which is also uploaded, see reference for details. The two images are generated by FEM on test problems and they are used in the report for comparison.

#Possible Extensions: One application of the finite difference methods described here for heat equations is on the Black-Scholes PDE for European call option pricing. By changing variables we can correct the original PDE into a heat equations with u = Ve^(r(T-t)),x = ln(S/K)+(r-sigma^2/2)(T-t), and u_t = sigma^2/2 u_xx. Now by describing an 'initial' condition for T-t = 0, we can numerically calculated the option price for all time to maturity and spot price. The interesting thing happens with the type of initial conditions. For the traditional European call option, the payoff function is max(S-K,0), which is essentially an Relu function with nice behaviors. For that case, we already know the true solution to the PDE and can use it as a check on the numerical scheme. We can, however, consider a function that represents a stepping condition, which will pose challenges to finite difference methods since it will need to deal with the discontinuity at strike price K. A Riemann problem type solution may help in that case.

project_fpe's People

Contributors

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