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