GARCH Models in Python 3
GARCH Models in Python 3
of model parameters
GA RCH MODELS IN P YTH ON
Chelsea Yang
Data Science Instructor
Do I need this parameter?
Is it relevant
Common threshold: 5%
The lower the p-value, the more ridiculous the null hypothesis looks
# Manual calculation
t = gm_result.std_err/gm_result.tvalues
Chelsea Yang
Data Science Instructor
Visual check
Existence of autocorrelation in the standardized residuals indicates the model may not be sound
To detect autocorrelation:
ACF plot
Ljung-Box
Red area in the plot indicates the con dence level (alpha = 5%)
# Check p-values
print('P-values are: ', lb_test[1])
Chelsea Yang
Data Science Instructor
Goodness of t
Can model do a good job explaining the data?
1. Maximum likelihood
2. Information criteria
print(gm_result.loglikelihood)
print(gm_result.aic)
print(gm_result.bic)
Chelsea Yang
Data Science Instructor
Backtesting
An approach to evaluate model forecasting capability
Out-of-sample: backtesting