quant-statistics

quant-statistics is a skill for Claude Code, Codex from skloxo/TideTrading. It costs 41 tokens per session (3,972 once invoked), scanned A, original, MIT.

A collection of statistical methods for analysing time-based data, volatility, relationships between variables, and whether observed results are meaningful. It includes tests such as ADF, GARCH, regression diagnostics, bootstrap methods, and hypothesis tests.

In plain words
What is it for?
Use it for time-series analysis, quantitative investing research, volatility modelling, regression checks, and testing statistical hypotheses.
Why use it?
It helps detect misleading relationships, unstable data, changing volatility, and statistical conclusions that may not be reliable.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/skloxo/tidetrading/quant-statistics
Any agent
npx skills add skloxo/TideTrading --skill quant-statistics
Clone the repo
git clone --depth 1 https://github.com/skloxo/TideTrading

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quant-statistics

README.md
[![agentmods](https://agentmods.dev/badge/skills/skloxo/tidetrading/quant-statistics.svg)](https://agentmods.dev/skills/skloxo/tidetrading/quant-statistics)
Your own site
<a href="https://agentmods.dev/skills/skloxo/tidetrading/quant-statistics"><img src="https://agentmods.dev/badge/skills/skloxo/tidetrading/quant-statistics.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,972 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00041 $0.03972
Opus 5 $0.00020 $0.01986
Sonnet 5 $0.00008 $0.00794
Haiku 4.5 $0.00004 $0.00397

Measured yesterday against content hash 45f3c6d5cd6f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

quant-statistics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agent/src/skills/quant-statistics/SKILL.md · 451 lines

How it starts

The opening of the file, as written. The whole thing — 451 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Quantitative Statistical Methods

Overview

Common statistical methodology used in quantitative investing, covering time-series testing, volatility modeling, regression diagnostics, and statistical inference. Provides the statistical foundation for strategy development and factor research.

Time-Series Tests

1. ADF Unit-Root Test (Stationarity Test)

Why it matters: regressing non-stationary series directly can produce spurious regression, making conclusions unreliable.

from statsmodels.tsa.stattools import adfuller

def adf_test(series: pd.Series, significance: float = 0.05) -> dict:
    """
    ADF test: H0 = unit root exists (non-stationary), H1 = stationary

    Args:
        series: Time series
        significance: Significance level
    Returns:
        Test result
    """
    result = adfuller(series.dropna(), autolag='AIC')
    return {
        'adf_statistic': result[0],
        'p_value': result[1],
        'lags_used': result[2],
        'is_stationary': result[1] < significance,
        'critical_values': result[4],  # 1%, 5%, 10%
    }

Decision rules:

p-value Conclusion Action
< 0.01 Strongly stationary Can be used directly for regression / modeling
0.01-0.05 Stationary Usable
0.05-0.10 Weak evidence Difference the series and retest
> 0.10 Non-stationary Must difference or handle with cointegration

Stationarity of common financial series:

Series Typical Result Treatment
Price series Non-stationary (unit root) Use log returns
Log returns Stationary Can be used directly
PE / PB series Usually non-stationary Use changes or logs
Volatility series Usually stationary Can be used directly
Volume May be non-stationary Use logs or standardization

2. Cointegration Test

Purpose: determine whether two non-stationary series share a long-run equilibrium relationship (the foundation of pair trading / statistical arbitrage).

Read the full file on GitHub · 451 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 451 lines · 41 tokens per session scan A 45f3c6d5cd6f

Subscribe to this mod's changes

quant-statistics is a skill published in the GitHub repository skloxo/TideTrading (10 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 3,972 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

daily-deep-brief

8 点这个时点:HK 开盘前 90 分钟,US 已收盘 4 小时。盘前是 deep think 最好的窗口 — 有完整夜间消息面,没有盘中执行压力。.

KCNyu/clawock · 163 tokens

invest-analyst

全能证券分析师工作台——把零散金融工具串成机构级工作流。覆盖个股IC研报、主题策略、事件驱动(电话会/业绩/政策/并购)、一致预期整合、行业比较、市场日报六大场景。 触发:「出一份茅台的IC报告」「写一份XX的行业深度」「XX业绩电话会纪要」「怎么看待XX政策/并购」「这个产业链有哪些标的」「分析师一致预期」「今天市场怎么样」「出个日报晨报」「这个投资论点怎么写」。 与invest系列区别:invest-stock/fund做「买不买」的判断,invest-analyst做「怎么写/怎么产出」的机构级内容交付。invest-industry做「行业是什么」,invest-analyst做「这个行业怎么投」。.

taxueseek/fund-investment-guide · 193 tokens

invest-fund

场景优先级:B(同经理) > F(跨基金对比) > G(行业) > C(次新) > E(ETF) > A(默认).

taxueseek/fund-investment-guide · 142 tokens

invest-stock

Skill "invest-stock" from taxueseek/fund-investment-guide, covering invest-stock:统一个股分析, 模式自动选择, 快速识别, 模式 1:三关审查(默认,a股/港股) and 哲学锚点.

taxueseek/fund-investment-guide · 110 tokens

hk-stock-analysis

Workspace-aware Hong Kong stock analysis for kcn. Routes through clawock analyze-hk (Tencent primary + Eastmoney full-batch independent cross-check/fallback → stooq → yfinance) for price/技术指标/news, layered with HK-specific concepts — 南向资金, HSTECH 方向, 杠杆 ETF 衰减, 老千股警惕, T+0 无涨跌幅. Use when user asks about a HK ticker…

KCNyu/clawock · 126 tokens

us-stock-analysis

Workspace-aware US stock analysis for kcn. Routes through clawock analyze-us / clawock us-quotes instead of generic web search, then layers fundamental/technical/news analysis on top. Use when user asks to analyze a US ticker (e.g. "analyze AAPL", "look at RKLB", "compare TSLA vs NVDA"), check earnings, run…

KCNyu/clawock · 97 tokens