Time Segmentation

Segments time series into different components according to statistical tests over the series. Helpful for understanding changes in regimes.

Tutorials are the best documentation — Time Segmentation Tutorial

Overview

The Time Segmentation Module is a powerful tool for analyzing financial time series data. It offers four main functionalities:

  1. Change Point Detection

  2. Regime Change Analysis

  3. Comprehensive Regime Analysis (PCA-based)

Each functionality can be used for data analysis or visualization, allowing users to gain deep insights into their financial data.

Getting Started

To use the Time Segmentation Module, first import the necessary library and authenticate:

import sovai as sov
sov.token_auth(token="your_token_here")
df_accounting = sov.data("accounting/weekly").select_stocks("mega")

1. Change Point Detection

Identify significant changes in your time series data.

Data Analysis

Visualization

2. Regime Change Analysis

Detect regime changes for a specific stock and feature.

Data Analysis

Visualization

3. Comprehensive Regime Analysis (PCA-based)

Perform a PCA-based regime change analysis on multiple features for a specific stock.

Data Analysis

Visualization

Tips for Users

  • Always check the .attrs['stats'] of the result for additional insights and metadata.

  • Use the 'plot' method for quick visual analysis and the 'data' method for detailed numerical results.

  • Experiment with different features and tickers to gain comprehensive insights into your financial data.


Last updated

Was this helpful?