sample_path: Simulate Ito-Levy process by model name and parameters

Description Usage Arguments Details Value

View source: R/sample_path.R

Description

Simulate stock prices under either the real or the risk-neutral measure for a combination of jump-diffusion models, including geometric Brownian motion, local volatility Gaussian mixtures, for the continuous-diffusion part, and the double exponential Kou model, the Merton normal jump-diffusion model, and uniformly distributed jumps for the discontinuous jump part. See details for specifics on parameters.

Usage

1
2
3
4
5
6
7
8
sample_path(
  t,
  n = 5000,
  continuous.model,
  jump.model = NULL,
  parameters = NULL,
  IC = NULL
)

Arguments

t

terminal time

n

number of nodes-1

continuous.model

"gbm" or "lvm"

jump.model

"kou", "norm", or "unif"

parameters

parameter list depending on models, see details

IC

list of initial conditions, model dependent, see details

Details

The parameters list may be empty if continuous.model is specified as any of "bm", "pbm", "sbm" without jump-dynamics. If jump dynamics are present then one must specifiy lambda as a function of (x,t) describing the mean rate of arrivals of jumps. For continuous.model == "gbm" parameters should additionally contain

for continuous.model = "lvm", parameters should additionally contain

for continuous.model == "vasicek" (or equally "cir") parameters should additionally contain

for jump.model = "kou", parameters should additionally contain

for jump.model = "dkou", parameters should additionally contain

for jump.model = "runif" parameters should additionally contain

and finally for jump.model = "norm" parameters should additionally contain

Value

data.frame


shill1729/FeynmanKacSolver documentation built on May 19, 2020, 8:23 p.m.