Token导航 LogoToken导航

Agent Skill · 研究检索

sharpe-ratio-non-iid-corrections(夏普比率非独立同分布校正)

sharpe-ratio-non-iid-corrections 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

sharpe-ratio-non-iid-corrections 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 52,496。

总安装 558周安装 23GitHub Stars 38下载 182核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sharpe-ratio-non-iid-corrections(夏普比率非独立同分布校正)
来源仓库:https://github.com/terrylica/cc-skills
仓库路径:skills/sharpe-ratio-non-iid-corrections
安装命令:
npx skills add https://github.com/terrylica/cc-skills --skill sharpe-ratio-non-iid-corrections
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/terrylica/cc-skills --skill sharpe-ratio-non-iid-corrections

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

sharpe-ratio-non-iid-corrections 用于记录任务执行中的错误、用户纠正、经验和能力缺口。适合在 Codex、Claude、Cursor、Gemini CLI 中让 Agent 持续沉淀问题、修正和最佳实践时使用。

通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/sharpe-ratio-non-iid-corrections

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/terrylica/cc-skills --skill sharpe-ratio-non-i…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

sharpe-ratio-non-iid-corrections 怎么安装?

在终端执行 npx skills add https://github.com/terrylica/cc-skills --skill sharpe-ratio-non-iid-correct…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

sharpe-ratio-non-iid-corrections 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

sharpe-ratio-non-iid-corrections 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

sharpe-ratio-non-iid-corrections 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

sharpe-ratio-non-iid-corrections 用的人多吗?

公开数据是累计安装 558 次,近一周安装 23 次,下载 182 次,GitHub 38 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

sharpe-ratio-non-iid-corrections 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
sharpe-ratio-non-iid-corrections

夏普比率非独立同分布校正 · 本页

55838需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Sharpe Ratio Non-IID Corrections

Generalized Sharpe ratio inference framework for non-Normal, serially correlated returns. Reference implementation of López de Prado, Lipton & Zoonekynd (2026).

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

Quick Start

# Run all 18 validation tests (paper Exhibit 1 + numerical examples)
uv run --python 3.13 --with numpy --with scipy --with numba \
  python plugins/quant-research/skills/sharpe-ratio-non-iid-corrections/references/sharpe_numba.py

Paper Metadata

FieldValue
TitleHow to Use the Sharpe Ratio
AuthorsMarcos López de Prado, Alexander Lipton, Vincent Zoonekynd
SeriesADIA Lab Research Paper Series, No. 19
DateMarch 7, 2026
SSRN5520741
Replicationhttps://github.com/zoonek/2025-sharpe-ratio
Source PDFlopez-de-prado-sharpe-2026.pdf

References

TopicReference File
Full Paper Transcription (82 equations)how-to-use-the-sharpe-ratio-2026.md
Equation → Implementation Trackersharpe-paper-tracker.md
Numba JIT Implementation (850+ lines)sharpe_numba.py
Source PDFlopez-de-prado-sharpe-2026.pdf
Paper Figuresmedia/ (8 figures from pp. 12-45)

Preflight: Experimentation Context Assessment (CRITICAL)

Before computing DSR or SFDR, Claude Code MUST assess the experimentation context to determine the correct parameters. These inputs require subjective judgment that cannot be derived from code alone.

Decision: DSR vs SFDR

SituationUseWhy
You have return series for all K strategies testedDSRCan compute K_eff from eigenvalues of correlation matrix
Strategy is the survivor of a long, unrecoverable experimentation historySFDRK is unknowable; SFDR sets a threshold without needing K
Evaluating a single strategy with no selection involvedPSRNo multiple-testing correction needed (K=1)

Default for this project: Use SFDR. Our strategies are survivors of hundreds of regime explorations across WFO configurations, feature sets, model architectures, and metric cutoffs. The full experimentation history is unrecoverable.

Parameters Requiring Judgment

Before calling sfdr_threshold(), assess each parameter by examining the project context:

ParameterWhat to assessHow to assess it
P[H₁] (prior: fraction of genuine strategies)"Out of all ideas ever tried in this project, what fraction were genuinely profitable?"Check git history, experiment logs, signal-archaeology skill, WFO result archives. Conservative default: 0.05 (1 in 20 ideas is real).
SR₁ (alternative: what a real strategy's Sharpe looks like)"When a strategy IS real, what Sharpe does it typically achieve?"Look at validated production strategies, published benchmarks for the asset class. Crypto range bars: 0.3–0.5 monthly.
q (false discovery tolerance)"What false positive rate can I tolerate?"Research: 0.05. Production capital allocation: 0.01. Exploratory screening: 0.10.
γ₃, γ₄, ρ (return distribution shape)Skewness, Pearson kurtosis, lag-1 autocorrelationCompute directly from the return series under evaluation. These are objective — no judgment needed.
T (sample length)Number of return observationsCount from data. Objective.

Preflight Checklist

When this skill is invoked, Claude Code should:

  1. Identify the evaluation context: Is this a single new strategy, a WFO fold comparison, or a survivor from extensive search?
  2. Determine DSR vs SFDR: If return series for all candidates exist → DSR with K_eff. Otherwise → SFDR.
  3. Elicit P[H₁]: Search for experimentation history (git log, experiment catalogues, the signal-archaeology skill). Count approximate ideas tried vs ideas that worked. If unknowable, use 0.05.
  4. Estimate SR₁: From validated production strategies or asset-class benchmarks.
  5. Set q: Based on the decision's consequence (research paper vs capital deployment).
  6. Compute objective parameters: γ₃, γ₄, ρ, T directly from the return series.
  7. Report the assessment: State all parameter choices and reasoning before computing, so the user can override.

Example Preflight Output

SFDR Preflight Assessment:
  Context:    Survivor of ~300 WFO configs × 5 feature sets × 3 architectures
  Method:     SFDR (experimentation history unrecoverable)
  P[H₁]:     0.05 (conservative — ~15 genuine signals from ~300 ideas)
  SR₁:       0.4 (typical monthly Sharpe for validated crypto range bar strategies)
  q:         0.05 (research-grade threshold)
  γ₃:        -2.448 (computed from return series)
  γ₄:        10.164 (Pearson kurtosis, computed from return series)
  ρ:         0.20 (lag-1 autocorrelation, computed from return series)
  T:         24 months
  → SFDR threshold: SR_c = 0.760
  → Observed SR: 0.456
  → VERDICT: FAIL (observed SR below SFDR threshold)

The user may override any parameter. If they disagree with P[H₁] or SR₁, recompute with their values.

Key Formulas

All equations use the paper's non-IID variance (Eq 2-3) with Pearson kurtosis convention (γ₄=3 for Gaussian).

EqNameFormulaFunction
2-3SR VarianceV[SR̂] = (1/T)·(a − b·γ₃·SR + c·(γ₄−1)/4·SR²)sr_variance()
9PSRΦ((SR̂ − SR₀) / σ[SR₀])psr()
11MinTRL(a − b·γ₃·SR₀ + c·(γ₄−1)/4·SR₀²) · (z_{1−α}/(SR̂−SR₀))²min_trl()
13Critical SRSR₀ + σ[SR₀]·z_{1−α}critical_sr()
15Power1 − Φ((SR_c − SR₁) / σ[SR₁])power()
17β (Type II)Φ((z_{1−α}·√(a(ρ)) − SR₁·√T) / √(a − b·γ₃·SR₁ + c·(γ₄−1)/4·SR₁²))power() → 1 - power
21pFDR(1 + (1−β)·P[H₁]/(α·P[H₀]))⁻¹pfdr()
24oFDRp·P[H₀] / (p·P[H₀] + (1−Φ[z*(SR₁)])·P[H₁])ofdr()
28E[max SR]SR₀ + √V · ((1−γ)·Φ⁻¹[1−1/K] + γ·Φ⁻¹[1−1/(Ke)])expected_max_sr()
29-31DSRPSR with SR₀ = E[max{SR̂_k}], σ = √V[max{SR̂_k}]dsr()
32-33SFDRFind SR_c such that pFDR(SR_c) = qsfdr_threshold()

Where a = (1+ρ)/(1−ρ), b = (1+ρ+ρ²)/(1−ρ²), c = (1+ρ²)/(1−ρ²) are AR(1) variance coefficients (ar1_variance_coeffs()).

Numerical Example (Paper Exhibit 1)

Hedge fund: T=24 months, γ₃=−2.448, γ₄=10.164 (Pearson), SR=0.036/0.079≈0.456, ρ=0.2.

QuantityEquationValueNotes
σ[SR̂] (non-Gaussian)Eq 30.379vs 0.214 Gaussian — 77% wider
PSR (SR₀=0)Eq 90.966Still significant despite wider CI
PSR (SR₀=0.1)Eq 9+50.900Harder benchmark reduces confidence
MinTRL (SR₀=0)Eq 1119.543 monthsT=24 > 19.5 → sufficient
MinTRL (SR₀=0.1)Eq 1139.369 monthsMore than doubles for SR₀ closer to SR̂
β (power, SR₁=0.5)Eq 170.411vs 0.224 IID Normal — 84% higher
pFDR (P[H₁]=0.1)Eq 210.43343.3% false discovery when true strategies rare
oFDR (SR₁=0.5)Eq 240.361Even 3.4% p-value → 36% observed FDR
Power (1−β)Eq 150.589Low for 24-month track record

Implementation Architecture

6-tier dependency hierarchy (Numba JIT, Rust-ready):

Tier 0: norm_cdf, norm_ppf, erfinv, Brent's method
Tier 1: sr_variance (Eqs 3/58)
Tier 2: psr (Eq 9), min_trl (Eq 11), critical_sr (Eq 13)
Tier 3: power (Eq 15), moments_mk (Eqs 62-65), expected_max_sr (Eq 28), var_max_sr
Tier 4: pfdr (Eq 18-21), ofdr (Eqs 22-24), fwer (Eq 25)
Tier 5: dsr (Eqs 29-31), sfdr_threshold (Eqs 32-33)  ← APEX

Related Skills

SkillRelationship
opendeviation-eval-metricsConsumes PSR, DSR, MinTRL for range bar evaluation; has quick-ref formulas (ρ=0 case)
adaptive-wfo-epochUses DSR for WFE validation across walk-forward folds
evolutionary-metric-rankingDSR as one of the metrics in multi-objective ranking

Post-Execution Reflection

After this skill completes, check before closing:

  1. Did the command succeed? — If not, fix the instruction or error table that caused the failure.
  2. Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
  3. Was a workaround needed? — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround.

Only update if the issue is real and reproducible — not speculative.

平台分布

Codex

36.4%
按下载量换算66

Claude

29.21%
按下载量换算53

Cursor

17.43%
按下载量换算32

Gemini CLI

9.85%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills