Library: | finance |
See also: | pdfHestonInt HestonCall |
Quantlet: | pdfHeston | |
Description: | computes the probability density function in Heston stochastic volatility model. |
Usage: | y = pdfHeston(x,theta,kappa,sigma,rho,t{,par}) | |
Input: | ||
x | array, input values | |
theta | scalar, long-run variance | |
kappa | scalar, level of mean reversion | |
sigma | scalar, volatility of variance (vol of vol) | |
rho | scalar, correlation | |
t | scalar, time lag | |
par | scalar, optional, if par<>0 the pdf is plotted, else (default) the pdf is computed only | |
Output: | ||
y | array, the values of Heston's probability density function |
library("finance") pdfHeston((-2:2)/2,0.04,2,0.3,-0.05,1)
Contents of y [1,] 0.00060938 [2,] 0.086909 [3,] 2.2381 [4,] 0.10328 [5,] 0.00077533