Python으로 배우는 GARCH 모델
Chelsea Yang
Data Science Instructor


시차가 있을 때 변수와 자기 자신의 상관을 설명
표준화 잔차에 자기상관이 있으면 모형이 적절하지 않을 수 있음
자기상관 탐지:

그림의 빨간 영역은 신뢰구간(알파 = 5%)을 나타냅니다.
from statsmodels.graphics.tsaplots import plot_acf
plot_acf(my_data, alpha = 0.05)
# Import the Python module
from statsmodels.stats.diagnostic import acorr_ljungbox
# Perform the Ljung-Box test
lb_test = acorr_ljungbox(std_resid , lags = 10)
# Check p-values
print('P-values are: ', lb_test[1])
Python으로 배우는 GARCH 모델