Pular para o conteúdo
Skillpedia
Análise e planilhas37 mil · #7519

factor-research

O que ela faz

Esta skill avalia fatores de ações em um grupo de instrumentos e verifica quais têm poder preditivo real. É para analistas quantitativos que querem filtrar fatores e combinar os bons.

Quando usar

  • ✓Quando você quer testar se um único fator, como momentum ou valor, prevê retornos.
  • ✓Quando você quer escolher pesos para combinar vários fatores.
  • ✓Quando você quer ver com que rapidez o poder preditivo de um fator se desfaz em diferentes períodos de manutenção.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/factor-research/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Teste se os fatores de momentum e de valor preveem retornos nesta lista de ações, e me diga qual vale a pena combinar.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente calcula os valores de cada fator e os retornos futuros de cada ação, e depois roda a ferramenta de análise de fatores para calcular estatísticas de IC e IR e backtests por quantis. Ele julga a validade de cada fator com base nesses resultados e sugere como combinar os fortes.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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

Perguntas frequentes

O que o IC mede?

O quanto o ranking de ações de um fator coincide com o ranking dos retornos posteriores dessas ações.

Por que os retornos precisam ser futuros em relação ao fator?

Usar retornos anteriores à data do fator seria viés de antecipação e tornaria o teste não confiável.

Os fatores podem ser combinados?

Sim. A skill cobre a ponderação igual e a ponderação baseada em IC para combinar os fatores eficazes.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
37 mil
Posição no ranking
#7519
Licença
MIT
Atualizada em
01/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas