sim.gbm: Simulate paths of Geometric Brownian Motion with constant...

View source: R/simFuncs.R

sim.gbmR Documentation

Simulate paths of Geometric Brownian Motion with constant parameters

Description

Simulate paths of Geometric Brownian Motion with constant parameters

Usage

sim.gbm(x0, model, dt = model$dt)

Arguments

x0

is the starting values (matrix of size N x model$dim)

model

a list containing all the other parameters, including volatility model$sigma, interest rate model$r and continuous dividend yield model$div.

dt

is the step size in time. Defaults to model$dt

Details

Simulate from p(X_t|X_{t-1}). Use log-normal transition density specified by the model parameters

Value

a vector of same dimensions as x0


mludkov/mlOSP documentation built on April 29, 2023, 7:56 p.m.