











Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!












Paolo Zaffaroni —
Compiled: April 2026
Instructions Answer all questions. Show all working. Intermediate rounding should be avoided; carry at least 4 significant figures throughout and round only final answers. Calcu- lators are permitted.
1 Lecture 1 — Financial Data and Return Concepts 3 1.1 NQ1.1 — Gross, Net, Log, and Excess Returns................ 3 1.2 NQ1.2 — Sample Moments: Mean, Variance, Skewness, Kurtosis...... 3 1.3 NQ1.3 — Multiperiod Returns and Annualisation.............. 4
2 Lecture 1 — Optimal Portfolio Weights 4 2.1 NQ2.1 — Single Risky Asset (N = 1)..................... 4 2.2 NQ2.2 — Two Risky Assets (N = 2)..................... 5 2.3 NQ2.3 — Covariance Matrix Parameter Count................ 5
3 Lecture 1 — Statistical Inference on Returns 5 3.1 NQ3.1 — Unbiasedness and Variance of the Sample Mean......... 5 3.2 NQ3.2 — t-Test on Expected Returns..................... 6 3.3 NQ3.3 — Linear Combinations of Returns.................. 6
4 Lecture 1 — OLS Regression 7 4.1 NQ4.1 — Simple OLS: Deriving βˆ 0 and βˆ 1.................. 7 4.2 NQ4.2 — Fama–MacBeth Two-Pass: Numerical............... 7
5 Lecture 2 — Portfolio Strategies and Backtesting 8 5.1 NQ5.1 — Rolling Window vs. Expanding Window.............. 8 5.2 NQ5.2 — Out-of-Sample Portfolio Return.................. 8
6 Lecture 2 — Performance Measures 9 6.1 NQ6.1 — Sharpe Ratio: Computation and Confidence Interval....... 9 6.2 NQ6.2 — Jobson–Korkie–Memmel Test.................... 9 6.3 NQ6.3 — Factor Models: Alpha and Beta.................. 10
7 Lecture 2 — Turnover and Transaction Costs 10 7.1 NQ7.1 — Turnover Computation....................... 10 7.2 NQ7.2 — Net-of-TC Sharpe Ratio....................... 11
NQ1.3 — Multiperiod Returns and Annualisation
Given Data A stock has the following quarterly prices:
Quarter Q 0 Q 1 Q 2 Q 3 Q 4 Price 50. 00 53. 50 51. 83 56. 49
(a) Compute the single-period gross return for each quarter. (b) Compute the annual gross return R(4) as a product of the four quarterly gross returns. (c) Compute the annual log return ln R(4) as a sum of quarterly log returns. Verify against ln(P 4 /P 0 ). (d) If the quarterly log return is assumed constant at ¯rln^ (the average of the four quarterly log returns), compute the annualised expected log return. (e) Compute the annualised net return using the formula (1 + rannual) = (1 + rquarterly)^4 , where rquarterly is the geometric mean quarterly net return.
NQ2.1 — Single Risky Asset (N = 1)
Given Data
E[R 1 ] = 12%, V[R 1 ] = σ^21 = 0. 0400 , Rf = 3%, γ = 4.
(a) Compute the risk premium E[R 1 ] − Rf. (b) Compute the optimal portfolio weight w 1 =
E[R 1 ] − Rf γ σ 12
(c) What fraction of wealth is invested in the risk-free asset? (d) Recompute w 1 for γ ∈ 1 , 2 , 4 , 8 , 16. Tabulate the results and describe the pattern. (e) Recompute w 1 for σ 1 ∈ 0. 10 , 0. 15 , 0. 20 , 0. 25 , 0 .30 (keeping γ = 4). At what volatility does w 1 = 1? (f) Compute the expected portfolio return E[Rp] = w 1 E[R 1 ] + (1 − w 1 )Rf for the original parameters. (g) Compute the portfolio variance σ^2 p = w 12 σ^21 and the portfolio Sharpe ratio SRp = (E[Rp] − Rf )/σp.
NQ2.2 — Two Risky Assets (N = 2)
Given Data
μ =
, Rf = 0. 03 , γ = 3.
(a) Compute the correlation ρ 12 between the two assets. (b) Compute V −^1 analytically using the formula for a 2 × 2 matrix: V −^1 = 1 det(V )
v 22 −v 12 −v 12 v 11
(c) Compute the excess return vector μ − Rf 12. (d) Compute the optimal weight vector w =
γ
V −^1 (μ − Rf 12 ).
(e) Compute the portfolio expected return E[Rp] = w⊤μ + (1 − 1 ⊤w)Rf. (f) Compute the portfolio variance σ p^2 = w⊤V w. (g) Compute the portfolio Sharpe ratio. (h) Now suppose ρ 12 = 0 (zero correlation). Recompute V −^1 and the optimal weights. How do the weights change? Provide intuition. (i) Now suppose ρ 12 = 0.95 (near-perfect correlation). Recompute V −^1 and the optimal weights. What happens? Why is this problematic?
NQ2.3 — Covariance Matrix Parameter Count
Given Data Consider portfolios of N = 2, 5 , 10 , 25 , 50 , 100 , 500 assets.
(a) For each N , compute the number of unique parameters in the covariance matrix using N (N + 1)/2. (b) Suppose we have T = 120 monthly observations. For which values of N is T > N (N + 1)/2 (i.e. the sample covariance matrix is non-singular)? (c) For N = 50 and T = 120, compute the ratio N (N + 1)/(2T ). Interpret this as a measure of the estimation burden. (d) For N = 500 and T = 120, is the sample covariance matrix invertible? Ex- plain.
NQ3.1 — Unbiasedness and Variance of the Sample Mean
Here is the fully completed question with all numerical answers worked out: latex
A strategy has true monthly expected return μ = 1.5% and true monthly standard devi- ation σ = 4.0%.
NQ4.1 — Simple OLS: Deriving βˆ 0 and βˆ 1
Given Data
Five observations of excess stock return yi and market excess return xi (both in %):
i 1 2 3 4 5 xi − 2. 0 0. 5 1. 5 3. 0 4. 0 yi − 3. 5 0. 2 1. 8 4. 5 5. 0
(a) Compute ¯x and ¯y. (b) Compute
i=1(xi^ −^ x¯)
(^2) and P^5 i=1(xi^ −^ x¯)(yi^ −^ ¯y). (c) Compute βˆ 1 and βˆ 0. (d) Interpret βˆ 1 in the context of the CAPM. Is the stock aggressive or defensive? (e) Compute the fitted values yˆi = βˆ 0 + βˆ 1 xi and the residuals uˆi = yi − yˆi. (f) Verify that
uˆi = 0 and
xi uˆi = 0 (OLS moment conditions).
(g) Compute the R^2 of the regression: R^2 = 1 −
uˆ^2 i P (yi − y¯)^2
NQ4.2 — Fama–MacBeth Two-Pass: Numerical
Given Data
Three stocks (A, B, C) over T = 5 years. First-pass betas (estimated from time- series regressions) and average excess returns are:
Stock βˆi R¯i − R¯f (%) A 0. 60 4. 20 B 1. 10 7. 80 C 1. 50 9. 60
(a) Compute β¯ˆ = (^13)
βi and ( R¯ − R¯f ) = (^13)
( R¯i − R¯f ). (b) Compute the second-pass OLS estimate:
λˆ =
i=1( βˆi − β¯ˆ)( R¯i − R¯f − ( R¯ − R¯f )) P 3 i=1( βˆi − β¯ˆ)^2
(c) Compute the intercept ˆλ 0 = ( R¯ − R¯f ) − ˆλ
β. Under the CAPM, what should ˆλ 0 equal? (d) Compute the CAPM-implied expected excess return for each stock: ˆλ 0 + βˆi ˆλ. (e) Compute the pricing errors ηˆi = ( R¯i − R¯f ) − (ˆλ 0 + βˆi ˆλ). (f) Which stock is most mispriced relative to the CAPM?
NQ5.1 — Rolling Window vs. Expanding Window
Given Data
Monthly returns of a single asset over 10 months (in %):
rt = 2. 1 , − 1. 3 , 3. 4 , 0. 8 , − 2. 2 , 4. 1 , 1. 5 , − 0. 9 , 2. 8 , 3. 3.
(a) Using a rolling window of M = 4 months, compute the estimated mean μˆt at each date t = 4, 5 ,... , 10 (i.e. using months [t − 3 , t]). (b) Using an expanding window, compute the estimated mean ˆμt at each date t = 4, 5 ,... , 10 (i.e. using months [1, t]). (c) Compare the two sequences of estimates. Which is more stable? Which responds faster to recent changes? (d) For the rolling window at t = 10, compute the rolling sample variance using months 7–10. (e) Suppose the true mean shifts from 1% to 3% after month 5. Which window approach detects this shift faster? Explain.
NQ5.2 — Out-of-Sample Portfolio Return
Given Data A portfolio of N = 3 assets. At time t, the estimated weights are:
wt = (0. 50 , 0. 30 , 0 .20)⊤.
The realised returns at time t + 1 are:
Rt+1 = (0. 08 , − 0. 03 , 0 .12)⊤.
(a) Compute the out-of-sample portfolio return Rt+1,p = w⊤ t Rt+1 as an ex- plicit sum. (b) If the risk-free rate is Rf = 0.3%, compute the excess portfolio return. (c) Suppose instead the weights had been chosen using Rt+1 (look-ahead). Com- pute the maximum possible portfolio return achievable by choosing weights that sum to 1 and are non-negative. By how much does look-ahead bias inflate performance? (d) Over T = 5 periods, the portfolio returns are: 3.2%, 1 .5%, − 2 .1%, 4 .0%, 2 .8%. Compute the average OOS return and the OOS Sharpe ratio (annualised, assuming Rf = 0.3% per month and multiplying mean by 12 and std by
NQ6.3 — Factor Models: Alpha and Beta
Given Data Monthly data over T = 60 months. Portfolio P regression on the market factor:
RP t − Rf t = αP + βP (Rmt − Rf t) + εP t.
Estimated coefficients: ˆαP = 0.30%, βˆP = 1.20. Market excess return: R¯m − R¯f = 0 .60% p.m., ˆσm = 3.50% p.m.
(a) Compute the CAPM-implied expected excess return of portfolio P: βˆP ( R¯m − R¯f ). (b) Compute the actual average excess return of P: ˆαP + βˆP ( R¯m − R¯f ). (c) Compute the systematic variance βˆ^2 P ˆσ m^2 and the total variance of P (if residual std is ˆσε = 2.10%). (d) Compute the R^2 of the regression: R^2 = βˆ P^2 ˆσ m^2 /σˆ^2 P. (e) Compute the Treynor ratio: T RP = (E[RP ] − Rf )/ βˆP. (f) Compute the Appraisal ratio: ARP = ˆαP /ˆσε.
NQ7.1 — Turnover Computation
Given Data A portfolio of N = 4 assets. Weights at consecutive dates:
Asset 1 Asset 2 Asset 3 Asset 4 wt 0. 40 0. 30 0. 20 0. 10 wt+1 0. 35 0. 25 0. 30 0. 10 wt+2 0. 50 0. 20 0. 20 0. 10
Transaction cost rate: TC = 0.50% per unit of turnover.
(a) Compute the turnover τt =
n=1 |wn,t+1^ −^ wn,t|^ between^ t^ and^ t^ + 1. (b) Compute the turnover τt+1 between t + 1 and t + 2. (c) Compute the average monthly turnover τ¯ = (τt + τt+1)/2. (d) Compute the annualised average turnover τ¯ann = 12¯τ. (e) Suppose the portfolio return (before TC) at t + 1 is 1.80%. Compute the net-of-TC return at t + 1: Rnet t+1 = Rt+1 − τt × TC. (f) A fund purchased $25m and sold $18m of securities in one year; average net assets were $200m. Compute the portfolio turnover ratio (industry definition).
NQ7.2 — Net-of-TC Sharpe Ratio
Given Data Two strategies over T = 120 months, Rf = 0.25% p.m.:
Strategy X Strategy Y Gross mean return (% p.m.) 1. 50 1. 10 Std dev (% p.m.) 4. 50 3. 00 Monthly turnover 1. 80 0. 30
Transaction cost rate: κ = 0.10% per unit of turnover.
(a) Compute the gross Sharpe ratio for each strategy. (b) Compute the monthly TC drag: ∆μ = κ × τ for each strategy. (c) Compute the net-of-TC mean return for each strategy. (d) Compute the net-of-TC Sharpe ratio for each strategy (assume std dev is unchanged by TC). (e) Which strategy is preferred gross? Which is preferred net? (f) At what TC rate κ∗^ do the two strategies have equal net Sharpe ratios? (Set up and solve the equation.)
NQ8.1 — Portfolio Variance Decomposition (N = 3)
Given Data
w = (0. 50 , 0. 30 , 0 .20)⊤, V =
(a) Compute the portfolio variance σ p^2 = w⊤V w as a double sum:
σ^2 p =
n=
m=
wnwmσnm.
Show all 9 terms. (b) Identify the own-variance terms (n = m) and the cross-covariance terms (n ̸= m). What fraction of total variance comes from cross-covariances? (c) Compute the total contribution of each asset n:
TCn = w n^2 σ n^2 + 2
m̸=n
wnwmσnm.
Verify that
n=1 TCn^ =^ σ
2 p.
NQ9.1 — Tracking Error: Computation
Given Data
wA = (0. 40 , 0. 35 , 0 .25)⊤, wB = (0. 33 , 0. 34 , 0 .33)⊤,
μ = (0. 12 , 0. 09 , 0 .10)⊤, V =
(a) Compute the active weights wact = wA − wB. Verify they sum to zero. (b) Compute the expected tracking error E[TE] = w⊤ actμ. (c) Compute the variance of the tracking error Var(TE) = w⊤ actV wact. Show all cross-product terms. (d) Compute the tracking error volatility (TEV). (e) Compute the Information Ratio IR = E[TE]/TEV. (f) Suppose the manager’s CAPM alpha is αp = 1.8% per annum. Compute the Appraisal Ratio AR = αp/TEV (annualise TEV by multiplying by
NQ9.2 — TEV Optimisation: Closed-Form Solution
Given Data
μ =
, σmax^2 = 0. 0010.
(a) Compute V −^1. (b) Compute V −^1 μ and 1 ⊤ 2 V −^1 μ and 1 ⊤ 2 V −^112. (c) Compute the neutrality scalar:
λ =
1 ⊤ 2 V −^1 μ 1 ⊤ 2 V −^112
(d) Write down the direction vector d = V −^1 (μ − λ 12 ). (e) Find γ such that the TEV constraint binds: d γ
d γ
= σmax^2.
(f) Write down the optimal active weights wact = d/γ. Verify 1 ⊤ 2 wact = 0. (g) Compute the expected tracking error and Information Ratio at the optimum.
NQ10.1 — Myopic Optimisation with TC (N = 2)
Given Data
w^0 = (0. 60 , 0 .40)⊤, μ = (0. 10 , 0 .06)⊤, V =
γ = 3, TC = 0. 005.
(a) Compute the unconstrained optimal weights (ignoring TC): w∗^ = 1 γ V^
− (^1) (μ − Rf 12 ) with Rf = 0.03. (b) Compute the TC incurred when moving from w^0 to w∗: TC × ∥w∗^ − w^0 ∥ 1. (c) Compute the gross expected return of w∗^ and the net-of-TC expected return. (d) Compute the gross expected return of w^0 (no rebalancing, zero TC). Which portfolio has higher net expected return? (e) Suppose TC = 0.02 (200 bps). Recompute the net-of-TC expected return of w∗. Is it still worth rebalancing? (f) Compute the break-even TC rate TC∗^ at which the net expected returns of w∗^ and w^0 are equal.
NQ10.2 — Comprehensive N = 3 Numerical Exercise
Given Data
μ = (0. 12 , 0. 08 , 0 .10)⊤, V =
(^) , Rf = 0. 03 , w = (0. 50 , 0. 30 , 0 .20)⊤.
(a) Compute E[Rp] = w⊤μ. (b) Compute σ p^2 = w⊤V w and σp. (c) Compute σnp =
m=1 wmσnm^ for each^ n^ = 1,^2 ,^ 3. (d) Compute ∂σp/∂wn = σnp/σp for each n. (e) Compute βn,p = σnp/σ p^2 for each n. (f) Compute the Sharpe ratio SRp = (E[Rp] − Rf )/σp. (g) Verify (approximately) the risk–return relation μn − Rf ≈ βn,p(E[Rp] − Rf ) for each n. Comment on any discrepancy. (h) Define a risk parity condition: find weights ˜wn such that ˜wn · 2 σnp = σ^2 p / 3 for all n (equal risk contributions). Set up the system of equations (do not solve numerically).
eigenvalues, explain qualitatively why VˆLW has a smaller condition number than Vˆ for ψ > 0.
NQ12.2 — LW Portfolio as Combination of GMV and 1 /N
Given Data
For N = 3 assets, the GMV portfolio weights (using Vˆ ) are:
wMINU = (0. 55 , 0. 15 , 0 .30)⊤.
The shrinkage intensity is ψ = 0.40.
(a) Write down the 1/N portfolio weights for N = 3. (b) Compute the LW portfolio: wLW = (1 − ψ)wMINU + ψw 1 /N. (c) Verify that wLW sums to 1. (d) Compute wLW for ψ ∈ 0 , 0. 25 , 0. 50 , 0. 75 , 1 .0. Tabulate the results and describe how the portfolio evolves as ψ increases. (e) For ψ = 0.40, compute the 1-norm and 2-norm of wLW. (f) Compare the 2-norm of wMINU, wLW, and w 1 /N. Which is largest? Interpret in terms of portfolio concentration.
NQ12.3 — Shrinkage Intensity and Convergence
Given Data
, F = ¯σ^2 I 2 , ¯σ^2 = 12 (0.04 + 0.02) = 0. 03.
(a) Compute VˆLW(ψ) for ψ ∈ 0 , 0. 25 , 0. 50 , 0. 75 , 1 .0. (b) For each ψ, compute the GMV weights:
wGMV(ψ) =
(Use the 2 × 2 inverse formula.) (c) Verify that as ψ → 1, the GMV weights converge to (0. 5 , 0 .5)⊤. (d) Verify that as ψ → 0, the GMV weights converge to the unconstrained GMV weights using Vˆ. (e) Plot (or tabulate) w 1 (ψ) as a function of ψ. Describe the shape of the curve.
NQ13.1 — Computing Norms and Feasibility
Given Data Consider the following portfolio weight vectors for N = 3 assets:
w(1)^ = (0. 60 , 0. 30 , 0 .10)⊤, w(2)^ = (0. 80 , 0. 10 , 0 .10)⊤,
w(3)^ = (0. 50 , 0. 50 , 0 .00)⊤, w(4)^ = (1. 20 , − 0. 10 , − 0 .10)⊤.
(a) Compute the 1-norm ∥w∥ 1 =
n |wn|^ for each portfolio. (b) Compute the 2-norm ∥w∥ 2 =
pP n w 2 n for each portfolio. (c) For a 1-norm constraint ∥w∥ 1 ≤ 1 .2, which portfolios are feasible? (d) For a 2-norm constraint ∥w∥ 2 ≤ 0 .70, which portfolios are feasible? (e) Which portfolio has the highest concentration (largest 2-norm)? Which is most diversified (smallest 2-norm)? (f) The 1/N portfolio has ∥w 1 /N ∥ 2 = 1/
N. Compute this for N = 3 and verify against w(1). (g) For portfolio w(4), identify the short positions. Does the 1-norm constraint ∥w∥ 1 ≤ 1 rule out short selling? Explain.
NQ13.2 — Unconstrained GMV and Norm-Constrained GMV (N = 2)
Given Data
(a) Compute Vˆ −^1 analytically. (b) Compute the unconstrained GMV weights: w∗ GMV = Vˆ −^112 /( 1 ⊤ 2 Vˆ −^112 ). (c) Compute the GMV portfolio variance σGMV^2 = w∗⊤ GMV Vˆ w GMV∗. (d) Compute ∥w∗ GMV∥ 1 and ∥w∗ GMV∥ 2. (e) For the 2-norm constraint ∥w∥ 2 ≤ 0 .60, is the unconstrained GMV feasible? (f) If the unconstrained GMV is infeasible, the constrained optimum lies on the boundary ∥w∥ 2 = 0.60. Parameterise w 1 = 0.60 cos θ, w 2 = 0.60 sin θ (ignor- ing the budget constraint for illustration). Compute the portfolio variance as a function of θ and find the minimising θ. (g) Compute the correlation ρ 12 between the two assets. How does high corre- lation affect the GMV weights?
(e) Summarise the four portfolios in a table:
Portfolio E[Rp] σp SRp ∥w∥ 2 1 /N GMV LW MV
(f) Which portfolio has the highest Sharpe ratio? Which is most concentrated (highest 2-norm)? Discuss the trade-off. (g) If monthly turnover for MV is 2.50 and for LW is 0.40, compute the net-of-TC Sharpe ratio for each at κ = 0.10%.
4 pt]
All questions are original and designed to complement the in-class tests for Lectures 1–4.