apaReturns.Simulate.GARCH11(nSims, nPaths, dt, mu, sigma, a, b)
=apaReturns.Simulate.GARCH11(nSims, nPaths, dt, mu, sigma, a, b)Result
Simulates returns which follow a GARCH(1,1) process. See apaPriceSim.GARCH11 for details.
Syntax
nSims: number of observations to simulate
nPaths: number of paths to simulate
dt: time step dt, e.g. 1/12 for monthly frequency
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
The simulated returns are
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
a + b must be smaller than one for the process to be stationary.
