Fit OLS regression through the origin and return the slope coefficients
Role: Data Scientist
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Implement ordinary least squares regression through the origin, fitting a response on three predictors with no intercept and returning the slope vector. It tests the normal equations without a ones column, why the slopes shift when the intercept is dropped, and why R-squared can mislead for such a model.