Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

quant-statistics

Skill by HKUDS

Gives AI assistants ready-made quantitative statistics functions for unit-root, cointegration, GARCH, regression diagnostics and bootstrap tests. Aimed at quant investors and factor researchers.

  • Score 91
  • 39k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install quant-statistics

Built from the published package, never by AI.

git clone --depth 1 https://github.com/HKUDS/Vibe-Trading /tmp/Vibe-Trading && mkdir -p ~/.claude/skills && cp -r /tmp/Vibe-Trading/agent/src/skills/quant-statistics ~/.claude/skills/quant-statistics

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install quant-statistics in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill covers statistical methods used in quantitative investing. It tells the assistant to import and call tested functions in src.quantlib.timeseries instead of retyping formulas. The covered areas include ADF unit-root and cointegration tests, Granger causality, pair-trading hedge ratios and half-life, and GARCH(1,1) volatility fits and forecasts.

It also covers regression diagnostics such as heteroskedasticity, autocorrelation and VIF checks, plus nonparametric bootstrap intervals and a bootstrap Sharpe ratio test. The optional statsmodels and arch packages power most of these functions, and a missing package raises a named ImportError. The guidance is written for quantitative analysts, strategy developers and factor researchers.

Written from the project's SKILL.md and checked against it.

What it can do

  • adf_testRuns an ADF unit-root test to check whether a series is stationary.
  • cointegration_testTests whether two non-stationary price series share a long-run relationship.
  • find_hedge_ratioEstimates a pair-trading hedge ratio, spread statistics and half-life.
  • granger_testChecks whether past values of one series help predict another, by lag.
  • fit_garchFits a GARCH volatility model and forecasts volatility over a horizon.
  • heteroscedasticity_testRuns White and Breusch-Pagan tests on a fitted regression and suggests fixes.
  • autocorrelation_testReports Durbin-Watson and Ljung-Box results for regression residuals.
  • vif_testComputes variance inflation factors to flag multicollinearity in factors.
  • bootstrap_statisticBuilds a nonparametric bootstrap confidence interval for any statistic.
  • bootstrap_sharpeComputes a bootstrap confidence interval for the Sharpe ratio of a return series.

What you need

  • Python
  • statsmodels 0.14 or newer (optional, for most tests)
  • arch 6.0 or newer (optional, for fit_garch)

Try asking

  • Test whether these two price series are cointegrated at the 5% level.
  • Fit a GARCH(1,1) model to my daily returns and forecast 5 days of volatility.
  • Check my regression residuals for heteroskedasticity and autocorrelation.

Good to know

  • Two bootstrap helpers need no optional package, but other functions need statsmodels or arch.
  • Cointegration raises ValueError when the two series do not share one index.
  • has_autocorrelation flags any lag below the threshold, so high lag counts raise false positives.
  • long_run_vol is nan when persistence is 1 or more, so long-horizon forecasts are not usable.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: agent/src/skills/quant-statistics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md16 KB

Alternatives to quant-statistics

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

quant-statistics: common questions

What statistical tests does quant-statistics include?

It includes ADF unit-root, cointegration, Granger causality, GARCH volatility, heteroskedasticity, autocorrelation, VIF and bootstrap tests. The source describes each as implemented in src.quantlib.timeseries.

Which optional packages does it need?

statsmodels powers most functions except the two bootstrap helpers, and arch powers fit_garch only. Neither is declared as a dependency of vibe-trading-ai, so a missing package raises an ImportError with the install command.

Should I rewrite these formulas myself?

No. The source says the tests are already implemented and unit-tested, and warns that retyping formulas can introduce sign errors and other bugs.

How do I install quant-statistics?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is quant-statistics free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is quant-statistics safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to quant-statistics?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

quant-statistics Install

Add to stack

Loading.