Finance-Theory · Unit 16 · Video 3 · Interactive Practice
Estimating Means and Covariances: How Much History?
IKey Formulas
Formula
Name
What it estimates
μ^i=T1t=1∑TRit
Sample mean
Stock i's expected return, from T periods of history
σ^ij=T1t=1∑T(Rit−μ^i)(Rjt−μ^j)
Sample covariance
The average cross product: positive when the two returns sit on the same side of their means
σ^i=σ^ii
Sample standard deviation
The covariance of a stock with itself, square-rooted
ρ^ij=σ^iσ^jσ^ij
Sample correlation
The covariance rescaled to lie between −1 and 1
Key Insight: The hats mark estimates of parameters we never observe. You choose the weights ωi; the data supply the μ^i and σ^ij they multiply. Portfolio theory assumes those expected returns and covariances are stable over time: it forecasts nothing and does not try to beat the market.
IIThe Covariance Averages Cross Products
Each month's cross product is positive when both stocks sit on the same side of their means; σ^GH averages them.
IIIHow Long a Sample?
Longer samples shrink estimation error but build in non-stationarity; the faster parameters drift, the shorter the history worth using. The curves below are an illustrative picture of that trade-off, not a fitted model: only their shapes carry meaning.
IVSame Name, Different Company
A long return series can keep one name while the company underneath it changes.
VQuiz Questions
Problem 1 · A Sample Covariance
Given: Four months of illustrative returns, in percent per month: Garnet 3, −1, 4, 2 and Hollis 6, 0, 2, 4. Find the sample covariance σ^GH (dividing by T).
✅ Correct! The cross products 3, 9, −2, 0 sum to 10, and their average over T=4 months is 2.5 (in %2).
❌ The means are missing.8.5 is the average of RGtRHt itself. The covariance multiplies deviations from the means, μ^G=2 and μ^H=3.
❌ Average, don't just add.10 is the sum of the four cross products; the estimator divides it by T=4.
❌ Check the sign of month 3. Garnet is 2 above its mean while Hollis is 1 below its own: opposite sides, so that cross product is −2, not +2.
❌ Not quite. Find both means, multiply the two deviations month by month, then average.
Show solution
Means:μ^G=41(3−1+4+2)=2 and μ^H=41(6+0+2+4)=3, in percent per month.
Cross products:1⋅3=3, (−3)(−3)=9, 2⋅(−1)=−2, 0⋅1=0. Months 1 and 2 are same-side (positive), month 3 is opposite-side (negative), and in month 4 Garnet sits exactly at its mean.
σ^GH=41(3+9−2+0)=410=2.5(%2)
Problem 2 · Positive Returns, Negative Covariance
Given: Four months of illustrative returns, in percent per month: Garnet 3, 1, 4, 0 and Hollis 2, 6, 1, 7. Neither stock ever has a negative return. Find the sample covariance σ^GH.
✅ Correct! Every month one stock is above its mean while the other is below its own, so every cross product is negative.
❌ Positive returns are not "above the mean".+4 is what you get by averaging RGtRHt without subtracting the means (or by dropping the signs of the cross products). The sign of a cross product depends on which side of its own mean each return sits: μ^G=2, μ^H=4.
❌ Average, don't just add.−16 is the sum of the four cross products; divide by T=4.
❌ Not quite. Subtract each stock's mean, multiply the deviations month by month, then average over the four months.
Show solution
Means:μ^G=41(3+1+4+0)=2 and μ^H=41(2+6+1+7)=4.
Deviations: Garnet 1, −1, 2, −2; Hollis −2, 2, −3, 3. In every month the two deviations have opposite signs.
Both stocks earned non-negative returns every month, yet they moved in opposite directions relative to their averages. Covariance measures co-movement around the means, not whether returns are positive.
Problem 3 · From Data to Correlation
Given: Four months of illustrative returns, in percent per month: Garnet 4, 0, 3, 1 and Hollis 4, 2, 5, 1. Find the sample covariance and the sample correlation, using T1 throughout.
The sample covariance σ^GH
The sample correlation ρ^GH
✅ Correct!σ^GH=2 and both standard deviations are 2.5, so ρ^GH=2/2.5=0.8.
❌ That is the sum, not the average. The four cross products are 2 each; divide their total 8 by T=4.
❌ That is a variance.2.5 is σ^G2 (and also σ^H2): the average squared deviation of one stock, not the average cross product of the two.
❌ That is the correlation, not the covariance.0.8 is σ^GH divided by σ^Gσ^H; the covariance itself is the plain average of the cross products, in %2.
❌ Not quite. Subtract the means (2 and 3), multiply the deviations month by month, and average.
❌ Divide by standard deviations, not variances.2/(2.5×2.5)=0.32 uses σ^G2σ^H2; the correlation divides by σ^Gσ^H=2.52.5=2.5.
❌ A correlation cannot exceed 1.2/2.5≈1.26 divides by only one standard deviation; the denominator is the product σ^Gσ^H.
❌ Not quite. Compute each standard deviation as the square root of that stock's average squared deviation, then divide the covariance by their product.
Show solution
Means:μ^G=41(4+0+3+1)=2 and μ^H=41(4+2+5+1)=3.
Given: An analyst estimates Hollis's expected return from 20 years (240 months) of history. Illustratively, the company changed 8 years ago: its returns averaged 0.5% per month over the first 12 years and 1.5% per month over the last 8, and 1.5% per month is the expected return of the company as it is today.
The 20-year sample mean μ^H
Estimating from only the last 8 years instead
✅ Correct! The long sample mixes two companies and misses today's 1.5% by 0.6 percentage points; the short one trades that bias for estimation error.
❌ Weight each period by its length.21(0.5+1.5)=1.0 treats the 12-year and 8-year stretches as equally long.
❌ Check which rate goes with which stretch.1.1 gives the 1.5% rate 12 years; it applies only to the last 8.
❌ That is the target, not the estimate. The sample mean averages all 240 months, including the 144 months of the old company.
❌ Not quite. The sample mean is the sum of all 240 monthly returns divided by 240.
❌ Backwards. Fewer observations make the estimate noisier, not exact; only T→∞ with nothing changing would make it exact.
❌ No estimate here is a forecast. Either window estimates a parameter assumed stable over the sample; neither predicts what the market does next month.
❌ Not quite. The last 8 years cover only today's company, so this bias disappears; what changes is how many months are averaged.
Show solution
20-year mean. The first 12 years are 144 months at an average of 0.5% and the last 8 years are 96 months at 1.5%, so the sum of all returns is 144(0.5)+96(1.5)=72+144=216:
μ^H=240216=0.9% per month
Today's company has an expected return of 1.5%, so the long sample understates it by 0.6 percentage points: a non-stationarity bias, because the parameter being averaged was not the same throughout the sample.
8-year window. Every month in it belongs to today's company, so this bias is gone, but the estimate rests on 96 months instead of 240 and so carries more estimation error. Choosing between them means taking a stand on how much the parameters drift; there is no single right length.