financial-time-series

Fit GARCH-family volatility models and run cointegration tests on financial time series.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill financial-time-series-xjtulyc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: financial-time-series
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/08-finance-academic/financial-time-series
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill financial-time-series-xjtulyc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, scipy, statsmodels, arch, matplotlib, yfinance.

What problem does it solve?

It helps you analyze financial time series by quantifying volatility dynamics, testing long-run relationships between assets, and turning those findings into actionable trading and risk insights.

Core Features & Use Cases

  • GARCH/EGARCH Volatility Modeling: Fit GARCH-family models to returns to capture volatility clustering and estimate conditional risk.
  • Cointegration & Pairs Trading Signals: Test cointegration, estimate a hedge ratio, and generate spread Z-scores for entry/exit decisions.
  • Factor Model Regression & Rolling Exposures: Run Fama-French regressions (e.g., 3-factor) and compute rolling factor betas and alpha to explain returns.
  • Risk Decomposition via Rolling Metrics: Use rolling-window statistics to support VaR/ES-style risk monitoring and drawdown-aware analysis.

Quick Start

Use the financial-time-series skill to fit a GARCH(1,1) model on a selected asset’s daily returns, test cointegration with a second asset, compute the spread Z-score for pairs trading, and run a Fama-French factor regression to estimate alpha and factor betas.

Frequently Asked Questions about financial-time-series

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I model stock return volatility with GARCH in Python?

To model stock return volatility with GARCH in Python, you fit GARCH-family models to daily returns to capture volatility clustering and estimate conditional risk metrics. This approach quantifies dynamic volatility dynamics for financial time series.

How does cointegration testing work for pairs trading?

Cointegration testing for pairs trading evaluates long-run relationships between two asset price series using Engle-Granger tests. By estimating a hedge ratio and computing spread Z-scores, it generates mean-reversion trading signals for entry and exit decisions.

Can I run Fama-French factor regressions with rolling windows?

You can run Fama-French factor regressions with rolling windows to estimate rolling factor betas and alpha. This performs OLS factor regression on time-indexed return series to explain portfolio return attribution across equities.

Do I need pandas DataFrames to run financial time-series analysis?

You need time-indexed return or price series formatted as pandas DataFrames to run financial time-series analysis. These inputs satisfy the statistical requirements for GARCH fitting, cointegration evaluation, and OLS factor regression.

What is the best way to calculate rolling risk metrics for VaR estimation?

The best way to calculate rolling risk metrics for VaR estimation is using rolling-window statistics on return series. This supports VaR and expected shortfall style risk monitoring alongside drawdown-aware analysis.

Why does GARCH fitting fail on high-frequency tick data?

GARCH fitting may fail on high-frequency tick data because the models require evenly spaced time-indexed return series to satisfy statistical requirements. Aggregating tick data to daily or regular intervals ensures proper GARCH volatility estimation.