Model GARCH di R
Kris Boudt
Professor of finance and econometrics
Rumus return terstandarisasi
$$ Z_{t} = \frac{R_{t} - \hat{\mu_{t}}}{ \hat{\sigma_{t}}} $$


Pemeriksaan ketiga validitas model:
Mengapa?
acf()garchspec <- ugarchspec(mean.model = list(armaOrder = c(1, 0)),
variance.model = list(model = "gjrGARCH"),
distribution.model = "sstd")
garchfit <- ugarchfit(data = msftret, spec = garchspec)
stdmsftret <- residuals(garchfit, standardize = TRUE)
acf(abs(msftret), 22)
acf(abs(stdmsftret), 22)

Aturan praktis: p-value kurang dari 5% menunjukkan model tidak valid.
Box.test() dengan 3 argumen:type = "Ljung-Box"Contoh:
Box.test(abs(stdmsftret), 22, type = "Ljung-Box")
Uji pada return terstandarisasi absolut:
Box.test(abs(stdmsftret), 22, type = "Ljung-Box")
Box-Ljung test
data: abs(stdmsftret)
X-squared = 25.246, df = 22, p-value = 0.2855
Catatan: p-value 28,55% > 5%. Kita tidak dapat menolak bahwa: $$ H_0: Corr(|Z_t|,|Z_{t-1}|) = Corr(|Z_t|,|Z_{t-2}|) = ... = Corr(|Z_t|,|Z_{t-22}|) = 0 $$
Model GARCH di R