01Your churn model's AUC jumps from 0.71 to 0.93 after adding a 7-day rolling feature. What now?▼hardAmazonMetaGoogle2 repliesunlockedA sudden 22-point AUC jump is a gift and a warning. Junior candidates celebrate; strong ones get suspicious and know exactly which leakage checks to run 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 quietly leaks the future and inflates your score. The signal 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 gives a reliable performance estimate, but the wrong scheme leaks data and lies. The signal 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 is 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, not 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 alerts fire all weekend and miss the real outage Monday. The signal is decomposing seasonality first, choosing the right detector, and tuning for alert fatigue. Here is the answer that survives 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 appear in an event table, so a 7-day average silently 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 sounds easy until seasonality, cold start, and alert fatigue hit. The signal is modeling the expected baseline (including weekly and daily cycles), choosing unsupervised methods for scarce labels, and tuning to avoid drowning users in false alarms. Here is the design.Open full answer →
50Design a human activity recognition system (from sensors or video).▼hardAppleGoogleMeta1 replies◆ premiumRecognizing walking, driving, or a fall from a sensor stream is windowed time-series classification, usually on a battery-bound device. The signal is windowing, temporal smoothing, and the on-device constraints most candidates skip. Here is the design.Open full answer →
60Design a demand forecasting system (retail/inventory/capacity).▼hardAmazonWalmartUber2 replies◆ premiumForecasting one series is a textbook exercise; forecasting a million SKU-stores that must reconcile, with stockouts costing more than overstock, is the real interview. The strong answer goes 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 separate the three telemetry types, choose storage that survives massive write volume, and design alerting that fires fast without drowning on-call in noise. Here is the pipeline with retention and cardinality math.Open full answer →