Home   >   User Resources   >   Online Help   >   apaPriceSim.GARCH11
 

 

Function index Version 3.0.0

apaPriceSim.GARCH11(IntialPrice, nSims, nPaths, dt, mu, sigma, a, b)

Excel=apaPriceSim.GARCH11(IntialPrice, nSims, nPaths, dt, mu, sigma, a, b)

Result

Simulates prices which follow a GARCH(1,1) process. Each row contains an observation, each column a price path.

Syntax

IntialPrice: initial 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: annualized unconditional (long-run) volatility, e.g. 0.2 for 20%

a: GARCH parameter a (alpha, weight of the squared shocks)

b: GARCH parameter b (beta, weight of the lagged variance)

Algorithm

Each path starts at the unconditional variance and follows the recursion

v0=σ2,εt=ztvt−1Δt,vt=(1−a−b)σ2+aεt2Δt+bvt−1v_{0} = \sigma^{2},\quad\quad\varepsilon_{t} = z_{t}\sqrt{v_{t - 1}\,\Delta t},\quad\quad v_{t} = (1 - a - b)\,\sigma^{2} + a\,\frac{\varepsilon_{t}^{2}}{\Delta t} + b\, v_{t - 1}

The price path is

Pt=Pt−1exp⁡(μΔt+εt)P_{t} = P_{t - 1}\exp\left( \mu\,\Delta t + \varepsilon_{t} \right)

where z(t) are independent standard normal random numbers, Δt is dt and v(t) is the annualized conditional variance. Because the squared shock is annualized with 1/dt in the variance update, the long-run (unconditional) volatility of the simulated returns equals sigma for any time step dt.

Remarks

The continuous price returns are expected to follow a GARCH(1,1) process.

a + b must be smaller than one for the process to be stationary.