← Back to Millennium Management Interview Questions

Question

A courier charges a $20 dispatch fee plus $3 per kilometre for a delivery. An analyst observes four jobs with distances 1, 2, 3 and 4 km, and their exact corresponding charges, with no noise. The analyst wants to use least squares to fit a line predicting the charge in dollars from distance in kilometres.

Find the fitted intercept and slope when both are free. Then calculate the least-squares slope when the analyst forces the intercept to zero, and explain which deliveries that constrained model will underprice or overprice. Why is forcing the line through the origin more than a cosmetic change?

Hint 1

Write the four charges using \(y_i=20+3x_i\). The unrestricted line can fit all four observations perfectly.

For a through-origin fit \(\widehat y_i=bx_i\), minimize \(\sum_i(y_i-bx_i)^2\). The normal equation gives \(b=\sum_i x_iy_i/\sum_i x_i^2\).

Check your answer

Join our Newsletter and Receive the Latest Updates!

Main Links

Trade Courses Assessments Interview Prep Contact Us

Social Media

Facebook Instagram YouTube

Legal

Terms and Conditions Privacy Policy Privacy settings

Talent Acquisition

Looking to hire exceptional quant talent?
See how we can help.

© 2026 EverythingQuant. All Rights Reserved.