Skip to main content

This module takes a time series and returns: (a) the underlaying linear trend and (b) the times where there is a change in the trend

Project description

ChangePointDetector This module takes a time series and returns: (a) the piecewise underlaying linear trend, and (b) the times where there is a change in the underlying trend

We use a Kalman Filter to find the piecewise underlying linear trend, with a state space representation of seasonality and an underlying linear trend. We initialise the parameters of the Kalman filter using a Least Squares estimator out of "statsmodels'

For the change detector on the underlying trend we use another Kalman filter, this time a single period autoregression. We then consider the Malhalanobis distance between that filter output, using a Gumbel distribution to decide where the increase in distance likely indicates a change in trend. This implements the approach described by Lee & Roberts at https://www.robots.ox.ac.uk/~sjrob/Pubs/LeeRoberts_EVT.pdf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ChangePointDetectorEVT-0.0.1.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

ChangePointDetectorEVT-0.0.1-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page