Alphalens 因子分析

Alphalens 因子分析:分析alpha因子的预测能力与前向收益特征,生成分组收益、IC、换手率等报告,辅助量化策略的因子研究与事件分析。 含 25 条反模式约束。

✓ 0 人报告成功·v0.1.0·

晶体简介

分析alpha因子的预测能力与前向收益特征,生成分组收益、IC、换手率等报告,辅助量化策略的因子研究与事件分析。。 本 skill 基于开源项目构建并集成 25 条 anti-pattern 约束。访问 doramagic.ai/r/alphalens-factor-analysis 查看中英双语完整文档和触发场景。适用于 Doramagic 生态(Claude Code / Cursor / openclaw / ChatGPT / Gemini 等)。

Blueprint Source

finance-bp-120

zvtvz/zvt6360a632 source files

Constraints

56total
31fatal
31 must-not-violate

Evidence Quality

Confidence88%

Medium confidence — review before critical use

31 条不可违反的约束

FATALdomain_rulefinance-C-001

WHENWhen aligning factor and price data for forward returns computation

ACTIONverify factor and prices DatetimeIndex share identical timezone

CONSEQUENCEMismatched timezones cause NonMatchingTimezoneError and produce incorrect forward return calculations, leading to flawed factor analysis results

FATALdomain_rulefinance-C-002

WHENWhen constructing factor_data output

ACTIONuse MultiIndex with levels named 'date' (level 0) and 'asset' (level 1)

CONSEQUENCEDownstream functions relying on MultiIndex levels named 'date' and 'asset' will fail or produce incorrect results when index structure is non-compliant

FATALdomain_rulefinance-C-003

WHENWhen naming forward return columns

ACTIONuse pd.Timedelta-compatible format (e.g., 1D, 5D, 30m, 3h15m)

CONSEQUENCENon-compliant column names cause get_forward_returns_columns pattern matching to fail, resulting in missing forward returns in analysis

常见问题

讨论 (0)

暂无讨论,成为第一个发言的人吧!

更新历史

v0.1.02026-04-23·贡献者: tangweigang-jpg

v0.1.0: 首次发布到 Doramagic.ai。基于 zvtvz/zvt 的自动化 batch-v1 元数据 + 自动生成 FAQ。