TradeLabs AILearn

Time Series Basics

Market data is a time series: values ordered in time. Learn the components of a time series, why order matters, returns vs prices and the core tools for analysis.

Advanced3 min readUpdated 3 Oct 2026
Markdown
Lesson 31 of 46

A time series is a sequence of data points ordered in time: daily closing prices, minute by minute volumes, monthly inflation figures. Almost all market data is time series data. Unlike a random sample, the order matters: today's value may depend on yesterday's, volatility can cluster and patterns can change over time. Time series analysis provides tools to describe, model and forecast this kind of data, and to avoid mistakes that come from treating it as a simple list of numbers.

Components of a time series#

ComponentDescriptionMarket example
TrendLong term upward or downward movementRising stock market over decades
SeasonalityRegular calendar patternsNatural gas demand, retail sales. See Seasonality in Commodities
CyclesLonger, irregular ups and downsBusiness cycles. See Business and Economic Cycles
NoiseRandom, unpredictable variationDay to day price fluctuations

Decomposing a series into these parts helps separate signal from noise.

Prices vs returns#

Prices usually trend and wander without returning to a fixed level, making them non stationary. Returns (percentage or log changes) are much closer to stationary: their average and variance are more stable over time. Most statistical analysis is therefore done on returns, not prices. See Stationarity, Differencing and Unit Roots and Lognormal Distribution.

Key properties to check#

PropertyQuestionLesson
StationarityDo the mean and variance stay stable?Stationarity, Differencing and Unit Roots
AutocorrelationIs today related to yesterday?Autocorrelation and Partial Autocorrelation
Volatility clusteringDo big moves follow big moves?GARCH
Structural breaksDid the behaviour change at some point?Structural Breaks and Regime Changes
SeasonalityAre there calendar patterns?

Basic tools#

ToolUse
Moving averagesSmooth noise and show trends. See Moving Averages Explained
Rolling statisticsTrack changing mean, volatility and correlation. See Rolling and Expanding Windows
Autocorrelation function (ACF)Measures correlation with past values
DifferencingTurns trending series into changes
DecompositionSplits a series into trend, seasonal and residual parts
ModelsARIMA for the mean, GARCH for volatility. See ARIMA and GARCH

Time series pitfalls#

  • Look ahead bias: using future information to calculate today's values, for example with a centred moving average or a full sample normalisation. See Look-Ahead Bias.
  • Overlapping returns: using rolling multi day returns creates artificial autocorrelation.
  • Non synchronous data: markets in different time zones close at different times. See Timestamps, Time Zones and Daylight Saving.
  • Data snooping: testing many patterns on the same history. See P-Hacking and Multiple Testing.
  • Changing regimes: relationships that held in the past may break.

Forecasting realities#

Short term returns of liquid assets are very hard to forecast; they are close to random. Volatility, however, is much more predictable because it clusters. This is why many quantitative models focus on forecasting risk rather than direction, or look for small, persistent edges across many assets. See White Noise and Random Walks.

Frequently asked questions#

What is a time series?#

A sequence of data points recorded in time order, such as daily prices or monthly economic data.

Why do traders analyse returns instead of prices?#

Because returns are closer to stationary, with more stable statistical properties, while prices trend and can create misleading correlations.

What are the components of a time series?#

Trend, seasonality, cycles and random noise.

Next, learn the benchmark for randomness in White Noise and Random Walks.

Check your understanding

3 quick questions on this lesson. Get them all right to finish it.

Turn on JavaScript to take the quiz.

Finished this lesson?Sign in to save your progress across devices.
Next lessonWhite Noise and Random WalksA random walk is a path built from random steps; white noise is pure randomness. Learn how they model prices, the random walk hypothesis and the evidence against it.

Mentioned in