Git Product home page Git Product logo

qlbs-deep-hedging's Introduction

RL for options Hedging and Pricing

The library uses Python 3 with the following modules:

  • numpy
  • scipy
  • matplotlib
  • pandas
  • bspline (QLBS)
  • tensorflow (DH)

Q-Learning Black Scholes (QLBS)

Python library for QLBS learner

  • Incoporates transaction costs into the Q-learner
  • Alternative Q-learner reward function with sqaure root of the variance terms (standard deviation) + learning factor

Notebooks

Run QLBS_master.ipynb -> QLBS with transaction costs

Run historical_crypto_data_qlbs.ipynb -> running QLBS on historical Crypto options data from Deribit

Run QLBS_std.ipynb -> QLBS with std reward function and smoothing

Deep Hedging (DH) with simple NN and RNN

Python library for Deep Hedging

  • Incoporates transaction costs into the Deep learner

Run NN_options_master.ipynb.ipynb -> Simple NN and RNN with transaction costs

NN_model.py -> NN and RNN model architecture

References

Igor Halperin, (2017). “QLBS: Q-Learner in the black-scholes (-merton) worlds." (QLBS) Hans Buhler et al, (2019). “Deep Hedging.” (Deep Hedging)

qlbs-deep-hedging's People

Contributors

dyang1999 avatar

Stargazers

 avatar

Watchers

 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.