All Projects → iankhr → armagarch

iankhr / armagarch

Licence: other
ARMA-GARCH

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to armagarch

ARCHModels.jl
A Julia package for estimating ARMA-GARCH models.
Stars: ✭ 63 (+6.78%)
Mutual labels:  timeseries, econometrics, garch
TimeseriesSurrogates.jl
A Julia package for generating timeseries surrogates
Stars: ✭ 35 (-40.68%)
Mutual labels:  timeseries
Arctic
High performance datastore for time series and tick data
Stars: ✭ 2,525 (+4179.66%)
Mutual labels:  timeseries
Mtail
extract internal monitoring data from application logs for collection in a timeseries database
Stars: ✭ 3,028 (+5032.2%)
Mutual labels:  timeseries
Tcdf
Temporal Causal Discovery Framework (PyTorch): discovering causal relationships between time series
Stars: ✭ 217 (+267.8%)
Mutual labels:  timeseries
RollingFunctions.jl
Roll a window over data; apply a function over the window.
Stars: ✭ 89 (+50.85%)
Mutual labels:  timeseries
Flot Downsample
Downsample plugin for Flot charts.
Stars: ✭ 186 (+215.25%)
Mutual labels:  timeseries
nifi-influxdb-bundle
InfluxDB Processors For Apache NiFi
Stars: ✭ 30 (-49.15%)
Mutual labels:  timeseries
FixedEffectjlr
R interface for Fixed Effect Models
Stars: ✭ 20 (-66.1%)
Mutual labels:  econometrics
Carbonapi
Implementation of graphite API (graphite-web) in golang
Stars: ✭ 243 (+311.86%)
Mutual labels:  timeseries
Rrd4j
A high performance data logging and graphing system for time series data.
Stars: ✭ 234 (+296.61%)
Mutual labels:  timeseries
Timeseries fastai
fastai V2 implementation of Timeseries classification papers.
Stars: ✭ 221 (+274.58%)
Mutual labels:  timeseries
prometheus-redistimeseries-adapter
Prometheus remote storage adapter for RedisTimeSeries
Stars: ✭ 23 (-61.02%)
Mutual labels:  timeseries
Redis Timeseries
Future development of redis-timeseries is at github.com/RedisLabsModules/redis-timeseries.
Stars: ✭ 197 (+233.9%)
Mutual labels:  timeseries
MachineLearning
Machine learning for beginner(Data Science enthusiast)
Stars: ✭ 104 (+76.27%)
Mutual labels:  timeseries
Timeseries Clustering Vae
Variational Recurrent Autoencoder for timeseries clustering in pytorch
Stars: ✭ 190 (+222.03%)
Mutual labels:  timeseries
Lightkurve
A friendly package for Kepler & TESS time series analysis in Python.
Stars: ✭ 232 (+293.22%)
Mutual labels:  timeseries
Microeconometrics.jl
Microeconometric estimation in Julia
Stars: ✭ 30 (-49.15%)
Mutual labels:  econometrics
covid19-timeseries
Covid19 timeseries data store
Stars: ✭ 38 (-35.59%)
Mutual labels:  timeseries
AlphaVantageRB
A Gem for AlphaVantage
Stars: ✭ 68 (+15.25%)
Mutual labels:  timeseries

armagarch package

The package provides a flexible framework for modelling time-series data. The main focus of the package is implementation of the ARMA-GARCH type models.

Full documentation is coming soon.

Installation

The latest stable version can be installed by using pip

pip install armagarch

The master branch can be installed with

git clone https://github.com/iankhr/armagarch
cd armagarch
python setup.py install

Example: Modelling conditional volatility of the US excess market returns

The code requires: NumPy, Pandas, SciPy, Shutil, Matplotlib, Pandas_datareader and Statsmodels

import armagarch as ag
import pandas_datareader as web
import matplotlib.pyplot as plt
import numpy as np

# load data from KennethFrench library
ff = web.DataReader('F-F_Research_Data_Factors_daily', 'famafrench')
ff = ff[0]

# define mean, vol and distribution
meanMdl = ag.ARMA(order = {'AR':1,'MA':0})
volMdl = ag.garch(order = {'p':1,'q':1})
distMdl = ag.normalDist()

# create a model
model = ag.empModel(ff['Mkt-RF'].to_frame(), meanMdl, volMdl, distMdl)
# fit model
model.fit()

# get the conditional mean
Ey = model.Ey

# get conditional variance
ht = model.ht
cvol = np.sqrt(ht)

# get standardized residuals
stres = model.stres

# make a prediction of mean and variance over next 3 days.
pred = model.predict(nsteps = 3)

# pred is a list of two-arrays with first array being prediction of mean
# and second array being prediction of variance

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].