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.
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.
Sample Answer
Direct answer
Resolving a cross-functional disagreement about retrain frequency and prediction TTL means making the trade-off (accuracy vs compute cost vs operational stability) explicit and quantified rather than argued in the abstract, aligning stakeholders around a shared decision framework rather than a single number, and building in a defined process to revisit the decision as conditions change rather than treating it as permanently settled.
Structured elaboration
- Evaluating the trade-off: quantify how much forecast accuracy actually degrades as prediction TTL (time-to-live, how long a forecast is served before being refreshed) increases - this is directly measurable via backtesting (compare accuracy of a forecast used immediately vs one used N days stale); quantify the COMPUTE cost of more frequent retraining (a real, budgetable number); and separately name the OPERATIONAL STABILITY cost of frequent changes (a forecast that changes too often can itself be disruptive to downstream planning processes that expect some consistency, distinct from either accuracy or raw compute cost).
- Aligning stakeholders: bring Product, Ops, and Data Engineering into a SHARED view of the actual trade-off curve (accuracy degradation vs TTL, compute cost vs retrain frequency) rather than each side arguing from its own priority in isolation - a concrete, data-grounded trade-off curve turns an abstract disagreement ("we need fresher forecasts" vs "retraining is expensive") into a specific, negotiable point on a shared curve.
- Making and communicating a data-driven recommendation: propose a specific retrain cadence and TTL grounded in where the accuracy-degradation curve starts to bend meaningfully (the point past which staleness costs materially more accuracy than it saves in compute/stability), explicitly stating the trade-offs being accepted at that point, so the decision is legible and defensible to all three stakeholder groups rather than feeling arbitrary to whichever side "lost."
- A process for revisiting the decision: define explicit triggers for reconsidering the choice (a monitored accuracy-degradation signal crossing a threshold, a meaningful compute-cost change, a business requirement shift) rather than either revisiting it constantly (churn, instability) or never revisiting it (staleness accumulating silently) - this closes the loop the same way ongoing calibration/drift monitoring does for a model's outputs, applied here to an operational POLICY decision rather than the model itself.
Worked example
A concrete quantified trade-off might show that forecast accuracy degrades only mildly from a 1-day to a 3-day TTL, but meaningfully more from 3 to 7 days, while retrain compute cost scales roughly linearly with frequency - this evidence supports a recommendation of a 3-day TTL as the point where you're not leaving much accuracy on the table relative to daily retraining, while meaningfully reducing compute cost and operational churn relative to it, a specific, defensible number rather than either extreme position (daily retraining "because fresher is always better," or infrequent retraining "because compute is expensive") argued from principle alone.
Trade-offs & pitfalls
The most common failure in this kind of cross-functional disagreement is treating it as a one-time negotiation to "win," rather than establishing a durable, revisitable process - a decision made once and never revisited will eventually become wrong as the underlying trade-off curve itself shifts (compute costs change, the business's tolerance for staleness changes, the model's own accuracy characteristics change), and a stakeholder group that felt unheard in the original decision is far more likely to escalate the disagreement again later if there's no defined mechanism for it to be legitimately reconsidered.
What is Prophet (by Facebook/Meta) for time-series forecasting? Describe its model components including trend changepoints, yearly/weekly/holiday seasonality, how it handles missing data and outliers, which types of business time series it performs well on, and limitations a BI analyst should be aware of when using it for operational forecasts.
Sample Answer
Direct answer
Prophet is an open-source forecasting library built around an additive decomposable model: it explicitly represents a series as trend (piecewise-linear or logistic, with automatically-detected changepoints) plus yearly, weekly, and holiday seasonality components, is designed to be robust to missing data and outliers, and performs best on business time series with strong seasonality and several seasons of history.
Structured elaboration
- Trend changepoints: Prophet fits a piecewise-linear (or logistic-growth, for saturating series) trend and automatically detects a set of points where the trend's rate of change shifts, rather than assuming one fixed slope for the whole history. A
changepoint_prior_scaleparameter controls how flexible this trend is allowed to be - too high overfits to noise as spurious trend changes, too low misses real regime shifts. - Yearly/weekly/holiday seasonality: yearly and weekly seasonality are modeled with Fourier series (a sum of sine/cosine terms), so the seasonal shape isn't restricted to a single simple sinusoid; holidays are modeled as a separate, explicit list of dates (with an optional window around each) that get their own additive effect, distinct from the smooth seasonal terms.
- Handling missing data and outliers: Prophet fits by default with a curve-fitting (not autoregressive) approach, so missing observations simply don't contribute to the fit rather than breaking a recursive dependency chain the way a naive ARIMA implementation might; outliers can be handled by treating them as missing (removing them before fitting) since Prophet doesn't require an unbroken regular grid.
- Which business time series it performs well on: series with strong, multiple seasonalities and a reasonably smooth trend, several seasons (ideally a year or more) of history, and meaningful holiday effects - the classic case Prophet was built for. It's also comparatively forgiving of messy real-world business data (missing days, occasional outliers) without heavy preprocessing.
- Limitations: Prophet is fundamentally a curve-fitting/decomposition model, not an autoregressive one, so it doesn't naturally capture short-term autocorrelation the way ARIMA does, and it can be less accurate than a well-tuned SARIMA or ML model on series with complex short-lag dynamics; it also needs enough history to estimate yearly seasonality reliably (a series with only a few months of data can't support a yearly term at all), and its automatic changepoint detection can occasionally latch onto noise as a false regime shift if not checked against domain knowledge.
Worked example
For a subscription business's daily signups with clear weekly seasonality, a yearly pattern (higher signups in January), and a handful of known promotional dates: Prophet would fit a smooth trend with changepoints around any real acquisition-strategy shifts, a weekly Fourier term capturing the day-of-week pattern, a yearly Fourier term capturing the January effect, and an explicit holiday/promo list for the known promotional dates - all separately inspectable, which is one of Prophet's practical advantages: you can plot each component and sanity-check it against what you know about the business, rather than trusting a single opaque number.
Trade-offs & pitfalls
The most common misuse is trusting Prophet's automatic changepoint detection uncritically on a series where you already know WHY the trend changed (a pricing change, a channel shift) - supplying those changepoints explicitly, rather than letting the algorithm guess, is usually more reliable and more interpretable. And because Prophet doesn't model short-term autocorrelation, on a series where yesterday's residual strongly predicts today's, a SARIMA-family model or a hybrid approach will often out-perform it even though Prophet is easier to operate at scale.
Explain the Holt-Winters (triple exponential smoothing) method for time-series forecasting. Describe its components (level, trend, seasonality), the difference between additive and multiplicative seasonality, how smoothing parameters (alpha, beta, gamma) affect responsiveness, and give business scenarios where Holt-Winters is an appropriate choice.
Sample Answer
Direct answer
Holt-Winters (triple exponential smoothing) forecasts a series by maintaining three continuously-updated smoothed components: level, trend, and seasonality, each with its own smoothing parameter (alpha, beta, gamma). It comes in additive and multiplicative seasonal variants depending on whether the seasonal swings stay a constant size or scale with the series' level.
Structured elaboration
- Level: the smoothed "current baseline" value of the series, updated each period the same way simple exponential smoothing updates its single smoothed value.
- Trend: the smoothed estimate of the period-over-period change in level, so the model can extrapolate a rising or falling baseline rather than a flat one.
- Seasonality: a smoothed multiplier or additive offset per position in the seasonal cycle (e.g. one value per day-of-week), re-estimated each time that position in the cycle recurs.
- Additive vs multiplicative seasonality: additive assumes the seasonal swing is a roughly CONSTANT absolute amount regardless of the series' level (e.g. "+200 units every December, whether the trend level is 1,000 or 5,000"); multiplicative assumes the swing SCALES with the level (e.g. "+20% every December"). Use additive when seasonal amplitude looks flat over time on a raw plot; use multiplicative when the seasonal swings visibly widen as the series grows (a classic tell: plot the series, and if the peaks-to-troughs gap grows alongside the trend, it's multiplicative).
- Smoothing parameters: alpha controls how fast the level reacts to new observations (high alpha = very responsive, more noise passed through; low alpha = smoother, slower to react to a real shift); beta similarly controls how fast the trend estimate updates; gamma controls how fast the seasonal profile itself is allowed to drift over time. All three are typically chosen by minimizing in-sample or backtested forecast error rather than set by hand.
- When Holt-Winters is a good choice: a business series with a clear, stable trend and a clear, stable seasonal period (retail sales with weekly or yearly seasonality, subscription-metric series with weekly cycles), especially when you want something simple, fast to fit, and easy to explain (three interpretable smoothed components) rather than the heavier machinery of SARIMA or a gradient-boosted model.
Worked example
A retailer's weekly sales show a steady 2%/quarter growth trend and a consistent seasonal bump every week 51-52 (holiday shopping) of roughly the same ABSOLUTE size in dollar terms regardless of the year's overall sales level in the recent data - that constant-absolute-size signature is the additive case, so additive Holt-Winters is the natural fit. If instead the December bump had been growing proportionally as the store's overall sales grew year over year (e.g. always about 40% above the trend level, not a fixed dollar amount), multiplicative seasonality (or a log-transform plus additive smoothing) would be the better-fitting choice.
Trade-offs & pitfalls
Holt-Winters assumes a single, fixed seasonal period known in advance - it doesn't naturally handle multiple overlapping seasonalities (e.g. both weekly AND yearly patterns in daily data) the way STL-with-multiple-periods or Prophet's Fourier terms can, and it has no native way to incorporate external regressors like promotions. It's also purely extrapolative: if the underlying regime genuinely changes (a step-change in trend), Holt-Winters adapts only as fast as its smoothing parameters allow, which can mean a lagging response right when it matters most.
Describe additive vs multiplicative seasonality in time series and explain why choosing the right decomposition model matters when establishing baselines or detecting anomalies. Give examples of metrics where each type is more appropriate and how you would test which model fits better.
Sample Answer
Direct answer
Additive seasonality assumes the seasonal swing is a roughly constant absolute amount regardless of the series' level; multiplicative seasonality assumes it scales proportionally with the level. Choosing the wrong one distorts both baselines (an additive model under-predicts the seasonal swing at a high level, or over-predicts at a low one) and anomaly thresholds (a fixed-width band around an additive baseline will be too tight during high-level periods and too loose during low-level ones).
Structured elaboration
- Additive: yt=trendt+seasonalt+residualt - the seasonal swing stays roughly the same size in absolute units no matter what the trend level is doing.
- Multiplicative: yt=trendt×seasonalt×residualt - the seasonal swing grows or shrinks proportionally with the trend level; a multiplicative model can be fit as an additive one on the LOG of the series, since log(yt)=log(trendt)+log(seasonalt)+log(residualt).
- Which metrics favor which: revenue-style metrics that grow substantially over time, where the seasonal spike naturally grows alongside the business (e.g. a December bump that's proportionally consistent but has grown from $10K to $50K as the business scaled), are usually multiplicative. Metrics with a roughly stable base level and a genuinely fixed-size seasonal effect (e.g. a fixed number of extra support tickets every Monday, regardless of overall ticket volume trend) are more often additive.
- Testing which model fits better: the simplest visual test is whether the peak-to-trough seasonal amplitude visibly GROWS alongside the trend on a raw plot - if it does, additive is the wrong assumption. More formally, fit both, compare residual variance (an additive fit on a genuinely multiplicative series will show residual variance that itself grows with the level, a clear diagnostic on a residual-vs-fitted plot), or simply compare backtested forecast error between the two.
- Why the choice matters for baselines/anomaly detection: an anomaly-detection threshold built on additive-model residuals (e.g. "flag anything more than 3 residual-standard-deviations away") implicitly assumes constant residual variance across the whole series; if the true process is multiplicative, that fixed threshold will be too sensitive (false positives) during low-level periods and too insensitive (missed real anomalies) during high-level periods.
Worked example
Two metrics side by side: daily active users growing from 10,000 to 100,000 over two years, with a weekend dip that's always been roughly 15% below the weekday average - that's multiplicative (the absolute size of the dip has grown 10x alongside the user base, but the RATIO has stayed constant). A metric like "number of scheduled maintenance windows per week," with a fixed operational cadence unrelated to overall traffic growth, is more likely additive.
Trade-offs & pitfalls
Log-transforming to convert a multiplicative problem into an additive one is convenient (lets you reuse additive-model tooling) but changes how you have to interpret and back-transform prediction intervals - a symmetric interval in log-space becomes an ASYMMETRIC interval once exponentiated back to the original scale, which is correct behavior (uncertainty genuinely should be asymmetric on a multiplicative series) but is easy to get wrong if you forget to back-transform properly.
Explain and compare straight-line (linear) growth projections and percentage-based compound growth projections. Provide formulas for both, discuss when each is appropriate for metrics such as revenue or headcount, and highlight limitations (sustainability, seasonality, constraints).
Sample Answer
Direct answer
Linear (straight-line) growth adds a fixed absolute amount each period: yt=y0+g⋅t; compound growth multiplies by a fixed percentage each period: yt=y0⋅(1+r)t. Linear projections are appropriate for metrics with a genuinely fixed absolute increment (limited or plateauing growth); compound projections are appropriate for metrics that grow proportionally to their current size (viral/network-effect growth, revenue compounding on an expanding base), and both break down badly once extrapolated far past any plausible constraint.
Structured elaboration
- Linear: yt=y0+g⋅t, where g is a fixed absolute amount added each period. Appropriate for headcount growing by a planned, fixed number of hires per quarter, or a metric expected to plateau toward a fixed increment rather than accelerate.
- Compound: yt=y0⋅(1+r)t, where r is a fixed PERCENTAGE growth rate each period. Appropriate for revenue or user-base metrics where growth genuinely scales with the current size (a larger customer base referring proportionally more new customers, compounding month over month).
- When each is appropriate: plot recent history and check whether the ABSOLUTE period-over-period change has stayed roughly constant (favors linear) or whether the PERCENTAGE period-over-period change has stayed roughly constant while the absolute change has been growing (favors compound) - this is the same diagnostic used to distinguish additive from multiplicative seasonality, applied to trend instead.
- Limitations:
- Sustainability: compound growth extrapolated far enough always implies an absurd, physically-impossible outcome eventually (a metric can't compound at 20%/month forever without exceeding any plausible market size) - a compound projection is only defensible over a horizon short enough that this ceiling isn't yet binding, or it needs to be replaced with a saturating (logistic/S-curve) growth model that explicitly bends toward a ceiling.
- Seasonality: neither formula accounts for within-year seasonal variation on its own - a naive compound-growth trend line fit through seasonally-uneven data can badly misjudge the underlying growth rate unless the data is seasonally adjusted first or seasonality is modeled explicitly alongside the trend.
- Constraints: linear projections extrapolated far past history similarly ignore any real capacity, market-size, or resource constraint that would eventually cap growth.
Worked example
A team growing headcount by a planned, fixed 5 hires/quarter is well-represented by a linear projection; a subscription product growing 8%/month off compounding word-of-mouth referrals is better represented by compound growth in its early phase - but extrapolating that 8%/month compound rate 3 years forward would (absurdly) predict a user base many times the addressable market, which is exactly the signal that a saturating growth-curve model, not continued naive compounding, is the right tool once the addressable market's scale becomes a real constraint.
Trade-offs & pitfalls
The most common mistake with either formula is treating a SHORT window's observed growth rate as a stable long-run constant and extrapolating it far past the horizon that assumption can support - always state explicitly how far forward a linear or compound projection is being trusted, and flag the point at which a more sophisticated (saturating, or fully model-based) approach becomes necessary.
Unlock Full Question Bank
Get access to all 37 Forecasting and Time-Series Analysis interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.