Rで学ぶGARCHモデル
Kris Boudt
Professor of finance and econometrics
標準化リターンの式
$$ Z_{t} = \frac{R_{t} - \hat{\mu_{t}}}{ \hat{\sigma_{t}}} $$


モデル妥当性の第3チェック:
なぜか
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)

目安: p値が5%未満ならモデルは不適切。
Box.test()(引数3つ)type = "Ljung-Box"例:
Box.test(abs(stdmsftret), 22, type = "Ljung-Box")
絶対標準化リターンでの検定:
Box.test(abs(stdmsftret), 22, type = "Ljung-Box")
Box-Ljung test
data: abs(stdmsftret)
X-squared = 25.246, df = 22, p-value = 0.2855
注: p値は28.55% > 5%。次を棄却できない: $$ H_0: Corr(|Z_t|,|Z_{t-1}|) = Corr(|Z_t|,|Z_{t-2}|) = ... = Corr(|Z_t|,|Z_{t-22}|) = 0 $$
Rで学ぶGARCHモデル