Home   >   User Resources   >   Online Help   >   apaPriceSim.MN
 

 

Function index Version 3.0.0

apaPriceSim.MN(IntialPrice, nSims, nPaths, dt, prob1, mu1, sigma1, mu2, sigma2)

Excel=apaPriceSim.MN(IntialPrice, nSims, nPaths, dt, prob1, mu1, sigma1, mu2, sigma2)

Result

Simulates prices which follow a normal mixture process. 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

prob1: probability of state 1 (e.g. normal market conditions with a probability of 90%)

mu1: mean in state 1

sigma1: volatility in state 1

mu2: mean in state 2

sigma2: volatility in state 2

Remarks

The continuous price returns are expected to follow a normal mixture distribution.