Learn R Programming

OLCPM (version 0.1.1)

Online Change Point Detection for Matrix-Valued Time Series

Description

We provide two algorithms for monitoring change points with online matrix-valued time series, under the assumption of a two-way factor structure. The algorithms are based on different calculations of the second moment matrices. One is based on stacking the columns of matrix observations, while another is by a more delicate projected approach. A well-known fact is that, in the presence of a change point, a factor model can be rewritten as a model with a larger number of common factors. In turn, this entails that, in the presence of a change point, the number of spiked eigenvalues in the second moment matrix of the data increases. Based on this, we propose two families of procedures - one based on the fluctuations of partial sums, and one based on extreme value theory - to monitor whether the first non-spiked eigenvalue diverges after a point in time in the monitoring horizon, thereby indicating the presence of a change point. This package also provides some simple functions for detecting and removing outliers, imputing missing entries and testing moments. See more details in He et al. (2021).

Copy Link

Version

Install

install.packages('OLCPM')

Monthly Downloads

550

Version

0.1.1

License

GPL-2 | GPL-3

Maintainer

Long Yu

Last Published

February 5th, 2024

Functions in OLCPM (0.1.1)

test.once.proj.robust

robust test of single change point for matrix-valued online time series-projected version
var.exp

explanatory power of factors
test.multiple.robust

robust test of multiple change point for matrix-valued online time series
ITP_noproj

testing the number of row factors- without projection
gen.psi.tau.proj

calculate eigenvalue series by projected method
cv.table

cv.table
KSTP

determine row factor number - test
impute.linear

impute missing entries by linear interpolation
kpe

determine factor number - projected
getcv

calculate critical values
gen.psi.tau.flat

calculate eigenvalue series by ``flat'' method
ITP_proj

testing the number of row factors- with projection
gen.data

generate data
test.once.psi

test single change point for matrix-valued online data given rolling eigenvalue series
moment.determine

determine the moment (largest) of the data samples
test.once.flat.robust

robust test of single change point for matrix-valued online time series -"flat" version
moment.test

test whether the k-th moment exists
test.once.flat

test single change point for matrix-valued online time series -''flat'' version
test.once.proj

test single change point for matrix-valued online time series-projected version
outlier.remove

remove outliers
test.once.psi.robust

robust test of single change point for matrix-valued online data given rolling eigenvalue series