Skip to main content

ARFIMA Python

A lightweight, fast Python library for modeling long-memory time series using AutoRegressive Fractionally Integrated Moving Average (ARFIMA) models.

The Math

Traditional ARIMA models require integer differencing, which can erase long-term trends. ARFIMA allows for fractional differencing to capture "long-memory" processes. The model solves the general equation:

$$\phi(L)(1-L)^d y_t = \theta(L)w_t$$

Where:

  • $L$ is the lag operator.
  • $d$ is the fractional integration parameter ($$-0.5 < d < 0.5$$).
  • $\phi$ and $\theta$ are the Autoregressive (AR) and Moving Average (MA) polynomials.
  • $w_t$ represents the white noise.

Key Features

  • Fast Fractional Differencing: Uses Fast Fourier Transform (FFT) for fractional integration and differencing.
  • Automatic Grid Search: Automatically finds the optimal lag structure using information criteria (AIC, BIC, HQIC, or AICc).
  • Statistical Inference: Calculates the inverse Hessian matrix to provide standard errors, t-statistics, and exact p-values.
  • Forecasting: Built-in methods for both in-sample historical reconstruction and out-of-sample predictions.

Installation

pip install arfima

Metadata

Release files for arfima 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arfima 1.0.1
File Size Uploaded
arfima-1.0.1.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for arfima 1.0.1
File Interpreter ABI Platform
arfima-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / arfima-1.0.1.tar.gz

Download URL arfima-1.0.1.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1098ddfd21490e91ec6bc61f3b6a2895f5a841b4fc6e5b5986e3b4b946bb4967
BLAKE2b-256 checksum
How to use checksums
0f0c695a9a117fa1e5758961afbd63bb5ee169ab43accc6cded5b38cad0006c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / arfima-1.0.1-py3-none-any.whl

Download URL arfima-1.0.1-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b93db5b199c9bc0b3f35335ec536d4723bc49e033cb28441453ffd79f1435000
BLAKE2b-256 checksum
How to use checksums
8bc975c50884da933069528e919ac69cb4dfe0d7decca11e784e8e980e47d3eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

1.1.1

2 release files

1.1.0

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page