Skip to content
Back to skills

Factor Research

ASecurity

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

  • 626 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 14, 2026
ai-agentsgosecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add agentpit-io/hunter-community --skill factor_research --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Factor Research?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Factor Research
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentpit-io-factor-research-hunter-community/badge)](https://www.skillsdirectory.com/skills/agentpit-io-factor-research-hunter-community)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: factor_research
description: 量化因子有效性研究(IC/Rank IC、IR、5层分层回测单调性、因子合成、申万一级行业市值中性化与交易拥挤度分位)。
version: 3.3.0
author: HunterCode Team
license: MIT
metadata:
  tags: [finance, quant, factor, ic, rank-ic, layered-backtest, crowding, p1]
hunter:
  display_name: 量化因子有效性研究
  icon: Analytics
  category: 量化研究
  prompt_tpl: 检验 {因子名称或组合} 的 IC、IR、五层分层收益单调性与当前拥挤度
  needs_tools:
    - broker_security_get_index_constituents
    - broker_fundamental_get_financial_ratios
    - broker_fundamental_get_valuation
    - broker_market_get_kline
    - broker_research_get_sector_data
---

# 量化因子有效性研究(`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 与回测超额收益不代表未来实盘表现,不构成投资建议”。

Files in this skill

  • SKILL.md3 KB
  • references/factor-evaluation-spec.md1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.