Description Usage Arguments Value Note Author(s) References Examples
Simulates the Ornstein-Uhlenbeck process
dr = alpha(beta-r)dt + sigma dW.
1 | sim.vasicek(alpha, beta, sigma, r0, n, h)
|
alpha |
Mean-reversion parameter. |
beta |
Long term mean. |
sigma |
Volatility parameter. |
r0 |
Initial rate value. |
n |
Number of periods. |
h |
Time between observations. |
r |
Simulated annual rate in percent. |
Translated from Matlab by David-Shaun Guay (HEC Montreal grant).
Bruno Remillard
Chapter 5 of 'Statistical Methods for Financial Engineering, B. Remillard, CRC Press, (2013).
1 | r = sim.vasicek(0.5,2.55,0.365,2.55,360,1/360)
|
Loading required package: ggplot2
Loading required package: reshape
Loading required package: corpcor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.