AI Glossary / Statistics and probability / Intermediate
Decomposition of time series
Definition
Decomposition of time series separates observations recorded over time into components representing different patterns. A common arrangement uses a trend-cycle component, a seasonal component, and a remainder. Some treatments distinguish trend and cycle separately, and some data require several seasonal components. Decomposition helps describe a series and can support forecasting, but the components are estimates under a chosen method rather than directly observed causes.
What it means
A sales series can rise over several years, peak at a recurring time of year, and fluctuate unexpectedly within individual months. Decomposition gives these different patterns separate representations so that they can be examined together.
The trend-cycle captures relatively smooth movement. Seasonality captures repetition associated with a known period, such as a week or year. The remainder is what the selected components do not explain. It can include noise, unusual events, measurement problems, and patterns the method has missed.
Calling a component seasonal does not prove why it occurs. Likewise, a smooth trend is not necessarily the effect of a single business strategy. Decomposition describes variation; causal explanations require additional evidence.
How it works
In an additive decomposition, the observed value is y = T + S + R, where T is trend-cycle, S seasonality, and R remainder. Components are expressed in the same units as the series. A multiplicative form uses y = T × S × R, with seasonal and remainder factors relative to the level.
Additive patterns are useful when seasonal swings are roughly constant in size. Multiplicative patterns can suit positive series whose swings grow with their level. A logarithmic transformation can turn a multiplicative arrangement into an additive one, but requires positive values.
Methods differ in their smoothing, seasonal assumptions, treatment of outliers, and use of observations near the boundaries. The analyst selects an appropriate period and estimates the components, then checks the remainder and reconstruction. Forecasting requires further decisions about how each component evolves beyond the observed data.
Three practical examples
- A retailer separates recurring holiday demand from slower changes in sales to inform stock planning.
- A service team examines daily and weekly patterns in support requests before identifying unusually busy periods.
- An AI operations team studies workload trends and recurring calendar effects before interpreting a spike in computing demand as an anomaly.
Think of it this way
Think of a recorded musical performance containing a melody, a repeating rhythm, and additional sounds. Separating those parts can make the recording easier to understand. The separation depends on the method and definitions, however; the original recording does not arrive with every component perfectly labeled.
Worked example
Consider an original additive teaching example for four quarters. Suppose the trend-cycle values are 100, 105, 110, and 115, and the seasonal components are −10, 0, 15, and −5. These seasonal values sum to zero. Suppose remainders are 2, −3, 1, and 0.
Adding the components gives observations of 92, 102, 126, and 110. For the third quarter, 110 + 15 + 1 = 126. Removing the seasonal component gives seasonally adjusted values of 102, 102, 111, and 115, which still contain the remainders.
The raw series falls from 126 to 110 between the last two quarters, a decline of approximately 12.70%. The adjusted series rises from 111 to 115, approximately 3.60%. The different descriptions answer different questions: the actual observed total declined, while the adjusted measure increased after removing the stipulated seasonal pattern.
These components were supplied for arithmetic illustration, not estimated from four observations. One year alone would not justify treating the proposed quarterly pattern as a reliably established recurring season. The adjusted series is also not identical to the trend-cycle because its irregular component remains.
Illustrative case study
In this fictional case, Eastbank Learning operates an AI-supported training portal. Course activity increases near regular enrollment dates, while a separate campaign creates an unusual surge. Managers initially interpret every increase as evidence of sustained growth.
Analysts decompose a sufficiently long history, examine calendar timing, and compare alternative smoothing choices. They identify a recurring enrollment pattern and flag the campaign period for separate review. Their report shows the original data alongside the components so that readers can see what was removed.
The invented case illustrates descriptive analysis. Decomposition alone does not establish whether the campaign caused the surge or whether the underlying growth will continue.
Common misconceptions and mistakes
Seasonally adjusted does not mean trend-only, error-free, or fully explained. It usually retains irregular movements. A large remainder is a signal to investigate, not automatic proof of fraud, failure, or a one-off event.
Different decomposition settings can allocate movement differently between trend and remainder. Estimates at the end of a series may change when new observations arrive. Comparing a revised historical component with an unrevised operational estimate can therefore be misleading.
Do not use future observations to construct features for a past forecasting decision. A centered smoother applied to the entire dataset can leak information into a backtest. Decomposition should be repeated using only information available at each forecast origin when evaluating a real forecasting workflow.
Business use
Businesses can use decomposition to improve reporting, explain recurring workload, and prepare inputs for forecasts or anomaly detection. The decomposition should match the observation frequency, known calendar effects, and level-dependent variation.
Keep the original series visible and document the method, seasonal period, transformation, and revision policy. Evaluate forecast performance using time-respecting validation rather than assuming a neat component plot predicts well. When operating conditions change, reconsider whether earlier seasonal patterns remain relevant. Multiple seasonalities, missing periods, and changing calendars may require methods beyond a simple three-component classroom example.
People also ask
Is decomposition itself a forecast?
No. It separates observed patterns; extrapolation requires additional assumptions or models.
Can a series have multiple seasonal patterns?
Yes, such as daily and weekly patterns in hourly activity.
Is the remainder pure random noise?
Not necessarily. It may contain unmodeled structure or measurement problems.
Check your understanding
Check your understanding: Why is the third seasonally adjusted value 111?
Answer: Subtracting 15 from 126 removes the seasonal component.
Why is it not 110?
Answer: The remainder of 1 remains.
Can four supplied quarterly components prove annual seasonality?
Answer: No.
What makes a full-history smoother risky in forecasting evaluation?
Answer: It may use observations unavailable at the prediction date.
Related terms
- Cyclical effect
- Seasonal adjustment
- Moving average
- Time Series Forecasting
- Trend
- seasonality
- remainder
- STL decomposition
- temporal leakage
Learn next
Compare additive and multiplicative decompositions on positive data. Then investigate STL and evaluate decomposition-based forecasts using rolling forecast origins.
More in Statistics and probability
- Deck imputation - Deck imputation fills a missing data item using information from a donor record.
- Decoder models - Decoder models, in the language-modeling sense used here, generate sequences by predicting the next token from preceding context.
- Decoder-only model - A decoder-only model is a neural sequence model built around a decoder stack without a separate encoder stack for the text input.
- Deductive imputation - Deductive imputation supplies a missing value by applying logical relationships to information already available.
- Deep model - A deep model is a neural network that transforms inputs through multiple hidden layers before producing an output.
- Defective sample - A defective sample, in the historical statistical terminology used by the supplied glossary, is a sample made incomplete because the intended inquiry was...
Work in finance? Get the free CFO AI Prompt Pack: 7 prompts for finance leaders.
Sources
Sources: Hyndman and Athanasopoulos, Forecasting: Principles and Practice, Time series decomposition, https://otexts.com/fpp3/decomposition.html. OECD Glossary of Statistical Terms, Decomposition, https://www.oecd.org/content/dam/oecd/en/publications/reports/2008/09/oecd-glossary-of-statistical-terms_g1gh9ad7/9789264055087-en.pdf. The quarterly components, calculations, and fictional learning-portal case are original.
Previous: Decomposition Algorithm Next: Deconvolutional Network