σμimplied vol · KKmax(S−K,0)udβρᵢⱼfat tailsPnL · drawdownyield · TdSₜ = μSₜ dt + σSₜ dWₜC = S·N(d₁) − K·e⁻ʳᵀ·N(d₂)σₚ² = wᵀΣwd₁ = [ln(S/K) + (r + σ²⁄2)T] ⁄ σ√T∂V/∂t + ½σ²S²·∂²V/∂S² + rS·∂V/∂S − rV = 0Sharpe = (Rₚ − R_f) ⁄ σₚVaR₉₉ = μ − 2.33σρ = Cov(X,Y) ⁄ σₓσᵧE[Rₚ] = Σ wᵢ·E[Rᵢ]φ(x) = e^(−x²/2) ⁄ √2πE[Rᵢ] = R_f + βᵢ(E[Rₘ] − R_f)dXₜ = θ(μ − Xₜ)dt + σ dWₜσ²ₜ = ω + α·ε²ₜ₋₁ + β·σ²ₜ₋₁C − P = S − K·e⁻ʳᵀΔ = ∂V/∂S Γ = ∂²V/∂S²p = (e^(rΔt) − d) ⁄ (u − d)rₜ = ln(Pₜ ⁄ Pₜ₋₁)E[Xₜ₊₁ | ℱₜ] = Xₜf* = (bp − q) ⁄ bz = (x − μ) ⁄ σP(N=k) = λᵏe^(−λ) ⁄ k!Θ = −∂V/∂Tν = S·φ(d₁)·√Tmin wᵀΣw s.t. wᵀμ = μ*∫Σ∂∞λ
uantCraft AcademyRoadmapsSkills
Ctrl K
AO
+1.2k Learners
LoginJoin ↗
RoadmapsSkills
AO
+1.2k Learners
Login
  • English
  • Français
  • Español
  • العربية
  • Português
  • Deutsch
  • 日本語
  • 中文
σμimplied vol · KKmax(S−K,0)udβρᵢⱼfat tailsPnL · drawdownyield · TdSₜ = μSₜ dt + σSₜ dWₜC = S·N(d₁) − K·e⁻ʳᵀ·N(d₂)σₚ² = wᵀΣwd₁ = [ln(S/K) + (r + σ²⁄2)T] ⁄ σ√T∂V/∂t + ½σ²S²·∂²V/∂S² + rS·∂V/∂S − rV = 0Sharpe = (Rₚ − R_f) ⁄ σₚVaR₉₉ = μ − 2.33σρ = Cov(X,Y) ⁄ σₓσᵧE[Rₚ] = Σ wᵢ·E[Rᵢ]φ(x) = e^(−x²/2) ⁄ √2πE[Rᵢ] = R_f + βᵢ(E[Rₘ] − R_f)dXₜ = θ(μ − Xₜ)dt + σ dWₜσ²ₜ = ω + α·ε²ₜ₋₁ + β·σ²ₜ₋₁C − P = S − K·e⁻ʳᵀΔ = ∂V/∂S Γ = ∂²V/∂S²p = (e^(rΔt) − d) ⁄ (u − d)rₜ = ln(Pₜ ⁄ Pₜ₋₁)E[Xₜ₊₁ | ℱₜ] = Xₜf* = (bp − q) ⁄ bz = (x − μ) ⁄ σP(N=k) = λᵏe^(−λ) ⁄ k!Θ = −∂V/∂Tν = S·φ(d₁)·√Tmin wᵀΣw s.t. wᵀμ = μ*∫Σ∂∞λ
uantCraft AcademyRoadmapsSkills
Ctrl K
AO
+1.2k Learners
LoginJoin ↗
RoadmapsSkills
AO
+1.2k Learners
Login
  • English
  • Français
  • Español
  • العربية
  • Português
  • Deutsch
  • 日本語
  • 中文
Statistics skill›Module 3 · Models and regression›Topic 3.3·~50 minIntermediate

Heteroskedasticity and robust errors

Skill positionModule 3 of 4 · Topic 3 of 4
3.3 Heteroskedasticity and robust errors
—Lab score— / 100Total XP—Streak—

When the noise is not the same everywhere

Ordinary least squares fits yi=β0+β1xi+εiy_i=\beta_0+\beta_1x_i+\varepsilon_iyi​=β0​+β1​xi​+εi​ and its textbook standard errors assume homoskedasticity: the error variance σ2\sigma^2σ2 is the same for every observation. In finance that is rarely true. Volatility clusters (calm periods, then turbulence), and the noise around a relationship often grows with the size of the variable. When the spread of the errors changes, the data are heteroskedastic.

Var⁡^White(β^)=(XTX)−1(∑iε^i2 xixiT)(XTX)−1\widehat{\operatorname{Var}}_{\text{White}}(\hat\beta)=(X^{T}X)^{-1}\Big(\sum_i\hat\varepsilon_i^{2}\,\mathbf{x}_i\mathbf{x}_i^{T}\Big)(X^{T}X)^{-1}VarWhite​(β^​)=(XTX)−1(i∑​ε^i2​xi​xiT​)(XTX)−1(1)

The consequences are specific. The coefficient estimates β^\hat\betaβ^​ stay unbiased and consistent, so the fitted line is not wrong. But the usual standard errors, and so the ttt-statistics, confidence intervals and ppp-values built on them, can be too small or too large, and conclusions drawn from them mislead. Two standard remedies: heteroskedasticity-robust (White) standard errors, which replace the constant σ2\sigma^2σ2 by each observation's squared residual, and weighted least squares, which gives noisier observations less weight, wi∝1/σi2w_i\propto1/\sigma_i^2wi​∝1/σi2​, when you know how the variance behaves.

Same coefficient, different evidenceA regression gives β^=0.25\hat\beta=0.25β^​=0.25 with a classical standard error of 0.100.100.10, so t=2.5t=2.5t=2.5, apparently significant. With heteroskedasticity-robust standard errors the estimate is the same but the standard error is 0.150.150.15, so t=0.25/0.15≈1.67t=0.25/0.15\approx1.67t=0.25/0.15≈1.67, no longer significant at 5%. The 95% interval changes from 0.25±0.1960.25\pm0.1960.25±0.196 to 0.25±1.96⋅0.15=0.25±0.2940.25\pm1.96\cdot0.15=0.25\pm0.2940.25±1.96⋅0.15=0.25±0.294, which now includes zero. For weights, if the error variance grows like x2x^2x2, the weight of an observation with x=2x=2x=2 is 1/x2=0.251/x^2=0.251/x2=0.25.
  • Heteroskedasticity: the error variance changes across observations.
  • Effect: coefficients stay unbiased, standard errors and tests become unreliable.
  • Fixes: robust (White) standard errors, or weighted least squares with wi∝1/σi2w_i\propto1/\sigma_i^2wi​∝1/σi2​.
Look at the residuals firstPlot the residuals against the fitted values and against time. A funnel shape means the spread grows with the level, and bursts of large residuals followed by calm mean volatility clusters. The Breusch-Pagan test turns this into a formal ppp-value. Since robust standard errors cost almost nothing in a large sample, many practitioners report them by default for financial data.

Lab · what's graded

  • What heteroskedasticity means15 pts
  • A robust t-statistic15 pts
  • What it does to a regression15 pts
  • Diagnose and repair15 pts
  • A least squares weight10 pts
  • A robust interval15 pts
  • Return regressions need robust errors15 pts
0/ 7 answered
Tasks
1Choice15 ptsNot answered

What does heteroskedasticity mean in a regression?

2Numeric answer15 ptsNot answered

A coefficient is 0.25 with a classical standard error of 0.10 and a robust standard error of 0.15. What is the t-statistic using the robust standard error? Give it to three decimals.

t=t =t=accepted: ± 0.01
3Choice15 ptsNot answered

Select every consequence of heteroskedasticity for OLS.

4Match15 ptsNot answered

Match each tool to its purpose.

Pick the partner of each item on the left.

Residuals versus fitted plot
Breusch-Pagan test
White (robust) standard errors
Weighted least squares
5Numeric answer10 ptsNot answered

The error variance is proportional to x squared. In weighted least squares, what weight does an observation with x = 2 get, using weight = 1/x^2?

w=w =w=accepted: ± 0.001
6Numeric answer15 ptsNot answered

With a robust standard error of 0.15, what is the half-width of the 95% confidence interval for the coefficient, using 1.96? Give it to three decimals.

h=h =h=accepted: ± 0.002
7Explain in words15 ptsNot answered

In two sentences, say why standard errors in return regressions should usually be robust to heteroskedasticity.

Math modeKeyboard or LaTeX inputTask 1 of 7 · Ctrl ⏎ to check

Log in to run your code.

Every lecture is free to read. Create an account or log in to run code, run tests and submit this lab.

  • In-browser IDE with a bash terminal — nothing to install
  • Instant grading, XP and your place on the skill
Create an accountLog in
OR
Continue with GitHub