Statistics · Regression · Hard
Two desks pooled
Data from two desks, the same number of rows from each, are pooled in one very large sample. Within each desk x has variance 1 and the least-squares slope of y on x is 1. The second desk's mean of x is 4 higher than the first desk's, and its mean of y is 2 lower. You regress y on x over the pooled sample, with a single intercept. What slope do you get?
Answer and solution
Answer
-1/5 ≈ −0.2
Solution
A pooled slope mixes the slope within groups with the slope between group means, and the two can have opposite signs.
var(x) = 1 within + 2² between = 5. cov(x, y) = 1 within + (2)(−1) between = −1. Slope = −1 / 5 = −0.2, although the slope within each desk is +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.