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.3: Fix import
- 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.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| arfima-1.0.5.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arfima-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.1 kB
Release files / arfima-1.0.5.tar.gz
| Download URL | arfima-1.0.5.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
611b863731a684a7404a8feb1c51c0e67f02d969a1b8f577736cd483ffe21e73
|
|
BLAKE2b-256 checksum How to use checksums |
8c7d280cd72b38af69f36092b9d7633c747a0b999f5fd717265df371336dba93
|
| 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.5-py3-none-any.whl
| Download URL | arfima-1.0.5-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad2dda4b2cd74bed5e6b074429f6fda0e31a653bd7fb0329f8e537f42f5b211b
|
|
BLAKE2b-256 checksum How to use checksums |
66b4a9026d50add6347206874c2bedc160fe045c043e7ddb68627fefc5e70dcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|