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.
Bu egzersiz
GARCH Models in R
kursunun bir parçasıdırEgzersiz talimatları
- 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
PerformanceAnalyticsand usechart.Histogramto plot the histogram of the standardized returns, together with the normal and actual density plots.
Uygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
# 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"))