Data Scientist Machine Learning Interview Questions
Practice 399 real Machine Learning interview questions for Data Scientist roles. From companies including Meta, Amazon, Google, Capital One, TikTok.

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Build a model to predict wine quality
Modeling task: Predict wine quality from a CSV You are given a clean CSV dataset about red wine. The target (dependent) variable is: - quality (intege...
Build a baseline linear regression pipeline
Task: Baseline Linear Regression Pipeline (Python) Context You are given a tabular dataset in a pandas DataFrame df. The goal is to predict a continuo...
Identify Algorithms for Detecting Malicious Duplicated Content
Detecting Malicious Duplicated Text (DOT) Scenario You are selecting technical approaches for DOT, a bot‑detection tool aimed at finding malicious dup...
Optimize Surge Notifications for Rideshare Drivers
Scenario A rideshare marketplace experiences airport demand spikes. When demand exceeds supply, the system can send surge-pricing push notifications t...
Interpret AUC Values and Handle Class Imbalance Techniques
AUC and Class Imbalance in Binary Classification Context You are evaluating a binary classifier using ROC–AUC and need to reason about performance und...
Explain Causal-Inference Techniques in Your Machine Learning Project
Technical Deep-Dive: ML Project With Causal Inference Prompt Walk me through one machine-learning project you led and explain any causal-inference tec...
Analyze duplicating data in linear regression
You fit a standard linear regression model (with intercept) using ordinary least squares (OLS). Suppose you have: - Design matrix \(X\) of size \(n \t...
Discuss logistic regression limitations for PD
Limitations of Logistic Regression for PD (Probability of Default) Modeling Context You are building a credit risk Probability of Default (PD) model w...
How would you manage precision/recall for fraud detection?
Scenario You own (or significantly contribute to) a production fraud detection system that flags transactions/users as fraud vs legit. - The model out...
Predict Customer Churn with Machine Learning Workflow
Predicting Monthly Churn: End-to-End Workflow Scenario A subscription platform wants to predict whether a customer will churn in the next month. Assum...
Compare Logistic Regression and Random Forest in Limited Data Scenarios
Model Selection for Binary Classification with Limited Data and Potential Non-Linearities Scenario You are designing a binary classifier with limited ...
Diagnose Multicollinearity in Flight Delay Prediction Model
Flight Delay Prediction — Data Quality, Modeling Choice, and Multicollinearity Scenario You have historical flight operations and weather data and nee...
Evaluate Factors Before Replacing Recommendation Model
Ads Model Replacement: Evaluation, Trade-offs, Experimentation, and Executive Readout Scenario A large ads platform has built a new recommendation/ran...
Build Predictive Model for Buyer Engagement Uplift
Predicting Engagement Uplift for a New "Show similar products" Button Scenario A new UI control (a "Show similar products" button) may change buyer en...
Reduce LLM hallucination and handle class imbalance
Answer the following applied ML/LLM questions. 1) LLM hallucination & token cost control You are building a chatbot over an internal knowledge base. 1...
Design bot detection and evaluate trade-offs
Bot-Detection System Design for Comment Activity Context You are designing and evaluating a machine learning system to detect automated (bot) comment ...
Build a model to infer home vs office vs public
You must infer whether a Facebook session’s network context is home, office, or public venue to inform Portal targeting. Constraints: IPs may be share...
Estimate b when features exceed samples
Consider the linear model y = Xb + ε with X ∈ R^{n×(m+1)} including an intercept. a) Derive the OLS estimator b̂ = (XᵀX)^{-1}Xᵀy, stating the rank con...
Handle p≈n linear regression with L1
You must fit linear regression with p = 500 predictors and n = 600 observations. What failure modes do you expect and why does OLS overfit when p is c...
Design ML ranking for query suggestions
Re-rank Query Suggestions for Autocomplete Context You are building a re-ranking system for search autocomplete. For each keystroke, a candidate gener...