Description Usage Arguments Details Value
View source: R/gaussLaguerrePricerBS.R
Calculate option prices using a Laguerre quadrature of the difference between a reference characteristic function (Black-Scholes for high volatility) and user-defined characteristic function. Only European call and put options.
1 2 | gaussLaguerrePricer(strikeMat, mkt, alpha = 0, N = 64,
sigma.ref = NULL, N.factors = 3, charFun, preCalc = NULL, ...)
|
strikeMat |
array of size |
mkt |
data.frame with |
alpha |
parameter of the laguerre quadrature. |
N |
number of points of integration. |
sigma.ref |
variance (volatility squared) value for the reference characteristic function, length |
N.factors |
integer, number of stochastic volatility factors, argument for |
preCalc |
optional a list containing preCalculated values of the characteristic function, and the quadrature parameters (useful if derivatives are reevaluated many times for different states, but the same parameter) |
... |
arguments to charFun required for pricing (state variables, parameters, etc.) |
In extensive tests this pricer yields results comparable to the Fourier-cosine series pricer, with fewer characteristic function evaluations. Care should be taken at very high values of variance factors.
list of arrays of size T x K x S
with relative prices of call options, put options, out of the money options.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.