Description of a functional associated with a perturbed stochastic differential equation
Description of a functional associated with a perturbed stochastic differential equation
This function is used to give a description of the stochastic differential equation. The functional represent the price of the option in financial economics, for example.
setFunctional(model, F, f, xinit,e)
Arguments
model: yuima or yuima.model object.
F: function of Xt and epsilon
f: list of functions of Xt and epsilon
xinit: initial values of state variable.
e: epsilon parameter
Details
You should look at the vignette and examples.
The object foi contains several ``slots''. To see inside its structure we use the command str. f and Fare (list of) expressions which contains the functional of interest specification. e is a small parameter on which we conduct asymptotic expansion of the functional.
Returns
yuima: an object of class 'yuima' containing object of class 'functional'. If yuima object was given as 'model' argument, the result is just added and the other slots of the object are maintained.
Author(s)
The YUIMA Project Team
Note
There may be missing information in the model description. Please contribute with suggestions and fixings.
Examples
set.seed(123)# to the Black-Scholes economy:# dXt^e = Xt^e * dt + e * Xt^e * dWtdiff.matrix <- matrix( c("x*e"),1,1)model <- setModel(drift = c("x"), diffusion = diff.matrix)# call option is evaluated by averating# max{ (1/T)*int_0^T Xt^e dt, 0}, the first argument is the functional of interest:Terminal <-1xinit <- c(1)f <- list( c(expression(x/Terminal)), c(expression(0)))F <-0division <-1000e <-.3yuima <- setYuima(model = model,sampling = setSampling(Terminal = Terminal, n = division))yuima <- setFunctional( model = yuima, xinit=xinit, f=f,F=F,e=e)# look at the model structurestr(yuima@functional)