quant-statistics

Run ADF, cointegration, GARCH, and regression diagnostics on financial time series.

30.4k|4.9k|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/HKUDS/Vibe-Trading --skill quant-statistics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quant-statistics
Source: https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/quant-statistics
Command: npx skills add https://github.com/HKUDS/Vibe-Trading --skill quant-statistics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables quantitative researchers to apply rigorous statistical tests across time series, volatility modeling, regression diagnostics, bootstrap analysis, and hypothesis testing so that strategy insights and risk factors are grounded in defensible metrics rather than intuition alone.

Core Features & Use Cases

  • Stationarity and Cointegration: Runs ADF, cointegration, and Granger causality tests to ensure series are suitable for regression and pair-trading strategies, then interprets z-score signals for spread trades.
  • Volatility Modeling: Fits GARCH(1,1) plus variant summaries to forecast conditional volatility, persistence, and leverage effects in equities or crypto returns.
  • Diagnostic Suite: Evaluates heteroskedasticity, autocorrelation, and multicollinearity in regression residuals, deploys Newey-West or WLS remedies, and offers bootstrap confidence intervals for Sharpe and factor premiums.
  • Use Case: When backtesting a factor model, run this Skill to confirm stationarity, volatility persistence, and statistical significance before deploying capital.

Quick Start

Request the quant-statistics skill to run its ADF, cointegration, GARCH, and regression diagnostics on your latest return series.

Frequently Asked Questions about quant-statistics

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

FAQPage Schema
How do I test financial time series for stationarity before running regression models?

Testing financial time series for stationarity involves running ADF and cointegration tests to ensure series are suitable for regression. This skill applies statsmodels-backed ADF tests to asset returns, providing test statistics and decision thresholds to confirm data stationarity before deploying capital.

Can I use GARCH models to forecast conditional volatility for crypto or equity returns?

Yes, you can use GARCH models to forecast conditional volatility for crypto or equity returns. This skill fits GARCH(1,1) plus variant summaries to forecast conditional volatility, persistence, and leverage effects, generating interpretable risk signals computed via the arch package.

How do I fix heteroskedasticity and autocorrelation in regression residuals during factor model backtesting?

To fix heteroskedasticity and autocorrelation in regression residuals during factor model backtesting, apply Newey-West or WLS remedies. This skill evaluates residual diagnostics and deploys these corrections to ensure statistical significance of factor premiums.

What is the best way to calculate bootstrap confidence intervals for Sharpe ratios?

Calculating bootstrap confidence intervals for Sharpe ratios is best achieved through numpy-backed resampling of asset returns. This skill provides bootstrap analysis to generate defensible metrics for strategy insights and risk factors rather than relying on intuition alone.

Does this statistical testing suite support cointegration and Granger causality tests for pair trading?

Yes, this statistical testing suite supports cointegration and Granger causality tests for pair trading. It runs these tests to validate pair-trading strategies and interprets z-score signals for spread trades, ensuring quantitative research is grounded in rigorous metrics.

Why does my volatility modeling show high persistence, and what does leverage effect mean in GARCH summaries?

High persistence in volatility modeling indicates that shocks to volatility decay slowly over time. The leverage effect in GARCH summaries shows that negative returns increase future volatility more than positive returns, with both metrics computed by the arch package to provide interpretable risk signals.