20 Google AI/ML Interview Questions

The 20 machine learning questions that keep coming up in Google AI/ML and Data Scientist interviews — answer 5 of them right here, with full explanations.

7 min read

Every AI/ML interview loop at a company like Google eventually reaches the same place: a whiteboard-free, thirty-minute stretch where someone asks you to explain what overfitting is, or what a p-value actually means, and then keeps asking why until you either land on the mechanism or run out of road.

The questions below come from the ML Fundamentals set in squizzu's question bank — the ones that keep resurfacing in Google AI/ML and Data Scientist interviews. None of them are exotic. That is precisely what makes them dangerous: they sound easy enough to skip while you prepare, and they get asked anyway.

Five of them are playable right here in this article. Pick an answer, see whether you were right, and read the full explanation. The remaining 15 are listed in full below.

Try 5 of them right now

No sign-up, no email — just answer. Each question gives you the explanation and an in-depth breakdown of why the other options are wrong, which is usually the part that matters in the follow-up.

Squizzu Logo
Machine Learning • Model Evaluation

Question 1 / 5

What is overfitting?

If you got fewer than four of those, you're in normal company. Precision vs. recall, the direction of the bias-variance trade-off, and the definition of a p-value are the three that trip up experienced candidates most often — and all three come up constantly.

The other 15 questions

These are the remaining questions in the set. Read them as a self-check: if you can't give a two-minute answer to each — definition, mechanism, trade-off, example — that's your revision list.

  1. What is supervised learning?Core ML concepts
  2. What is unsupervised learning?Core ML concepts
  3. What is cross-validation and why is it useful?Model validation
  4. What is gradient descent?Model training & optimization
  5. What is the difference between normalization and standardization?Data preprocessing
  6. What does it mean when two features are correlated?Feature engineering
  7. What is the difference between L1 and L2 regularization?Regularization
  8. What is Recall?Metrics
  9. What is a confusion matrix?Metrics
  10. What is the AUC-ROC curve used for?Metrics
  11. What is Bayes' Theorem?Statistics & probability
  12. What is entropy in decision trees?Tree-based models
  13. How do random forests improve over decision trees?Ensemble methods
  14. What is boosting?Ensemble methods
  15. What is A/B testing?Experimentation

The 5 answers, written out

If you'd rather read than click, here are the five you just played — definition first, then the mechanism that the follow-up question is usually aiming at.

What is overfitting?

A model overfits when it learns the noise and quirks of the training set on top of the real signal, so it scores well on data it has seen and poorly on anything new. You detect it as a widening gap between training and validation error, which is exactly why cross-validation is the standard check. The levers for fixing it are more data, a simpler model, regularization, and early stopping. Its mirror image is underfitting: a model too simple to capture the pattern, which performs badly on both sets.

What is Precision?

Precision is the share of true positives among everything the model predicted as positive — TP / (TP + FP). It answers "when the model says yes, how often is it right?", so it punishes false positives. Recall keeps the same numerator but changes the denominator to all actual positives, TP / (TP + FN), so it punishes false negatives instead. Which one you optimize is a product decision: spam filtering leans on precision because burying a real email is expensive, while cancer screening leans on recall because a missed case costs more than a false alarm.

What's the trade-off between bias and variance?

Bias is the error you get from a model too simple to represent the underlying relationship — it underfits. Variance is the error you get from a model flexible enough to fit the noise in this particular sample — it overfits. Lowering one typically raises the other, so the goal isn't zero of either but the point where total error on unseen data is smallest. A linear model on a curved relationship is the high-bias case; an unpruned decision tree is the high-variance one.

What is bagging?

Bagging — bootstrap aggregating — trains many copies of the same model on different bootstrap samples, each drawn with replacement so it contains roughly 63% unique rows, then averages the predictions or takes a majority vote. Because the models' errors are largely uncorrelated, averaging cancels them out and reduces variance. Every model trains independently and in parallel, which is precisely what separates bagging from boosting: no model in a bagged ensemble knows what the others got wrong. Random forests are bagging plus random feature selection at each split.

What is a p-value?

A p-value is the probability of observing results at least as extreme as the ones you got, assuming the null hypothesis is true. It is a statement about the data given a hypothesis, not about a hypothesis given the data — and that reversal is the single most common way this question goes wrong. A p-value of 0.03 does not mean there's a 97% chance your effect is real; it means data this extreme would appear 3% of the time if there were no effect at all. Below your significance level you reject the null, and at or above it you fail to reject — which is not the same thing as proving there is no effect.

What a Google Data Scientist interview actually tests

The 20 questions above have a shape worth naming. There's no transformer architecture question in the set, no "design a recommendation system," no distributed training. What's there is fundamentals: definitions you can state precisely, metrics you can choose between, and statistics you can apply to a live experiment.

That tracks with how AI/ML and Data Scientist loops are generally structured. Coding and system design get their own dedicated rounds; the fundamentals conversation is checking something narrower — whether you understand the standard tools well enough to pick the right one and defend the choice when someone keeps asking why.

Two clusters carry more weight than their share of the list suggests:

  • Evaluation — precision, recall, confusion matrix, AUC-ROC, cross-validation. That's five of the twenty. If you can only prepare one area, make it the ability to say which metric you'd optimize for a specific product, and what it costs you.
  • Statistics and experimentation — p-values, Bayes' theorem, A/B testing. At a company that runs experiments continuously, answering "I'd A/B test it" without being able to define a p-value does not survive the follow-up.

How to answer these in the room

The gap between a passing answer and a strong one isn't knowledge, it's structure. Almost every question above can be answered in four beats:

  1. Definition. One clean sentence. "Overfitting is when a model learns the noise in the training data, not just the signal."
  2. Mechanism. Why it happens. "It happens when the model has enough capacity to memorize the training set relative to how much data there is."
  3. Trade-off or diagnostic. How you'd detect or manage it. "You see it as a widening gap between training and validation error — which is why cross-validation is the check, and regularization, more data, or a simpler model are the levers."
  4. Concrete example. From your own work if possible. "On a churn model I trained, an unpruned tree hit 0.99 AUC on train and 0.71 on validation."

Interviewers are not checking whether you memorized a definition. They're checking whether you've ever had to make the trade-off in practice.

The four traps that catch most candidates

  • Precision and recall, reversed. Precision is over predicted positives; recall is over actual positives. Under pressure, people swap the denominators. Anchor it to a product decision — spam filtering cares about precision, cancer screening cares about recall — and the definitions stop sliding.
  • Bias and variance, backwards. High bias → underfitting. High variance → overfitting. The complex model is the high-variance one. This gets reversed constantly, and it's an instant credibility hit because everything downstream depends on it.
  • Bagging described as boosting. If your answer mentions "learning from the mistakes of the previous model," you have described boosting, not bagging. Bagging is parallel and independent; boosting is sequential and error-focused.
  • P-value as "probability my hypothesis is true." It's the probability of the data being this extreme given the null hypothesis, not the probability of the hypothesis given the data. Getting this wrong in a Data Scientist interview at a company that runs thousands of experiments a year is expensive.

What to do next

Reading questions is not the same as answering them. The five above gave you the feedback loop — you committed to an answer before you saw the explanation, which is the only way to find out what you actually know versus what merely looks familiar.

Answer the remaining 15 in quiz mode on squizzu — same format, with an explanation and an in-depth breakdown on every question, plus the rest of the ML Fundamentals set to keep going.

Still working on the application that gets you into the loop in the first place? How to write an AI/ML resume in 2026 covers what to name explicitly so a screening model can match it.

Frequently asked questions

What kind of machine learning questions does Google ask in Data Scientist interviews?

Far more fundamentals than exotic algorithms. The recurring themes are supervised vs. unsupervised learning, overfitting and the bias-variance trade-off, cross-validation, evaluation metrics (precision, recall, confusion matrix, AUC-ROC), regularization, ensemble methods (bagging, boosting, random forests), and applied statistics such as p-values, Bayes' theorem, and A/B testing. The difficulty is not in the topic — it's that a two-sentence textbook answer isn't enough.

What is the difference between precision and recall?

Precision is the share of true positives among everything the model predicted as positive — it answers "when the model says yes, how often is it right?" Recall is the share of true positives among all actual positives — it answers "of everything that really was positive, how much did the model catch?" Precision punishes false positives; recall punishes false negatives. Which one you optimize depends on which error is more expensive in your product.

What is the bias-variance trade-off in one sentence?

High bias means the model is too simple and misses real patterns, which causes underfitting; high variance means the model is too sensitive to the training data and learns noise, which causes overfitting. Lowering one typically raises the other, so the goal is the balance point that minimizes total error on unseen data.

Does a p-value tell you the probability that your hypothesis is true?

No — and this is the single most common mistake in Data Scientist interviews. A p-value is the probability of observing results at least as extreme as the ones you got, assuming the null hypothesis is true. It says something about the data given a hypothesis, not about a hypothesis given the data. A p-value of 0.03 does not mean there is a 97% chance your effect is real.

What is the difference between bagging and boosting?

Bagging trains many models in parallel on bootstrapped subsets of the data and averages them, which reduces variance. Boosting trains models sequentially, each one focusing on the examples the previous ones got wrong, which mainly reduces bias. Random forests are the classic bagging example; AdaBoost, gradient boosting, and XGBoost are the boosting family.

We use cookies

Some cookies are needed to run this site. With your consent we also measure how it is used, so that we can improve it.

Cookie policy

Choose what we may measure. You can change this at any time.

Strictly necessary

Essential for the proper functioning of the website. These cannot be disabled.

Performance and analytics

Help us understand how Squizzu is used, diagnose technical issues and improve the service.

20 Google AI/ML Interview Questions | Squizzu