Preparing for ML Interviews
What ML engineer and data scientist interviews test: fundamentals, coding, ML design, project deep dives and behavioural rounds.
Intermediate · about 15 hours · difficulty 3/5
Learn first: Building an ML Portfolio, ML System Design
ML hiring loops vary by company, but the rounds usually come from a common menu. Knowing it lets you prepare deliberately instead of hoping.
Typical rounds
- ML fundamentals: bias-variance, regularization, metrics, how gradient boosting or attention works, handling imbalance and leakage. Expect "why" and "what if" follow-ups.
- Coding: data structures and algorithms in Python (often LeetCode easy to medium), plus ML coding such as implementing k-means, logistic regression with gradient descent, or a training loop from scratch.
- Data manipulation: pandas and SQL questions on realistic tables, common for data scientist roles.
- Statistics and probability: A/B test design, p-values, conditional probability puzzles.
- ML system design for mid-level and above.
- Project deep dive: you will be asked to defend decisions in your own projects in detail.
- Behavioural: collaboration, handling ambiguity, a time a model failed.
Preparing
- Build a one-page cheat sheet per core topic and explain each aloud.
- Implement 8 to 10 classic algorithms from scratch in NumPy.
- Prepare STAR stories for your top projects, including numbers and what you would do differently.
- Do timed mock interviews with peers; being clear under time pressure is a skill.
- Research each company's products and guess how they use ML.
Roles differ
Data scientist loops lean on statistics, SQL and product sense; ML engineer loops lean on coding, systems and deployment; research roles emphasize papers and maths.
Good enough to move on when you can explain any topic in this roadmap in two minutes, code classic algorithms from scratch, and tell a crisp story about each portfolio project.
Key concepts
- ML fundamentals questions
- Coding and algorithms
- Algorithms from scratch in NumPy
- SQL and pandas rounds
- Statistics and A/B testing
- Project deep dives
- Behavioural STAR stories
- Mock interviews
Mini project
Over two weeks, implement linear regression, logistic regression, k-means, kNN, a decision tree and a two-layer neural network from scratch in NumPy with tests, and complete four timed mock interviews covering fundamentals, coding and design.
Check yourself
Explain, in under two minutes and without jargon, how gradient boosting builds its ensemble and why it can overfit.
Free resources
- Introduction to Machine Learning Interviews Book (Chip Huyen)
- Google Machine Learning Crash Course (Google)