Learn R Programming

RMOPI (version 1.1)

rGbmSingle: Simulate a single stock price series

Description

Simulate an univariate series following Geometric Brownian Motion (GBM).

Usage

rGbmSingle(len, start = 100, mu = 0.01, sigma = 0.02)

Value

a simulated univariate GBM series

Arguments

len

the length

start

the start position

mu

the mu parameter of GBM

sigma

the sigma parameter of GBM

Examples

Run this code
rGbmSingle(100)

Run the code above in your browser using DataLab