Start studying
Module 12 · Time Series Module contents
Module 12  ·  Card 1 / 13beginner

Time Series Data

Time series data is a sequence of measurements of the same thing taken at regular points in time.

Order matters, because each value is linked to the ones just before it, unlike rows in an ordinary table.

For example, a shop's daily sales over 3 years form a time series of about 1,095 values.

Each series has a frequency, such as hourly, daily or monthly, and gaps or duplicate timestamps need fixing first.

Shuffling the rows destroys the information, which is why time series need their own methods.

Learn in depth ↓
Module 12 · Time Series · 13 concepts
In depth  /  15 lines

Time Series Data, in more detail

Time series are among the most common shapes of business data, because almost everything is recorded with a timestamp.

What makes them special is that the order of the rows carries information.

Methods that treat rows as independent miss that information and often give misleading answers.

A time series has a time index, a value, and a frequency such as hourly, daily or monthly.

Irregular events, such as individual orders, are usually totalled into regular periods first.

In pandas, a datetime index and the resample method turn timestamped events into a regular series.

Missing periods should appear as gaps, not be silently skipped, or the frequency breaks.

Duplicate timestamps, often from loading the same day twice, double the values for those periods.

Time zones and daylight saving changes can create missing or repeated hours in hourly data.

Most series combine a trend, seasonal patterns and irregular noise.

Separating these parts, called decomposition, shows each one clearly.

Events such as holidays, outages and promotions create spikes that are not part of the normal pattern.

Recording these events alongside the series explains the spikes and stops them distorting forecasts.

In practice, plotting the series is always the first step, before any model.

The common mistake is splitting or shuffling time series data as if the rows were independent.

Want the full technical article? Wikipedia ↗
Test yourself

One question on this card. Every option explains itself once you pick, right or wrong.

Question 1
Why can the rows of daily sales not be treated like the independent rows of an ordinary table?
Time Series

13 concepts in this module, then a graded test with every answer explained.

Study this module →
↑↓ move↵ openesc close