SchoolWhool
Quizzes and saved progress, freeSign in freeSign in
Machine Learning · Module 3Module material

Linear Regression and Gradient Descent interview questions

15 questions interviewers ask on this module’s topics, from first principles to the follow-ups. Each comes with a model answer.

Linear regression

  1. How is a simple linear regression line fitted, and what do its two numbers mean?●
  2. Why squared error and not the sum of residuals or absolute error?●
  3. What is R², and what is it not?●
  4. What does a coefficient mean in multiple regression, and why did weight's change from −7.80 to −6.85 when model year was added?●●
  5. How do you compare the importance of two features in a linear model?●●

Gradient descent

  1. What is gradient descent, and what does the learning rate do?●
  2. Batch, stochastic and mini-batch gradient descent: what is the difference?●●
  3. Does scikit-learn's LinearRegression use gradient descent?●●
  4. Why does feature scaling speed up gradient descent?●●

Collinearity and diagnostics

  1. What is multicollinearity, and what does it do to a model?●
  2. What is the variance inflation factor, and how do you use it?●●
  3. What is the dummy-variable trap?●
  4. What do you look for in a residual plot?●●
  5. Outlier, leverage, influence: what is the difference?●●
  6. When would you use a robust loss such as Huber, and when not?●●