TIME SERIES & FORECASTING · INTERVIEW QUESTION
What is a time series and what makes it different from regular tabular data?
🟢 beginner · Statistical Methods
Hint: Think about temporal ordering, autocorrelation, and non-stationarity.
Answer
A time series is a sequence of data points ordered by time.
Interview reasoning
Key differences from tabular data:
-
Temporal ordering matters: shuffling destroys information.
-
Autocorrelation: observations are correlated with their past values.
-
Seasonality: periodic patterns (daily, weekly, yearly).
-
Trend: long-term directional movement.
-
Non-stationarity: statistical properties (mean, variance) change over time.
-
Special train/test split: must split chronologically, no random shuffling. This affects cross-validation (use time series CV with expanding/sliding windows).
Components: trend + seasonality + residual (additive or multiplicative decomposition).
Applications: stock prices, weather forecasting, demand planning, anomaly detection, sensor data.
Time series has an ordered information structure: observations can depend on past values and only some covariates are available when a decision is made. Time ordering affects validation, feature construction and uncertainty. Multiple readings from the same process are not independent examples merely because they occupy separate rows.
Worked example. Predicting Monday demand from Sunday's data differs from predicting an arbitrary held-out row while later observations remain in training. A lag-one demand feature is valid only if Sunday's value was already published; its timestamp alone is insufficient.
Validation
Use repeated forecast origins, point-in-time joins, horizon-specific errors and appropriate temporal dependence for uncertainty. Compare a seasonal-naive forecast and inspect residual autocorrelation rather than assuming IID errors.
Common pitfalls
A timestamp column alone does not make a model causal or leak-free. Full-history normalization and future revised covariates can invalidate even chronological splits.
Related questions
- Explain ARIMA. What are the p, d, q parameters and how do you select them?
- What is stationarity? Why is it important and how do you test for it?
- Compare traditional vs deep learning approaches for time series forecasting.
- Why is random train-test splitting usually inappropriate for forecasting?
- What does stationarity mean in the context of many classical time-series models?