Data Scientist Machine Learning Interview Questions

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

434 Questions 85 Companies08.03.2026
Showing 20 results
Role
OneMain Financial logo
OneMain Financial
Medium
Data Scientist Locked

Choose evaluation metrics for imbalanced risk model

This question evaluates understanding of cost-sensitive decision making, probabilistic thresholding, evaluation metric selection under class imbalance...

Machine Learning
6
0
50 people solved
Oct 13, 2025
Amazon logo
Amazon
Medium
Data Scientist

Optimize precision–recall under class imbalance

You have extreme class imbalance (positive rate ~1%). You score 12 examples as follows (id, true_label, score): A,1,0.92; B,0,0.90; C,0,0.88; D,0,0.70...

Machine Learning
11
0
87 people solved
Oct 13, 2025
Medium
Data Scientist

Evaluate and select K in K-means

K-means Clustering: Concepts, Initialization, Model Selection, Preprocessing, and Business Validation Context: You are clustering customer data with n...

Machine Learning
2
0
45 people solved
Oct 13, 2025
Hard
Data Scientist Locked

Explain SVM kernels and complexity

This question evaluates understanding of Support Vector Machines, including support vectors and primal/dual formulations, the kernel trick and why Gra...

Machine Learning
2
0
26 people solved
Oct 13, 2025
Hard
Data Scientist

Contrast L1 and L2 regularization effects

Ridge (L2) vs Lasso (L1) in Linear and Logistic Regression Context: You are comparing L2 (Ridge) and L1 (Lasso) regularization for linear and logistic...

Machine Learning
4
0
50 people solved
Oct 13, 2025
Amazon logo
Amazon
Hard
Data ScientistSenior+

Design end-to-end regression for energy demand

End-to-End Daily Energy Prediction for Commercial Buildings Context You are asked to design and justify an end-to-end regression system that predicts ...

Machine Learning
5
0
49 people solved
Oct 13, 2025
Dropbox logo
Dropbox
Medium
Data Scientist Locked

Design enterprise file recommendations under ACLs

This question evaluates a Data Scientist's ability to design production-grade machine learning and recommender systems for enterprise file suggestions...

Machine Learning
1
0
28 people solved
Oct 13, 2025
Meta logo
Meta
Hard
Data Scientist Locked

Model preference without ground truth

This question evaluates a data scientist's competency in uplift modeling, causal inference, experimental design, weak supervision, and bias and shift ...

Machine Learning
2
0
25 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Choose metrics for fake-user classifier

Classifying Fake Accounts: Metrics, Capacity, Thresholding, and Validation Context - Population: 10,000,000 daily active users (DAU) - True fake rate ...

Machine Learning
2
0
45 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist Locked

Build a Bayes classifier for reviewer types

This question evaluates Bayesian inference skills, including posterior updating under conditional independence, likelihood modeling for categorical ob...

Machine Learning
2
0
25 people solved
Oct 13, 2025
Expedia logo
Expedia
Hard
Data Scientist

Validate and monitor ranking model end-to-end

Expedia Hotel-Ranking Model: Evaluation, Metrics, Diagnostics, Rollout, and KPI Alignment Context: You are building a learning-to-rank (LTR) model to ...

Machine Learning
8
0
77 people solved
Oct 13, 2025
Hard
Data Scientist

Detect clickbait without labels, then supervise

Detecting Clickbait Ads Without Labeled Data Context You are asked to detect clickbait ad creatives when there is no labeled training data. You have i...

Machine Learning
4
0
45 people solved
Oct 13, 2025
Hard
Data Scientist Locked

Design a hybrid marketplace fraud system

This question evaluates competency in designing hybrid fraud detection systems, covering feature engineering across text, image, graph and telemetry s...

Machine Learning
3
0
43 people solved
Oct 13, 2025
Amazon logo
Amazon
Hard
Data ScientistSenior+ Locked

Design fraud detection across channels with unknowns

This question evaluates a data scientist's competence in designing and operationalizing multi-channel fraud detection systems, covering cost-sensitive...

Machine Learning
5
0
40 people solved
Oct 13, 2025
PayPal logo
PayPal
Hard
Data Scientist Locked

Build a real-time ATO model

This question evaluates a candidate's competency in designing low-latency, production-grade real-time machine learning systems for account-takeover de...

Machine Learning
6
0
63 people solved
Oct 13, 2025
Microsoft logo
Microsoft
Hard
Data Scientist

Implement robust k-means from scratch

Implement K-Means Clustering From Scratch (Production-Ready) Context You are asked to implement K-Means clustering from scratch for a machine learning...

Machine Learning
6
0
79 people solved
Oct 13, 2025
Microsoft logo
Microsoft
Hard
Data Scientist

Compare CNN, RNN, and LSTM rigorously

Sequence Modeling: Rigorous Comparison of CNNs, RNNs, and LSTMs Context and assumptions: - We are modeling 1D sequences of shape (batch=32, time=100, ...

Machine Learning
3
0
55 people solved
Oct 13, 2025
TikTok logo
TikTok
Medium
Data Scientist

Compare bagging vs boosting on imbalanced data

Fraud Detection on 10M Time-Ordered Transactions (0.5% Fraud) You are building a binary classifier to detect 0.5% fraudulent events among 10,000,000 t...

Machine Learning
5
0
43 people solved
Oct 13, 2025
Apple logo
Apple
Hard
Data Scientist

Implement random forest with OOB and imbalance

Implement a Memory-Efficient Random Forest (Binary Classification) Under Constraints You are asked to design and implement a Random Forest for binary ...

Machine Learning
5
0
69 people solved
Oct 13, 2025
Morgan Stanley logo
Morgan Stanley
Medium
Data Scientist Locked

Answer basic probability and statistics questions

This question evaluates core probability and statistics competencies, including interpretation of Poisson rate parameters from PMF shapes, identificat...

Machine Learning
4
0
46 people solved
Aug 23, 2025

Explore more Data Scientist Machine Learning interview questions

Real questions from candidate reports, grouped by company, topic and role.

By company
Other categories for Data Scientist
Machine Learning questions for other roles
Browse all