← Back to Hudson River Trading Interview Questions

Question

A hotel analyst receives four equally weighted observations, each a pair (room price in dollars, guest rating out of 5). The budget hotels have ($80, 4) and ($100, 5); the luxury hotels have ($200, 2) and ($220, 3). Management notices that higher prices accompany higher ratings within either category, but a scatterplot pooling all four hotels slopes downwards.

Calculate the pooled ordinary-least-squares slope of rating on price, and the common slope when the regression includes a separate intercept for budget and luxury hotels. Use a covariance decomposition to account for the apparent reversal. Would either slope alone establish that changing a room's price changes guest satisfaction?

Hint 1

Compute deviations from the overall mean price and mean rating for the pooled slope. For the category-adjusted slope, subtract each category’s means first.

Use \(\operatorname{Cov}(X,Y)=\mathbb{E}[\operatorname{Cov}(X,Y\mid G)]+\operatorname{Cov}(\mathbb{E}[X\mid G],\mathbb{E}[Y\mid G])\) to separate within-category and between-category contributions.

Check your answer

© 2026 EverythingQuant. All Rights Reserved.