CommencerCommencer gratuitement

Course-poursuite

Vous allez maintenant organiser une course-poursuite en termes de précision de prévision entre deux approches pour produire des prévisions de modèles GARCH en rolling :

  • garchroll : modèle GARCH standard AR(1) et loi de Student \(t\)
  • gjrgarchroll : modèle GJR-GARCH AR(1) et loi de Student \(t\) asymétrique.

Les estimations rolling sont réalisées avec n.start = 2500, refit.window = "moving", refit.every = 500.

Les objets ugarchroll résultants sont disponibles dans la console.

Cet exercice fait partie du cours

Modèles GARCH en R

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Inspect the first three rows of the dataframe with out of sample predictions
garchpreds <- as.data.frame(garchroll)
head(garchpreds, ___)
Modifier et exécuter le code