Giter VIP home page Giter VIP logo

neuralsde-marketmodel's Introduction

neuralSDE-marketmodel

DOI

Python modules and jupyter notebook examples for the following papers:

  1. Arbitrage-free Neural-SDE Market Models.
  2. Estimating Risks of Option Books using Neural-SDE Market Models.
  3. Hedging Option Books using Neural-SDE Market Models.

Code

Installation of pre-requisites

It is recommended to create a new environment and install pre-requisite packages. Here is an illustrative example of using Conda for setting up the virtual environment directly from the configuration file mktmdl.yaml (thanks to Prof. Matthew Dixon for feedback):

$git clone [email protected]:vicaws/neuralSDE-marketmodel.git
$cd neuralSDE-marketmodel
$conda env create -f mktmdl.yaml
$conda activate mktmdl

Alternatively, one could pip install the pre-requisite packages from requirements.txt using:

$pip install -r requirements.txt

In addition, in this repository we also include our proprietary python package arbitragerepair for calculating static arbitrage boundaries. To know more about the methodology, please refer to our paper Detecting and Repairing Arbitrage in Traded Option Prices.

Usage

The following notebook/script examples show common usage of the code:

  1. Paper I: this notebook loads the offline-trained checkpoint files for all the neural network models that are used in the published paper Arbitrage-free Neural-SDE Market Models.

  2. Paper II: this notebook loads the processed historical price data for EUROSTOXX 50 and DAX index options, the pre-decoded factors, and offline-trained checkpoint files for some of the neural network models that are used in the published paper Estimating Risks of Option Books using Neural-SDE Market Models.

  3. Paper III: this notebook loads the processed historical price data for EUROSTOXX 50 and DAX index options, the pre-decoded factors, and offline-trained checkpoint files for some of the neural network models that are used in the published paper Hedging Option Books using Neural-SDE Market Models.

  4. Factor decoding: this notebook shows a few exploratory examples of decoding factors from call option prices simulated from a Heston-SLV model.

  5. Model training: this python script gives the complete flow of codes from decoding factors to training models and simulating option prices (from synthetic call option prices simulated from a Heston-SLV model).

Citation

@misc{nsdemm2022,
   author = {Samuel N. Cohen and Christoph Reisinger and Sheng Wang},  
   title = {neuralSDE-marketmodel},
   publisher = {GitHub},
   journal = {GitHub repository},
   year = {2022},
   howpublished = {\url{https://github.com/vicaws/neuralSDE-marketmodel}},
   note = {DOI: 10.5281/zenodo.5337522}
}

neuralsde-marketmodel's People

Contributors

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