01Your churn model's AUC jumps from 0.71 to 0.93 after adding a 7-day rolling feature. What now?▼hardAmazonMetaGoogle2 repliesunlockedA 22-point AUC jump is both an opportunity and a red flag. Weaker candidates cheer; sharp ones grow wary and know precisely which leakage checks belong before anything ships.Open full answer →
37How do you approach a time-series forecasting problem, and what is special about validating it?▼mediumAmazonGoogleMeta2 replies◆ premiumTime series breaks the usual ML assumptions: data is ordered and correlated, so random cross-validation silently leaks the future and inflates your score. What matters is decomposition, point-in-time features, and time-aware validation.Open full answer →
48What cross-validation strategy do you use, and how do you avoid leakage in CV?▼medium★ EssentialAmazonGoogleMeta2 replies◆ premiumCross-validation yields a reliable performance estimate, but the wrong scheme leaks data and misleads. What matters is matching the CV scheme to the data (stratified, grouped, time-series) and fitting preprocessing inside the fold.Open full answer →
116Explain the Kalman filter and state-space models. What are the predict and update steps actually doing?▼hardNVIDIAAppleUber1 replies◆ premiumThe Kalman filter is optimal Bayesian tracking under linear-Gaussian assumptions, and it amounts to two steps repeated forever. The signal is explaining what the gain trades off and when the assumptions break. Here is the answer.Open full answer →
117How does Prophet (and decomposable forecasting) work, and when does it beat or lose to ARIMA and gradient boosting?▼mediumMetaUberStripe2 replies◆ premiumProphet treats forecasting as curve-fitting trend plus seasonality plus holidays, rather than as a stochastic process. The signal is knowing why that design wins on business data and where it quietly fails. Here is the answer.Open full answer →
118How do you build anomaly detection for a streaming time series, and how do you handle seasonality and concept drift?▼hardNetflixUberMicrosoft2 replies◆ premiumThreshold alarms page you all weekend yet sleep through Monday's actual outage. What interviewers reward is stripping out seasonality first, matching the detector to the anomaly, and tuning against alert fatigue. Here is the answer that holds up in production.Open full answer →
42Your time-series has missing days, breaking moving averages and forecasts. Fill the gaps with a date spine.▼mediumAmazonNetflixAirbnb1 replies◆ premiumDays with zero events simply don't show up in an event table, so a 7-day average quietly averages the wrong 7 rows. A date spine makes the missing days explicit. Here is the pattern.Open full answer →
10Design an anomaly detection system for a metric (e.g. cloud billing) with seasonality and cold start.▼hardAmazonMicrosoftGoogle1 repliesunlockedAnomaly detection seems simple until seasonality, cold start, and alert fatigue arrive. The signal is modeling the expected baseline (including weekly and daily cycles), picking unsupervised methods when labels are scarce, and tuning so you do not bury users in false alarms. Here is the design.Open full answer →
50Design a human activity recognition system (from sensors or video).▼hardAppleGoogleMeta1 replies◆ premiumDetecting walking, driving, or a fall from a sensor stream is windowed time-series classification, typically on a battery-bound device. What matters is windowing, temporal smoothing, and the on-device constraints most candidates overlook. Here is the design.Open full answer →
60Design a demand forecasting system (retail/inventory/capacity).▼hardAmazonWalmartUber2 replies◆ premiumForecasting a single series is textbook work; forecasting a million SKU-stores that have to reconcile, where stockouts cost more than overstock, is what the interview actually tests. The strong answer is global, hierarchical, and cost-aware.Open full answer →
78Design a metrics, logging, and monitoring service for thousands of servers.▼hard★ EssentialGoogleAmazonMeta1 replies◆ premiumThe observability infrastructure question. Interviewers want you to split the three telemetry types, choose storage that withstands massive write volume, and design alerting that fires fast without burying on-call in noise. Here is the pipeline with retention and cardinality math.Open full answer →