Solved – Initialization and reconstruction of conditional variance in a GARCH model

garchr

I have a general understanding of the GARCH model, but I'm confused with two things about the conditional volatility.

The past values of the conditional volatility are given by the updating formula. I ran a model with garchFit in "fGarch" package in R and extracted the parameters:

alpha = coef(model)["alpha1"]
beta = coef(model)["beta1"] 
w = coef(model)["omega"] 

I then calculated by hand the value of the conditional variance at time t=3 (just an example):

w + alpha*model@h.t[2] + beta*squaredReturns[2]

It gave me 0.0002843326. However, this is different from model@h.t[3], which equals 0.000284847. Of course it is a small difference, but since I thought that this equation was exactly the way the model@h.t (conditional variance) was calculated, then I'm definitely missing something.

My second question has to do with the initialization. If this equation is indeed the way the conditional variance is calculated, then how is the value in t=1 calculated, since there are no values for return and variance in t=0?

Best Answer

I will attempt answering question 2. (Question 1 remains open.)

I checked an article about the "fGarch" package: Wurtz et al. "Parameter Estimation of ARMA Models with GARCH/APARCH Errors: An R and SPlus Software Implementation".

It seems that the initial value of the conditional variance, $\sigma^2_0$, is taken to be the unconditional variance of the sample (with $n$ rather than $n-1$ in the denominator) -- see p. 6 in the article cited above, particularly line 21: h = filter(e, beta, "r", init = Mean). Here I suppose init stands for the initial value of the conditional variance, and Mean is the mean of squared errors as defined in line 18. I am not completely sure, though.

Similarly, the initial value of the squared error, $\varepsilon_0^2$, seems to be the same as $\sigma^2_0$, i.e. Mean -- as can be seen in line 20: e = omega + alpha * c(Mean, z[-length(x)]^2).

Interestingly, at the bottom of p. 5 the article discusses the inital value selection for all other parameters ($\mu = \bar x$, $\omega = 0.1 \cdot \widehat{\text{Var}}(x)$, $\alpha = 0.1$, $\beta = 0.8$) but not for $\sigma^2_0$. I wonder why they did not make it explicit for $\sigma^2_0$. Perhaps I am missing something.