Learn R Programming

RegimeChange (version 0.1.1)

kernel_cpd_detect: Kernel-based Changepoint Detection

Description

Detects changepoints using Maximum Mean Discrepancy (MMD) in a Reproducing Kernel Hilbert Space. This nonparametric approach can detect changes in any aspect of the distribution.

Usage

kernel_cpd_detect(
  data,
  penalty = "bic",
  kernel = "rbf",
  bandwidth = 0,
  min_segment = 5
)

Value

List with changepoints and kernel statistics

Arguments

data

Numeric vector or matrix (rows = observations)

penalty

Penalty for changepoints (default: "bic")

kernel

Kernel function to use:

  • "rbf": Radial Basis Function (Gaussian) kernel

  • "linear": Linear kernel

  • "poly": Polynomial kernel

  • "laplacian": Laplacian kernel

bandwidth

Kernel bandwidth (0 = automatic median heuristic)

min_segment

Minimum segment length

References

Arlot, S., Celisse, A., and Harchaoui, Z. (2019). A kernel multiple change-point algorithm via model selection. Journal of Machine Learning Research, 20(162), 1-56.