Home   >   User Resources   >   Online Help   >   apaPriceSim.GBM
 

 

Function index Version 3.0.0

apaPriceSim.GBM(IntialPrice, nSims, nPaths, dt, mu, sigma)

Excel=apaPriceSim.GBM(IntialPrice, nSims, nPaths, dt, mu, sigma)

Result

Simulates prices which follow a geometric Brownian motion. Each row contains an observation, each column a price path.

Syntax

IntialPrice: beginning price, e.g. 100.

nSims: number of observations to simulate

nPaths: number of price paths to simulate

dt: time step between two observations, e.g. 1/12 for monthly, 1 for annual and 1/250 for daily prices

mu: expected mean of the noise term, e.g. zero for no drift.

sigma: volatility of noise term

Remarks

The continuous price returns are expected to follow a geometric Brownian motion.