| hcp_cf_arima | R Documentation |
Change-point detection with a native, self-contained robust ChangeFinder (no
forecast dependency). This is an adaptation of the original
ChangeFinder-ARIMA with documented innovations: instead of scoring
forecast::auto.arima residuals, it implements the canonical two-stage
online SDAR (Sequentially Discounting AutoRegressive) ChangeFinder of Takeuchi
& Yamanishi (2006) – strong on abrupt/variance/multi-change regimes – and
takes the union with a Gaussian mean+variance structural break
(shared with hcp_chow/hcp_gft), which recovers the smooth trend/slope
changes the AR-surprise score is blind to.
This mirrors the canonical implementation in the pyharbinger package (class
HcpCfArima); the two implementations produce identical detections.
hcp_cf_arima(sw_size = 5, r = 0.07, order = 1, h = 0.15)
sw_size |
Integer. Smoothing window for the two-stage scores / warm-up. |
r |
SDAR forgetting (discounting) factor. |
order |
Autoregressive order of the SDAR model. |
h |
Minimal segment fraction for the mean+variance structural break. |
hcp_cf_arima object.
Takeuchi J, Yamanishi K (2006). A unifying framework for detecting outliers and change points from time series. IEEE Transactions on Knowledge and Data Engineering, 18(4):482-492.
Chen J, Gupta AK (2000). Parametric Statistical Change Point Analysis. Birkhauser. (mean+variance structural break)
library(daltoolbox)
# Load change-point example data
data(examples_changepoints)
# Use a simple example
dataset <- examples_changepoints$simple
head(dataset)
# Configure ChangeFinder-ARIMA detector
model <- hcp_cf_arima()
# Fit the model (no-op; detection is self-contained)
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.