arch
ARCH for Python
What it is and what it does
arch is a Python library for financial econometrics, specializing in volatility modeling and time-series analysis. It implements ARCH and GARCH models (and variants like TARCH, EGARCH, EWMA) for capturing changing volatility in financial returns, alongside classical econometric tests like Augmented Dickey-Fuller, Phillips-Perron, and KPSS for unit roots. The package also provides cointegration testing (Engle-Granger, Phillips-Ouliaris), multiple comparison procedures (SPA, StepM, MCS), and bootstrap methods (IID, stationary, block-based) for confidence interval construction and resampling-based inference.
The library is built on numpy, pandas, scipy, and statsmodels, with optional Cython and Numba acceleration for performance. It targets researchers, practitioners in finance and insurance, and quantitative analysts who need to model time-varying volatility, test for stationarity, or construct robust confidence intervals for financial statistics. The package is actively maintained, supports modern Python versions (3.10–3.13), and has been in development since 2014.
Use it for:
- Model conditional volatility in stock returns using GARCH to forecast risk and value-at-risk
- Test whether economic time series have unit roots before fitting regression models
- Estimate long-run covariance matrices for Newey-West corrected standard errors in econometric models
- Bootstrap confidence intervals for Sharpe ratios or other portfolio performance metrics
- Test for cointegration between pairs of financial assets to identify mean-reversion trading signals
- Compare predictive models using multiple comparison procedures to avoid data-snooping bias
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides ARCH/GARCH volatility models, unit root tests, cointegration analysis, bootstrapping methods, and long-run covariance estimation for financial time series analysis.
Yes. arch is a mature, actively maintained library (1551 GitHub stars, top 5000 PyPI by downloads) with no known vulnerabilities, permissive licensing, and a focused feature set for financial econometrics. Install friction is moderate but manageable; prebuilt wheels are available for all major platforms and Python versions. Recommended for anyone doing volatility modeling, unit root testing, or bootstrap-based inference on financial time series.
Install
arch on PyPI
pip
pip install archuv
uv add archpoetry
poetry add archInstalling arch
Before you install
Medium install friction due to compiled components (Cython/Numba). Actively maintained with recent releases; supports Python 3.10–3.13 with prebuilt wheels across major platforms. Five runtime dependencies (numpy, pandas, scipy, statsmodels, packaging) are standard in data science environments.
License in practice
Licensed under NCSA, which is permissive and compatible with most commercial and open-source projects. No notable restrictions on use or redistribution.
Quickstart
pip install arch
from arch import arch_model
import pandas as pd
returns = pd.Series([...]) # your returns data
am = arch_model(returns)
res = am.fit()
Requires Python 3.10+. Optional Numba acceleration requires setting ARCH_NO_BINARY=1 environment variable and installing from source.
Verify before relying
- Whether Numba acceleration provides meaningful performance gains for typical use cases
- Specific volatility model types beyond ARCH, GARCH, TARCH, EGARCH, and EWMA that are implemented
Package facts
| License | NCSA (unclear) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 5 — numpy, pandas, scipy, statsmodels, packaging |
| Maintenance | actively maintained — 297 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,059,093/month — #4,423 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: arch-8.0.0-cp310-cp310-macosx_10_9_x86_64.whl; arch-8.0.0-cp310-cp310-macosx_11_0_arm64.whl; arch-8.0.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; arch-8.0.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; arch-8.0.0-cp310-cp310-musllinux_1_2_x86_64.whl; arch-8.0.0-cp310-cp310-win_amd64.whl; arch-8.0.0-cp311-cp311-macosx_10_9_x86_64.whl; arch-8.0.0-cp311-cp311-macosx_11_0_arm64.whl; arch-8.0.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; arch-8.0.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; arch-8.0.0-cp311-cp311-musllinux_1_2_x86_64.whl; arch-8.0.0-cp311-cp311-win_amd64.whl; arch-8.0.0-cp312-cp312-macosx_10_13_x86_64.whl; arch-8.0.0-cp312-cp312-macosx_11_0_arm64.whl; arch-8.0.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; arch-8.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; arch-8.0.0-cp312-cp312-musllinux_1_2_x86_64.whl; arch-8.0.0-cp312-cp312-win_amd64.whl; arch-8.0.0-cp313-cp313-macosx_10_13_x86_64.whl; arch-8.0.0-cp313-cp313-macosx_11_0_arm64.whl
Keywords: arch, ARCH, variance, econometrics, volatility, finance, GARCH, bootstrap, random walk, unit root, Dickey Fuller, time series, confidence intervals, multiple comparisons, Reality Check, SPA, StepM
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
bootstrappedBuilds confidence intervals from data samples…
unclear · top 15,000 on PyPI
linearmodelsProvides panel regression, instrumental…
unclear · top 15,000 on PyPI
volatility3Volatility 3 is a memory forensics framework…
unclear · top 15,000 on PyPI
py-lets-be-rationalComputes implied volatility from option prices…
permissive · top 15,000 on PyPI
gstoolsGSTools provides geostatistical tools for…
copyleft · top 15,000 on PyPI
spregspreg estimates simultaneous autoregressive…
permissive · top 15,000 on PyPI
quantstatsQuantStats computes portfolio performance…
permissive · top 15,000 on PyPI
statsmodelsstatsmodels provides statistical models,…
permissive · top 1,000 on PyPI
taComputes technical analysis indicators (volume,…
permissive · top 5,000 on PyPI
pyportfoliooptPyPortfolioOpt implements portfolio…
permissive · top 15,000 on PyPI