"This package implements MSSA and SSA in Python, which are used for time series decomposition, forecasting values and estimation of roots of signals"
Project description
PY-SSA-LIB PACKAGE
Intro
Welcome to the page of the py-ssa-lib package! This package contains python implementations of the Singular Spectrum Analysis(SSA) and Multichannel Singular Spectrum Analysis(MSSA).
It can be used for the time series analysis and forecasting.
Please, take a look on the guides for SSA and MSSA which are available in the corresponding directory !
Mathematical Background
The Wiki for the py-ssa-lib package is now available and will be periodically updated. It contains some theoretical background about the MSSA and SSA.
Updates
NEW: The bootstrap prediction intervals are now available both for MSSA and SSA( and other models from other packages, since it is model free). Just import bootstrap_prediction_intervals from the new module tools and pass residuals and forecasted values.
Installation
$ python -m pip install py-ssa-lib
Requirements
The required packages are listed in the requirements.txt and can be installed from this file via pip.
All dependencies should be automatically installed during the installation of the py-ssa-lib
The classes in the py-ssa-lib heavily rely on the numpy, scipy, sklearn, pandas and matplotlib libraries.
Similar Python Packages
Before the development of the py-ssa-lib I searched for the the Python packages which implement both MSSA and SSA, and found only few decent packages with the similar functionality:
However, they seem to be no longer maintained and they provided a limited functionality in comparison to what I need. (Arguably) the best functionality is provided by the RSSA-package in R (https://github.com/asl/rssa). So the aim of this package is to migrate the most useful functions from the RSSA-package into Python, in order to provide a seamless workflow for the time series analysis.
List of the Core Packages
- NumPy https://numpy.org/
- SciPy https://scipy.org/
- Jupyter Lab https://jupyterlab.readthedocs.io/en/latest/index.html
- Scikit-learn https://scikit-learn.org/stable/
- Matplotlib https://matplotlib.org/
Literature about SSA and MSSA
- https://www.kaggle.com/code/jdarcy/introducing-ssa-for-time-series-decomposition/notebook#2.-Introducing-the-SSA-Method
- https://link.springer.com/book/10.1007/978-3-642-34913-3
- https://link.springer.com/book/10.1007/978-3-662-57380-8
- https://www.gistatgroup.com/gus/mssa2.pdf
Citation
If you find this package useful, please, cite:
Konstantin Ibadullaev, https://github.com/K-Ibadullaev/py_ssa-lib/
(This file and the citation format will change over time.)
Acknowledgements
This package is developed as a part of the research project "Intelligent Geosystems" (100693905) supported by ESF funding
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_ssa_lib-1.3.0.0.tar.gz.
File metadata
- Download URL: py_ssa_lib-1.3.0.0.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28b1d56bf0e13547bf730e9c873ec4abb4b6d14ad66fa0ec0bb2f4941d22dccb
|
|
| MD5 |
f2f2949bed8e5c83430500263868a93e
|
|
| BLAKE2b-256 |
7c1a30d7570d034fc64344a25da4c9aecf00150b4741e2fc40e41e8e14a22123
|
File details
Details for the file py_ssa_lib-1.3.0.0-py3-none-any.whl.
File metadata
- Download URL: py_ssa_lib-1.3.0.0-py3-none-any.whl
- Upload date:
- Size: 2.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f2421f2919529e60436e3c2ac2ea82f247bccd6d38c41ffbf1b964ee8b5e249
|
|
| MD5 |
77525919c6fe450d7e3e4e89c4c04863
|
|
| BLAKE2b-256 |
d1144af293b1c94b1e17e396eb80d528a13fd905763b392abff12a25891569b4
|