Halide Yılmaz
Writing
Time Series Forecasting: Trend, Seasonality and Honest Validation
Methods 2 min read

Time Series Forecasting: Trend, Seasonality and Honest Validation

Time series problems obey different rules from ordinary machine learning. Trend, seasonality, stationarity, baselines and walk-forward validation, explained practically.

Halide Yılmaz
Computer engineer · Co-founder of HatsonTech and Caseon AI

Time series forecasting is where ordinary machine-learning habits mislead most. You cannot shuffle the data, you cannot let the future into training, and observations are not independent of one another. Those three constraints reshape the entire workflow.

What a series is made of

Most series decompose into three parts: a long-run trend, a repeating seasonality, and an unexplained residual. That decomposition is the first thing to do before modelling, because seeing which component dominates determines the method.

A series can carry more than one seasonality at once: daily, weekly and yearly patterns may all be present. Retail sales usually have all three.

Stationarity

Most classical statistical methods assume the statistics of the series do not change over time. A trend, or shifting volatility, breaks that assumption. Differencing and log transforms are the usual corrections.

Watch out: tree-based models cannot extrapolate a trend — they never leave the range they were shown. If there is a rising trend, either difference it away or model the trend separately.

Take baselines seriously

Two baselines are surprisingly strong in time series:

  • Naive: tomorrow equals today.
  • Seasonal naive: this Tuesday equals last Tuesday.

If a sophisticated model cannot clearly beat those two, the cost of the complexity is being paid for nothing. In many projects the comparison is never run and the results are read far too optimistically.

Honest validation

Random K-fold cross-validation is invalid here; it feeds the future into training. The correct approach is walk-forward validation: each fold trains only on preceding data, tests on the next window, and the window slides forward.

Match the forecast horizon to real use, too. Predicting one day ahead and thirty days ahead are very different problems and should not be measured with one model.

Which metric

MetricStrengthWeakness
MAEInterpretable, robustDoes not punish large errors
RMSESensitive to large errorsSensitive to outliers
MAPEComparable as a percentageExplodes near zero
MASEScaled against the naive baselineLess widely known

Frequently asked questions

Does deep learning beat classical methods?

With many related series, usually yes. On a single short series, classical methods remain highly competitive.

How should holidays and promotions be handled?

Supply calendar effects as explicit features. Expecting the model to infer them from the data is unrealistic, especially on short series.

Is a point forecast enough?

For most decisions, no. Provide a prediction interval; inventory, capacity and risk decisions depend on the size of the uncertainty.


The most common mistake in time series is methodological rather than technical: the wrong split, a missing baseline, and a horizon that does not match real use. For more, see data leakage and cross-validation.

Halide Yılmaz
Author
Halide Yılmaz

In short: I co-founded two technology companies. I use my engineering background to build, together with our teams, AI products that organisations can use with confidence.

Related posts