ENES

Time series

A list of measurements of the same thing, taken one after another in time.

A line chart of values over twelve months that rises slowly, with a repeating bump every few months and a dashed forecast continuing to the right

A time series is a sequence of values of the same quantity recorded at successive moments: the temperature every hour, a stock price every second, a website's visits per day, a server's CPU use every ten seconds. What makes it special is that the order matters. Each point only makes sense next to the ones before and after it.

Analysts look for a few typical shapes in a time series. The trend is the long-term direction (slowly going up). Seasonality is a pattern that repeats on a calendar (more ice cream sold every summer, more traffic every Monday morning). And then there is noise: the random wiggle left over. Separating these is the basis of forecasting, from predicting next month's sales to planning how many servers a holiday will need.

Because this kind of data arrives constantly and is almost always read by time range, there are databases built just for it, called time-series databases, like InfluxDB, TimescaleDB or Amazon Timestream. They compress the data well and make questions like "average per minute over the last 24 hours" very fast. Monitoring tools for servers and IoT devices are built on top of them.

Keep in mind

Go deeper

Related terms

More in Data