Giter VIP home page Giter VIP logo

hw1f-hw2f's Introduction

Hull-White 1/2 Factor Dynamics

This app is designed to illustrate the dynamics of the Hull-White model for interest rates. It was developed many years ago for teaching purposes, rather than pricing or trading (and should never be used for such).

To use it first install the requirements.txt, then:

  1. Make sure you're running this in a Jupyter kernel since the app is interactive
  2. Open up the example.ipynb
  3. Enter your zero coupon rate assumptions, these are aribtrary starting values
  4. Choose your parameters via the slider bars and the chart will start populating

sample dynamics

You can see how the mean reversion affects how far the simulation paths are spread around the forward curve. The higher the mean reversion speed and the lower the volatility, the closer they converge to the forward curve. In the limit they are identical.

The 2-factor specification is practically identical to the one factor model except that an additional term controls the mean reversion speed of the long end. Now, instead of having one mean reversion speed you will have two, one for the short rate and another for the long end.

These models can be used to price structured notes such as collared floaters or more exotic options such as range accruals, CMS spreads and accumulators. In a modern setting however a Libor Market Model is preferred since it can capture implied volatility (e.g. skew) dynamics much better.

hw1f-hw2f's People

Contributors

oronimbus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar Sebastien Gorgoni avatar  avatar ZQ avatar

Watchers

 avatar  avatar

hw1f-hw2f's Issues

Example.ipynb doesn't work

Example ipynb file seems to be empty, could you please updload that? It would be very helpful! Thanks in advance

example notebook doesn't seem to work

Hi,

Example ipynb file seems to be empty and it would be really helpful if we can have interactive notebook available to take reference on. Great work and thanks in advance!

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.