alpha101

Solid

WorldQuant 101 Formulaic Alphas — 因子计算、IC测试、回测一体化工具包。 基于Kakushadze (2015) 论文,提供101个价量/波动率/相关性因子的Python/Pandas实现。 Use when: "alpha101", "101因子", "formulaic alphas", "因子回测", "因子IC", "因子筛选", "WorldQuant因子", "价量因子", "alpha因子库".

AI & Automation 81 stars 18 forks Updated today MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
64
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
99
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Alpha101 — WorldQuant 101 Formulaic Alphas ## 概述 Zura Kakushadze 论文《101 Formulaic Alphas》(arXiv:1601.00991) 的完整Python实现。 101个真实量化交易alpha因子,公式即代码。 ### 论文关键数据 - 平均持仓期: 0.6-6.4天 - 平均两两相关性: 15.9% - 收益与波动率强相关: R ~ σ^0.76 ## 文件结构 ``` skills/alpha101/ ├── SKILL.md ← 本文件 ├── scripts/ │ ├── alpha101.py ← 101个因子函数 + 基础函数库 │ ├── compute_ic.py ← 因子IC/IR计算 │ └── backtest_alpha.py ← 单因子回测 └── references/ └── paper_notes.md ← 论文笔记与函数定义 ``` ## 使用方式 ### 1. 因子计算 ```python from scripts.alpha101 import compute_alphas, alpha101 # 输入: date x ticker DataFrame data = { 'open': df_open, 'close': df_close, 'high': df_high, 'low': df_low, 'volume': df_vol, 'vwap': df_vwap, 'returns': df_returns } # 计算所有可用因子 alphas = compute_alphas(data) # dict of alpha_name -> DataFrame # 单独计算 from scripts.alpha101 import alpha101 a101 = alpha101(df_open, df_close, df_high, df_low) ``` ### 2. 因子IC测试 ```bash python scripts/compute_ic.py --data <path> --output results/ ``` ### 3. 单因子回测 ```bash python scripts/backtest_alpha.py --alpha 101 --data <path> ``` ## 因子分类 | 类别 | 因子 | 输入 | |------|------|------| | 纯价量 | #1-#47, #49-#55, #60, #61, #71-#74, #84, #88, #101 | OHLCV + VWAP | | 行业中性化 | #48, #56, #58-#59, #63, #67, #69-#70, #76, #79-#82, #87, #89-#91, #93, #97, #100 | + 行业分类 | | 复杂参数 | #57-#99 | 非整数窗口, 混合权重 | ## 基础函数速查 ``` rank(x) 截面排名 [0,1] delay(x,d) d天前的值 delta(x,d) 当期 - d天前 correlation(x,y,d) d天滚动相关 scale(x,a=1) ...

Details

Author
aAAaqwq
Repository
aAAaqwq/AGI-Super-Team
Created
6 months ago
Last Updated
today
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

factor-research

Evaluate whether a cross-sectional factor genuinely predicts returns. Trigger for "这个因子有效吗", "算一下IC", "动量因子在A股还有效吗", "帮我评估这个选股信号", "factor IC", "is this signal predictive", "compare momentum vs value factors", or whenever the user (1) proposes or computes a ranking/score across assets and asks if it works, (2) asks which factor explains recent moves, (3) wants factors screened/ranked before building a strategy, or (4) hands a signal to strategy construction. Fire even for informal phrasing ("这个指标选股靠谱吗"). Do NOT trigger for single-asset technical indicator questions (no cross-section) or for validating a finished strategy's returns (that is backtest-validation).

2 Updated 1 weeks ago
artherahq
AI & Automation Featured

a-share-analyst

A股分析研究助手,提供行情数据获取与技术面/基本面分析框架(仅供研究参考,不构成投资建议)。适用于:(1) 获取A股行情和历史数据,(2) 技术面分析(K线形态、MACD、KDJ、RSI、布林带等),(3) 基本面分析(财务指标、估值分析),(4) 板块热点追踪,(5) 选股策略筛选与量化因子分析,(6) 生成股市分析报告。当用户询问"帮我分析股票"、"今日选股"、"A股行情分析"、"技术分析"、"量化选股"时触发。不用于:预测明日涨跌或给出确定性买卖指令、代客决策、港股美股(数据源不同)、加密货币。

630 Updated 6 days ago
staruhub
AI & Automation Solid

analysis-toolkit

检验检测行业质量控制和数据分析工具箱。覆盖室内质控、室间比对、批次间比对、方法验证、趋势监控五大场景。方法通用,跨领域适用。

2 Updated today
Ldxs001