본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트37k · #7519

factor-research

하는 일

이 스킬은 여러 종목 그룹에 대해 주식 팩터를 평가하고, 실제 예측력이 있는 팩터를 찾습니다. 팩터를 선별하고 좋은 팩터를 결합하려는 계량 분석가를 위한 스킬입니다.

사용하는 경우

  • ✓모멘텀이나 가치 같은 단일 팩터가 수익률을 예측하는지 검증하고 싶을 때.
  • ✓여러 팩터를 결합할 때 가중치를 정하고 싶을 때.
  • ✓보유 기간에 따라 팩터의 예측력이 얼마나 빨리 약해지는지 보고 싶은 경우.

스킬 링크

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/factor-research/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/factor-research/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 종목 목록에서 모멘텀과 가치 팩터가 수익률을 예측하는지 검증하고, 결합할 가치가 있는 팩터를 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 각 팩터의 값과 종목별 이후 수익률을 계산한 뒤, 팩터 분석 도구로 IC와 IR 통계와 분위수 백테스트를 실행합니다. 이 결과로 각 팩터의 타당성을 판단하고, 강한 팩터를 결합하는 방법을 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Factor Research Framework

Purpose

Systematically evaluates the predictive power of single or multiple factors. Uses IC/IR statistical tests and quantile backtests to determine whether a factor has stock-selection power, and to guide factor screening and combination.

Applicable scenarios:

  • Single-factor validity testing (momentum, value, quality, volatility, and more)
  • Determining weights for multi-factor combination
  • Factor decay analysis (IC changes across different holding periods)
  • Comparing factor differences across industries and markets

Workflow

  1. Calculate factor values: compute factor exposures for each instrument on the cross-section, and output a factor CSV (index=date, columns=codes)
  2. Calculate returns: compute each instrument's forward N-day return, and output a return CSV (same structure)
  3. Call the factor_analysis tool: pass in the factor CSV, return CSV, and output directory
  4. Interpret the results: judge factor validity based on IC/IR criteria and quantile backtest results
  5. Factor screening / combination: keep effective factors and combine them with equal weights or IC-based weights

Key point: the rows (dates) and columns (instrument codes) of the factor CSV and return CSV must align exactly. Returns must be forward returns after the factor-observation date (to avoid look-ahead bias).

factor_analysis Tool Parameters

Parameter Type Required Default Description
factor_csv string Yes - Path to the factor-value CSV
return_csv string Yes - Path to the return CSV
output_dir string Yes - Output directory for results
n_groups integer No 5 Number of quantile groups

Output Files

File Contents
ic_series.csv Daily IC series
ic_summary.json IC mean, IC standard deviation, IR, proportion of IC > 0
group_equity.csv Cumulative equity curves for each quantile group

IC/IR Interpretation Standards

Metric Threshold Interpretation
IC mean > 0.03 Factor has basic predictive power
IC mean > 0.05 Factor has strong predictive power
IC mean > 0.10 Unusually high; check for look-ahead bias
IR (IC mean / IC std) > 0.5 Factor is stably effective
IR > 1.0 Extremely strong, very rare
Proportion of IC > 0 > 55% Factor direction is stable
Proportion of IC > 0 < 50% Factor direction is unstable and unusable

Note: negative IC can also be useful (reverse factors). Judge by absolute value, and reverse the signal direction in actual use.

Quantile Backtest Interpretation

Quantile backtesting sorts instruments into N groups by factor value from low to high (default 5 groups), with equal-weight holding inside each group.

Criteria:

  • Monotonicity: the final net values from Group_1 to Group_N should show a monotonic rising (or falling) pattern. Better monotonicity means stronger factor discrimination
  • Long-short spread: the net-value difference between the highest and lowest group (long_short_spread). A larger spread means stronger selection power
  • Nonlinearity: if only the top and bottom groups differ materially while the middle groups are similar, the factor may only be effective in the tails
  • Stability: group equity curves should be smooth; sharp swings indicate an unstable factor

Warning signs:

  • No meaningful difference across group equity curves → the factor is ineffective
  • Non-monotonic pattern (such as V-shape or inverted V-shape) → the factor may have a nonlinear relationship and requires further analysis
  • One group's net value falls persistently → the factor may be usable in reverse

Factor Combination Methods

When multiple single factors pass validity tests, they should be combined into a composite factor:

Equal-Weight Combination

The simplest method: standardize each factor and sum them with equal weights. Suitable when the factor count is small and IC differences are minor.

Composite factor = Z(factor1) + Z(factor2) + ... + Z(factorN)
where Z() is cross-sectional Z-score standardization

IC-Weighted Combination

Assign weights according to historical IC mean. Factors with higher IC receive larger weights.

weight_i = |IC_mean_i| / sum(|IC_mean_j|)
Composite factor = sum(weight_i * Z(factor_i))

Orthogonalized Combination

First orthogonalize the factors with the Schm

자주 묻는 질문

IC는 무엇을 측정하나요?

팩터가 매긴 종목 순위가 이후 수익률의 순위와 얼마나 맞는지를 측정합니다.

왜 수익률은 미래 기준이어야 하나요?

팩터 시점 이전의 수익률을 쓰면 미래 정보를 엿보는 편향이 생겨 검증이 믿을 수 없게 됩니다.

팩터를 결합할 수 있나요?

네. 유효한 팩터를 결합하기 위해 동일 가중과 IC 기반 가중을 지원합니다.

상세 정보

작성자의 원본 설명

Factor research framework with IC/IR analysis, quantile backtesting, and factor combination. Suitable for cross-sectional factor evaluation across multiple instruments.

repo: HKUDS/Vibe-Trading

인기도

GitHub 스타
37k
순위
#7519
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬