backshift 0.3.0

Time-series forecasting checked against R and statsmodels: ARIMA, ETS, Theta, VAR, Croston/TSB, GARCH and changepoint detection, with streaming filters that run without a heap
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Streaming changepoint detection on standardised innovations, without a heap.
//!
//! A filter's innovation divided by the square root of its variance is close to standard
//! normal while the model holds. A change in the process shows up as a shift in the mean or
//! the scale of these values. Two detectors watch for it, one value at a time:
//!
//! - [`Cusum`]: Page's two-sided cumulative sum, the classic quality-control alarm for a
//!   shift in the mean, tuned by its average run length.
//! - [`Bocpd`]: Bayesian online changepoint detection (Adams and MacKay 2007), the posterior
//!   distribution of how long the current segment has lasted, for shifts in the mean or the
//!   scale.

mod bocpd;
mod cusum;

pub use bocpd::{Bocpd, NormalGamma};
pub use cusum::{Cusum, Shift};