Quantcast
Channel: r software hub
Viewing all articles
Browse latest Browse all 1015

Heston model for Options pricing with ESGtoolkit

$
0
0

By Thierry Moudiki’s blog

:)

Hi everyone! Best wishes for 2016!

In this post, I’ll show you how to use ESGtoolkit, for the simulation of Heston stochastic volatility model for stock prices. This is probably my last post on ESGtoolkit, before I start working on the project again (yeah, I know it’s been a while since v0.1! ).

If you’re interested in seeing other examples of use of ESGtoolkit, you can read these two posts: the Hull and White short rate model and the 2-factor Hull and White short rate model (G2++).

The Heston model was introduced by Steven Heston’s A closed-form solution for options with stochastic volatility with applications to bonds an currency options, 1993. For a fixed risk-free interest rate r, it’s described as:

dS_t = r S_t dt + sqrt{v_t}S_t dW^S_t

dv_t = kappa(theta - v_t) dt + sigma sqrt{v_t}dW^v_t

where dW^S_t dW^v_t = rho dt.

In this model, under a certain probability, the stock price’s returns on very short periods of time of length dt, are: the risk-free rate + a random fluctuation driven by the terms dW_t and v_t. The dW_t‘s can be thought of (very simply put) as the gaussian increments of a random walk, which are centered, and have a variance equal to dt.

On the other hand, v_t is the stochastic variance of the stock prices. v_t is always positive, and tends to return to a fixed level theta at a speed controlled by kappa. The variance of <img src="https://s0.wp.com/latex.php?latex=v_t&bg=ffffff&%23038;fg=333333&%23038;s=0" …read more

Source:: r-bloggers.com


Viewing all articles
Browse latest Browse all 1015

Trending Articles