LoslegenKostenlos loslegen

Use in production

In a corporate environment, there is often a distinction between the stage of model engineering and the stage to using the model in production. When using the model in production, it may be that the model is not re-estimated at each stage. You then use the model with fixed coefficients but integrating on each prediction day the new data. The function ugarchfilter() is designed to complete this task.

In this exercise you use a model fitted on the January 1989 till December 2007 daily S&P 500 returns to make a prediction of the future volatility in a turbulent period (September 2008) and a stable period (September 2017). The model has already been specified as is available as garchspec in the R console.

Diese Übung ist Teil des Kurses

GARCH Models in R

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Estimate the model
garchfit <- ___(data = sp500ret[___], spec = garchspec)

# Fix the parameters
progarchspec <- garchspec
___(progarchspec) <- as.list(___(garchfit))
Code bearbeiten und ausführen