Time series practice problems

16 problems · 0 solved

Time series data is a sequence of values recorded over time, like daily sales, server latency or electricity demand. The order of the data matters, and the future must never leak into the past when you train or test. A good habit is to look at a series for three things: trend, seasonality and noise. These problems cover both analysis and forecasting. You will compute a trailing rolling mean, smooth a metric with an exponential moving average, find a weekly pattern with autocorrelation, split a series into trend, seasonal and residual parts, build lag and difference features, forecast with Holt's linear smoothing, fit an AR(p) model and forecast ahead, filter a noisy signal with a 1D Kalman filter, detect a mean shift with CUSUM, generate walk-forward backtest windows, and score forecasts with symmetric MAPE and mean absolute scaled error. Start with the Easy problems on rolling means, smoothing and walk-forward windows. Then do autocorrelation, decomposition and lag features, and finish with AR models and the Kalman filter. Forecasting powers demand planning, finance and monitoring, and interviewers often check whether you know how to backtest without leakage.

Easy 5

Medium 8

Hard 3

Related topics

All practice problems