GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - open-source-modelling/singular_spectrum_analysis: Singular Spectrum Analysis (SSA) is a non-parametric technique used for time series analysis and forecasting.

This repository was archived by the owner on Oct 6, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SSA_Example.ipynb
SSA_Example.ipynb
 
 
SSA_Example.pdf
SSA_Example.pdf
 
 
ssaBasic.py
ssaBasic.py
 
 
test_ssa_basic.py
test_ssa_basic.py
 
 

Repository files navigation

Singular Spectrum analysis

Welcome to the Singular Spectrum analysis repository. This repository hosts the code and examples for a non-parametric and automated algorithm for time-series analysis. The goal of this project is to provide a transparent, reproducible codebase for actuarial use-cases. This repository is based on, among others, the paper Casalini, Riccardo, Singular Spectrum Analysis: Back to basics (February 13, 2025).


Overview

Singular Spectrum Analysis (SSA) is a non-parametric technique of time series analysis and forecasting. SSA aims at decomposing the original series in a small number of possibly interpretable components such as a slowly varying trend, oscillatory components, and noise.

SSA allows for an automated time-series analysis and forecasting with minimal assumptions on the model form. It aims at a decomposition of the original series into a sum of a small number of interpretable components such as a slowly varying trend, oscillatory components and a structureless noise. Basic SSA analysis consists of four steps:

  1. Embedding: the series is arranged into a trajectory (Hankel) matrix of lagged copies of itself.
  2. Singular value decomposition of the trajectory matrix into eigen-triples.
  3. Grouping of the eigen-triples into components such as trend, oscillations and noise.
  4. Diagonal averaging (hankelization), which turns each group back into a time series.

Getting Started

Prerequisites

  • Python 3.8+
  • Jupyter Lab or Jupyter Notebook
  • Familiarity with Python data-analysis libraries (e.g., NumPy, Matplotlib, Seaborn)

Data Preparation

  1. Download the entire repo
  2. Open the Jupyter notebook using Anaconda
  3. Run the notebook

Content:

ssaBasic.py

Python code implementing the SSA algorithm and the calibration protocols.

SSA_Example.ipynb

A Jupyter notebook that shows an example of use for the SSA algorithm and individual functions.


Contributing

Contributions are welcome! If you have any ideas, bug reports, or suggestions:

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes and commit them: git commit -m "Add some feature".

A similar code (written for Matlab) is available at GitHub and Mathworks Exchange. The original paper is available at SSRN: https://ssrn.com/abstract=5136637 or http://dx.doi.org/10.2139/ssrn.5136637. Feel free to contribute also to the Matlab version of SSA.


Licence

The notebooks are released under a MIT license. Free to copy, download, modify and use in other products.


Disclaimer

No Warranties: This software is provided on an “as is” basis, without warranties or conditions of any kind, either express or implied. The authors do not assume any responsibility for the correct functioning of the code, for any bugs or for unintended consequences arising from the use of this software. Use at your own risk.


If you have questions, suggestions, or concerns, reach out to [email protected].

About

Singular Spectrum Analysis (SSA) is a non-parametric technique used for time series analysis and forecasting.

qnityconsultants.com/

Topics

actuarialinterpolation-methodspython

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.