Statistics · Regression · Medium
A line through the origin
In a very large sample, y = 3 + x + noise, where x has mean 2 and standard deviation 1 and the noise has mean 0 and is independent of x. You regress y on x with no intercept, so the fitted line is forced through the origin. What slope do you get?
a fraction, an expression or a decimal to two significant figures · 5/8 · ln 2 · pi · inf
Answer and solution
Answer
11/5 ≈ 2.2
Solution
Without an intercept the slope is E[xy] / E[x²], so the constant it is not allowed to fit leaks into the slope.
E[x²] = var + mean² = 5. E[xy] = 3 × 2 + 5 = 11. Slope = 11 / 5 = 2.2, well above the true slope of 1.
Regression comes up in 11 firms' roundsHudson River Trading · Goldman Sachs · D. E. Shaw · +8
These 16 rounds ask this kind of problem live, with follow-ups. Every round on every track is in Premium.