OLS Coefficient Standard Errors
Role: Data Scientist
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Implement a Python function that fits ordinary least squares with an intercept and returns the standard error of every coefficient as a 1-D array. It tests building the design matrix, estimating the error variance with the right degrees of freedom, and reading uncertainty off the coefficient covariance matrix.