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

## Changelog

* **v1.0.2**: Minor bug fixes and docstring improvements.
* **v1.0.1**: Fixed inverted AR/MA polynomials in forecast generation.
* **v1.0.0**: Initial release.

Metadata

Release files for arfima 1.0.2

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.2
File Size Uploaded
arfima-1.0.2.tar.gz 6.7 kB Details

Built distribution (wheel)

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

Total release size: 13.7 kB

Release files / arfima-1.0.2.tar.gz

Download URL arfima-1.0.2.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3d9bffe6ac1c7d5886c7d9413ea479d09796f4574bd2f5c60026e4fced0841e2
BLAKE2b-256 checksum
How to use checksums
24d4cd498c1b6b62b2c28f7e42008164571bdab4340e2182631738e267683b35
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.2-py3-none-any.whl

Download URL arfima-1.0.2-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b19911552d108742a9a3821bf308187c55fdb365ac426a5de796b2ece7ab774
BLAKE2b-256 checksum
How to use checksums
8fd9ab2c46d7c189a3af7ad4fbe7f839c269da419e1350009d5e609d821b8ad3
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

This release

1.0.2 This release

2 release files

1.0.1

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