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.3
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.3.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| arfima-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / arfima-1.0.3.tar.gz
| Download URL | arfima-1.0.3.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c48b310dbdd031be757f23ae01f9605e329250f46a8a4a8e07bce07f54621aee
|
|
BLAKE2b-256 checksum How to use checksums |
2d03b2c5110b6f4995e399f473fbd0d68b1bfeb54ddb81c56cbcbfe5457f52ec
|
| 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.3-py3-none-any.whl
| Download URL | arfima-1.0.3-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88ed23e078d4acc5ded03d911e68c9ec13b8f61bf47211fe5089fb8454f0e44c
|
|
BLAKE2b-256 checksum How to use checksums |
10dcaaf6c579aad7aa576de6f40791a125a3d7fd4f30f943532a6dd5d8b2d008
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|