InterviewStack.io LogoInterviewStack.io

Classical Machine Learning Algorithms Questions

Foundational non-deep-learning models and when to reach for each. Covers linear and logistic regression, decision trees and ensemble methods (random forests, gradient boosting), support vector machines, k-nearest neighbors, and clustering, including their assumptions, strengths, and failure modes. Focuses on algorithm selection and the numerical and implementation considerations behind these workhorse models.

MediumTechnical
26 practiced

Derive the normal-equation closed-form solution for OLS linear regression. What's its computational and memory complexity, when does it become numerically unstable, and when would you prefer gradient descent or a regularized method instead in production?

HardTechnical
28 practiced

Compare bagging, boosting, and stacking from a production standpoint: expected accuracy gains, training and inference complexity, interpretability, and operational risk. When is the extra overhead of an ensemble actually worth it versus a single model?

MediumTechnical
22 practiced

After adding a few correlated features to a linear model, the coefficients become unstable, and some even flip sign. What's going on, how do you confirm it (VIF, condition number), and what are your options to fix it?

EasyTechnical
42 practiced

Walk through the key hyperparameters of a decision tree. For each, how does it trade off bias and variance, and what's a reasonable starting point in production?

EasyTechnical
23 practiced

Compare L1 (Lasso) and L2 (Ridge) regularization for linear models: the geometric intuition, the effect on the coefficients (sparsity vs shrinkage), how each handles correlated features, and when ElasticNet is a good compromise.

Unlock Full Question Bank

Get access to all Classical Machine Learning Algorithms interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.