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
Meta logo
Meta
Medium
Data Scientist

Which clustering algorithm would you use and why

Question You need to cluster users for a social product (e.g. Meta) to discover meaningful groups such as communities, interest groups, or usage segme...

Machine Learning
4
0
60 people solved
Nov 2, 2025
Google logo
Google
Medium
Data Scientist

Build Classifier: Evaluate with AUROC for Imbalanced Data

Detecting Dead Links: Build and Evaluate a Classifier You have a dataset of 1,000 URLs labeled as good, meaning alive, or bad, meaning dead. The class...

Machine Learning
31
0
106 people solved
Jul 12, 2025
Google logo
Google
Medium
Data Scientist

Build Model to Predict Customer Contract Renewal

Build a Model to Predict Customer Contract Renewal You are designing a model to predict whether an enterprise customer will renew a Google Meet contra...

Machine Learning
115
0
295 people solved
Jul 12, 2025
Coinbase logo
Coinbase
Hard
Data Scientist

How to Analyze and Model Behavioral Data Effectively?

Analyze and Model Behavioral Data Effectively You receive a raw event-level behavioral dataset for a product funnel. The interviewer asks you to clean...

Machine Learning
105
0
295 people solved
Jul 12, 2025
Two Sigma logo
Two Sigma
Medium
Data ScientistIntern

Predict Stock Prices from Google Search Data

You are given access to historical Google search data — relative search volume over time for arbitrary query terms — along with standard historical ma...

Machine Learning
6
0
48 people solved
Dec 1, 2024
Meta logo
Meta
Easy
Data Scientist Locked

Design an ad recommendation ranking approach

This question evaluates competency in machine-learning driven ad ranking and recommendation systems, including objective formulation, modeling strateg...

Machine Learning
8
0
62 people solved
Dec 6, 2025
Meta logo
Meta
Medium
Data Scientist

Evaluate New Model's Performance Against Existing System

Evaluate New Model's Performance Against Existing System Scenario You are evaluating a new machine-learning model that detects harmful content on a la...

Machine Learning
4
0
37 people solved
Aug 4, 2025
Netflix logo
Netflix
Medium
Data Scientist

Design Real-Time Fraud Detection with XGBoost Model

Design Real-Time Fraud Detection with XGBoost Model Real-Time Fraud Detection with XGBoost (Subscription Payments) Scenario You need to build and oper...

Machine Learning
15
0
114 people solved
Aug 4, 2025
Walmart Labs logo
Walmart Labs
Medium
Data Scientist

Evaluate K-Fold Cross-Validation for Model Selection

Evaluate K-Fold Cross-Validation for Model Selection Model Selection and Validation for a New Feature Launch You are selecting and validating predicti...

Machine Learning
3
0
63 people solved
Aug 4, 2025
OneMain Financial logo
OneMain Financial
Easy
Data Scientist

Explain decision trees and tree ensembles

Prompt 1. Explain how a decision tree works for classification or regression. 2. How does the tree choose a split (objective functions for classificat...

Machine Learning
10
0
73 people solved
Dec 1, 2025
Bytedance logo
Bytedance
Hard
Data Scientist

Explain deployment, retrieval, and regularization

You are interviewing for a machine-learning role at a large-scale short-video platform. Answer the following conceptual questions. 1. Under tight GPU ...

Machine Learning
2
0
53 people solved
Jan 17, 2026
Microsoft logo
Microsoft
Easy
Data Scientist

Compute and plot a precision–recall curve

Precision–Recall (PR) curve coding / evaluation You are given a binary classifier’s outputs on a dataset: - y_true: array of true labels in \(\{0,1\}\...

Machine Learning
8
0
121 people solved
Jan 17, 2026
Meta logo
Meta
Medium
Data Scientist

Choose threshold under asymmetric costs

You own a credit-card fraud classifier deployed as a probability scorer. Choose an operating threshold under asymmetric costs and justify it quantitat...

Machine Learning
6
0
58 people solved
Oct 13, 2025
OneMain Financial logo
OneMain Financial
Hard
Data Scientist

Handle missing data and outliers robustly

Customer Churn Modeling: Preprocessing, Missingness, Outliers, and Evaluation Context You are building a binary churn model for a consumer subscriptio...

Machine Learning
8
0
64 people solved
Oct 13, 2025
Citadel logo
Citadel
Hard
Data Scientist

Design city home-price prediction system

End-to-End System Design: Predict Residential Property Sale Prices Context You are tasked with building a production-grade machine learning system to ...

Machine Learning
7
0
75 people solved
Oct 13, 2025
Amazon logo
Amazon
Medium
Data Scientist

Choose regularization norms and model formulations

Regularization and model choice. 1) For linear and logistic regression, write the objective functions with L0, L1, L2, and L-infinity penalties in bot...

Machine Learning
5
0
70 people solved
Oct 13, 2025
Atlassian logo
Atlassian
Medium
Data Scientist

Minimize max L1 radius with k centers in 1D

You are given an array A of n integers (values may be negative and may repeat) and an integer k (1 ≤ k ≤ n). Place k cluster centers anywhere on the r...

Machine Learning
7
0
77 people solved
Oct 13, 2025
Meta logo
Meta
Hard
Data Scientist

Design a hashtag recommender for News Feed

Design: Hashtag Recommendations in the News Feed Context You are adding hashtag recommendations alongside posts in a large social app’s News Feed. The...

Machine Learning
5
0
43 people solved
Oct 13, 2025
Flatiron Health logo
Flatiron Health
Medium
Data Scientist

Build a robust ML pipeline

You inherit an ML pipeline that predicts next-7-day churn for users, but data quality is inconsistent and feature drift is suspected. A) Propose an en...

Machine Learning
11
0
87 people solved
Oct 13, 2025
Capital One logo
Capital One
Hard
Data Scientist

Build and validate a binary classifier

ML Pipeline with Grouped CV, Imbalance Handling, Calibration, and Thresholding Context: You have a labeled dataset where the target is is_active_30d (...

Machine Learning
6
0
47 people solved
Oct 13, 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