setFunctional function

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 XtX_t and epsilonepsilon
  • f: list of functions of XtX_t and epsilonepsilon
  • 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 * dWt diff.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 <- 1 xinit <- c(1) f <- list( c(expression(x/Terminal)), c(expression(0))) F <- 0 division <- 1000 e <- .3 yuima <- 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 structure str(yuima@functional)
  • Maintainer: Stefano M. Iacus
  • License: GPL-2
  • Last published: 2024-02-29