| hcp_garch | R Documentation |
Change-point detection for variance and regime shifts using a native ARMA(1,1)-GARCH(1,1) model. Combines BIC-penalized step-change segmentation on log conditional variance (Inclan & Tiao 1994; Kokoszka & Leipus 2000) with ChangeFinder smoothing on standardized GARCH residuals.
hcp_garch(sw_size = 5, min_seg = 25, pen_scale = 8, min_gap = 15)
sw_size |
Sliding window size for ChangeFinder residual smoothing (default 5). |
min_seg |
Minimum segment length for log-volatility segmentation (default 25). |
pen_scale |
BIC penalty multiplier for log-volatility breaks (default 8.0). |
min_gap |
Minimum separation when merging volatility and residual breaks (default 15). |
hcp_garch object.
Engle RF (1982). Autoregressive Conditional Heteroscedasticity. Econometrica, 50(4):987-1007.
Bollerslev T (1986). Generalized Autoregressive Conditional Heteroskedasticity. Journal of Econometrics, 31(3):307-327.
Inclan C, Tiao GC (1994). Use of Cumulative Sums of Squares for Retrospective Detection of Changes of Variance. JASA, 89(427):913-923.
Kokoszka P, Leipus R (2000). Change-point estimation in ARCH models. Bernoulli, 6(3):513-539.
Ogasawara E, Salles R, Porto F, Pacitti E (2025). Event Detection in Time Series. 1st ed. Cham: Springer Nature Switzerland. doi:10.1007/978-3-031-75941-3
library(daltoolbox)
# Load change-point example data
data(examples_changepoints)
# Use an increasing amplitude example
dataset <- examples_changepoints$increasing_amplitude
head(dataset)
# Configure GARCH++ change-point detector
model <- hcp_garch()
# Fit the model
model <- fit(model, dataset$serie)
# Run detection
detection <- detect(model, dataset$serie)
# Show detected change points
print(detection[(detection$event),])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.