Bain & Company interview question

How would you train a linear regression model?