Giter Site home page Giter Site logo

deep-pde-solvers's Introduction

Deep-PDE-Solvers

Code of numerical experiments in https://arxiv.org/abs/1810.05094.

   @misc{vidales2019unbiased,
          title={Unbiased deep solvers for parametric PDEs}, 
          author={Marc Sabate Vidales and David Siska and Lukasz Szpruch},
          year={2019},
          eprint={1810.05094},
          archivePrefix={arXiv},
          primaryClass={q-fin.CP}
    }

We use Feed Forward networks to price European options at any time t. We use two different learning algorithms:

  • The BSDE method --> we also learn the hedging strategy
  • Directly learn the price as the conditional expectation E[X_T | F_t], which is the orthogonal projection of X_T onto the sigma-algebra F_t.

In addition, we de-bias the approximation of the solution of the PDE by leveraging Monte Carlo and the Deep Learning solution (see our paper). In that sense, the deep learning approximation of the stochastic integral arising from the Martingale representation of g(X_T) (where g is the payoff at time T) can be seen as a control variate. Under this perspective, we have another learning algorithm:

  • Minimising the variance of g(X_T)-cv, where cv is the approximation of the stochastic integral.

Running the code

Pricing exchange options in the Black-Scholes world by solving the 2-dimensional PDE:

python pde_BlackScholes_exchange.py --use_cuda --device 0 --d 2

and visualizing the results

python pde_BlackScholes_exchange.py --d 2 --visualize

exchange

Solving the 2-dimensional Heat equation with time reversed

python pde_Brownian.py --use_cuda --device 0 --d 2

and visualizing the results

python pde_Brownian.py --d 2 --visualize

exchange

deep-pde-solvers's People

Contributors

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