Code Monkey home page Code Monkey logo

malliavin's Introduction

Malliavin calculous application in a financial context

Typically in a risk management context, we would like (at present, time 0) to estimate the risk (or more globally the law of probability) of an asset (at a future time t). All portfolios underlyings are then simulated until t. When the portfolio includes some derivatives, it is necessary to use pricers for each underlying value obtained at time t, these pricers using sometimes themselves Monte-Carlo simulations from t to the maturity time T ! Thus this normal methodology uses simulations**2, which is rather time-consuming !

As an alternative, we would like to test the estimation of conditional expectations by Malliavin calculous. Malliavin's calculous is a nice theory in stochastic analysis, which allows integration by parties, weak differentiation, for some kind of random variables, including payoffs !

The idea is to perform only one set of underlyings simulations, from 0 to T, and to estimate for each simulation path i at t, the conditional expectation E_0(phi(S)/St=St(i)), with phi the payoff and S the undelying.

Following [Lions, etc.], we test in this small prototype this estimation, using a vanilla option ; it allows us to compare the obtained result to the real law.

references

  • Applications of Malliavin Calculus to Monte Carlo Methods in Finance, II, Lions, Lebuchoux, Lasry, Fournié, Finance and stochastics, 2001
  • Pricing and hedging American options by MonteCarlo methods using a Malliavin calculus approach, Bally, Caramellino, Zanette, Monte Carlo Methods and Applications, 2004.
  • Introduction to Malliavin calculous, Nualart and Nualart, Cambridge university press, 2018

Installation

  • python3 -m pip install pipenv
  • pipenv shell
  • pipenv install
  • jupyter lab

malliavin's People

Contributors

cdur38 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

freephys

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.