Clicky

PyELW: Exact Local Whittle Estimation for Long Memory Time Series in Python

Jason R. Blevins

Availability:

Abstract.

Fractionally integrated time series, characterized by slowly decaying autocorrelations and spectral densities exhibiting power-law behavior at low frequencies, require accurate estimation of the memory parameter d to distinguish between stationary long memory (0<d<0.5), nonstationary processes (0.5d<1), and unit root behavior (d1). This paper introduces PyELW, a Python package for local Whittle estimation of the memory parameter d including the foundational estimator of Robinson (1995), tapered variants by Velasco (1999) and Hurvich and Chen (2000), the exact local Whittle estimator of Shimotsu and Phillips (2005), and the two-step estimator of Shimotsu (2010). While a package exists for Stata and implementations are available for R and MATLAB, these are either limited-scope or no longer maintained and there was previously no Python implementation of these methods. PyELW provides a wide array of local Whittle estimators in a single package, featuring fast O(nlogn) fractional differencing, a consistent, object-oriented API with theoretically motivated defaults, and extensive validation through exact replication of previously-published results and rigorous cross-platform verification. We demonstrate the package’s usage through simulations and applications to macroeconomic time series.

Keywords: time series, fractional integration, fractional differencing, long memory, local Whittle estimation, Python.

BibTeX Record:

@TechReport{pyelw,
    title = {{PyELW}: Exact Local {Whittle} Estimation for Long Memory Time Series in Python},
    author = {Jason R. Blevins},
    institution = {The Ohio State University},
    year = 2025,
    type = {Working Paper}
}