Fit a Multiple Linear Regression With the statsmodels Formula API
Role: Data Scientist
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Fit a multiple linear regression on three numeric predictors with the statsmodels formula API and return the fitted coefficients. It tests how the formula adds and names the intercept, how the parameter index is ordered, and how this differs from building the design matrix for sm.OLS by hand.