API Reference¶
This page contains a list of the essential end-user API functions and classes. The data sets that are included in the package are described in Data Sets, and the warnings and exceptions that the package raises are described in Warnings and Exceptions.
Volatility Modeling¶
High-level¶
|
Initialize common ARCH model specifications. |
Mean Specification¶
|
Constant mean model estimation and simulation. |
|
Model with zero conditional mean estimation and simulation. |
|
Heterogeneous Autoregression (HAR) model with optional exogenous regressors. |
|
Autoregressive model with optional exogenous regressors. |
|
Least squares model estimation and simulation. |
|
Moving average (MA) mean model, with optional constant. |
|
(G)ARCH-in-mean model and simulation. |
Volatility Process Specification¶
|
ARCH process. |
|
GARCH and related model estimation. |
|
EGARCH model estimation. |
|
Asymmetric Power ARCH (APARCH) volatility process. |
|
Heterogeneous ARCH process. |
|
FIGARCH model. |
|
Fractionally Integrated Asymmetric Power ARCH (FIAPARCH) volatility process. |
|
Nonlinear asymmetric GARCH (NGARCH) volatility process. |
|
MIDAS Hyperbolic ARCH process. |
|
Exponentially Weighted Moving-Average (RiskMetrics) Variance process. |
|
RiskMetrics 2006 Variance process. |
Constant volatility process. |
|
|
Fixed volatility process. |
Shock Distributions¶
|
Standard normal distribution for use with ARCH models. |
|
Standardized Student's distribution for use with ARCH models. |
|
Standardized Skewed Student's distribution for use with ARCH models. |
|
Generalized Error distribution for use with ARCH models. |
Residual Diagnostics¶
|
Sample excess kurtosis of standardized residuals. |
|
Hill tail-index estimator of standardized residuals. |
|
Ratio of Gaussian VaR to model-distribution VaR. |
VaR Backtests¶
|
Identify the exceptions of a VaR forecast. |
|
Kupiec proportion-of-failures test of the coverage of VaR. |
|
Christoffersen test of the independence of the exceptions of VaR. |
|
Christoffersen test of the conditional coverage of VaR. |
|
Basel traffic light zone of the exceptions of VaR. |
|
Result of the Basel traffic light backtest of VaR. |
Model Results and Forecasts¶
|
Results from estimation of an ARCHModel model. |
|
Results for fixed parameters for an ARCHModel model. |
|
Container for forecasts from an ARCH Model. |
|
Container for a simulation or bootstrap-based forecasts from an ARCH Model. |
|
Container for variance forecasts. |
|
Test statistic holder for Wald-type tests. |
Extending the Model Components¶
|
Abstract base class for mean models in ARCH processes. |
Abstract base class for ARCH models. |
|
Base class that all volatility updaters must inherit from. |
|
|
Template for subclassing only. |
Unit Root Testing¶
|
Augmented Dickey-Fuller unit root test. |
|
Elliott, Rothenberg and Stock's ([ers]) GLS detrended Dickey-Fuller. |
|
Phillips-Perron unit root test. |
|
Zivot-Andrews structural-break unit-root test. |
|
Variance Ratio test of a random walk. |
|
Kwiatkowski, Phillips, Schmidt and Shin (KPSS) stationarity test. |
|
Automatic bandwidth selection of Andrews (1991) and Newey & West (1994). |
Cointegration Testing¶
|
Test for cointegration within a set of time series. |
|
Test for cointegration within a set of time series. |
|
Results class for Engle-Granger cointegration tests. |
|
Results class for Phillips-Ouliaris cointegration tests. |
Cointegrating Relationship Estimation¶
|
Canonical Cointegrating Regression cointegrating vector estimation. |
|
Dynamic OLS (DOLS) cointegrating vector estimation. |
|
Fully Modified OLS cointegrating vector estimation. |
|
Estimation results for cointegrating vector estimators. |
|
Estimation results for Dynamic OLS models. |
Bootstraps¶
|
Bootstrap using uniform resampling. |
|
Bootstrap where each input is independently resampled. |
|
Politis and Romano (1994) bootstrap with expon distributed block sizes. |
|
Bootstrap using blocks of the same length with end-to-start wrap around. |
|
Bootstrap using blocks of the same length without wrap around. |
|
Bootstrap using blocks that are resampled from near their own position. |
Block-length Selection¶
Estimate optimal window length for time-series bootstraps. |
Testing with Multiple-Comparison¶
|
Test of Superior Predictive Ability (SPA) of White and Hansen. |
|
Model Confidence Set (MCS) of Hansen, Lunde and Nason. |
|
StepM multiple comparison procedure of Romano and Wolf. |
Long-run Covariance (HAC) Estimation¶
|
Alternative name of the QuadraticSpectral covariance estimator. |
|
Bartlett's (Newey-West) kernel covariance estimation. |
|
Alternative name for Parzen covariance estimator. |
|
Alternative name for Bartlett covariance estimator. |
|
Parzen's kernel covariance estimation. |
|
Parzen's Cauchy kernel covariance estimation. |
|
Parzen's Geometric kernel covariance estimation. |
|
Parzen-Reisz kernel covariance estimation. |
|
Quadratic-Spectral (Andrews') kernel covariance estimation. |
|
Tukey-Hamming kernel covariance estimation. |
|
Tukey-Hanning kernel covariance estimation. |
|
Tukey-Parzen kernel covariance estimation. |
|
Zero-lag (No autocorrelation) kernel covariance estimation. |
|
VAR-HAC and Pre-Whitened-Recolored Long-run covariance estimation. |
|
Base class of the kernel-based long-run covariance estimators. |
|
Covariance estimate using a long-run covariance estimator. |
Data Sets¶
|
Load the S&P 500 data used in the examples. |
|
Load the NASDAQ Composite data used in the examples. |
|
Load the VIX Index data used in the examples. |
|
Load the West Texas Intermediate crude oil price data used in the examples. |
|
Load the Brent and WTI crude oil price data used in the examples. |
|
Load the Core CPI data used in the examples. |
|
Load the AAA and BAA rates used in the examples. |
|
Load the Fama-French factor data used in the examples. |
|
Load the graduate school admissions data used in the examples. |
|
Load data from a csv.gz file. |
Utilities¶
|
Run the tests of the installed package. |