Supervised & Unsupervised Learning
- Supervised learning — regression vs classification, loss functions, and the bias-variance tradeoff
- Unsupervised learning — clustering, dimensionality reduction, and anomaly detection
- Model selection — when to choose linear models vs tree-based models vs neural networks
- Regularization — L1 vs L2, dropout, and early stopping
Q1.Explain the bias-variance tradeoff. How do you handle underfitting vs overfitting?
Q2.Compare Random Forests with Gradient Boosted Trees. When would you choose one over the other?
Q3.What is the difference between generative and discriminative models? Give examples of each.
Neural Networks & Deep Learning
- Fundamentals — activation functions, backpropagation, gradient descent variants
- Architectures — CNNs for vision, RNNs/Transformers for sequences, autoencoders for representation learning
- Training challenges — vanishing/exploding gradients, batch normalization, learning rate schedules
- Practical considerations — transfer learning, data augmentation, hyperparameter tuning
Q4.Explain how backpropagation works. Why can gradients vanish or explode?
Q5.What is transfer learning? When and how should you apply it?
Feature Engineering & Model Evaluation
- Feature engineering — encoding categorical variables, handling missing data, feature scaling, creating interaction features
- Evaluation metrics — accuracy, precision, recall, F1, AUC-ROC, and when to use each
- Cross-validation — k-fold, stratified, time-series splits, and avoiding data leakage
- Experiment design — A/B testing, statistical significance, and production monitoring
Q6.When would you use precision vs recall vs F1 score? What about AUC-ROC?
Frequently Asked Questions
How much math do I need for ML interviews?
You need solid foundations in linear algebra (matrix operations, eigendecomposition), probability and statistics (Bayes' theorem, distributions, hypothesis testing), and calculus (partial derivatives, chain rule for backpropagation). You rarely need to derive algorithms from scratch, but you should understand why they work and their mathematical properties.
Should I focus on classical ML or deep learning for interviews?
Both. For data scientist roles at most companies, classical ML (linear/logistic regression, trees, SVMs) is more heavily tested. For ML engineer or research roles at AI-focused companies, deep learning knowledge is essential. The strongest candidates can discuss when to use a simple logistic regression vs a complex neural network and justify the choice.
How do I prepare for ML system design questions?
ML system design questions ask you to design end-to-end ML pipelines (recommendation system, search ranking, fraud detection). Practice by covering: problem framing (what to predict, what metric to optimize), data collection and feature engineering, model selection and training, serving infrastructure, and monitoring/iteration. Read engineering blogs from Google, Meta, and Netflix for real-world examples.
Don't freeze in your next interview
InterviewsUnlocked gives you real-time AI coaching during live interviews — role-tailored answers, follow-up cues, and confidence when you need it most.
Related Resources
Python Interview Questions & Answers for All Levels
Comprehensive Python interview prep covering core language features, OOP, data structures, concurrency, and real-world coding questions with expert answers.
Read moreSkills & TechnologiesSQL Interview Questions: From Basics to Advanced Queries
Master SQL interviews with questions covering joins, window functions, CTEs, query optimization, and real-world data analysis problems with expert solutions.
Read moreInterview QuestionsTop Data Scientist Interview Questions & Answers
Prepare for data science interviews with expert questions on machine learning, statistics, Python, deep learning, and A/B testing with detailed model answers.
Read moreInterview QuestionsTop Machine Learning Engineer Interview Questions & Answers
Prepare for ML engineer interviews with questions on model deployment, MLOps, feature engineering, model serving, and production ML systems with expert answers.
Read moreInterview TipsTechnical Interview Preparation: A 4-Week Plan
A structured 4-week technical interview preparation plan covering data structures, algorithms, system design, and mock interviews with daily schedules.
Read more