All Projects → JuliaDynamics → ARFIMA.jl

JuliaDynamics / ARFIMA.jl

Licence: MIT license
Simulate stochastic timeseries that follow ARFIMA, ARMA, ARIMA, AR, etc. processes

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to ARFIMA.jl

arima
ARIMA, SARIMA, SARIMAX and AutoARIMA models for time series analysis and forecasting in the browser and Node.js
Stars: ✭ 31 (-29.55%)
Mutual labels:  timeseries, arima
binary.com-bot
Scripts for using on Binary.com Bots.
Stars: ✭ 60 (+36.36%)
Mutual labels:  stochastic, moving-average
rsdmx
Tools for reading SDMX data and metadata in R
Stars: ✭ 93 (+111.36%)
Mutual labels:  timeseries
Deep XF
Package towards building Explainable Forecasting and Nowcasting Models with State-of-the-art Deep Neural Networks and Dynamic Factor Model on Time Series data sets with single line of code. Also, provides utilify facility for time-series signal similarities matching, and removing noise from timeseries signals.
Stars: ✭ 83 (+88.64%)
Mutual labels:  timeseries
StockPriceGenerator
Python application to write stock security data to a MongoDB Cluster. Supports a variable amount of stocks, variable amount of time and can write to a MongoDB time-series collection
Stars: ✭ 21 (-52.27%)
Mutual labels:  timeseries
binary.com-interview-question
The sample question for Interview a job in Binary options
Stars: ✭ 52 (+18.18%)
Mutual labels:  arima
cortex-tenant
Prometheus remote write proxy that adds Cortex tenant ID based on metric labels
Stars: ✭ 60 (+36.36%)
Mutual labels:  timeseries
Pythia
An extension for Arma 3 that lets you write extensions in Python 3
Stars: ✭ 50 (+13.64%)
Mutual labels:  arma
SDETools
Matlab Toolbox for the Numerical Solution of Stochastic Differential Equations
Stars: ✭ 80 (+81.82%)
Mutual labels:  stochastic
A3ExtendedChat
Adds new functionality to the Arma 3 chat system with emojis, history viewer, message filters and commands!
Stars: ✭ 16 (-63.64%)
Mutual labels:  arma
ARIMA
Simple python example on how to use ARIMA models to analyze and predict time series.
Stars: ✭ 169 (+284.09%)
Mutual labels:  arima
influxdb-client-ruby
InfluxDB 2.0 Ruby Client
Stars: ✭ 30 (-31.82%)
Mutual labels:  timeseries
JRedisTimeSeries
Java Client for RedisTimeSeries
Stars: ✭ 29 (-34.09%)
Mutual labels:  timeseries
chartjs-plugin-datasource-prometheus
Chart.js plugin for Prometheus data loading
Stars: ✭ 77 (+75%)
Mutual labels:  timeseries
ClimateTools.jl
Climate science package for Julia
Stars: ✭ 108 (+145.45%)
Mutual labels:  timeseries
GatedPixelCNNPyTorch
PyTorch implementation of "Conditional Image Generation with PixelCNN Decoders" by van den Oord et al. 2016
Stars: ✭ 68 (+54.55%)
Mutual labels:  autoregressive
PboViewer
Cross-platform PBO maker / unpacker
Stars: ✭ 28 (-36.36%)
Mutual labels:  arma
timemachines
Predict time-series with one line of code.
Stars: ✭ 342 (+677.27%)
Mutual labels:  timeseries
fhub
Python client for Finnhub API
Stars: ✭ 31 (-29.55%)
Mutual labels:  timeseries
HydroSight
A flexible statistical toolbox for deriving quantitative insights from groundwater data.
Stars: ✭ 31 (-29.55%)
Mutual labels:  timeseries

ARFIMA.jl

This Julia package simulates stochastic timeseries that follow the ARFIMA process, or any of its simplifications: ARIMA/ARMA/AR/MA/IMA.

The code base is also a proof-of-concept of using Julia's multiple dispatch.

This package is unregistered (because of the absence of a test suite). To install do:

julia> ] add https://github.com/JuliaDynamics/ARFIMA.jl

julia> using ARFIMA

see the examples below for usage.

ARFIMA and its variants

the ARFIMA process

The ARFIMA process is composed out of several components and each can be included or not included in the process, resulting in simplified versions like ARMA.

Usage

This package exports a single function arfima. This function generates the timeseries Xₜ using Julia's multiple dispatch.

Here is its documentation string:


arfima([rng,] N, σ, d, φ=nothing, θ=nothing) -> Xₜ

Create a stochastic timeseries of length N that follows the ARFIMA process, or any of its subclasses, like e.g. ARMA, AR, ARIMA, etc., see below. σ is the standard deviation of the white noise used to generate the process. The first optional argument is an AbstractRNG, a random number generator to establish reproducibility.

Julia's multiple dispatch system decides which will be the simulated variant of the process, based on the types of d, φ, θ.

Variants

The ARFIMA parameters are (p, d, q) with p = length(φ) and q = length(θ), with p, q describing the autoregressive or moving average "orders" while d is the differencing "order". Both φ, θ can be of two types: Nothing or SVector. If they are Nothing the corresponding components of autoregressive (φ) and moving average (θ) are not done. Otherwise, the static vectors simply contain their values.

If d is Nothing, then the differencing (integrated) part is not done and the process is in fact AR/MA/ARMA. If d is of type Int, then the simulated process is in fact ARIMA, while if d is AbstractFloat then the process is ARFIMA. In the last case it must hold that d ∈ (-0.5, 0.5). If all d, φ, θ are nothing, white noise is returned.

The function arma(N, σ, φ, θ = nothing) is provided for convienience.

Examples

N, σ = 10_000, 0.5
X = arfima(N, σ, 0.4)                             # ARFIMA(0,d,0)
X = arfima(N, σ, 0.4, SVector(0.8, 1.2))          # ARFIMA(2,d,0)
X = arfima(N, σ, 1, SVector(0.8))                 # ARIMA(1,d,0)
X = arfima(N, σ, 1, SVector(0.8), SVector(1.2))   # ARIMA(1,d,1)
X = arfima(N, σ, 0.4, SVector(0.8), SVector(1.2)) # ARFIMA(1,d,1)
X = arfima(N, σ, nothing, SVector(0.8))           # ARFIMA(1,0,0) ≡ AR(1)

Benchmarks

Some benchmark code is included in src/benchmarks.jl. These results come from running the code on a laptop with Windows 10, Julia 1.2.0, Intel i5-6200U @2.30GHz CPU, 8192MB RAM. Results that need microseconds to run are not timed accurately.

Process: ARFIMA(0, d=0.4, 0)
For N = 10000, 0.2449999 seconds
For N = 50000, 1.467 seconds
For N = 100000, 7.5779998 seconds

Process: ARIMA(0, d=2, 0)
For N = 10000, 0.0 seconds
For N = 50000, 0.0009999 seconds
For N = 100000, 0.0020001 seconds

Process: ARFIMA(φ=0.8, d=0.4, 0)
For N = 10000, 0.267 seconds
For N = 50000, 1.388 seconds
For N = 100000, 7.4589999 seconds

Process: ARMA(φ=0.8, θ=2.0)
For N = 10000, 0.0 seconds
For N = 50000, 0.0009999 seconds
For N = 100000, 0.003 seconds

Acknowledgements

Thanks to Katjia Polotzek for providing an initial code base for ARFIMA and to Philipp Meyer for validation of parts of the code

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].