Skip to content
FunCoding

factor_research

量化因子有效性研究(IC/Rank IC、IR、5层分层回测单调性、因子合成、申万一级行业市值中性化与交易拥挤度分位)。

Star
625
Category
Ops & cloud
License
Apache-2.0
Last commit
Nov 29, 2026

skills/factor_research/SKILL.md

View on GitHub

量化因子有效性研究(factor_research · P1 进阶量化技能)

一、技能定位与触发场景

当用户提问“检验一下低市盈率叠加高股息因子”“帮我分析 ROE 质量成长因子的 IC、IR 和分层回测表现”“当前红利因子拥挤度高不高?”时触发本技能。

二、标准执行步骤(四步确定性因子检验)

  1. Step 1:锁定历史时点成分股(防幸存者偏差)
    • 调用 broker_security_get_index_constituents(传入 index_code 与 as_of),获取各调仓期真实在籍的指数成分股,严禁拿当前存活股票池直接回推过去 3 年。
  2. Step 2:提取 PIT 基本面与复权行情(防未来函数)
    • 调用 broker_fundamental_get_financial_ratios、broker_fundamental_get_valuation 获取 published_at <= as_of 的财务与估值指标;
    • 调用 broker_market_get_kline(显式声明 adjustment="前复权" 或 "后复权")获取下期截面收益率。
  3. Step 3:读取确定性因子统计与分层回测真值
    • 从量化研究工作台计算引擎读取:
      • IC 均值 / Rank IC 均值、IC 标准差、信息比率 IR / Rank ICIR、t 统计量、IC 胜率(>0 占比);
      • 五层分组(Q1~Q5)年化收益率、超额收益率、最大回撤、夏普比率与分层单调性得分;
      • 申万一级行业市值中性化前后的纯 Alpha 贡献;
      • 调用 broker_research_get_sector_data 获取行业交易拥挤度近 1 年历史分位数。
  4. Step 4:按三栏证据格式输出《因子有效性研究报告》
    • 参照 references/factor-evaluation-spec.md,强制区分**【已核实事实】【逻辑推断】【待核实问题】**三栏,并在报告末尾建议联动 backtest_quality_auditor 开展回测防坑审计。

三、反幻觉与合规硬约束

  1. 严禁大模型心算 IC/IR 或分层收益率:所有统计数字 100% 采信后端确定性引擎真值。
  2. 严禁未来函数:财报类因子必须核验 published_at 披露时间,绝不用报告期末日(如 12月31日)直接当成因子可用日。
  3. 强制风险揭示:报告底部必须声明“历史因子 IC 与回测超额收益不代表未来实盘表现,不构成投资建议”。

Similar Skills

Featured

internal-comms

Write internal communications following company formats, including status reports, leadership updates, and newsletters.

ANanthropics/skills203k3,265 new stars in the last 7 days

canary

GAgarrytan/gstack143k598 new stars in the last 7 days

observability-and-instrumentation

ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days

Featured

shipping-and-launch

A pre-launch checklist covering monitoring, staged rollouts and rollback plans.

ADaddyosmani/agent-skills122k1,667 new stars in the last 7 days

paperclip-board

PApaperclipai/paperclip119k1,966 new stars in the last 7 days

ruview-configure

RUruvnet/RuView106k739 new stars in the last 7 days