| hcp_cf_ets | R Documentation |
Change-point detection with a native, self-contained robust ChangeFinder (no
forecast dependency). This is an adaptation of the original
ChangeFinder-ETS with documented innovations: instead of scoring
forecast::ets residuals, it implements the canonical two-stage online
ChangeFinder of Takeuchi & Yamanishi (2006) with a discounted Holt
(level+trend, the exponential-smoothing analogue of SDAR) predictor, and takes
the union with a Gaussian mean+variance structural break (shared with
hcp_chow/hcp_gft), which recovers smooth trend/slope changes the surprise
score is blind to.
This mirrors the canonical implementation in the pyharbinger package (class
HcpCfEts); the two implementations produce identical detections.
hcp_cf_ets(sw_size = 5, alpha = 0.8, beta = 0.1, r = 0.05, h = 0.15)
sw_size |
Integer. Smoothing window for the two-stage scores / warm-up. |
alpha |
Holt level smoothing factor. |
beta |
Holt trend smoothing factor. |
r |
Forgetting (discounting) factor for the residual variance. |
h |
Minimal segment fraction for the mean+variance structural break. |
hcp_cf_ets 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.
Holt CC (1957/2004). Forecasting seasonals and trends by exponentially weighted moving averages. International Journal of Forecasting, 20(1):5-10.
Chen J, Gupta AK (2000). Parametric Statistical Change Point Analysis. Birkhauser.
library(daltoolbox)
# Load change-point example data
data(examples_changepoints)
# Use a simple example
dataset <- examples_changepoints$simple
head(dataset)
# Configure ChangeFinder-ETS detector
model <- hcp_cf_ets()
# 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.