InterviewStack.io LogoInterviewStack.io

Forecasting and Time-Series Analysis Questions

Analyzing and projecting data that moves over time. Covers trend and seasonality decomposition, forecasting approaches, demand modeling, and anomaly detection on time series. Emphasizes reasoning about baselines, drivers, and forecast reliability.

MediumTechnical
58 practiced

Implement single exponential smoothing in Python. Input: a list or numpy array of historical numeric values and smoothing factor alpha (0 < alpha <= 1). Output: the smoothed series and the next-period point forecast. Explain initialization choices and how alpha controls responsiveness.

MediumTechnical
52 practiced

You are asked to implement a monitoring metric that measures business value of forecasts and not just accuracy. Propose specific KPIs such as stockouts prevented, holding cost reduction, or revenue uplift, explain how to compute them from historical forecasts and actuals, and describe attribution challenges when multiple operational changes occurred simultaneously.

HardTechnical
73 practiced

Compare algorithms for online and offline change-point detection: CUSUM, Bayesian Online Change Point Detection (BOCPD), PELT, and algorithms available in the ruptures library. For a business metric that can exhibit both abrupt and gradual changes, which algorithms would you choose for online detection vs offline forensic analysis, how to tune sensitivity, and how to quantify detection delay and false alarm rate?

HardTechnical
51 practiced

You inherit an ensemble of forecasting models but the ensemble's prediction intervals are overconfident and too narrow, which has caused inventory shortages. Describe a diagnostic approach to identify why intervals are too narrow, methods to recalibrate intervals (for example variance inflation, isotonic regression on quantile predictions, or re-training quantile regressors), and how to implement a permanent fix and monitoring to prevent recurrence.

MediumTechnical
61 practiced

You are leading a cross-functional initiative to move forecasting models into production. Product, Ops, and Data Engineering disagree about model retrain frequency and prediction TTL. How would you evaluate trade-offs (accuracy vs compute cost vs operational stability), align stakeholders, and make and communicate a data-driven recommendation? Describe a process for revisiting this decision.

Unlock Full Question Bank

Get access to all Forecasting and Time-Series Analysis interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.