Fit OLS with an intercept and return only the slope coefficients
Role: Data Scientist
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Implement a function that fits ordinary least squares with an intercept on every column of a feature matrix and returns only the slope coefficients in column order. It tests building the design matrix, keeping track of the intercept's coefficient, and explaining why the slopes depend on fitting the intercept.