匡醍量化|大富翁量化 This is an introductory long-form article for the "Factor Strategy" series: the standard workflow to turn a factor from "idea" to "usable" — the full Alphalens process. It answers the question "Does my factor actually work?" with a replicable checklist.
| Stage | What to Do | Entry Point |
|---|---|---|
| Build Factor | Start from an explainable idea and write the first version of the factor (see 7-Factor Model for structure) | Beginner |
| Validate Factor | Alphalens layered backtesting: three tables for IC, turnover, and decay (see complete case of Annualized 36% ORB) | Advanced |
| Avoid Pitfalls | The three questions on Look-ahead Bias, Survivorship Bias, and Overfitting | Practical |
Factors are not "run out"; they are "thought out." Every factor that survives out-of-sample testing is backed by an economic intuition:
Before writing code, write one sentence: "I believe stocks of type ___ will outperform because ___." If you can't write this sentence, don't write code. The 7-Factor Model: Besides Size, Market, Momentum, and Value, What Else? is a great structural reference — look at the "shape" of other factors in factor libraries before designing your own.
The core problem Alphalens solves is: aligning "factor values" with "future returns" and then analyzing them in layers. Its output consists of three things:
# Minimal viable workflow (pseudocode; logic is more important than API)
# 1. Alignment: Factor values (available after T-day close) vs. future N-day returns
# — Note: "Available after T-day close" means usable on T+1; this is the first gate against look-ahead bias.
# 2. Layering: Divide into 5 groups based on factor values (long-short only looks at the top and bottom groups).
# 3. Three Tables:
# - Layered Cumulative Returns: Is the top group stably at the top?
# - IC (Information Coefficient): RankIC mean > 0.03 to warrant a second look.
# - Turnover and Decay: Factor rebalancing frequency vs. cost; how long is the IC half-life?
Three criteria are indispensable:
The ORB Strategy with 36% Annualized Return is a complete case from idea to validation; it is recommended to read it alongside this article.
Once a single factor is usable, the next step is portfolio construction. The 7-Factor Model discusses supplementary dimensions beyond size, market, momentum, and value. When combining factors, remember three rules:
The ESG Score Long-Short Strategy includes a universal code for layered backtesting that you can directly apply to your own factors.
There is no silver bullet in factor research, only one sentence, three criteria, and three questions. Once you run this workflow smoothly, your factors can truly be considered "verified."
86 articles · grouped by level