Google data scientist interview questions: statistics, experiments and code

Google data scientist interview questions tend to lean hard on statistics and probability, then add product analytics cases, a coding or SQL exercise, and behavioral questions about Googleyness and leadership. How much machine learning you face depends on the team: product analytics roles go deeper on experiments and metrics, research and modeling roles on methods. Prepare to explain the reasoning behind every number, because interviewers probe the assumptions more than the final answer.

By Published 6 min read

What Google looks for in a data scientist

Data science at Google spans very different jobs. Some data scientists sit inside product teams and spend their days on experiment design, metric definitions and launch decisions. Others build forecasting or causal models, or work closer to research. Google has also long used other titles for similar work, such as quantitative analyst, and job posts often add a focus area to the title. Read the posting carefully: it tells you whether to prepare for an experimentation-heavy loop or a methods-heavy one.

Across those jobs, the same qualities come up in candidate accounts. Interviewers want rigor without rigidity: a person who knows exactly what a test can and cannot prove, and who can still give a product team a clear recommendation by Friday.

  • Statistical depth. Not formulas from memory, but knowing when an assumption breaks and what to do about it.
  • Product judgment. Turning a vague question such as "is this feature good?" into a metric and a test.
  • Clean code for data. SQL and Python or R that a colleague could read and trust.
  • Communication. Explaining uncertainty to people who want a yes or no.
  • Googleyness. Humility about your own analysis, collaboration and comfort with ambiguity.

How the Google data science loop tends to run

Details vary by team, level and region. Many candidates describe a recruiter conversation, then one or more technical screens that mix statistics, probability and a short coding or SQL problem. The later set of interviews is usually spread across several conversations, each focused on one area: statistics and probability, a product or analytics case, coding, sometimes machine learning or modeling, and a behavioral round. As with other Google roles, interviewers have long been reported to write detailed notes that a separate group reviews before a decision, so your reasoning needs to be spoken, not implied.

Coding for data roles usually tests data manipulation rather than the algorithm puzzles in the Google software engineer guide, though some candidates report simple algorithmic problems in Python. Ask your recruiter which languages you may use and whether the coding round is SQL, general programming or both.

30 Google data scientist interview questions

We wrote these ourselves, around the areas above and Google's own products. They are practice prompts in common formats, not real questions from any loop.

Statistics and probability

Google data scientist statistics and probability questions
QuestionWhat it testsWhat a strong answer shows
You flip a fair coin until you get two heads in a row. What is the expected number of flips?Probability with statesSets up states and solves the equations, then sanity-checks the answer (six).
Explain a confidence interval to a product manager without using the word "probability" loosely.Statistical communicationCorrect meaning in plain words, and what the interval says about the decision.
A test of a Search change gives a p-value of 0.04 on one of twenty metrics. What do you conclude?Multiple comparisonsNames the false-positive risk, suggests a primary metric chosen in advance and a correction or replication.
How would you estimate the average watch time of a YouTube video when the data is heavily skewed?Robust estimationMedian or trimmed mean, log transform, bootstrapped intervals and why the mean alone misleads.
When is a t-test the wrong tool for an experiment?AssumptionsDependence between units, ratio metrics, heavy tails, and the alternatives such as the delta method or bootstrap.
A rare disease test is 99 percent accurate. A user tests positive. How worried should they be?Bayes' ruleBase rate matters most; works the numbers with an assumed prevalence.
Explain statistical power and how you would raise it without running the test longer.Experiment designVariance reduction with pre-period data, better metrics, and larger effect sizes from bolder changes.
Two estimators for the same quantity disagree. How do you choose?Bias and varianceCompares bias, variance and robustness, and checks with simulation if possible.
Google data scientist statistics and probability questions. Scroll sideways on a small screen.

Product analytics and experimentation

Google data scientist product analytics questions
QuestionWhat it testsWhat a strong answer shows
How would you measure whether Google Maps directions got better after a ranking change?Metric designTrip completion, rerouting, user corrections and arrival accuracy, with a clear primary metric.
Design an experiment to test a faster-loading Search results page.Experiment designRandomization unit, metrics such as searches per user and abandonment, duration and novelty concerns.
YouTube watch time rose but likes fell after a change. How do you investigate?Conflicting metricsSegments, whether the change shifted content mix, and which metric reflects user value better.
You cannot randomize because a feature launched everywhere at once. How do you measure impact?Causal inferenceDifference-in-differences, synthetic control or regression discontinuity, and the assumptions each needs.
How would you decide the sample size for a test on Play Store app ratings?Power analysisBaseline rate, minimum effect worth detecting, variance and the trade-off with test length.
A product lead wants to stop a test early because results look great. What do you say?PeekingExplains inflated false positives and offers sequential testing or a planned interim look.
How would you build a metric for 'helpfulness' of an AI answer in Search?Metric constructionCombines human ratings with behavioral signals and checks that they agree.
Google data scientist product analytics questions. Scroll sideways on a small screen.

SQL and coding

Google data scientist SQL and coding questions
QuestionWhat it testsWhat a strong answer shows
Write a query for seven-day retention by signup week.Cohorts in SQLCorrect join of signups to later activity, careful date boundaries and a check for users with no activity.
Find each user's longest streak of consecutive active days.Window functionsThe date-minus-row-number trick or an equivalent, explained clearly.
In Python, simulate the coin-flip problem above and compare it with your exact answer.SimulationClean, reproducible code with a seed and a check that the estimate converges.
Given a table of searches and clicks, compute click-through rate by query length, excluding bots.Data cleaningStates how bots are identified and how that choice changes the result.
Write a function to compute a bootstrap confidence interval for a median.Statistical codingResampling with replacement, percentile interval and why the bootstrap fits here.
Google data scientist SQL and coding questions. Scroll sideways on a small screen.

Modeling and machine learning

Google data scientist modeling questions
QuestionWhat it testsWhat a strong answer shows
How would you forecast daily demand for Google Cloud capacity in a region?ForecastingSeasonality, trend, special events, uncertainty bands and how forecasts would be used.
Your model predicts churn well offline but does not help the retention team. Why?Model usefulnessPredicting churn is not the same as predicting who can be saved; suggests uplift modeling.
Explain regularization to an engineer who has never used it.TeachingThe intuition of penalizing complexity, a concrete example and when it helps.
How would you detect spam reviews on Google Play?Applied classificationFeatures, labels and their noise, precision versus recall for this case and how to monitor drift.
Google data scientist modeling questions. Scroll sideways on a small screen.

Behavioral and Googleyness

Google data scientist behavioral questions
QuestionWhat it testsWhat a strong answer shows
Tell me about an analysis that changed a product decision.ImpactThe question, your method, the recommendation and what the team did.
Describe a time your analysis was wrong. How did you find out?HumilityOwning the mistake, telling people quickly and the check you now add.
When did you push back on a stakeholder who wanted a specific answer from the data?IntegrityYou kept the analysis honest and found a way to help them anyway.
Tell me about explaining an uncertain result to a non-technical audience.CommunicationPlain language, a clear recommendation and honest limits.
How did you handle a project where the question itself was unclear?AmbiguityTurned the vague ask into a sharp question and agreed it before analysis.
Describe helping a colleague improve their analysis.CollaborationSpecific, kind feedback and their improvement.
Google data scientist behavioral questions. Scroll sideways on a small screen.

Working a stats question out loud

Statistics rounds at Google are often described as a conversation that keeps going deeper. A first answer is rarely the end; the interviewer changes an assumption and asks what happens now. Say each assumption as you make it, check your answer against intuition, and move to a simulation or a simpler case when the maths gets messy. Reaching a wrong number with sound reasoning is usually better than a right number with no reasoning.

Fictional example

Experiment result with a small lift
Interviewer
A test of a new Search layout shows a small increase in clicks per search, with a p-value just under 0.05. Would you launch?
Candidate
Not yet. First, was clicks per search the primary metric we chose before the test? If it is one of many metrics we checked, a p-value near 0.05 is weak evidence.
Candidate
Second, more clicks is not always good in Search. It can mean users did not find their answer on the first try. I would check time to a successful click, query reformulations and whether people came back to search the same thing.
Candidate
Third, I would look for novelty effects by comparing week one with week two, and check that the lift holds on mobile and desktop. If the effect holds, the success signals agree and the change is easy to reverse, I would recommend a staged launch with a holdback group to watch the long-term effect.
WITH signups AS (
  SELECT user_id, DATE(created_at) AS signup_day,
         DATE_TRUNC(DATE(created_at), WEEK) AS signup_week
  FROM users
),
returned AS (
  SELECT DISTINCT s.user_id
  FROM signups s
  JOIN events e
    ON e.user_id = s.user_id
   AND DATE(e.event_time) BETWEEN DATE_ADD(s.signup_day, INTERVAL 1 DAY)
                              AND DATE_ADD(s.signup_day, INTERVAL 7 DAY)
)
SELECT s.signup_week,
       COUNT(*) AS signups,
       COUNT(r.user_id) AS retained,
       SAFE_DIVIDE(COUNT(r.user_id), COUNT(*)) AS retention_7d
FROM signups s
LEFT JOIN returned r ON r.user_id = s.user_id
GROUP BY s.signup_week
ORDER BY s.signup_week;
A seven-day retention query by signup week (BigQuery-style SQL, one way to write it)

Talk through the choices as you write: why the window starts on day one rather than day zero, why the left join keeps users who never came back, and how you would treat signups from the last seven days, whose window is not complete yet.

Mistakes that sink Google data science candidates

  • Formula recall without judgment. Knowing the t-test is not enough; know when it fails.
  • Treating more engagement as good. On Search, more clicks can mean a worse experience.
  • Silent coding. Explain edge cases and data quality checks as you write the query.
  • Skipping the recommendation. End every case with what you would tell the team to do.
  • Neglecting behavioral prep. Googleyness questions count as much here as for any other role.

Three weeks of preparation

  1. Week 1: probability and inferenceWork twenty probability problems by hand and ten inference questions out loud: tests, intervals, power, multiple comparisons and Bayes.
  2. Week 2: experiments and product casesPick five Google products and, for each, define a goal metric, a guardrail and one experiment. Practice two metric-drop cases.
  3. Week 2: SQL and PythonDo daily exercises on joins, window functions and cohorts, and write a short simulation or bootstrap in Python.
  4. Week 3: modeling and storiesReview the methods on your résumé deeply, prepare six behavioral stories and run two full mocks.

To compare loops, read the Meta data scientist guide, which is more product-analytics focused, and the Amazon data scientist guide, where machine learning and Leadership Principles weigh more. The general data scientist interview questions page covers the shared foundations.

Natively can help in two parts of that preparation. In a mock statistics round with a friend, an AI interview assistant like Natively transcribes both of you on Mac or Windows, so you can later check whether you actually said your assumptions out loud. When you practice SQL or Python problems on screen, it can read the problem from a screenshot and sketch an approach you can compare with your own. With your résumé and the job description added (Pro or the free trial), its practice suggestions for behavioral questions use your own projects, and every session's transcript and notes are saved on your computer for review.

Questions people ask

What is the Google data scientist interview like?

Candidates describe a heavy focus on statistics and probability, plus product analytics cases, SQL and Python or R coding, sometimes machine learning, and a Googleyness and leadership conversation.

Does Google ask SQL in data science interviews?

Often, yes. Many candidates report SQL or data-manipulation coding, sometimes alongside Python or R. Ask your recruiter which languages your round uses.

How much machine learning is in a Google data science interview?

It depends on the role. Product analytics roles focus on experiments and metrics; modeling-focused roles go deeper on methods.

How do I prepare for Google data science statistics questions?

Practice probability problems by hand, explain tests, intervals and power in plain words, and be ready for follow-ups that change an assumption.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP