liveBook · Manning

Cycle

As explained in Outlier Detection in Python

A recurring temporal pattern in which values or behavior repeat over successive periods.

A cycle is a repeating time-series pattern whose timing or length may vary. Unlike seasonality, which is more regular and calendar-linked, cycles can be less predictable, as with business cycles. section 17.2.3

Cycles change the context for outlier detection. A spike is unusual when it occurs rarely, but expected when it repeats regularly; missing an expected spike can itself be anomalous. section 17.2.3

Interpret a value against relevant historical cycles:

  • Compare outdoor temperatures across daily and yearly patterns. section 17.2.3
  • Compare network traffic across times of day and days of the week. section 17.2.3
  • Compare sales with recent matching weekdays, month positions, and calendar periods from previous years. section 17.2.3

Removing a regular cycle

A time series with a spike every 10 seconds should normally contain a spike at 120 seconds. Subtracting the regular pattern exposes the residual values, where unusual behavior is easier to assess.

How Outlier Detection in Python covers it

How deep it goes
Explains variable-length repetition, contrasts seasonality, and applies decomposition without deriving its internals.
Examples
Uses temperatures, network traffic, sales calendars, and regularly repeating spikes as concrete cases.
What it assumes
Assumes time-series observations and outlier detection, while distinguishing cycles from seasonality through examples.
What you can do after
Apply it via time-series decomposition to separate recurring structure from residual behavior and assess contextual anomalies.
How it connects
Connects cycles with time series, trends, seasonality, outliers, decomposition, and residuals.

Also explained in

Compare how 5 books explain cycle →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Outlier Detection in Python. The section links point to the parts of the book it draws on.