R에서의 GARCH 모델
Kris Boudt
Professor of finance and econometrics
표준화 수익의 공식
$$ Z_{t} = \frac{R_{t} - \hat{\mu_{t}}}{ \hat{\sigma_{t}}} $$


모델 타당성 세 번째 점검:
이유
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 모델