Modèles GARCH en R
Kris Boudt
Professor of finance and econometrics
Alors une moyenne constante, un GARCH(1, 1) standard avec une loi t de Student convient :
garchspec <- ugarchspec(mean.model = list(armaOrder = c(0, 0)),
variance.model = list(model = "sGARCH"),
distribution.model = "std")
setfixed()setbounds()Spécification et estimation
garchspec <- ugarchspec(mean.model = list(armaOrder = c(0, 0)),
variance.model = list(model = "sGARCH"),
distribution.model = "std")
garchfit <- ugarchfit(data = EURUSDret, spec = garchspec)
Résultats d'estimation
coef(garchfit)
mu omega alpha1 beta1 shape
-3.562136e-05 8.005123e-08 3.097322e-02 9.674496e-01 8.821902e+00
alpha1 = 0.05 et shape = 6 : imposez ces valeurs à l'estimation.setfixed() sur un objet ugarchspecsetfixed(garchspec) <- list(alpha1 = 0.05, shape = 6)
Résultat
garchfit <- ugarchfit(data = EURUSDret, spec = garchspec)
coef(garchfit)
mu omega alpha1 beta1 shape
-4.142922e-05 2.061772e-07 5.000000e-02 9.489622e-01 6.000000e+00
setbounds().setbounds(garchspec) <- list(alpha1 = c(0.05, 0.2), beta1 = c(0.8, 0.95))
Exploitez l'information dont vous disposez :
pour rendre la dynamique GARCH réaliste :
sd(EURUSDret) # retourne une valeur de 0.006194049

variance.targeting = TRUE dans variance.model de ugarchspec() :garchspec <- ugarchspec(mean.model = list(armaOrder = c(0,0)),
variance.model = list(model = "sGARCH",
variance.targeting = TRUE),
distribution.model = "std")
garchfit <- ugarchfit(data = EURUSDret, spec = garchspec)
all.equal(uncvariance(garchfit), sd(EURUSDret) ^ 2, tol = 1e-4)
TRUE
Modèles GARCH en R