InterviewStack.io LogoInterviewStack.io

Predictive Modeling and Machine Learning Fundamentals Questions

Applying core modeling techniques to analytical problems. Covers regression and classification basics, clustering and unsupervised methods such as k-means, feature thinking, model evaluation, and judging when a machine-learning approach is warranted over simpler analysis. Framed at the applied data-science level rather than deep ML engineering.

MediumTechnical
52 practiced

You applied K-Means to segment customers into 4 groups and plan a targeted marketing campaign. Design an A/B experiment to validate that segment-based targeting improves conversion compared to a control. Include hypothesis, primary metric, sample size estimation, randomization strategy, stratification, and how to interpret results accounting for multiple segments.

EasyTechnical
55 practiced

Compare Euclidean (L2) and Manhattan (L1) distance metrics in the context of K-Means clustering. Explain geometric differences, how each affects centroid computation and cluster shapes, when one metric may be preferred over the other, and how feature scaling interacts with these distances.

EasyTechnical
37 practiced

Describe initialization strategies for K-Means: random initialization, k-means++ initialization, and seeding with domain-informed centroids. Explain why poor initialization can harm results, how k-means++ improves both quality and convergence, and practical recommendations for n_init and random_state.

EasyTechnical
48 practiced

Explain three practical methods to choose the number of clusters k for K-Means on an unlabeled dataset: the elbow method, silhouette score, and gap statistic. For each, describe how it is computed, what property of clustering it measures, practical advantages, and common failure modes.

HardTechnical
54 practiced

Propose and justify improvements to standard K-Means to handle anisotropic clusters that have different covariance shapes (elongated or rotated clusters). Describe algorithmic changes (e.g., Mahalanobis distance, per-cluster covariance estimation, switching to Gaussian Mixture Models), provide pseudocode for one approach, discuss numerical stability and complexity, and outline experiments on synthetic anisotropic datasets to validate your approach.

Unlock Full Question Bank

Get access to all 30 Predictive Modeling and Machine Learning Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.