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.
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-statisticsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/HKUDS/Vibe-Trading /tmp/Vibe-Trading && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Vibe-Trading/agent/src/skills/quant-statistics ~/.gemini/antigravity-cli/skills/quant-statisticsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Lists live launchpad token feeds and AI-detected hot topics for meme tokens on BSC, Solana and Base. Covers new, finalizing and just-migrated tokens on launchpads such as Pump.fun and Four.meme.
The okx-market skill lets an AI assistant retrieve cryptocurrency market data from the OKX V5 REST API. It is aimed at users who want spot, derivatives and index data in Python without an account.
Calculates key SaaS health metrics such as ARR, churn, LTV and CAC from raw business numbers, then gives prioritized advice. Built for founders and finance leads who share revenue or customer figures.
Fetches U.S. SEC EDGAR data for research. It resolves a ticker to its CIK, lists recent filings with primary-document URLs, and pulls XBRL financial series. Built for analysts who need free, U.S.-only filing data.
Provides free, no-auth access to Eastmoney market data for A-shares, Hong Kong stocks and US stocks. It covers fund flows, dragon-tiger lists, financial statements and stock screening.
Reads and manages a user's QuickBooks business through Intuit's official MCP server. It answers finance questions from reports, invoices, customers, products and benchmarks, and completes approved actions.
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.
