Skip to main content

Tools for outlier and structural changes detection in time series analysis using Bayesian Dynamic Linear Model.

Project description

Welcome to pybats-detection

The pybats-detection is a python package with routines implemented in python for detection of outlier and structural changes in time series using Bayesian Dynamic Linear Models (DLM). The currently version of the package implements the automatic monitoring, manual intervention and smoothing for DLM’s.

The stable version of pybats-detection can be installed from PyPI using:

pip install pybats-detection

The development version can be installed from GitHub using:

git clone git@github.com:Murabei-OpenSource-Codes/develop/pybats-detection.git pybats-detection
cd pybats-detection
python setup.py install

The package uses the pybats.dglm.dlm objects from PyBATS package as an input for the following classes:

  • Monitoring: perform automatic monitoring of outlier and/or structural changes in time series according to West and Harisson (1986) .

  • Intervention: perform manual intervention of outlier and/or structural changes in time series according to West and Harrison (1989).

  • Smoothing: compute the retrospective state space parameter and predictive distributions.

All three classes have the fit method which received the univariate time series as a pandas.Series object and further arguments related to each class.

User manuals can be found in:

  • pybats_detection: detailed explanation of pybats-detection usability.

  • quick_start: quick reference guide with step-by-step usability.

Authors

pybats-detection was developed by André Menezes and Eduardo Gabriel while working as Data Scientist at Murabei Data Science advised by professor Hélio Migon and André Baceti .

License

The pybats-detection package is released under the Apache License, Version 2.0. Please, see file LICENSE.md.

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

pybats-detection-0.2.1.tar.gz (19.8 kB view hashes)

Uploaded Source

Built Distribution

pybats_detection-0.2.1-py3-none-any.whl (26.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