factor-investing

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Factor Investing

因子投资

Core Concepts

核心概念

From CAPM to Multifactor Models

从CAPM到多因子模型

CAPM prices a single source of risk:
E(R_i) - R_f = beta * (E(R_m) - R_f)
. Persistent anomalies — small caps, cheap (high book-to-market) stocks, and recent winners earning more than beta predicts — motivated adding factors. Fama-French (1993) added size and value to the market factor (3-factor model); Carhart (1997) added momentum; Fama-French (2015) added profitability and investment (5-factor model):
R_i - R_f = alpha + b_MKT*MKT + b_SMB*SMB + b_HML*HML [+ b_RMW*RMW + b_CMA*CMA] [+ b_UMD*UMD] + epsilon
The key reinterpretation: a manager's CAPM alpha may be nothing more than static factor exposure. Alpha only means skill after controlling for the factors an investor could buy cheaply. Single-factor OLS mechanics, t-statistics, and the CAPM regression itself live in the statistics-fundamentals skill; this skill generalizes to K regressors and interprets the output.
CAPM仅针对单一风险来源定价:
E(R_i) - R_f = beta * (E(R_m) - R_f)
。持续存在的市场异象——小盘股、低估值(高市净率)股票、近期涨幅领先的股票收益超出beta预测值——推动了多因子模型的发展。Fama-French(1993)在市场因子基础上加入规模和价值因子,形成三因子模型;Carhart(1997)加入动量因子;Fama-French(2015)又加入盈利能力和投资因子,形成五因子模型:
R_i - R_f = alpha + b_MKT*MKT + b_SMB*SMB + b_HML*HML [+ b_RMW*RMW + b_CMA*CMA] [+ b_UMD*UMD] + epsilon
关键重新解读:基金经理的CAPM Alpha可能仅仅是静态因子敞口的体现。只有在控制了投资者可以低成本获取的因子敞口后,剩余的Alpha才能被视为管理能力。单因子OLS回归机制、t统计量及CAPM回归本身属于统计基础技能范畴;本技能将其扩展至多因子回归场景,并解读回归结果。

The Canonical Factors

经典因子

FactorConstruction (long-short)Rationale: risk-basedRationale: behavioralApprox. premium*
MKTMarket minus risk-freeNon-diversifiable macro risk6-7%/yr
SMB (size)Small caps minus big capsIlliquidity, distress sensitivityNeglect of small firms1.5-2%/yr
HML (value)High book/market minus lowDistress risk, cyclical cash flowsOverextrapolation of growth2.5-3%/yr
RMW (profitability)Robust minus weak operating profitabilityCompensation for cash-flow riskUnderreaction to quality~3%/yr
CMA (investment)Conservative minus aggressive asset growthQ-theory: high investment implies low expected returnEmpire-building overinvestment~3%/yr
UMD (momentum, Carhart)Past 12-1 month winners minus losersCrash risk (violent reversals)Underreaction, herding6-7%/yr
*Approximate annualized US long-short premia over the 1963-2024 sample, Ken French data library, as of 2026. Long-run averages, not forecasts; realized decade-long stretches deviate wildly (see cyclicality below).
The rationale matters for durability: risk-based premia should persist (someone must bear the risk); behavioral premia survive only while limits to arbitrage prevent them from being competed away — and are more vulnerable to crowding.
因子构建方式(多空组合)风险视角合理性行为金融视角合理性近似溢价*
MKT市场收益减去无风险收益不可分散的宏观风险6-7%/年
SMB(规模)小盘股收益减去大盘股收益流动性不足、对困境的敏感性投资者对小盘股的忽视1.5-2%/年
HML(价值)高市净率股票收益减去低市净率股票收益困境风险、周期性现金流对增长预期的过度外推2.5-3%/年
RMW(盈利能力)高营运盈利能力股票收益减去低营运盈利能力股票收益现金流风险补偿对优质资产的反应不足~3%/年
CMA(投资)保守资产增长股票收益减去激进资产增长股票收益Q理论:高投资意味着低预期收益企业帝国式扩张导致过度投资~3%/年
UMD(动量,Carhart模型)过去12个月(剔除最近1个月)涨幅领先股票收益减去落后股票收益崩盘风险(剧烈反转)反应不足、羊群效应6-7%/年
*为1963-2024年美国市场多空组合的年化近似溢价数据,来源于Ken French数据库(截至2026年)。该数据为长期平均水平,而非预测值;实际十年期收益可能大幅偏离(见下文因子周期性部分)。
因子的合理性决定其溢价持续性:基于风险的溢价应持续存在(必须有人承担风险);基于行为金融的溢价仅在套利限制阻止其被套利消失时才会存续,且更容易受到因子拥挤的影响。

Reading a Factor Regression

解读因子回归

Run OLS of fund excess returns on the factor return series. Interpret:
  • Loadings (b_k): exposure per unit of factor. b_HML = 0.45 means the fund behaves like it holds a 0.45-weight position in the value long-short portfolio. Judge each by its t-stat (|t| above roughly 2 for 5% significance).
  • Alpha: average return unexplained by the factors — the only defensible claim to skill. A positive alpha with |t| < 2 is not evidence of skill (see statistics-fundamentals on t-statistics); most funds' alpha turns insignificant once value or momentum loadings are added.
  • R-squared: fraction of return variance the factors explain. Diversified equity funds typically show R-squared of 0.90-0.99 against 3-4 factors. Use adjusted R-squared when comparing models with different factor counts — R-squared mechanically rises with every added regressor.
  • Stability: run rolling windows; loadings that drift signal style drift or factor timing rather than a stable tilt.
将基金的超额收益对因子收益序列进行OLS回归,解读如下:
  • 因子载荷(b_k): 单位因子对应的敞口。b_HML=0.45意味着该基金的表现相当于持有0.45权重的价值多空组合。需通过t统计量判断显著性(|t|大于约2时,在5%置信水平下显著)。
  • Alpha: 无法被因子解释的平均收益——这是唯一能被视为管理能力的指标。若Alpha为正但|t|<2,则不能证明存在管理能力(统计基础技能中介绍了t统计量的相关规则);多数基金在加入价值或动量因子载荷后,Alpha会变得不显著。
  • R平方: 因子所能解释的收益方差占比。多元化股票型基金在三因子或四因子模型下的R平方通常为0.90-0.99。比较不同因子数量的模型时,应使用调整后R平方——每增加一个因子,R平方都会机械性上升。
  • 稳定性: 滚动窗口回归显示,因子载荷的漂移意味着风格漂移或因子择时,而非稳定的因子倾斜。

Alpha Decomposition and Closet-Index Detection

Alpha分解与隐形指数基金检测

Two complementary uses of the same regression:
  1. Expected-return decomposition:
    E(R) = R_f + sum(b_k * lambda_k)
    , where lambda_k are assumed factor premia. This tells you what the fund should earn from its exposures alone; realized excess return minus the factor-implied excess is the manager's implied alpha. If the implied alpha is near zero, the fund is a factor portfolio you could replicate with cheap factor ETFs.
  2. Closet-index screen: a fund charging active fees while hugging its benchmark. Returns-based red flags: benchmark regression R-squared >= 0.98 and annualized tracking error <= 2%. The holdings-based analog is active share below ~60% (Cremers and Petajisto 2009). Then compute the breakeven Information Ratio:
    IR_breakeven = (fund fee - index fee) / tracking error
    . A closet indexer needs an implausibly high IR on a tiny active-risk budget just to earn back its fee gap (Information Ratio itself is covered in performance-metrics).
同一回归有两个互补用途:
  1. 预期收益分解:
    E(R) = R_f + sum(b_k * lambda_k)
    ,其中lambda_k为假设的因子溢价。该公式可计算基金仅通过因子敞口应获得的收益;实际超额收益减去因子隐含超额收益即为经理的隐含Alpha。若隐含Alpha接近零,则该基金是可通过低成本因子ETF复制的因子组合。
  2. 隐形指数基金筛查: 收取主动管理费但表现紧贴基准的基金。基于收益的预警信号:基准回归R平方≥0.98,年化跟踪误差≤2%。基于持仓的对应指标是主动份额低于约60%(Cremers和Petajisto,2009)。随后计算盈亏平衡信息比率:
    IR_breakeven = (基金费率 - 指数基金费率) / 跟踪误差
    。隐形指数基金经理需要在极小的主动风险预算下维持极高的信息比率,才能弥补费率差(信息比率本身在绩效指标技能中介绍)。

Smart-Beta Product Evaluation

Smart Beta产品评估

Treat every smart-beta product as a factor portfolio (the equities skill's rule) and evaluate the implementation, not the marketing name:
  • Factor purity: regress the product on the academic factors. A "value" ETF with b_HML = 0.15 and b_MKT = 1.0 is expensive beta; look for the target loading to be significant and dominant, and for unintended loadings (e.g., a value fund's negative momentum exposure) to be modest.
  • Turnover: momentum needs high turnover to exist (~100%+/yr); value needs little (~15-25%/yr). Turnover far above what the factor requires is cost drag; far below means stale exposure.
  • Capacity: size and momentum degrade fastest with assets (small, illiquid names; high turnover). Mega-cap value and quality scale best.
  • Fees vs implementation quality: the question is never "is 0.25% cheap?" but "what loading per basis point?" A 0.15% fund delivering b_HML = 0.20 is worse value than a 0.30% fund delivering b_HML = 0.50.
将所有Smart Beta产品视为因子组合(遵循股票投资技能的规则),评估其实际表现而非营销名称:
  • 因子纯度: 将产品收益对学术因子进行回归。若一只"价值"ETF的b_HML=0.15且b_MKT=1.0,则它是昂贵的beta产品;应寻找目标因子载荷显著且占主导,同时非预期因子载荷(如价值基金的负动量敞口)较小的产品。
  • 换手率: 动量因子需要高换手率才能维持收益(约100%+/年);价值因子则仅需较低换手率(约15-25%/年)。远高于因子需求的换手率会产生成本拖累;远低于需求的换手率则意味着因子敞口过时。
  • 容量: 规模和动量因子的溢价会随着管理规模的扩大而最快衰减(小盘股流动性不足、高换手率)。大盘价值和质量因子的规模适应性最佳。
  • 费率与表现质量: 问题永远不是"0.25%的费率便宜吗?",而是"每基点费率能获得多少因子载荷?"。一只费率0.15%、b_HML=0.20的基金,性价比远低于费率0.30%、b_HML=0.50的基金。

Long-Short Academic Factors vs Long-Only Tilts

学术多空因子与可落地的单边因子倾斜

Published premia are measured on long-short, often leverage- and shorting-unconstrained portfolios rebalanced without costs. A long-only implementable tilt:
  • captures roughly half of the paper premium (the short side, where mispricing is often larger, is unavailable; the overlap with the market portfolio dilutes the tilt);
  • has loadings well below 1.0 on the academic factor (long-only value funds typically show b_HML of 0.3-0.5, not 1.0);
  • pays real transaction costs and taxes the backtest ignored.
Scale expectations accordingly: a long-only value tilt with b_HML = 0.4 against a 2.5-3% premium is worth roughly 1.0-1.35%/yr before costs, not the headline long-short number.
已发表的因子溢价基于多空组合计算,通常不受杠杆和卖空限制,且回测未考虑交易成本。可落地的单边因子倾斜:
  • 仅能获取论文中约一半的溢价(卖空端通常存在更大的错误定价,但无法实现;与市场组合的重叠会稀释因子倾斜效果);
  • 对学术因子的载荷远低于1.0(单边价值基金的b_HML通常为0.3-0.5,而非1.0);
  • 需要承担真实的交易成本和税收,而这些在回测中被忽略。
因此需合理调整预期:若单边价值倾斜的b_HML=0.4,对应因子溢价为2.5-3%/年,则扣除成本前的预期收益约为1.0-1.35%/年,而非学术多空组合的 headline 数值。

Factor Cyclicality and the Danger of Factor Timing

因子周期性与因子择时风险

Every factor endures multi-year droughts: US value underperformed growth for roughly the 2017-2020 stretch, with a relative drawdown deep enough to end careers, before rebounding sharply in 2021-2022. Momentum crashes violently in sharp reversals (2009). Because droughts are long and turning points are unforecastable, factor timing — rotating into "cheap" factors — has a poor live record and adds turnover. The defensible uses of cyclicality are (a) diversifying across factors with low mutual correlation (value and momentum are natural complements) and (b) sizing tilts so the investor can survive a decade-long drought without capitulating at the bottom.
每个因子都会经历多年的收益低迷期:美国价值因子在2017-2020年期间表现持续落后于成长因子,相对回撤幅度之大足以终结不少基金经理的职业生涯,直到2021-2022年才大幅反弹。动量因子在市场剧烈反转时会出现崩盘(如2009年)。由于低迷期持续时间长,且拐点无法预测,因子择时——转向"便宜"因子——的实际表现不佳,还会增加换手率。合理利用因子周期性的方式是:(a) 在相关性低的因子间分散配置(价值和动量是天然互补的因子);(b) 合理调整因子倾斜的规模,确保投资者能在十年期的低迷期内坚持持有,不会在底部止损。

The Factor Zoo, Crowding, and Replication

因子动物园、因子拥挤与复制

Hundreds of "significant" factors have been published — Cochrane's "factor zoo." Treat the zoo skeptically:
  • Multiple testing: with hundreds of researchers mining the same data, t = 2 is far too weak; Harvey, Liu, and Zhu (2016) argue newly proposed factors should clear t > 3.
  • Post-publication decay: McLean and Pontiff (2016) find anomaly returns roughly one-third lower out-of-sample and one-half lower post-publication — partly data-mining, partly investors crowding in and arbitraging the premium away.
  • Crowding: popular factor trades unwind together under stress (August 2007 "quant quake"). Valuation spreads on a factor widening or compressing sharply indicate crowding in or out.
  • Default to the handful of factors with decades of out-of-sample, out-of-country evidence and an economic rationale (market, value, momentum, profitability, size — in roughly that order of robustness); assume any newly marketed factor delivers materially less than its backtest.
已有数百个"显著"因子被发表——即Cochrane所说的"因子动物园"。应对这些因子保持怀疑:
  • 多重检验: 数百名研究者挖掘同一数据集,t=2的显著性标准过于宽松;Harvey、Liu和Zhu(2016)认为新提出的因子应达到t>3的标准。
  • 发布后收益衰减: McLean和Pontiff(2016)发现异象收益在样本外约下降三分之一,发布后约下降一半——部分原因是数据挖掘,部分原因是投资者涌入套利导致溢价消失。
  • 因子拥挤: 受欢迎的因子交易在市场压力下会同时平仓(如2007年8月的"量化崩盘")。因子估值利差的大幅扩大或收窄表明因子拥挤程度上升或下降。
  • 默认选择具有数十年样本外、跨国验证证据及经济合理性的少数因子(市场、价值、动量、盈利能力、规模——按稳健性大致排序);假设任何新推出的因子实际表现远低于其回测结果。

Key Formulas

关键公式

FormulaExpressionUse Case
3-factor modelR_i - R_f = alpha + b_MKTMKT + b_SMBSMB + b_HML*HML + epsBaseline equity attribution
Carhart 4-factor3-factor + b_UMD*UMDAdd momentum control
5-factor model3-factor + b_RMWRMW + b_CMACMAProfitability and investment control
Expected-return decompositionE(R) = R_f + sum(b_k * lambda_k)Factor-implied return from loadings and premia
Implied alpharealized excess mean - sum(b_k * lambda_k)Skill after factor exposure
Significance rulet = coefficient / SE; skill requires |t(alpha)| > ~2Separate luck from skill
Residual (active) volsigma_resid = sigma_fund * sqrt(1 - R^2)Tracking-error decomposition
Breakeven IR(fund fee - index fee) / tracking errorCloset-index fee test
公式表达式使用场景
三因子模型R_i - R_f = alpha + b_MKTMKT + b_SMBSMB + b_HML*HML + eps股票收益归因基准
Carhart四因子模型三因子模型 + b_UMD*UMD加入动量因子控制
五因子模型三因子模型 + b_RMWRMW + b_CMACMA加入盈利能力与投资因子控制
预期收益分解E(R) = R_f + sum(b_k * lambda_k)通过因子载荷与溢价计算因子隐含收益
隐含Alpha实际平均超额收益 - sum(b_k * lambda_k)扣除因子敞口后的管理能力
显著性规则t = 系数 / 标准误;管理能力需满足|t(alpha)| > ~2区分运气与真实能力
残差(主动)波动率sigma_resid = sigma_fund * sqrt(1 - R^2)跟踪误差分解
盈亏平衡信息比率(基金费率 - 指数基金费率) / 跟踪误差隐形指数基金费率测试

Worked Examples

示例分析

Example 1: Is the "Value Fund" Adding Skill or Just Factor Exposure?

示例1:"价值基金"是创造了管理能力还是仅提供因子敞口?

Given: 60 monthly excess returns of a US large-cap value fund regressed on MKT, SMB, HML (all in % per month):
alpha = 0.037  (t = 0.60)     -> 0.037 x 12 = 0.44% per year
b_MKT = 0.98   (t = 58.1)
b_SMB = 0.12   (t = 4.6)
b_HML = 0.45   (t = 23.1)
R^2   = 0.986   (residual vol 0.457% per month)
Analysis: The three factors explain 98.6% of the fund's return variance. The value loading of 0.45 is strong and highly significant (t = 23.1 >> 2) — this is a genuine, stable value tilt, typical of a long-only value fund (well below the 1.0 of the academic long-short HML portfolio). The market loading of 0.98 is ordinary full-invested equity exposure, and the small positive SMB loading shows a mild small-cap lean. Alpha is 0.44% per year with t = 0.60 < 2: statistically indistinguishable from zero.
Verdict: factor exposure, not skill. Everything this fund delivers could be replicated with a market fund plus a value-tilted index fund. Whether to own it now becomes a fee question (Example 3), not a skill question.
给定: 某美国大盘价值基金的60个月超额收益,对MKT、SMB、HML进行回归(单位:%/月):
alpha = 0.037  (t = 0.60)     -> 0.037 × 12 = 0.44%/年
b_MKT = 0.98   (t = 58.1)
b_SMB = 0.12   (t = 4.6)
b_HML = 0.45   (t = 23.1)
R^2   = 0.986   (残差波动率0.457%/月)
分析: 三个因子解释了基金98.6%的收益方差。价值因子载荷0.45显著且数值较高(t=23.1 >> 2)——这是真实且稳定的价值倾斜,符合单边价值基金的典型特征(远低于学术多空HML组合的1.0)。市场因子载荷0.98是普通的全仓股票敞口,小幅正的SMB载荷表明基金略有小盘股倾向。Alpha为0.44%/年,t=0.60 < 2:在统计上与零无显著差异。
结论: 仅提供因子敞口,无管理能力。该基金的所有收益均可通过市场基金加价值倾斜指数基金复制。是否持有该基金现在取决于费率问题(见示例3),而非管理能力。

Example 2: Expected-Return Decomposition from Loadings and Premia

示例2:通过因子载荷与溢价进行预期收益分解

Given: The Example 1 loadings, assumed forward-looking premia of MKT 6.5%, SMB 2.0%, HML 3.0% per year, a risk-free rate of 4.0% (assumption as of mid-2026), and a realized fund excess return of 8.4% per year.
MKT contribution = 0.98 x 6.5% = 6.37%
SMB contribution = 0.12 x 2.0% = 0.24%
HML contribution = 0.45 x 3.0% = 1.35%
Factor-implied excess return   = 6.37 + 0.24 + 1.35 = 7.96%
Total expected return          = 4.0% + 7.96% = 11.96%
Implied alpha                  = 8.4% - 7.96% = 0.44% per year
Analysis: Of the fund's 8.4% realized excess return, 7.96 points came from factor exposures and only 0.44 from anything unexplained — consistent with Example 1's insignificant regression alpha. Note also the implementability haircut: the fund's value tilt is worth 1.35%/yr (0.45 x 3.0%), roughly half the headline long-short HML premium, exactly as the long-only discussion above predicts.
给定: 示例1中的因子载荷,假设前瞻性因子溢价为MKT 6.5%、SMB 2.0%、HML 3.0%/年,无风险利率为4.0%(2026年年中假设值),基金实际年化超额收益为8.4%。
MKT贡献 = 0.98 × 6.5% = 6.37%
SMB贡献 = 0.12 × 2.0% = 0.24%
HML贡献 = 0.45 × 3.0% = 1.35%
因子隐含超额收益   = 6.37 + 0.24 + 1.35 = 7.96%
总预期收益          = 4.0% + 7.96% = 11.96%
隐含Alpha                  = 8.4% - 7.96% = 0.44%/年
分析: 基金8.4%的实际年化超额收益中,7.96个百分点来自因子敞口,仅0.44个百分点无法被解释——与示例1中不显著的回归Alpha一致。同时需注意可落地性折扣:基金的价值倾斜带来的收益为1.35%/年(0.45×3.0%),约为学术多空HML溢价的一半,与前文关于单边因子倾斜的讨论完全一致。

Example 3: Closet-Index Screen with Breakeven Information Ratio

示例3:隐形指数基金筛查与盈亏平衡信息比率

Given: A fund with monthly volatility 4.30%, R-squared of 0.99 against its benchmark, a 0.85% expense ratio, and a 0.05% comparable index fund.
Residual vol   = 4.30% x sqrt(1 - 0.99) = 4.30% x 0.10 = 0.43% per month
Tracking error = 0.43% x sqrt(12) = 1.49% annualized
Fee gap        = 0.85% - 0.05% = 0.80% per year
Breakeven IR   = 0.80 / 1.49 = 0.54
Analysis: R-squared of 0.99 (>= 0.98) and tracking error of 1.49% (<= 2%) both trip the closet-index screen. Worse, on a 1.49% active-risk budget the manager must sustain an Information Ratio of 0.54 just to break even on fees — an IR that would rank among top-decile active managers, demanded here merely to match the index fund net of costs. Verdict: closet indexer; the rational holdings are the index fund, or a genuinely active fund whose tracking error is large enough to make its fee gap recoverable.
给定: 某基金月度波动率4.30%,相对于基准的R平方为0.99,费率0.85%,可比指数基金费率0.05%。
残差波动率   = 4.30% × sqrt(1 - 0.99) = 4.30% × 0.10 = 0.43%/月
跟踪误差 = 0.43% × sqrt(12) = 1.49%/年
费率差        = 0.85% - 0.05% = 0.80%/年
盈亏平衡信息比率   = 0.80 / 1.49 = 0.54
分析: R平方0.99(≥0.98)和跟踪误差1.49%(≤2%)均触发隐形指数基金筛查。更糟糕的是,在1.49%的主动风险预算下,经理必须维持0.54的信息比率才能弥补费率差——该信息比率可跻身主动经理的前十分位,但在此处仅能实现与指数基金的税后收益持平。结论: 该基金为隐形指数基金;理性选择是持有指数基金,或选择跟踪误差足够大、费率差可弥补的真正主动管理基金。

Common Pitfalls

常见误区

  • Calling CAPM alpha "skill": most single-factor alpha is static size/value/momentum exposure; always control for the factors an investor can buy cheaply before crediting a manager.
  • Trusting a positive alpha with t < 2: a 0.5%/yr alpha with t = 0.6 (Example 1) is noise, not evidence — the same rule statistics-fundamentals applies to CAPM alpha.
  • Expecting the academic premium from a long-only product: long-only tilts load 0.3-0.5 on the factor and capture roughly half the paper premium, before the costs backtests ignore.
  • Timing factors: decade-long droughts (value, 2017-2020) plus unforecastable turning points make factor rotation a reliable way to buy high and sell low; diversify across factors and size tilts for survivability instead.
  • Shopping the factor zoo: hundreds of published factors fail the t > 3 multiple-testing bar; expect one-third to one-half post-publication decay (McLean and Pontiff 2016) and default to the handful with out-of-sample, out-of-country evidence.
  • Judging smart beta by fee alone: compare loading delivered per basis point of fee; a cheap fund with a 0.15 target-factor loading is expensive beta in disguise.
  • Comparing R-squared across models with different factor counts: R-squared rises mechanically with every regressor; use adjusted R-squared (statistics-fundamentals covers the overfitting guardrails).
  • 将CAPM Alpha等同于管理能力: 多数单因子Alpha实际是静态的规模/价值/动量因子敞口;在认可经理的管理能力前,必须先控制投资者可低成本获取的因子敞口。
  • 轻信t<2的正Alpha: 如示例1中0.5%/年的Alpha且t=0.6,这只是噪声而非证据——统计基础技能中的规则同样适用于CAPM Alpha。
  • 期望单边产品获得学术级溢价: 单边因子倾斜对学术因子的载荷为0.3-0.5,仅能获取约一半的论文溢价,且未扣除回测中忽略的成本。
  • 因子择时: 十年期的低迷期(如2017-2020年的价值因子)加上无法预测的拐点,使得因子轮动成为追高杀跌的可靠方式;应改为在因子间分散配置,并合理调整因子倾斜规模以确保持有韧性。
  • 盲目追逐因子动物园: 数百个已发表的因子未达到t>3的多重检验标准;预期其发布后收益会下降三分之一至一半(McLean和Pontiff,2016),默认选择具有样本外、跨国验证证据的少数因子。
  • 仅以费率判断Smart Beta产品: 比较每基点费率对应的因子载荷;一只低费率但目标因子载荷仅0.15的基金,实则是伪装的昂贵beta产品。
  • 比较不同因子数量模型的R平方: 每增加一个因子,R平方都会机械性上升;应使用调整后R平方(统计基础技能介绍了过拟合防范规则)。

Cross-References

交叉引用

  • statistics-fundamentals (core plugin): OLS regression mechanics, t-statistics, R-squared, and the single-factor CAPM regression that this skill's multifactor models extend
  • performance-metrics (wealth-management plugin): Information Ratio and tracking error, used here in the closet-index breakeven test; risk-adjusted ratios complement factor attribution
  • equities (wealth-management plugin): style and factor index construction; that skill's rule to evaluate smart-beta products as factor portfolios is executed here via loadings
  • asset-allocation (wealth-management plugin): sizing factor tilts as deliberate, survivable deviations from the policy portfolio
  • diversification (wealth-management plugin): low mutual correlation across factor premia (e.g., value and momentum) is a distinct diversification layer from asset classes
  • fund-vehicles (wealth-management plugin): ETF, mutual fund, and SMA wrappers for factor exposure; fee, turnover, and capacity mechanics of the vehicles
  • statistics-fundamentals(核心插件):OLS回归机制、t统计量、R平方,以及本技能多因子模型所扩展的单因子CAPM回归
  • performance-metrics(财富管理插件):信息比率与跟踪误差,用于本文中的隐形指数基金盈亏平衡测试;风险调整比率可补充因子归因分析
  • equities(财富管理插件):风格与因子指数构建;该技能中"将Smart Beta产品视为因子组合进行评估"的规则,在本文中通过因子载荷实现
  • asset-allocation(财富管理插件):将因子倾斜作为对政策组合的刻意、可承受的偏离进行规模调整
  • diversification(财富管理插件):因子溢价间的低相关性(如价值与动量)是不同于资产类别的另一层分散配置维度
  • fund-vehicles(财富管理插件):因子敞口的ETF、共同基金、SMA载体;载体的费率、换手率、容量机制

Running the Script

运行脚本

bash
uv run scripts/factor_investing.py            # run the demo (uses PEP 723 inline deps)
uv run scripts/factor_investing.py --verify   # check outputs against the worked examples (exit 1 on mismatch)
python3 scripts/factor_investing.py           # alternative (requires: pip install numpy scipy)
scripts/factor_investing.py
provides a
FactorInvesting
class with static methods
multifactor_regression
(K-factor OLS via numpy least squares, returning alpha, loadings, t-stats, p-values, R-squared, and residual vol),
expected_return_decomposition
(loadings x premia, with implied alpha), and
closet_index_diagnostics
(residual vol, tracking error, breakeven IR, closet-index flag). A bare run (or
--verify
) prints the demo on a deterministic seeded dataset and asserts the worked-example values above (Example 1 loadings/t-stats/R-squared, Example 2 decomposition, Example 3 diagnostics), exiting nonzero on any mismatch. Run
--help
for the method list. For programmatic use, import rather than run:
from factor_investing import FactorInvesting
.
bash
uv run scripts/factor_investing.py            # 运行演示(使用PEP 723内联依赖)
uv run scripts/factor_investing.py --verify   # 检查输出与示例分析是否一致(不匹配则退出码为1)
python3 scripts/factor_investing.py           # 替代方式(需安装:pip install numpy scipy)
scripts/factor_investing.py
提供了
FactorInvesting
类,包含静态方法
multifactor_regression
(通过numpy最小二乘法实现多因子OLS回归,返回Alpha、因子载荷、t统计量、p值、R平方及残差波动率)、
expected_return_decomposition
(因子载荷×溢价,计算隐含Alpha)和
closet_index_diagnostics
(残差波动率、跟踪误差、盈亏平衡信息比率、隐形指数基金标记)。直接运行(或加
--verify
参数)会在确定性种子数据集上打印演示结果,并验证上述示例分析的数值(示例1的载荷/t统计量/R平方、示例2的分解结果、示例3的诊断数据),若不匹配则返回非零退出码。运行
--help
可查看方法列表。如需编程使用,可导入该类:
from factor_investing import FactorInvesting