arch provides Python implementations of ARCH and GARCH volatility models, unit root and cointegration tests, bootstraps, and related financial econometrics tools.
Overview
arch is a Python package for financial econometrics, centered on autoregressive conditional heteroskedasticity models and companion methods used in empirical finance. Core areas include univariate volatility modeling, unit root testing, cointegration analysis, bootstrap inference, multiple comparison procedures, and long-run covariance estimation.
Volatility modeling supports many mean specifications from constant and AR through ARCH-in-mean, plus variance processes such as ARCH, GARCH, EGARCH, FIGARCH, MIDAS, and RiskMetrics-style EWMA. Distributions cover normal, Student-t, skewed variants, and generalized error forms, with residual diagnostics and value-at-risk backtests.
Unit root tooling covers Augmented Dickey-Fuller, DF-GLS, Phillips-Perron, KPSS, Zivot-Andrews, and variance ratio tests. Cointegration features Engle-Granger and Phillips-Ouliaris tests with estimation via canonical cointegrating regression, dynamic OLS, and fully modified OLS. Bootstrap modules implement IID, stationary, and block schemes, while SPA, StepM, and model confidence set routines address predictive ability comparisons.
Performance-sensitive paths may use Cython or Numba. The library installs from PyPI or conda-forge as arch-py, with prebuilt wheels for Linux, macOS, and Windows when binaries are enabled.
Key features
- ARCH, GARCH, and extended volatility models
- Unit root and cointegration test suite
- Bootstrap confidence intervals and inference
- SPA and model confidence set tests
- Long-run covariance estimators
- VaR backtesting diagnostics
- Optional Numba-accelerated recursions
- PyPI and conda-forge installation
Use cases
- Modeling financial return volatility
- Hypothesis testing for unit roots
- Cointegration analysis in time series
- Bootstrap evaluation of trading statistics