Git Product home page Git Product logo

optimal_hedging_arhmm's Introduction

Codes for "Option Pricing and Hedging for Discrete Time Autoregressive Hidden Markov Model"

https://arxiv.org/abs/1707.02019

Modeling Asset Returns

the following models are available for modelisation

  • HMM (hidden markov model)
  • ARHMM (autoregressive hidden markov model)
  • VHMM (multidimentional hidden hidden markov model)
  • VARHMM (multidimentional autoregressive hidden hidden markov model)

Est<model>.m for calibrating the models
Gof<model>.m for Goodness-of-fit test
Sim<model>.m for simulation

to simulate some processes, calibrate the different models and run Godness-of-fit test, run:

simulate_and_calibrate.m

Optimal Hedging

the following models are available for hedging:

  • Delta-Hedging
    (HedgingError_DH.m)
  • Optimal Hedging with Gaussian Returns
    (HedgingError_Gaussian.m OR HedgingGaussian.m + Hedging_Error_Gaussian_ac.m
  • Optimal Hedging with HMM Returns and Semi-exact approximation
    (HedgingError_HMM.m OR HedgingHMM.m + Hedging_Error_HMM_ac.m
  • Optimal Hedging with HMM Returns and Monte Carlo approximation
    (HedgingError_HMM_MC.m OR HedgingHMM.m + Hedging_Error_HMM_ac.m
  • Optimal Hedging with ARHMM Returns and Semi-exact approximation
    (HedgingError_ARHMM.m OR HedgingARHMM.m + Hedging_Error_ARHMM_ac.m
  • Optimal Hedging with ARHMM Returns and Monte Carlo approximation
    (HedgingError_ARHMM_MC.m OR HedgingARHMM.m + Hedging_Error_ARHMM_ac.m

to price an option and hedge it under multiple simulations, run:

simulate_and_hedge.m

this script will reproduce Figure 8:

optimal_hedging_arhmm's People

Contributors

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