JuliaStats / TimeModels.jl

Modeling time series in Julia
Other
57 stars 28 forks source link

TimeModels.jl

Build Status Coverage Status TimeModels

Please note: Currently unmaintained and not guaranteed to work with Julia 0.6!

A Julia package for modeling time series.

Kalman Demo Experimental acf plot

GARCH model


Generalized Autoregressive Conditional Heteroskedastic (GARCH) models for Julia.

What is implemented

Analysis of model residuals - currently only Jarque-Bera Test implemented.

What is not ready yet

Usage

garchFit

estimates parameters of univariate normal GARCH process.

arguments:

data - data vector

returns:

Structure containing details of the GARCH fit with the following fields:

predict

make volatility prediction

arguments:

fit - fitted object returned by garchFit

returns:

one-step-ahead volatility forecast

Example

using GARCH
using Quandl
quotes = quandl("YAHOO/INDEX_GSPC")
ret = diff(log(quotes["Close"]))
ret = ret - mean(ret)
garchFit(convert(Vector,ret[end-199:end]))

References