Standardized returns
A complete GARCH model requires to make an assumption about the distribution of the standardized returns. Once the model has been estimated you can verify the assumption by analyzing the standardized returns.
In this exercise your work begins after the estimation. The output from estimating the GARCH model using ugarchfit()
is available as the variable garchfit
in the console. The analyzed return series is available as the variable ret
.
Cet exercice fait partie du cours
GARCH Models in R
Instructions
- Use the method
residuals()
to compute the standardized returns. - Do the same using the methods
fitted()
andsigma()
to compute the standardized returns. - Load the package
PerformanceAnalytics
and usechart.Histogram
to plot the histogram of the standardized returns, together with the normal and actual density plots.
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Compute the standardized returns
stdret <- ___(garchfit, ___ = ___)
# Compute the standardized returns using fitted() and sigma()
stdret <- (ret - ___(garchfit)) / ___
# Load the package PerformanceAnalytics and make the histogram
___
___(stdret, methods = c("add.normal","add.density" ),
colorset = c("gray","red","blue"))