
Top 10 AI/Machine Learning Interview Questions
Getting hired for a machine learning role isn’t just about knowing definitions—it’s about showing you can actually reason through problems. Below are ten questions that show up again and again in interviews, along with what’s really being tested.
Supervised vs. Unsupervised Learning
This one’s almost guaranteed to come up. Supervised learning works with labeled data—you’re predicting a known outcome, like whether an email is spam. Unsupervised learning deals with unlabeled data, hunting for structure through clustering or dimensionality reduction. Interviewers aren’t just checking if you know the textbook definition; they want to hear you’ve actually used both.
The Bias-Variance Tradeoff
Bias is what happens when your model is too simple and misses the underlying patterns—underfitting. Variance is the opposite problem: the model clings so tightly to the training data that it falls apart on anything new. Good candidates talk about how they’ve balanced the two in practice, not just recite the theory.
Overfitting—and How to Stop It
A model that aces training data but flops on real-world data has overfit. The usual fixes: cross-validation, L1/L2 regularization, dropout for neural nets, pruning for trees, or simply feeding it more data. Interviewers like hearing which method you reached for and why.
How Random Forests Work
A random forest is really just a crowd of decision trees, each trained on a different slice of the data, voting (or averaging) on the final answer. The randomness is the point—it keeps any single tree’s mistakes from dragging down the whole model.
What is Gradient Descent?
Whether you’re using plain SGD, mini-batches, or Adam, the goal is the same—get to a good solution without wasting time or compute.
Precision, Recall, and F1
Precision tells you how many of your “positive” predictions were actually right. Recall tells you how many real positives you actually caught. F1 blends the two. This matters most when classes are imbalanced—accuracy alone can be misleading, say, in fraud detection where positives are rare.
Bagging vs. Boosting
Bagging trains models in parallel on random slices of data and averages them out—random forests are the classic example. Boosting builds models one after another, each one cleaning up the last one’s mistakes. Think XGBoost or AdaBoost.
How Neural Networks Actually Learn
Forward propagation makes a prediction; backpropagation figures out how wrong it was and adjusts the weights accordingly.
The Importance of Regularisation
Regularisation adds a penalty to the loss function to penalise overly complex models. L1 pushes some weights to zero (sparsity), while L2 just shrinks everything more gently. Both are tools against overfitting.
Handling Missing or Imbalanced Data
Missing values? Impute them, drop them, or predict them. Imbalanced classes? Try oversampling (SMOTE), undersampling, weighting classes differently, or leaning on metrics like AUC-ROC instead of plain accuracy.
Final Thoughts
None of these questions are really about memorization. They’re about whether you can explain a concept clearly, back it up with something you’ve actually built, and talk honestly about the tradeoffs you made along the way. That’s what separates a good answer from a forgettable one.