Level 5 — MasteryFactor & Behavioral Finance

Factor & Behavioral Finance

90 minutes60 marksprintable — key stays hidden on paper

Level 5 — Mastery (Cross-Domain: Quantitative Finance + Statistics + Coding + Proof) Time Limit: 90 minutes Total Marks: 60

Instructions: Answer all three questions. Show full derivations. Where code is requested, pseudocode or Python (NumPy/pandas/statsmodels) is acceptable. State all assumptions.


Question 1 — Fama-French Estimation & Factor Construction (24 marks)

A quantitative fund runs a monthly regression of an equity portfolio's excess return Rp,tRf,tR_{p,t}-R_{f,t} on the Fama–French three-factor model:

Rp,tRf,t=α+βMKT(Rm,tRf,t)+βSMBSMBt+βHMLHMLt+εtR_{p,t}-R_{f,t} = \alpha + \beta_{MKT}(R_{m,t}-R_{f,t}) + \beta_{SMB}\,SMB_t + \beta_{HML}\,HML_t + \varepsilon_t

(a) Derive the Ordinary Least Squares estimator β^=(XX)1Xy\hat{\boldsymbol{\beta}} = (X^\top X)^{-1}X^\top y from the objective of minimising the residual sum of squares yXβ2\lVert y - X\boldsymbol{\beta}\rVert^2. State the two Gauss–Markov assumptions that make β^\hat{\boldsymbol{\beta}} the Best Linear Unbiased Estimator, and explain economically why the intercept α\alpha is interpreted as risk-adjusted outperformance. (8)

(b) Over 60 months the fund reports the following estimates (monthly):

Parameter Estimate Std. Error
α\alpha 0.0025 0.0011
βMKT\beta_{MKT} 1.05 0.04
βSMB\beta_{SMB} 0.62 0.09
βHML\beta_{HML} 0.41 0.10

Compute the annualised alpha (compounded and simple), and test H0:α=0H_0:\alpha=0 at the 5% level using a two-sided tt-test (tcrit2.00t_{crit}\approx 2.00). Interpret the sign of βSMB\beta_{SMB} and βHML\beta_{HML} in terms of the size and value tilts of this portfolio. (8)

(c) The fund upgrades to the five-factor model by adding RMW (profitability) and CMA (investment). Explain (i) what economic anomaly each new factor captures, and (ii) why adding factors can reduce a previously significant HML loading, referencing the concept of factor redundancy. Write concise pseudocode that constructs the SMB factor as a 2×32\times3 sorted long-short portfolio (small-minus-big averaged across value groups). (8)


Question 2 — Behavioral Bias, Utility & the Disposition Effect (20 marks)

(a) Kahneman–Tversky prospect theory value function:

v(x)={xαx0λ(x)βx<0v(x)=\begin{cases} x^{\alpha} & x\ge 0\\ -\lambda(-x)^{\beta} & x<0 \end{cases}

with α=β=0.88\alpha=\beta=0.88, λ=2.25\lambda=2.25. An investor holds two positions relative to purchase price: Stock A is up $100, Stock B is down $100. Compute v(+100)v(+100) and v(100)v(-100), and hence the loss-aversion ratio v(100)/v(+100)|v(-100)|/v(+100). Using these numbers, explain mathematically why the disposition effect (sell winners too early, hold losers too long) emerges from the curvature (concave gains, convex losses). (10)

(b) Model a herding market. Let N=1000N=1000 traders; each trader ii acts "buy" with probability

pi=σ ⁣(kfi),σ(z)=11+ezp_i = \sigma\!\left(k \cdot f_i\right),\qquad \sigma(z)=\frac{1}{1+e^{-z}}

where fif_i is the fraction of previously observed traders who bought, and kk is a herding intensity. Explain why kk\to\infty produces an information cascade, and derive the fixed-point condition for the equilibrium buy-fraction f\*f^\* when all traders see the same aggregate ff. Show that f\*=0.5f^\*=0.5 is always a fixed point and determine, by analysing the derivative ddfσ(k(f0.5))\frac{d}{df}\sigma(k(f-0.5)) at f=0.5f=0.5, the critical kk above which f\*=0.5f^\*=0.5 becomes unstable. (10)


Question 3 — Market Efficiency: A Proof-Style Argument (16 marks)

(a) State the three forms of the Efficient Market Hypothesis. Formally: if prices follow Pt+1=Pt+μ+εt+1P_{t+1}=P_t + \mu + \varepsilon_{t+1} with E[εt+1Ft]=0\mathbb{E}[\varepsilon_{t+1}\mid \mathcal{F}_t]=0, prove that {Ptμt}\{P_t - \mu t\} is a martingale and that expected excess returns are unforecastable from past prices. Explain how the existence of persistent factor premia (value, momentum) is reconciled with the EMH by the risk-based versus behavioral interpretations. (10)

(b) A smart-beta ETF claims to "beat the market" through a momentum tilt. Design a rigorous statistical test to distinguish genuine alpha from factor exposure and from data-mining / multiple-testing bias. Your answer must reference: the correct null model, the Sharpe-ratio deflation for the number of strategies tested, and one out-of-sample validation safeguard. (6)

Answer keyMark scheme & solutions

Question 1

(a) OLS derivation (8 marks)

Minimise S(β)=yXβ2=(yXβ)(yXβ)S(\boldsymbol\beta)=\lVert y-X\boldsymbol\beta\rVert^2=(y-X\boldsymbol\beta)^\top(y-X\boldsymbol\beta). S=yy2βXy+βXXβ.S = y^\top y - 2\boldsymbol\beta^\top X^\top y + \boldsymbol\beta^\top X^\top X\boldsymbol\beta. Gradient: βS=2Xy+2XXβ=0\nabla_{\boldsymbol\beta}S = -2X^\top y + 2X^\top X\boldsymbol\beta = 0. (2) Normal equations XXβ^=Xyβ^=(XX)1XyX^\top X\hat{\boldsymbol\beta}=X^\top y \Rightarrow \hat{\boldsymbol\beta}=(X^\top X)^{-1}X^\top y (requires XX full column rank). (2) Hessian 2XX02X^\top X\succeq 0 ⇒ minimum. (1)

Gauss–Markov assumptions (any two, 2 marks): (i) E[εX]=0\mathbb{E}[\varepsilon\mid X]=0 (exogeneity, zero conditional mean); (ii) homoskedasticity & no autocorrelation Var(εX)=σ2I\text{Var}(\varepsilon\mid X)=\sigma^2 I. (Also linearity/full rank.) These give BLUE.

Economic interpretation of α\alpha (1 mark): α\alpha is the average return not explained by exposure to priced risk factors — risk-adjusted excess return (skill/mispricing). A positive significant α\alpha means outperformance beyond what factor betas justify.

(b) Alpha significance & tilts (8 marks)

Simple annualised alpha: 0.0025×12=0.03=3.0%0.0025\times12 = 0.03 = 3.0\%. (2) Compounded: (1.0025)121=0.0304163.04%(1.0025)^{12}-1 = 0.030416 \approx 3.04\%. (2) tt-stat: t=α/SE=0.0025/0.0011=2.2727t=\alpha/SE = 0.0025/0.0011 = 2.2727. (2) Since 2.27>2.002.27 > 2.00, reject H0H_0: alpha is statistically significant at 5%. (1) Tilts (1 mark): βSMB=0.62>0\beta_{SMB}=0.62>0 ⇒ small-cap tilt (loads on small-minus-big); βHML=0.41>0\beta_{HML}=0.41>0 ⇒ value tilt (loads on high book-to-market). Portfolio is a small-cap value fund.

(c) Five-factor extension (8 marks)

(i) Economic anomalies (3 marks):

  • RMW (Robust-Minus-Weak): profitability premium — firms with robust operating profitability outperform weak ones.
  • CMA (Conservative-Minus-Aggressive): investment premium — firms investing conservatively outperform aggressive investors.

(ii) Redundancy (2 marks): HML captures value; but value stocks tend to be low-investment/high-profitability. Once RMW and CMA are included they absorb the return variation previously attributed to HML, so βHML\beta_{HML} and its significance can shrink (HML becomes redundant in the FF5 for US data).

SMB pseudocode (3 marks):

# 2x3 sort: 2 size groups (S,B) x 3 value groups (L,N,H)
median_size = median(marketcap)
b30, b70 = quantiles(book_to_market, [0.3, 0.7])
for each group in {S,B}x{L,N,H}:
    port_return = value_weighted_mean(returns of stocks in that bucket)
SMB = (SL + SN + SH)/3  -  (BL + BN + BH)/3   # small minus big

Question 2

(a) Prospect theory (10 marks)

v(+100)=1000.88v(+100)=100^{0.88}. ln=0.88ln100=0.88(4.60517)=4.05255v(+100)=e4.05255=57.54\ln = 0.88\ln100 = 0.88(4.60517)=4.05255 \Rightarrow v(+100)=e^{4.05255}=57.54. (3) v(100)=2.251000.88=2.25(57.54)=129.46v(-100)=-2.25\cdot100^{0.88}=-2.25(57.54)=-129.46. (3) Ratio v(100)/v(+100)=2.25|v(-100)|/v(+100)=2.25 (equals λ\lambda since α=β\alpha=\beta). (2)

Disposition explanation (2 marks): The value function is concave in gains (risk-averse over gains) so an investor is tempted to lock in a sure gain — sell winners early. It is convex in losses (risk-seeking over losses) so the investor gambles to recover, holding losers. Combined with reference-point dependence around purchase price, this produces the disposition effect: realise gains, defer losses.

(b) Herding fixed point (10 marks)

Cascade (2 marks): as kk\to\infty, σ(k(f0.5))\sigma(k(f-0.5))\to step function: any f>0.5f>0.5 forces pi1p_i\to1 (everyone buys), f<0.5f<0.5 forces pi0p_i\to0. Private signals are ignored — an information cascade where each trader copies the crowd.

Fixed point (3 marks): with common aggregate ff, expected buy fraction is g(f)=σ(k(f0.5))g(f)=\sigma(k(f-0.5)); equilibrium f\*=σ(k(f\*0.5))f^\*=\sigma(k(f^\*-0.5)).

f\*=0.5f^\*=0.5 check (2 marks): σ(k(0.50.5))=σ(0)=0.5\sigma(k(0.5-0.5))=\sigma(0)=0.5. ✓ Always a fixed point.

Stability (3 marks): g(f)=kσ(k(f0.5))[1σ(k(f0.5))]g'(f)=k\,\sigma(k(f-0.5))\,[1-\sigma(k(f-0.5))]. At f=0.5f=0.5: σ=0.5\sigma=0.5, so g(0.5)=k(0.5)(0.5)=k/4g'(0.5)=k(0.5)(0.5)=k/4. Fixed point unstable when g>1k/4>1k>4|g'|>1 \Rightarrow k/4>1 \Rightarrow k>4. Critical k\*=4k^\*=4: above it the symmetric equilibrium is unstable and two asymmetric cascade equilibria (herd-buy / herd-sell) emerge.

VERIFY note: kcrit=4k_{crit}=4, ratio =2.25=2.25, v(+100)57.54v(+100)\approx57.54.


Question 3

(a) EMH & martingale proof (10 marks)

Three forms (3 marks): Weak — prices reflect all past price/volume info (technical analysis useless). Semi-strong — reflect all public info (fundamental analysis of public data useless). Strong — reflect all info incl. private/insider.

Martingale proof (5 marks): Let Mt=PtμtM_t=P_t-\mu t. Then E[Mt+1Ft]=E[Pt+1μ(t+1)Ft]=Pt+μ+E[εt+1Ft]μ(t+1).\mathbb{E}[M_{t+1}\mid\mathcal{F}_t]=\mathbb{E}[P_{t+1}-\mu(t+1)\mid\mathcal{F}_t]=P_t+\mu+\mathbb{E}[\varepsilon_{t+1}\mid\mathcal{F}_t]-\mu(t+1). Since E[εt+1Ft]=0\mathbb{E}[\varepsilon_{t+1}\mid\mathcal{F}_t]=0: =Pt+μμ(t+1)=Ptμt=Mt.=P_t+\mu-\mu(t+1)=P_t-\mu t=M_t. Thus {Mt}\{M_t\} is a martingale. Excess return Pt+1Ptμ=εt+1P_{t+1}-P_t-\mu=\varepsilon_{t+1} has conditional mean zero ⇒ unforecastable from Ft\mathcal{F}_t (past prices). ∎

Reconciliation (2 marks): Persistent premia are consistent with EMH under the risk-based view — value/momentum returns are compensation for systematic risk (a joint-hypothesis with the asset-pricing model). The behavioral view holds they are mispricings from bias (overreaction/underreaction) that limits-to-arbitrage prevent from being eliminated. The debate is unresolved due to the joint-hypothesis problem (Fama): any efficiency test jointly tests the model of expected returns.

(b) Alpha vs exposure vs data-mining test (6 marks)

  • Null model (2): Regress ETF excess returns on the appropriate multifactor benchmark including a momentum factor (UMD/WML): RRf=α+βMKTMKT+βSMBSMB+βHMLHML+βMOMMOM+εR-R_f=\alpha+\beta_{MKT}MKT+\beta_{SMB}SMB+\beta_{HML}HML+\beta_{MOM}MOM+\varepsilon. Genuine skill ⇔ α\alpha significant after controlling for MOM. If MOM absorbs the return, it is factor exposure not alpha.
  • Multiple-testing / Deflated Sharpe (2): Apply the Deflated Sharpe Ratio (Bailey–López de Prado) or Bonferroni/Harvey-Liu haircut: adjust the significance threshold for the number NN of strategies tested; expected max Sharpe under the null grows with 2lnN\sqrt{2\ln N}, so raw high SR may be selection bias.
  • Out-of-sample safeguard (2): Reserve a holdout / walk-forward period never used in strategy design; require the alpha to persist out-of-sample (and/or across markets, cross-validation) to rule out overfitting.

[
  {"claim":"t-stat for alpha = 0.0025/0.0011 ~ 2.2727 > 2.00 (reject H0)", "code":"t = 0.0025/0.0011; result = bool(t > 2.00) and bool(abs(t - Rational(25,11)) < Rational(1,1000))"},
  {"claim":"Compounded annual alpha (1.0025)^12 - 1 ~ 0.03042", "code":"val = (1 + Rational(25,10000))**12 - 1; result = bool(abs(float(val) - 0.030416) < 1e-4)"},
  {"claim":"Loss aversion ratio |v(-100)|/v(+100) = 2.25 and v(+100) ~ 57.54", "code":"vp = 100**0.88; vn = 2.25*100**0.88; ratio = vn/vp; result = bool(abs(ratio - 2.25) < 1e-9) and bool(abs(vp - 57.544) < 0.02)"},
  {"claim":"Critical herding intensity k_crit = 4 from g'(0.5)=k/4=1", "code":"k = symbols('k', positive=True); g = 1/(1+exp(-k*(Symbol('f')-Rational(1,2)))); gp = diff(g, Symbol('f')).subs(Symbol('f'), Rational(1,2)); sol = solve(Eq(gp, 1), k); result = bool(4 in [simplify(s) for s in sol])"}
]