Các mô hình GARCH trong R
Kris Boudt
Professor of finance and econometrics
$$ \mu_{t} = \mu + \lambda \sigma^2_{t} $$
$\lambda > 0$ là tham số rủi ro/phần thưởng, chỉ mức tăng kỳ vọng lợi nhuận cho mỗi đơn vị rủi ro phương sai.
Đổi đối số mean.model trong ugarchspec() từ list(armaOrder = c(0, 0)) thành list(armaOrder = c(0, 0), archm = TRUE, archpow = 2):
garchspec <- ugarchspec(
mean.model = list(armaOrder = c(0, 0)),
variance.model = list(model = "gjrGARCH"),
distribution.model = "sstd")
garchspec <- ugarchspec(
mean.model = list(armaOrder = c(0, 0), archm = TRUE, archpow = 2),
variance.model = list(model = "gjrGARCH"),
distribution.model = "sstd")
Ước lượng
garchfit <- ugarchfit(data = sp500ret, spec = garchspec)
Xem các hệ số ước lượng cho kỳ vọng
round(coef(garchfit)[1:2], 4)
mu archm
0.0002 1.9950
Kỳ vọng lợi nhuận dự báo
$$ \hat{\mu}_{t} = 0.0002 + 1.9950 \hat{\sigma}^2_{t} $$
plot(fitted(garchfit))

$$ \mu_{t} = \mu + \rho(R_{t-1} - \mu) $$
$$ \mu_{t} = \mu + \rho(R_{t-1} - \mu) $$
$$ \mu_{t} = \mu + \rho(R_{t-1} - \mu) $$
Đặc tả và ước lượng AR(1)-GJR GARCH với phân phối sst
garchspec <- ugarchspec(
mean.model = list(armaOrder = c(1, 0)),
variance.model = list(model = "gjrGARCH"),
distribution.model = "sstd")
garchfit <- ugarchfit(data = sp500ret, spec = garchspec)
Ước lượng mô hình AR(1)
round(coef(garchfit)[1:2], 4)
mu ar1
0.0003 -0.0292
Mô hình Trung bình Trượt bậc 1 dùng sai lệch của lợi nhuận so với kỳ vọng có điều kiện:
$$ \mu_{t} = \mu + \theta(R_{t-1} - \mu_{t-1}) $$
ARMA(1,1) kết hợp AR(1) và MA(1):
$$ \mu_{t} = \mu + \rho(R_{t-1} - \mu) + \theta(R_{t-1} - \mu_{t-1}) $$
MA(1)
garchspec <- ugarchspec(
mean.model = list(armaOrder = c(0, 1)),
variance.model = list(model = "gjrGARCH"),
distribution.model = "sstd")
ARMA(1, 1)
garchspec <- ugarchspec(
mean.model = list(armaOrder = c(1, 1)),
variance.model = list(model = "gjrGARCH"),
distribution.model = "sstd")
Các mô hình GARCH trong R