Skip to contents

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.

Usage

hcp_garch(sw_size = 5, min_seg = 25, pen_scale = 8, min_gap = 15)

Arguments

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).

Value

hcp_garch object.

References

  • 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

Examples

library(daltoolbox)

# Load change-point example data
data(examples_changepoints)

# Use an increasing amplitude example
dataset <- examples_changepoints$increasing_amplitude
head(dataset)
#>        serie event
#> 1 0.00000000 FALSE
#> 2 0.09983342 FALSE
#> 3 0.19866933 FALSE
#> 4 0.29552021 FALSE
#> 5 0.38941834 FALSE
#> 6 0.47942554 FALSE

# 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),])
#>     idx event        type
#> 200 200  TRUE changepoint
#> 498 498  TRUE changepoint
#> 700 700  TRUE changepoint