Code Monkey home page Code Monkey logo

timemodels.jl's Introduction

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

  • garchFit - estimates parameters of univariate normal GARCH process.
  • predict - make prediction using fitted object returned by garchFit
  • garchPkgTest - runs package test (compares model parameters with those obtained using R fGarch)
  • Jarque-Bera residuals test
  • Error analysis

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

What is not ready yet

  • More complex GARCH models
  • Comprehensive set of residuals tests
  • n-step forecasts

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:

  • data - orginal data
  • params - vector of model parameters (omega,alpha,beta)
  • llh - likelihood
  • status - status of the solver
  • converged - boolean convergence status, true if constraints are satisfied
  • sigma - conditional volatility
  • hessian - Hessian matrix
  • secoef - standard errors
  • tval - t-statistics

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

  • T. Bollerslev (1986): Generalized Autoregressive Conditional Heteroscedasticity. Journal of Econometrics 31, 307โ€“327.
  • R. F. Engle (1982): Autoregressive Conditional Heteroscedasticity with Estimates of the Variance of United Kingdom Inflation. Econometrica 50, 987โ€“1008.

timemodels.jl's People

Contributors

andreasnoack avatar papamarkou avatar andreykolev avatar milktrader avatar jkystic125 avatar iainnz avatar codles avatar amgad-naiem avatar benjaminborn avatar davidanthoff avatar quinnj avatar jdanielnd avatar femtocleaner[bot] avatar

Watchers

James Cloos avatar PINAKI BHATTACHARYYA avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.